/* A night walk through latent space: the sign, the band, four lit city windows, the crew, the way home. */
:root {
  --night: #0a0d1c;
  --pane: #141a30;
  --fg: #eef1fb;
  --dim: #b3bdd8;
  --lamp: #f2b860;
  --spark: #78e6d8;
  --rose: #ef86b5;
  --display: ui-rounded, "SF Pro Rounded", "Nunito", "Trebuchet MS", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { background: var(--night); }
body {
  margin: 0;
  color: var(--fg);
  font: 17px/1.6 system-ui, sans-serif;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(28px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}
img { display: block; max-width: 100%; height: auto; }
#snow { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
header, main, footer { position: relative; max-width: 1180px; margin: 0 auto; }
header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 20px; }
nav { display: flex; flex-wrap: wrap; gap: 4px 22px; align-items: center; }
a { color: var(--fg); text-underline-offset: 5px; }
header a, nav a, dt a, footer a, button { min-height: 44px; display: inline-flex; align-items: center; }
.back { gap: .4em; color: var(--lamp); font-weight: 700; padding: 0 16px; border: 1px solid currentColor; border-radius: 3px; background: var(--night); }
button { font: inherit; padding: 0 12px; border: 0; background: var(--night); color: var(--dim); cursor: pointer; }
button[hidden] { display: none; }
/* Both labels share one cell, so the wider one always sets the width and nothing moves when they swap. */
#motion:not([hidden]) { display: inline-grid; place-items: center; }
#motion > span { grid-area: 1 / 1; }
body:not(.still) #motion > span + span, .still #motion > span:first-child { visibility: hidden; }
.pending { min-height: 44px; display: inline-flex; align-items: center; color: var(--dim); cursor: default; }
.skip { position: absolute; left: -999em; }
.skip:focus { left: 16px; z-index: 2; background: var(--night); }
:focus-visible { outline: 3px solid var(--spark); outline-offset: 4px; }

main { display: grid; gap: 96px; padding: 48px 0 96px; }
section { display: grid; gap: 24px; min-width: 0; }
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; }
h1, h2, h3 { font-family: var(--display); line-height: 1; text-wrap: balance; }
h1 { display: grid; font-size: clamp(56px, 16vw, 188px); font-weight: 800; line-height: .88; }
h1 span { position: relative; width: max-content; max-width: 100%; isolation: isolate; }
/* Each word keeps the two versions of itself that it nearly was. */
h1 span::before, h1 span::after { content: attr(data-ghost) / ""; position: absolute; inset: 0; z-index: -1; opacity: .5; }
h1 span::before { color: var(--spark); transform: translate(-.055em, -.025em); }
h1 span::after { color: var(--rose); transform: translate(.05em, .035em); }
h1 span:last-child { margin-left: min(9vw, 110px); }
h2 { font-size: clamp(38px, 6vw, 68px); }
h3 { font-size: 26px; }
.bio { max-width: 34ch; font-size: clamp(19px, 2.6vw, 26px); }
.street { width: 100%; box-shadow: -6px -4px 0 -1px var(--spark), 6px 5px 0 -1px var(--rose); }
.soon, .bio, #music > h2, #crew > h2, #crew > h3, .cast-intro, .hero > nav { justify-self: start; background: var(--night); }
.motto, .soon { color: var(--lamp); font-weight: 700; }

