/* ARCHANGEL — archangelverses.com  (v5, "The Journey")
   Gold as light, not paint: white-hot to gold to amber, blooming against a violet-black night.
   Book colours survive only as faint accents of light. */

:root {
  /* the dark */
  --void: #05040A;        /* deepest night, violet-black */
  --night: #0C0A14;       /* raised surfaces */
  --dusk: #1B1726;        /* panels */
  --line: rgb(238 234 246 / .1);

  /* the light */
  --light: #EEEAF6;       /* text: silver-white with a breath of violet (not cream) */
  --mist: #A7A1BA;        /* secondary text */
  --hot: #FFF4D6;         /* white-hot centre of the light */
  --gold: #F3C766;        /* radiant gold */
  --amber: #D19A45;       /* gold in shadow */
  --aurora: #8F7BFF;      /* the faint edge of the glow */
  --gilt: linear-gradient(176deg, var(--hot) 8%, var(--gold) 48%, var(--amber) 96%);
  --bloom: drop-shadow(0 0 18px rgb(243 199 102 / .32)) drop-shadow(0 0 2px rgb(255 244 214 / .35));

  --accent: var(--gold);  /* per book, below */

  /* type */
  --display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --text: "Instrument Sans", "Helvetica Neue", system-ui, sans-serif;

  /* layout */
  --measure: 36rem;
  --wide: 84rem;
  --gutter: clamp(1.15rem, 4.5vw, 3.5rem);
  --rail-w: 4rem;
  --top-h: 3rem;
  --bar-h: 0px;
  --tap: 2.75rem;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* Book accents and voices (Bodoni Moda's weight and italic change with the book) */
[data-book="GN"] { --accent: #9AD8AE; --vw: 400; --vi: italic; }
[data-book="EX"] { --accent: #FF8E63; --vw: 900; --vi: normal; }
[data-book="LV"] { --accent: #BBA6FF; --vw: 500; --vi: normal; }
[data-book="NU"] { --accent: #9EC6FF; --vw: 700; --vi: italic; }
[data-book="DT"] { --accent: #F0C27A; --vw: 600; --vi: normal; }

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth; -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--top-h) + .75rem); scroll-padding-bottom: calc(var(--bar-h) + 1rem);
}
html.is-locked { overflow: hidden; }
body {
  margin: 0;
  background: var(--void);
  color: var(--light);
  font-family: var(--text);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
/* film grain over everything, for depth */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 3px; }
.sheet:focus { outline: none; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--gold); color: var(--void); padding: .6rem 1rem; text-decoration: none;
}
.skip:focus { top: 1rem; }

/* gold, as light */
.gilt {
  background: var(--gilt); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: var(--bloom);
}

/* ---------- Logo ---------- */
.logo, .footer__logo { display: inline-flex; align-items: center; gap: .45rem; min-height: var(--tap); text-decoration: none; }
.logo__mark { width: 2rem; height: 2rem; flex: none; filter: drop-shadow(0 0 6px rgb(243 199 102 / .45)); }
.logo__word {
  font-family: var(--display); font-style: italic; font-weight: 800; font-variation-settings: "opsz" 96;
  font-size: 1.35rem; line-height: 1; letter-spacing: -.01em; padding-right: .1em;
  background: var(--gilt); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Top bar: slim ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 30; height: calc(var(--top-h) + env(safe-area-inset-top));
  display: flex; align-items: center; justify-content: space-between;
  padding: env(safe-area-inset-top) var(--gutter) 0;
  transition: background .35s, box-shadow .35s;
}
.topbar .logo { opacity: 0; transition: opacity .35s; }
.topbar__nav { display: flex; }
.topbar__nav a {
  display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 .7rem;
  font-size: .98rem; font-weight: 500; letter-spacing: .01em; text-decoration: none; color: var(--light);
  text-shadow: 0 1px 10px rgb(5 4 10 / .9);
}
.topbar__nav a:hover { color: var(--gold); }
body.is-past-hero .topbar {
  background: rgb(5 4 10 / .78); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 rgb(243 199 102 / .14);
}
body.is-past-hero .topbar .logo { opacity: 1; }

/* ---------- Hero: light breaking at the edge of heaven ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh; display: grid; grid-template-rows: 1fr auto;
  padding: calc(var(--top-h) + 2rem) var(--gutter) 1.75rem;
  text-align: center;
  background:
    radial-gradient(ellipse 46% 38% at 50% 2%, rgb(255 236 190 / .55), transparent 70%),
    radial-gradient(ellipse 85% 60% at 50% 0%, rgb(243 199 102 / .22), transparent 72%),
    radial-gradient(ellipse 120% 80% at 50% -10%, rgb(143 123 255 / .14), transparent 75%),
    var(--void);
}
.hero__light { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__rays {
  position: absolute; left: 50%; top: -6%; width: 220vmax; height: 220vmax; translate: -50% -50%;
  background: repeating-conic-gradient(from 0deg, rgb(255 236 190 / .13) 0deg 1.4deg, transparent 1.4deg 7deg);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black 0%, rgb(0 0 0 / .55) 18%, transparent 36%);
          mask-image: radial-gradient(circle at 50% 50%, black 0%, rgb(0 0 0 / .55) 18%, transparent 36%);
  animation: turn 240s linear infinite;
}
@keyframes turn { to { rotate: 360deg; } }
.hero__motes {
  position: absolute; inset: -10% 0 0;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 30%, rgb(255 244 214 / .7), transparent),
    radial-gradient(1px 1px at 28% 62%, rgb(255 244 214 / .5), transparent),
    radial-gradient(2px 2px at 44% 18%, rgb(255 244 214 / .55), transparent),
    radial-gradient(1px 1px at 63% 44%, rgb(255 244 214 / .6), transparent),
    radial-gradient(1.5px 1.5px at 78% 26%, rgb(255 244 214 / .5), transparent),
    radial-gradient(1px 1px at 88% 66%, rgb(255 244 214 / .45), transparent),
    radial-gradient(1.5px 1.5px at 35% 82%, rgb(255 244 214 / .35), transparent),
    radial-gradient(1px 1px at 55% 72%, rgb(255 244 214 / .4), transparent);
  animation: drift 26s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translateY(-4%); opacity: .6; } }
/* a vast arch of wings, the doorway of the logo, standing over the whole sky */
.hero__arch {
  position: absolute; left: 50%; bottom: -4%; width: min(140vw, 110rem); height: 112%;
  translate: -50% 0; opacity: .13;
  filter: blur(.4px) drop-shadow(0 0 40px rgb(243 199 102 / .55));
  -webkit-mask-image: linear-gradient(to bottom, black 30%, transparent 96%);
          mask-image: linear-gradient(to bottom, black 30%, transparent 96%);
  animation: breathe 9s ease-in-out infinite alternate;
}
@keyframes breathe { to { opacity: .2; scale: 1.025; } }

.hero__inner {
  align-self: center; width: 100%; max-width: 60rem; margin: 0 auto; display: grid; justify-items: center;
  transform: translateY(calc(var(--hero-p, 0) * 110px)); opacity: calc(1 - var(--hero-p, 0) * 1.5);
}
.hero__word { margin: 0; display: grid; justify-items: center; gap: .1em; line-height: .9; }
.hero__mark {
  --mw: clamp(7rem, 15vw, 10.5rem);
  width: var(--mw); height: var(--mw);
  filter: drop-shadow(0 0 22px rgb(255 228 160 / .55)) drop-shadow(0 0 60px rgb(243 199 102 / .25));
  animation: dawn 1.6s var(--ease) both;
}
.hero__word span {
  font-family: var(--display); font-style: italic; font-weight: 800; font-variation-settings: "opsz" 96;
  font-size: clamp(3.4rem, 9vw, 8rem); letter-spacing: -.02em; padding: 0 .12em .08em;
  background: var(--gilt); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 28px rgb(243 199 102 / .3)) drop-shadow(0 2px 2px rgb(5 4 10 / .6));
  animation: dawn 1.6s .15s var(--ease) both;
}
@keyframes dawn { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } }
.hero__line {
  margin: 1.1rem 0 2rem; max-width: 26ch;
  font-family: var(--display); font-style: italic; font-weight: 500; font-variation-settings: "opsz" 14;
  font-size: clamp(1.35rem, 2.6vw, 2rem); line-height: 1.25; color: var(--light);
  text-shadow: 0 0 24px rgb(5 4 10 / .9);
}
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--tap); padding: .65rem 1.45rem; border-radius: 999px;
  font-size: 1rem; font-weight: 600; letter-spacing: .01em; line-height: 1.15; text-decoration: none;
  transition: box-shadow .25s, background .25s, color .25s;
}
.btn--solid {
  background: var(--gilt); color: var(--void);
  box-shadow: 0 0 0 1px rgb(255 244 214 / .4) inset, 0 8px 30px -8px rgb(243 199 102 / .65);
}
.btn--solid:hover { box-shadow: 0 0 0 1px rgb(255 244 214 / .6) inset, 0 8px 44px -6px rgb(243 199 102 / .9); }
.btn--line { color: var(--light); background: rgb(5 4 10 / .35); box-shadow: inset 0 0 0 1px rgb(243 199 102 / .55); }
.btn--line:hover { color: var(--hot); box-shadow: inset 0 0 0 1px var(--gold), 0 0 24px -6px rgb(243 199 102 / .6); }

