:root {
  --sky: #54aeff;
  --cloud: #e9f9ff;
  --paper: rgba(255, 255, 255, 0.88);
  --paper-solid: #f7fcff;
  --ink: #153a59;
  --link: #004de6;
  --visited: #7030a0;
  --hot: #ff6ac1;
  --sun: #fff86b;
  --border: #225b91;
  --shadow: rgba(20, 52, 87, 0.24);
}

body.theme-home {
  --sky: #54aeff;
  --cloud: #e9f9ff;
  --paper-solid: #f7fcff;
  --ink: #153a59;
  --link: #004de6;
  --visited: #7030a0;
  --hot: #ff6ac1;
  --sun: #fff86b;
  --border: #225b91;
  --shadow: rgba(20, 52, 87, 0.24);
}

body.theme-bio {
  --sky: #7fce9d;
  --cloud: #efffed;
  --paper-solid: #f8fff5;
  --ink: #1d4529;
  --link: #006c2c;
  --visited: #68408d;
  --hot: #e84f8f;
  --sun: #fff28d;
  --border: #2f6f3c;
  --shadow: rgba(31, 74, 43, 0.25);
}

body.theme-thoughts {
  --sky: #ffd36a;
  --cloud: #fff4c8;
  --paper-solid: #fffaf0;
  --ink: #5b3b12;
  --link: #9b4200;
  --visited: #6b3d80;
  --hot: #ff5c8a;
  --sun: #ffff85;
  --border: #9d6b20;
  --shadow: rgba(108, 70, 15, 0.24);
}

body.theme-songs {
  --sky: #ff9ad5;
  --cloud: #ffe8f7;
  --paper-solid: #fff8fd;
  --ink: #572243;
  --link: #b10073;
  --visited: #573eb0;
  --hot: #00a2ff;
  --sun: #fff56d;
  --border: #9a2d70;
  --shadow: rgba(83, 21, 63, 0.24);
}

body.theme-lyrics {
  --sky: #b9a8ff;
  --cloud: #f0edff;
  --paper-solid: #fbf9ff;
  --ink: #342b62;
  --link: #3a36d8;
  --visited: #6b2f94;
  --hot: #ff6170;
  --sun: #fff89a;
  --border: #6557a8;
  --shadow: rgba(45, 36, 99, 0.24);
}

body.theme-cool {
  --sky: #63d8cf;
  --cloud: #e6fffc;
  --paper-solid: #f3fffd;
  --ink: #123f43;
  --link: #006f87;
  --visited: #6a397f;
  --hot: #ff6f91;
  --sun: #fff276;
  --border: #237279;
  --shadow: rgba(16, 72, 77, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  background:
    linear-gradient(rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04)),
    url("./assets/thumpi-sky.png") center top / cover fixed,
    var(--sky);
}

a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

a:visited {
  color: var(--visited);
}

a:hover,
a:focus-visible {
  color: var(--hot);
  background: var(--sun);
  outline: 2px dotted var(--hot);
  outline-offset: 3px;
}

.page {
  width: min(940px, calc(100% - 24px));
  margin: 0 auto;
  padding: 18px 0 42px;
}

.site-head {
  position: relative;
  min-height: 365px;
  padding: 24px;
  border: 4px ridge var(--cloud);
  background:
    linear-gradient(rgba(247, 252, 255, 0.78), rgba(247, 252, 255, 0.54)),
    url("./assets/thumpi-sky.png") center / cover,
    var(--sky);
  box-shadow: 8px 8px 0 var(--shadow);
  overflow: hidden;
}

.tiny-note {
  width: fit-content;
  max-width: 100%;
  margin: 0 0 22px;
  padding: 5px 8px;
  border: 1px dashed var(--border);
  background: rgba(255, 255, 255, 0.78);
  font-family: "Courier New", Courier, monospace;
  font-size: 13px;
}

.hero-title {
  margin: 0;
  width: fit-content;
  padding: 8px 14px;
  border: 4px outset var(--sun);
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(50px, 11vw, 112px);
  line-height: 0.9;
  letter-spacing: -0.07em;
  text-shadow: 3px 3px 0 #ffffff;
  transform: rotate(-1.5deg);
}