.band { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 48px; }
.band img { border-radius: 50%; }
.band div { display: grid; gap: 22px; background: var(--night); padding: 8px; }
dt { font: 700 30px/1 var(--display); }
dd { color: var(--dim); margin-bottom: 12px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* Every track with its own still. Not `.still`: that is the body's class while the snow is paused. */
.play-note { justify-self: start; max-width: 62ch; background: var(--night); color: var(--dim); }
.day { display: grid; gap: 22px; padding: 24px; background: var(--pane); border-bottom: 5px solid var(--glow); min-width: 0; }
.day h3 span { color: var(--glow); }
.day h4 { margin: 0; padding-top: 18px; border-top: 1px solid var(--glow); color: var(--dim); font-weight: 400; font-size: 15px; }
.day-head { display: grid; grid-template-columns: 148px minmax(0, 1fr); align-items: center; gap: 18px 20px; }
.day-cover { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; }
.day-title { display: grid; gap: 14px; min-width: 0; }
.whole { min-height: 44px; }
.whole:empty { display: none; }
.play-all { gap: .5em; padding: 6px 16px; border-radius: 3px; background: var(--glow); color: var(--night); font-weight: 700; line-height: 1.25; text-align: left; }
.day-head.playing .whole { display: none; }
.list-frame { grid-column: 1 / -1; display: block; width: 100%; height: 360px; border: 0; }
.tiles { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 22px 18px; }
.tile { flex: 0 0 232px; display: grid; gap: 8px; min-width: 0; }
.tile.interlude { flex-basis: 120px; }
.cover { position: relative; display: block; width: 100%; min-height: 0; padding: 0; border: 0; border-radius: 4px; background: var(--night); color: var(--fg); overflow: hidden; }
.cover img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.cover .badge { position: absolute; left: 8px; bottom: 8px; padding: 5px 10px; border-radius: 3px; background: var(--glow); color: var(--night); font: 700 15px/1.2 system-ui, sans-serif; }
.cover .badge[hidden] { display: none; }
.soon-tile .cover img { opacity: .5; }
.soon-tile .badge { background: var(--night); color: var(--fg); }
.about { display: grid; gap: 2px; align-content: start; min-width: 0; }
.name { line-height: 1.3; overflow-wrap: break-word; }
.interlude .name { font-size: 14px; }
.time { color: var(--dim); font-size: 14px; font-variant-numeric: tabular-nums; }
.tile.playing { flex-basis: 100%; }
.tile.playing .cover { display: none; }
.card-frame { display: block; width: 100%; height: 166px; border: 0; }
.album { display: grid; gap: 22px; padding: 24px; background: var(--pane); border-bottom: 5px solid var(--glow); --glow: var(--lamp); min-width: 0; }
.album .day-head { grid-template-columns: 300px minmax(0, 1fr); align-items: start; gap: 24px 28px; }
.album-art { margin: 0; display: grid; gap: 6px; }
.album-art figcaption, .kicker { color: var(--dim); font-size: 14px; line-height: 1.4; }
.album h3 { color: var(--glow); font-size: clamp(28px, 4vw, 40px); }
.describe { display: grid; gap: 10px; max-width: 64ch; font-size: 16px; line-height: 1.55; }
.album .whole { justify-self: start; }
.tile { position: relative; }
.meta { display: flex; justify-content: space-between; align-items: center; gap: 4px; min-height: 44px; }
.info { flex: none; width: 44px; height: 44px; padding: 0; display: inline-grid; place-items: center; background: none; color: var(--fg); }
.info[hidden] { display: none; }
.info > span { width: 24px; height: 24px; display: grid; place-items: center; border: 2px solid currentColor; border-radius: 50%; font: 700 14px/1 Georgia, serif; }
.info[aria-expanded="true"] > span { background: var(--fg); color: var(--pane); }
.details { position: absolute; z-index: 5; top: calc(100% + 4px); left: 0; width: min(340px, calc(100vw - 64px)); display: grid; gap: 8px; padding: 14px; border: 1px solid var(--glow); border-radius: 4px; background: var(--night); color: var(--fg); font-size: 15px; line-height: 1.5; }
.details[hidden] { display: none; }
.details strong { line-height: 1.3; }
.berlin { --glow: var(--spark); }
.paris { --glow: var(--lamp); }
.sf { --glow: var(--rose); }
.shenzhen { --glow: var(--fg); }

.story { justify-self: center; width: min(100%, 680px); padding: 16px; background: var(--night); gap: 16px; }
.story > p:not(.motto) { font-size: 20px; }
.crew { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 18px 24px; }
.crew li { display: grid; gap: 7px; align-content: start; padding: 10px; background: var(--night); }
.crew li:target { outline: 2px solid var(--lamp); }
.crew small { font: 15px system-ui, sans-serif; color: var(--dim); }
#crew > h3 { font-size: clamp(28px, 4vw, 40px); color: var(--lamp); }
#crew > h3:not(:first-of-type) { margin-top: 32px; }
.cast-intro { max-width: 60ch; padding: 6px 10px; }
.crew h4 { margin: 0; font-family: var(--display); font-size: 26px; line-height: 1; text-wrap: balance; }
footer { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; padding: 12px; background: var(--night); color: var(--dim); }

@media (max-width: 760px) {
  .band { grid-template-columns: minmax(0, 1fr); }
  h1 span:last-child { margin-left: 0; }
  main { gap: 72px; }
  .day { padding: 18px 14px; }
  .album { padding: 18px 14px; }
  .album .day-head { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .album-art { width: min(100%, 300px); }
  .details { width: 100%; }
  .day-head { grid-template-columns: 100px minmax(0, 1fr); gap: 14px; }
  .day h3 { font-size: 21px; }
  .play-all { padding: 6px 10px; }
  .tiles { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .tile { grid-template-columns: 124px minmax(0, 1fr); align-items: center; gap: 12px; }
  .tile.interlude { grid-template-columns: 80px minmax(0, 1fr); padding-left: 20px; }
  .interlude .badge { left: 4px; bottom: 4px; padding: 4px 6px; font-size: 12px; }
  .tile.playing { grid-template-columns: minmax(0, 1fr); padding-left: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  h1 span::before, h1 span::after { animation: interpolate 9s ease-in-out infinite alternate; }
  .still h1 span::before, .still h1 span::after { animation-play-state: paused; }
  @keyframes interpolate { to { transform: translate(.018em, -.03em); opacity: .4; } }
}