/* The score: every song a ray of light, tinted at its root by its book */
.score { width: 100%; max-width: var(--wide); margin: 2.5rem auto 0; text-align: left; }
.score__bars { display: flex; align-items: flex-end; gap: 1px; height: 4rem; cursor: pointer; touch-action: manipulation; }
.score__bar {
  flex: 1 1 0; min-width: 0; height: var(--h, 70%); pointer-events: none; border-radius: 1px 1px 0 0;
  background: linear-gradient(to top, var(--accent) 0%, var(--gold) 38%, var(--hot) 100%);
  opacity: .78; transform-origin: bottom; transition: height .25s var(--ease), opacity .2s, filter .2s;
}
.score__bar.is-hot { height: 100%; opacity: 1; filter: drop-shadow(0 0 6px var(--hot)) brightness(1.2); }
.score.is-entering .score__bar { animation: rise .8s var(--ease) both; animation-delay: calc(400ms + var(--i) * 8ms); }
@keyframes rise { from { transform: scaleY(0); opacity: 0; } }
.score__books { display: flex; gap: 1px; margin-top: .4rem; }
.score__book {
  flex: var(--n) 1 0; min-width: 0; padding-top: .35rem; border-top: 1px solid var(--accent);
  font-size: .8rem; font-weight: 500; letter-spacing: .02em; white-space: nowrap; overflow: hidden;
  color: var(--mist); text-decoration: none;
}
.score__book:hover { color: var(--light); }
.score__short { display: none; }
.score__caption {
  margin: .7rem 0 0; font-family: var(--display); font-style: italic; font-variation-settings: "opsz" 11;
  font-size: 1.02rem; line-height: 1.4; color: var(--mist);
  height: 2.8em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}