.tagline {
  width: min(560px, 100%);
  margin: 22px 0 0 8px;
  padding: 12px 14px;
  border: 2px solid var(--border);
  background: var(--paper);
  font-family: "Courier New", Courier, monospace;
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.55;
}

.theme-home .site-head {
  min-height: 430px;
}

.theme-home .tagline {
  width: min(500px, calc(100% - 350px));
}

.hero-embed {
  position: absolute;
  right: 22px;
  bottom: 18px;
  width: min(300px, calc(100% - 44px));
  padding: 6px;
  border: 3px double var(--border);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.14);
  transform: rotate(1deg);
}

.hero-embed iframe {
  display: block;
  width: 100%;
  height: 352px;
  border: 0;
  border-radius: 10px;
}

.nav-cloud {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin: 18px 0 0;
  padding: 14px;
  border: 2px dashed var(--border);
  background: rgba(255, 255, 255, 0.66);
}

.nav-cloud a {
  display: block;
  padding: 10px 8px;
  border: 2px outset var(--cloud);
  background: #ffffff;
  font-family: "Courier New", Courier, monospace;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.16);
}

.nav-cloud a:hover,
.nav-cloud a:focus-visible {
  text-decoration: none;
}

.nav-cloud a.active {
  background: var(--sun);
  color: var(--ink);
}

.nav-cloud a:nth-child(1) { transform: translateY(4px) rotate(-1.5deg); }
.nav-cloud a:nth-child(2) { transform: translateY(-2px) rotate(1.5deg); }
.nav-cloud a:nth-child(3) { transform: translateY(5px) rotate(1deg); }
.nav-cloud a:nth-child(4) { transform: translateY(-1px) rotate(-1deg); }
.nav-cloud a:nth-child(5) { transform: translateY(4px) rotate(1.5deg); }
.nav-cloud a:nth-child(6) { transform: translateY(-3px) rotate(-1.5deg); }

.ticker {
  position: relative;
  margin: 18px 0;
  padding: 7px 0;
  border-top: 2px solid var(--border);
  border-bottom: 2px solid var(--border);
  background: rgba(255, 248, 107, 0.82);
  overflow: hidden;
  font-family: "Courier New", Courier, monospace;
  font-weight: 700;
  white-space: nowrap;
}

.ticker-track {
  display: inline-flex;
  min-width: max-content;
  animation: ticker-slide 14s linear infinite;
}

.ticker-track span {
  padding-right: 2rem;
}

@keyframes ticker-slide {
  from { transform: translateX(0); }
  to { transform: translateX(-25%); }
}

main {
  display: block;
}

.home-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
  align-items: start;
}

.panel {
  margin-bottom: 16px;
  padding: 16px;
  border: 3px double var(--border);
  background: var(--paper);
  box-shadow: 6px 6px 0 var(--shadow);
}

h2 {
  margin: 0 0 10px;
  width: fit-content;
  padding: 4px 8px;
  border: 2px solid var(--border);
  background: var(--cloud);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  line-height: 1;
  transform: rotate(-1deg);
}

h3 {
  margin: 14px 0 8px;
  font-family: "Courier New", Courier, monospace;
}

p {
  line-height: 1.55;
}

.placeholder {
  padding: 8px 10px;
  border: 1px dashed var(--border);
  background: rgba(255, 255, 255, 0.72);
  font-family: "Courier New", Courier, monospace;
}

.social-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.social-buttons a,
.fake-button,
.song-links a {
  display: inline-block;
  padding: 8px 11px;
  border: 2px outset var(--cloud);
  background: #ffffff;
  color: var(--link);
  font-family: "Courier New", Courier, monospace;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.16);
  transform: rotate(-1deg);
}

.social-buttons a:hover,
.social-buttons a:focus-visible,
.fake-button:hover,
.fake-button:focus-visible,
.song-links a:hover,
.song-links a:focus-visible {
  text-decoration: none;
}