/* ---------- Journey ---------- */
.journey { position: relative; padding-right: var(--rail-w); }
.status { text-align: center; padding: 20vh var(--gutter); color: var(--mist); font-style: italic; }
.status--error { color: var(--light); font-style: normal; max-width: 36rem; margin: 0 auto; }
.status code { color: var(--gold); }

/* Book: a cinematic field; the photograph sits in darkness with gold light rising from below */
.book {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 74svh; display: grid; align-content: end;
  padding: 16vh var(--gutter) 8vh;
  background: radial-gradient(ellipse 70% 60% at 50% 100%, color-mix(in oklab, var(--accent) 22%, transparent), transparent 70%), var(--night);
}
.book__image {
  position: absolute; inset: 0; z-index: -2; opacity: 0; transition: opacity 1.2s;
  background-size: cover; background-position: center 45%;
}
.book.has-image .book__image { opacity: .82; }
.book::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to bottom, var(--void) 0%, transparent 22%, transparent 45%, var(--void) 100%),
    radial-gradient(ellipse 60% 50% at 30% 80%, rgb(5 4 10 / .6), transparent 70%);
}
.book__inner { position: relative; max-width: var(--wide); width: 100%; margin: 0 auto; }
.book__name {
  margin: 0; font-family: var(--display); font-weight: var(--vw); font-style: var(--vi); font-variation-settings: "opsz" 96;
  font-size: clamp(3.6rem, 13vw, 10.5rem); line-height: .9; letter-spacing: -.02em; padding-bottom: .06em;
  background: var(--gilt); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 30px rgb(243 199 102 / .28)) drop-shadow(0 2px 3px rgb(5 4 10 / .7));
}
.book__note { margin: .9rem 0 0; color: var(--light); opacity: .85; display: flex; align-items: center; gap: .6rem; }
.book__note::before { content: ""; width: 2.5rem; height: 1px; background: var(--accent); box-shadow: 0 0 8px var(--accent); }

/* Release */
.release {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 5.5rem); align-items: start;
  max-width: var(--wide); margin: 0 auto; padding: 9vh var(--gutter);
}
.release + .release::before {
  content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px;
  background: linear-gradient(90deg, transparent, rgb(243 199 102 / .28), transparent);
}
.release--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.release--flip .release__art { order: 2; }
.release__art { position: sticky; top: calc(var(--top-h) + 2rem); }
/* the cover is lit from behind by its own colour, ringed with a hairline of gold */
.release__cover {
  width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; background: var(--dusk); border-radius: 2px;
  box-shadow:
    0 0 0 1px rgb(243 199 102 / .35),
    0 0 60px -6px var(--tint, rgb(243 199 102 / .35)),
    0 30px 80px -30px rgb(0 0 0 / .9);
}
.release__ref {
  margin: 0 0 .6rem; display: flex; align-items: center; gap: .55rem;
  font-size: .95rem; font-weight: 600; letter-spacing: .03em; color: var(--accent);
}
.release__ref::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.release__title {
  margin: 0; font-family: var(--display); font-weight: var(--vw); font-style: var(--vi); font-variation-settings: "opsz" 28;
  font-size: clamp(2.3rem, 4.4vw, 4rem); line-height: 1; letter-spacing: -.015em; text-wrap: balance; color: var(--light);
}
.release__meta { margin: .8rem 0 1.8rem; color: var(--mist); }

.tracks { list-style: none; margin: 0 0 1.8rem; padding: 0; counter-reset: t; }
.tracks li { counter-increment: t; border-bottom: 1px solid var(--line); break-inside: avoid; }
.track {
  display: grid; grid-template-columns: 2rem 1fr auto; align-items: baseline; gap: .5rem;
  width: 100%; min-height: var(--tap); padding: .55rem 0; background: none; border: 0; text-align: left; cursor: pointer;
  font-size: 1.05rem; color: var(--light); transition: color .15s, text-shadow .15s;
}
.track::before { content: counter(t); font-size: .85rem; color: var(--mist); font-variant-numeric: tabular-nums; }
.track__hint { font-size: .85rem; font-weight: 600; color: var(--gold); opacity: 0; transition: opacity .15s; }
.track:hover, .track:focus-visible { color: var(--hot); text-shadow: 0 0 18px rgb(243 199 102 / .55); }
.track:hover .track__hint, .track:focus-visible .track__hint { opacity: 1; }