.social-buttons a:nth-child(even),
.song-links a:nth-child(even) {
  transform: rotate(1deg);
}

.stamp {
  display: inline-block;
  margin: 6px 6px 0 0;
  padding: 4px 7px;
  border: 1px solid var(--border);
  background: var(--sun);
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  transform: rotate(-1deg);
}

.latest-song {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}

.song-list,
.post-list,
.cool-list {
  margin: 0;
  padding-left: 1.4rem;
  line-height: 1.75;
}

.song-list li::marker,
.cool-list li::marker {
  content: "♪ ";
}

.song-cards {
  padding-left: 0;
  list-style: none;
}

.song-card {
  margin: 0 0 18px;
  padding: 12px;
  border: 1px dashed var(--border);
  background: rgba(255, 255, 255, 0.66);
}

.song-card h3 {
  margin-top: 0;
}

.song-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 6px 0 10px;
  font-family: "Courier New", Courier, monospace;
  font-size: 13px;
}

.song-player {
  margin: 10px 0;
  padding: 10px;
  border: 2px solid var(--border);
  background: #ffffff;
  font-family: "Courier New", Courier, monospace;
}

.song-player audio {
  display: block;
  width: min(460px, 100%);
  margin: 0 0 8px;
}

.preview-missing {
  margin: 0 0 8px;
  padding: 8px;
  border: 1px dotted var(--border);
  background: var(--paper-solid);
  font-size: 13px;
}

.song-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.song-links:empty {
  display: none;
}

.bandcamp-embed {
  display: block;
  width: 100%;
  height: 120px;
  margin: 8px 0;
  border: 0;
}


.album-group {
  margin: 22px 0 30px;
  padding-top: 8px;
  border-top: 1px dotted var(--border);
}

.album-group:first-of-type {
  margin-top: 18px;
}

.album-title {
  margin: 0 0 8px;
  font-size: 22px;
  font-family: Georgia, "Times New Roman", serif;
}

.album-description {
  max-width: 62ch;
  margin: 0 0 12px;
  font-family: "Courier New", Courier, monospace;
  font-size: 13px;
}

.album-song-list {
  margin-top: 10px;
}

.album-song-card h3 {
  display: flex;
  gap: 6px;
  align-items: baseline;
}

.track-number {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.8em;
  opacity: 0.8;
}

.post-list li {
  margin-bottom: 16px;
}

.post-date {
  display: block;
  margin: 0 0 4px;
  font-family: "Courier New", Courier, monospace;
  font-size: 13px;
}

.post-body {
  max-width: 70ch;
}

.lyrics-entry {
  margin: 0 0 24px;
  padding-bottom: 18px;
  border-bottom: 1px dashed var(--border);
}

.lyrics-entry h3 {
  margin: 4px 0 12px;
  font-size: 20px;
}

.lyrics-box {
  min-height: 148px;
  padding: 12px;
  border: 2px inset var(--cloud);
  background:
    linear-gradient(90deg, rgba(255,255,255,0.8), rgba(255,255,255,0.62)),
    repeating-linear-gradient(0deg, transparent 0 25px, rgba(34, 91, 145, 0.15) 25px 26px);
  font-family: "Courier New", Courier, monospace;
  line-height: 1.55;
  white-space: normal;
}

.song-notes {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}

.back-link {
  margin-top: 18px;
}

footer {
  margin-top: 18px;
  padding: 12px;
  border: 2px dashed var(--border);
  background: rgba(255, 255, 255, 0.74);
  text-align: center;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
}

.blink {
  animation: blink 1s steps(2, start) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

@media (max-width: 760px) {
  .site-head {
    min-height: auto;
    padding: 16px;
  }

  .theme-home .site-head {
    min-height: auto;
  }

  .theme-home .tagline {
    width: min(560px, 100%);
  }

  .hero-embed {
    position: static;
    width: auto;
    margin-top: 16px;
    transform: none;
  }

  .nav-cloud {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-cloud a,
  .social-buttons a,
  .song-links a {
    transform: none !important;
  }

  .home-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    letter-spacing: -0.05em;
  }
}