/* Listening */
.listen { display: grid; gap: .55rem; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 38rem; }
.listen a, .play-here {
  display: flex; align-items: center; justify-content: center;
  min-height: var(--tap); padding: .5rem .9rem; border-radius: 999px;
  font-size: .98rem; font-weight: 600; line-height: 1.15; text-decoration: none; white-space: nowrap; text-align: center;
  color: var(--light); box-shadow: inset 0 0 0 1px rgb(238 234 246 / .22);
  transition: box-shadow .2s, color .2s, background .2s;
}
.listen a:hover { color: var(--hot); box-shadow: inset 0 0 0 1px var(--gold), 0 0 22px -8px rgb(243 199 102 / .7); }
.play-here {
  grid-column: 1 / -1; border: 0; cursor: pointer; font-size: 1.05rem;
  background: var(--gilt); color: var(--void);
  box-shadow: 0 0 0 1px rgb(255 244 214 / .4) inset, 0 10px 34px -12px rgb(243 199 102 / .8);
}
.play-here:hover { box-shadow: 0 0 0 1px rgb(255 244 214 / .6) inset, 0 10px 44px -8px rgb(243 199 102 / 1); }
.play-here[aria-expanded="true"] { background: transparent; color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.embed { margin-top: 1rem; max-width: 38rem; }
.embed iframe { display: block; width: 100%; height: 352px; border: 0; border-radius: 12px; background: var(--dusk); }

/* ---------- Book rail ---------- */
.rail {
  position: fixed; z-index: 20; right: .9rem; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: .35rem;
  opacity: 0; pointer-events: none; transition: opacity .4s;
}
body.is-past-hero .rail { opacity: 1; pointer-events: auto; }
html.is-locked .rail { opacity: 0; pointer-events: none; }
.rail__item {
  display: grid; justify-items: center; gap: .3rem; min-width: var(--tap); padding: .3rem;
  text-decoration: none; color: var(--mist); font-size: .72rem; font-weight: 600; letter-spacing: .08em;
}
.rail__track { position: relative; width: 2px; height: 4rem; background: var(--line); overflow: hidden; border-radius: 1px; }
.rail__fill { position: absolute; inset: 0 0 auto 0; height: calc(var(--p, 0) * 100%); background: linear-gradient(var(--hot), var(--gold)); box-shadow: 0 0 8px var(--gold); }
.rail__item.is-active { color: var(--gold); }
.rail__item:hover { color: var(--light); }

/* ---------- Sheets (lyrics, About) ---------- */
.sheet {
  position: fixed; inset: 0; z-index: 50; overflow-y: auto; overscroll-behavior: contain;
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, color-mix(in oklab, var(--now) 14%, transparent), transparent 70%),
    rgb(5 4 10 / .86);
  backdrop-filter: blur(26px) saturate(1.2); -webkit-backdrop-filter: blur(26px) saturate(1.2);
  animation: sheet-in .3s var(--ease);
}
.sheet[hidden] { display: none; }
.sheet::before {
  content: ""; position: sticky; top: 0; z-index: 2; display: block;
  height: calc(3.6rem + env(safe-area-inset-top)); margin-bottom: calc(-3.6rem - env(safe-area-inset-top));
  background: linear-gradient(rgb(5 4 10 / .92) 60%, rgb(5 4 10 / 0)); pointer-events: none;
}
@keyframes sheet-in { from { opacity: 0; transform: translateY(12px); } }
.sheet__inner { position: relative; max-width: var(--wide); margin: 0 auto; padding: 5rem var(--gutter) 6rem; }
.sheet__close {
  position: fixed; top: calc(.5rem + env(safe-area-inset-top)); right: var(--gutter); z-index: 3;
  min-height: var(--tap); min-width: 5.5rem; padding: .45rem 1.2rem; border-radius: 999px; border: 0;
  background: rgb(5 4 10 / .7); color: var(--light); font-size: 1rem; font-weight: 600; cursor: pointer;
  box-shadow: inset 0 0 0 1px rgb(243 199 102 / .55);
}
.sheet__close:hover { color: var(--hot); box-shadow: inset 0 0 0 1px var(--gold), 0 0 20px -6px rgb(243 199 102 / .7); }

/* Lyrics */
.reader {
  display: grid; grid-template-columns: minmax(0, 24rem) minmax(0, 40rem);
  justify-content: center; gap: clamp(2.5rem, 6vw, 6.5rem); align-items: start;
}
.reader__side { position: sticky; top: 5rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.35rem; min-width: 0; }
.reader__head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; min-width: 0; }
.reader__cover {
  width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 2px;
  box-shadow: 0 0 0 1px rgb(243 199 102 / .35), 0 0 60px -10px rgb(243 199 102 / .35);
}
.reader__ref { margin: 0; font-size: .95rem; font-weight: 600; letter-spacing: .03em; color: var(--accent); }
.reader__release { margin: 0; color: var(--mist); }
.reader__title {
  margin: 0; font-family: var(--display); font-weight: var(--vw, 700); font-style: var(--vi, normal); font-variation-settings: "opsz" 24;
  font-size: clamp(2.3rem, 3.8vw, 3.4rem); line-height: 1; letter-spacing: -.015em; text-wrap: balance;
  background: var(--gilt); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 14px rgb(243 199 102 / .25));
  padding-bottom: .06em;
}
.reader__count { margin: .5rem 0 0; color: var(--mist); }
.reader__listen { grid-template-columns: 1fr 1fr; }
.reader__listen > a:nth-of-type(odd):last-of-type { grid-column: 1 / -1; }
.reader__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; border-top: 1px solid var(--line); }
.reader__step { display: grid; align-content: start; gap: .1rem; min-height: var(--tap); text-decoration: none; padding: .85rem 0; }
.reader__step--next { text-align: right; }
.reader__step-label { font-size: .85rem; color: var(--mist); }
.reader__step-title { font-size: 1.05rem; }
.reader__step:hover .reader__step-title { color: var(--gold); }
.reader__step[hidden] { visibility: hidden; display: grid; }
.lyrics {
  font-family: var(--display); font-variation-settings: "opsz" 11; font-weight: 450;
  font-size: 1.32rem; line-height: 1.6; max-width: var(--measure); padding-top: .3rem; color: var(--light);
}
.lyrics p { margin: 0 0 1.4em; }

/* About */
.about {
  display: grid; grid-template-columns: minmax(0, 26rem) minmax(0, 40rem); justify-content: center;
  gap: clamp(2.5rem, 6vw, 6.5rem); align-items: start;
}
.about__image {
  position: sticky; top: 5rem; aspect-ratio: 4 / 5; border-radius: 2px; overflow: hidden;
  display: grid; place-items: center;
  background:
    radial-gradient(ellipse 60% 45% at 50% 55%, rgb(243 199 102 / .3), transparent 70%),
    var(--night);
  background-size: cover; background-position: center;
  box-shadow: 0 0 0 1px rgb(243 199 102 / .3), 0 0 80px -20px rgb(243 199 102 / .4);
}
.about__image.has-image .about__mark { display: none; }
.about__mark { width: 56%; height: 56%; filter: drop-shadow(0 0 24px rgb(243 199 102 / .5)); }
.about__text { max-width: var(--measure); font-size: 1.15rem; line-height: 1.65; }
.about__title {
  margin: 0 0 1.4rem; font-family: var(--display); font-style: italic; font-weight: 800; font-variation-settings: "opsz" 28;
  font-size: clamp(3rem, 6vw, 4.5rem); line-height: 1; letter-spacing: -.02em; padding-bottom: .06em;
  background: var(--gilt); -webkit-background-clip: text; background-clip: text; color: transparent; filter: var(--bloom);
}
.about__lede { font-family: var(--display); font-style: italic; font-weight: 500; font-variation-settings: "opsz" 14; font-size: 1.6rem; line-height: 1.3; }
.about__listen { margin-top: 2.2rem; }

/* ---------- Footer ---------- */
.footer {
  position: relative; text-align: center;
  padding: 14vh var(--gutter) calc(4.5rem + var(--bar-h));
  background: radial-gradient(ellipse 55% 60% at 50% 100%, rgb(243 199 102 / .2), transparent 70%), var(--void);
}
.footer__logo { flex-direction: column; gap: .5rem; }
.footer__logo .logo__mark { width: 5rem; height: 5rem; }
.footer__logo .logo__word { font-size: 3.2rem; }
.footer__links { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 0 .3rem; margin: 2rem 0 1.5rem; padding: 0; }
.footer__links a { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 .75rem; font-weight: 500; text-decoration: none; }
.footer__links a:hover { color: var(--gold); }
.footer__small { margin: 0; color: var(--mist); font-size: .9rem; }

/* ---------- The journey: the atmosphere of the album in view ---------- */
@property --now { syntax: "<color>"; inherits: true; initial-value: #F3C766; }
@property --now-dark { syntax: "<color>"; inherits: true; initial-value: #1B1726; }
html { transition: --now 1.4s ease, --now-dark 1.4s ease; }
main, .footer { position: relative; z-index: 1; }
.atmo { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 1.2s ease; background: var(--now-dark); }
body.has-album .atmo { opacity: 1; }
.atmo__layers, .atmo canvas, .atmo__veil { position: absolute; inset: 0; }
.atmo__layer {
  position: absolute; inset: -14%; background-size: cover; background-position: center;
  filter: blur(56px) saturate(1.7) brightness(.8); opacity: 0; transform: scale(1.08);
  transition: opacity 1.6s ease, transform 8s ease-out;
}
.atmo__layer.is-on { opacity: 1; transform: scale(1); }
.atmo__layer.is-photo { inset: 0; filter: saturate(1.05) brightness(.5); }
.atmo canvas { mix-blend-mode: screen; }
.atmo__veil {
  background:
    radial-gradient(ellipse 70% 55% at 50% 108%, color-mix(in oklab, var(--now) 22%, transparent), transparent 70%),
    radial-gradient(ellipse 90% 80% at 50% 45%, rgb(5 4 10 / .12), rgb(5 4 10 / .78) 100%),
    linear-gradient(rgb(5 4 10 / .2), rgb(5 4 10 / .2));
}

/* a soft light in the colour of the album follows the pointer */
.cursor-light {
  position: fixed; left: 0; top: 0; z-index: 25; width: 36rem; height: 36rem; margin: -18rem 0 0 -18rem;
  pointer-events: none; opacity: 0; transition: opacity .6s;
  background: radial-gradient(circle, color-mix(in oklab, var(--now) 16%, transparent) 0%, transparent 62%);
  mix-blend-mode: screen;
}
.cursor-light.is-on { opacity: 1; }
html.is-locked .cursor-light { opacity: .6; }

/* where you are: the album passing beneath you */
.hud {
  position: fixed; left: var(--gutter); bottom: 1.1rem; z-index: 22;
  display: flex; align-items: center; gap: .7rem; max-width: min(26rem, 40vw);
  padding: .35rem 1rem .35rem .35rem; border-radius: 999px;
  background: rgb(5 4 10 / .6); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--now) 45%, transparent), 0 0 30px -10px var(--now);
  opacity: 0; translate: 0 10px; pointer-events: none; transition: opacity .5s, translate .5s var(--ease);
}
body.has-album .hud { opacity: 1; translate: 0 0; }
html.is-locked .hud { opacity: 0; }
.hud.is-swap .hud__text, .hud.is-swap .hud__cover { animation: swap .6s var(--ease) both; }
@keyframes swap { from { opacity: 0; transform: translateY(6px); } }
.hud__cover { width: 2.5rem; height: 2.5rem; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 1px rgb(243 199 102 / .5); }
.hud__text { display: grid; min-width: 0; line-height: 1.2; }
.hud__ref { font-size: .72rem; font-weight: 600; letter-spacing: .04em; color: var(--now); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hud__title { font-family: var(--display); font-style: italic; font-variation-settings: "opsz" 14; font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* releases arrive: cover rises out of the blur, the title word by word, the songs one by one */
.release .release__cover { opacity: 0; transform: translateY(46px) scale(.93); filter: blur(12px);
  transition: opacity 1s ease, transform 1.2s var(--ease), filter 1.2s var(--ease), box-shadow 1.2s; }
.release.is-in .release__cover { opacity: 1; transform: none; filter: none; }
.release .release__ref, .release .release__meta, .release .listen { opacity: 0; transform: translateY(12px); transition: opacity .8s ease .1s, transform .9s var(--ease) .1s; }
.release .release__meta { transition-delay: .45s; }
.release .listen { transition-delay: .75s; }
.release.is-in .release__ref, .release.is-in .release__meta, .release.is-in .listen { opacity: 1; transform: none; }
.release__title .word { display: inline-block; opacity: 0; transform: translateY(.45em); filter: blur(6px);
  transition: opacity .8s ease, transform 1s var(--ease), filter 1s; transition-delay: calc(.15s + var(--w) * 80ms); }
.release.is-in .release__title .word { opacity: 1; transform: none; filter: none; }
.release.is-in .release__title { text-shadow: 0 0 40px color-mix(in oklab, var(--now) 35%, transparent); transition: text-shadow 1.4s; }
.release .tracks li { opacity: 0; transform: translateX(-12px); transition: opacity .6s ease, transform .7s var(--ease); transition-delay: calc(.35s + var(--k) * 45ms); }
.release.is-in .tracks li { opacity: 1; transform: none; }

/* the cover leans toward the pointer and catches the light */
.release__art.can-tilt { transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .6s var(--ease); }
.release__art.can-tilt::after {
  content: ""; position: absolute; inset: 0; border-radius: 2px; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 30%), rgb(255 244 214 / .3), transparent 48%);
  mix-blend-mode: screen;
}
.release__art.can-tilt:hover::after { opacity: 1; }

/* book names: a blade of light passes across the letters as you arrive */
.book .book__name {
  background: linear-gradient(100deg, transparent 38%, rgb(255 255 255 / .95) 50%, transparent 62%), var(--gilt);
  background-size: 260% 100%, 100% 100%; background-position: 130% 0, 0 0;
  -webkit-background-clip: text; background-clip: text;
  opacity: 0; transform: translateY(36px); letter-spacing: .02em;
  transition: opacity 1.2s ease, transform 1.4s var(--ease), letter-spacing 1.8s var(--ease);
}
.book.is-in .book__name { opacity: 1; transform: none; letter-spacing: -.02em; animation: blade 2.2s .5s var(--ease) both; }
@keyframes blade { to { background-position: -40% 0, 0 0; } }
.book .book__note { opacity: 0; transition: opacity 1s ease .8s; }
.book.is-in .book__note { opacity: .85; }
.book .book__image { transform: scale(1.08); transition: opacity 1.2s, transform 6s ease-out; }
.book.is-in .book__image { transform: none; }

/* the rays in the hero breathe like a choir */
.score:not(.is-entering) .score__bar:not(.is-hot) { animation: sway 4.2s ease-in-out infinite; animation-delay: calc(var(--i) * -70ms); }
@keyframes sway { 50% { transform: scaleY(.86); opacity: .66; } }

/* lyrics arrive stanza by stanza */
.sheet:not([hidden]) .lyrics p { animation: line-in .7s var(--ease) both; animation-delay: calc(.1s + var(--k) * 70ms); }
@keyframes line-in { from { opacity: 0; transform: translateY(14px); filter: blur(4px); } }

/* ---------- Wide screens ---------- */
@media (min-width: 1180px) {
  .tracks--split { columns: 2; column-gap: 2.5rem; }
}
@media (max-width: 1100px) {
  .reader, .about { grid-template-columns: minmax(0, 19rem) minmax(0, 1fr); }
}

/* ---------- Phones ---------- */
@media (max-width: 820px) {
  :root { --rail-w: 0px; --top-h: 2.75rem; --bar-h: calc(2.75rem + env(safe-area-inset-bottom)); }
  body { font-size: 1.06rem; padding-bottom: var(--bar-h); }

  .topbar__nav a { padding: 0 .55rem; font-size: .95rem; }
  .logo__mark { width: 1.8rem; height: 1.8rem; }
  .hero__arch { width: 210vw; height: 100%; bottom: 0; }
  .logo__word { font-size: 1.2rem; }

  .hero { padding-top: calc(var(--top-h) + 1.5rem); }
  .hero__word span { font-size: 17vw; }
  .hero__actions { flex-direction: column; align-items: stretch; width: min(100%, 21rem); }
  .score__bars { height: 3.25rem; gap: .5px; }
  .score__full { display: none; }
  .score__short { display: inline; }

  .book { min-height: 50svh; padding-top: 12vh; padding-bottom: 6vh; }
  .book__name { font-size: 19vw; }

  .release, .release--flip { grid-template-columns: 1fr; padding-top: 6vh; padding-bottom: 6vh; gap: 1.5rem; }
  .release--flip .release__art { order: 0; }
  .release__art { position: static; }
  .release__title { font-size: clamp(2.2rem, 10.5vw, 3rem); }
  .track__hint { display: none; }
  .listen { grid-template-columns: 1fr 1fr; }
  .listen > a:nth-of-type(odd):last-of-type { grid-column: 1 / -1; }

  /* slim book bar */
  .rail {
    top: auto; bottom: 0; left: 0; right: 0; transform: none;
    flex-direction: row; gap: 0; height: var(--bar-h);
    background: rgb(5 4 10 / .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 -1px 0 rgb(243 199 102 / .16);
    padding: 0 .4rem env(safe-area-inset-bottom);
  }
  .rail__item { flex: 1; min-height: 2.6rem; grid-template-columns: auto 1fr; align-items: center; gap: .4rem; padding: 0 .4rem; font-size: .7rem; }
  .rail__track { width: 100%; height: 2px; }
  .rail__fill { inset: 0 auto 0 0; height: 100%; width: calc(var(--p, 0) * 100%); }

  .sheet__inner { padding-top: 4rem; }
  .reader, .about { display: block; }
  .reader { display: flex; flex-direction: column; align-items: stretch; gap: 1.4rem; }
  .reader__side { position: static; display: contents; }
  .reader__head { order: 1; grid-template-columns: 5.5rem minmax(0, 1fr); align-items: center; gap: 1rem; }
  .reader__cover { width: 5.5rem; }
  .reader__heading { order: 2; }
  .reader__title { font-size: clamp(2.2rem, 10.5vw, 3rem); }
  .lyrics { order: 3; font-size: 1.22rem; }
  .reader__listen { order: 4; padding-top: 1.4rem; border-top: 1px solid var(--line); }
  .reader__nav { order: 5; }

  .about__image { position: static; max-width: 20rem; margin-bottom: 2rem; }
  .hud { display: none; }
  .atmo__layer { filter: blur(40px) saturate(1.6) brightness(.7); }
  .footer__logo .logo__word { font-size: 2.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__rays, .hero__motes, .hero__mark, .hero__word span, .hero__arch { animation: none; }
  .score.is-entering .score__bar { animation: none; }
  .sheet { animation: none; }
  .book__image { transition: none; }
  .release .release__cover, .release .release__ref, .release .release__meta, .release .listen,
  .release__title .word, .release .tracks li, .book .book__name, .book .book__note, .book .book__image {
    opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; animation: none !important;
  }
  .score__bar, .sheet .lyrics p { animation: none !important; }
  .atmo__layer, .atmo, html { transition: none !important; }
  .cursor-light { display: none; }
}
