/* VOICE   occasion: a film-score album launch, hushed and grand
   IDEA    an illuminated chronicle presented like an Apple product page: one painting per chapter, big type, quiet chrome
   PICTURE the album painting full-bleed, with the looping Higgsfield video over it, then the eleven paintings as one wall
   COLOUR  umber-black from the paintings' shadows, parchment ink, the cover's gold lettering; crimson and dusk only on the era bar
   TYPE    Cinzel (the cover's Roman capitals) for the name, Cormorant Garamond for headlines, Inter for interface and body; nothing below 16px
   LAYOUT  wide: content up to 1920px under a full-width header; full-screen hero, statement, era bar, 4-column wall, listen split
           phone: same order stacked, one painting per row, two-row player */

:root {
  color-scheme: dark;
  --bg: #0d0a08;
  --bg-2: #17120e;
  --ink: #f3ece0;
  --ink-2: #bdb09c;
  --ink-3: #857866;
  --line: rgb(243 236 224 / .14);
  --gold: #e3b768;
  --gold-hi: #f6dfa6;
  --gold-lo: #b88638;
  --crimson: #9b2a1f;
  --ember: #d9773a;
  --roman: "Cinzel", "Trajan Pro", "Times New Roman", serif;
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  /* Layout: content runs up to 1920px wide; the header and hero run edge to edge */
  --gut: clamp(20px, 4vw, 96px);
  --max: 1920px;
  --nav-h: clamp(68px, 1.6vw + 50px, 88px);
  /* Type grows with the screen, and nothing goes below 16px */
  --fs-xs: clamp(16px, .2vw + 14px, 18px);
  --fs-sm: clamp(17px, .3vw + 13.5px, 20px);
  --fs-body: clamp(18px, .5vw + 12px, 24px);
  --fs-lede: clamp(20px, .8vw + 10px, 30px);
  --fs-h2: clamp(42px, 4.5vw, 96px);
  --fs-statement: clamp(32px, 3.9vw, 84px);
  --btn-h: clamp(56px, 1.1vw + 41px, 68px);
  --btn-fs: clamp(18px, .35vw + 13px, 21px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
:root[data-theme] { color-scheme: dark; }

* { box-sizing: border-box; min-width: 0; }
html { scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--fs-body)/1.6 var(--sans); overflow-x: clip; -webkit-font-smoothing: antialiased; }
/* Decorations that bleed past the screen edge (the compass) are cut off there, so the page never scrolls sideways */
main { overflow-x: clip; }
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--gold-hi); outline-offset: 3px; border-radius: 10px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 14px 22px; border-radius: 999px; background: var(--ink); color: var(--bg); font: 600 var(--fs-sm)/1 var(--sans); }
.skip:focus { top: 16px; }
.wrap { width: min(100% - 2 * var(--gut), var(--max)); margin-inline: auto; }
.ico { width: 22px; height: 22px; fill: currentColor; flex: none; }
.i-pause { display: none; }
[data-state="playing"] > .i-play { display: none; }
[data-state="playing"] > .i-pause { display: block; }

/* Buttons: size comes from --btn-h and --btn-fs, so one rule serves every button */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: var(--btn-h); padding: 0 1.55em; border-radius: 999px; border: 1px solid transparent; font: 600 var(--btn-fs)/1 var(--sans); white-space: nowrap; transition: background-color .25s, border-color .25s, transform .25s var(--ease); }
.btn:active { transform: scale(.97); }
.btn .ico { width: 1.1em; height: 1.1em; }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: #fff; }
.btn-ghost { border-color: rgb(243 236 224 / .32); background: rgb(13 10 8 / .4); }
.btn-ghost:hover { border-color: rgb(243 236 224 / .6); background: rgb(243 236 224 / .1); }

/* Navigation: full width, edge to edge */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h); border-bottom: 1px solid transparent; transition: background-color .35s, border-color .35s; }
.nav.solid { background: rgb(13 10 8 / .74); border-color: var(--line); -webkit-backdrop-filter: saturate(170%) blur(20px); backdrop-filter: saturate(170%) blur(20px); }
.nav-in { height: 100%; display: flex; align-items: center; gap: 20px; padding-inline: var(--gut); }
.brand { font: 600 clamp(24px, .72vw + 16.8px, 33.6px)/1 var(--roman); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-hi); white-space: nowrap; padding-block: 12px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { display: flex; align-items: center; min-height: 48px; padding: 0 clamp(14px, 1vw, 22px); border-radius: 999px; font: 500 var(--fs-sm)/1 var(--sans); color: var(--ink-2); transition: color .2s, background-color .2s; }
.nav-links a:hover { color: var(--ink); background: rgb(243 236 224 / .08); }
.nav:not(.solid) .nav-links a { color: var(--ink); } /* full strength while the header floats over the hero video */
.nav .btn { --btn-h: clamp(46px, .6vw + 38px, 54px); --btn-fs: clamp(16px, .25vw + 13px, 19px); }
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
}
/* Small phones: the header button becomes a round play button so the name can stay big */
@media (max-width: 520px) {
  .nav .btn { width: var(--btn-h); padding: 0; }
  .nav .btn .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* Hero */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; isolation: isolate; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -2; background: #2b170d; }
.hero-media img, .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* The painting (for visitors who reduce motion) sits a little high. With motion on, the picture is the video's
   opening frame instead, placed exactly like the video and starting the drift at full size, so the video fades
   in over it without a shift. */
.hero-media img { object-position: 40% 40%; transform-origin: 42% 46%; }
@media (prefers-reduced-motion: no-preference) { .hero-media img { object-position: 40% 50%; } }
.motion .hero-media img { animation: drift 34s ease-in-out infinite alternate; }
.hero.off .hero-media img, .hero.has-video .hero-media img { animation-play-state: paused; }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.13) translate3d(1.2%, -1.4%, 0); } }
.hero-video { object-position: 40% 50%; opacity: 0; transition: opacity 1.2s ease; }
.hero.has-video .hero-video { opacity: 1; }
.embers { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
/* Scroll cue: a chevron at the foot of the hero that bobs gently, so visitors see the page goes on.
   It links to the album section, and holds still for visitors who reduce motion. */
.scroll-cue { position: absolute; left: 50%; bottom: clamp(12px, 2vh, 28px); translate: -50% 0; display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 50%; color: var(--ink); opacity: .8; transition: opacity .2s; }
.scroll-cue:hover { opacity: 1; }
.scroll-cue .ico { width: 30px; height: 30px; }
.motion .scroll-cue .ico { animation: cue 2.2s ease-in-out infinite; }
.hero.off .scroll-cue .ico { animation-play-state: paused; }
@keyframes cue { 0%, 100% { transform: translateY(-5px); opacity: .5; } 50% { transform: translateY(5px); opacity: 1; } }
/* Shade over the picture and video: dark at the top behind the menu, and towards the lower left behind the text.
   Tuned so the menu and hero text keep 4.5:1 contrast over every frame of the video (see docs/hero-video.md). */
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(180deg, rgb(13 10 8 / .8) 0, rgb(13 10 8 / .46) 10%, rgb(13 10 8 / 0) 24%, rgb(13 10 8 / 0) 38%, rgb(13 10 8 / .8) 74%, var(--bg) 100%),
  linear-gradient(90deg, rgb(13 10 8 / .7) 0, rgb(13 10 8 / .3) 42%, rgb(13 10 8 / 0) 68%); }
/* Phones held upright: the text sits over the middle of the picture, at a height that depends on the screen.
   So a band of shade fades in just above the tagline and stays behind the whole text block. */
@media (max-aspect-ratio: 5/8) {
  .hero .lede::before { content: ""; position: absolute; z-index: -1; top: -110px; bottom: -100vh; left: -50vw; right: -50vw; pointer-events: none;
    background: linear-gradient(180deg, rgb(13 10 8 / 0), rgb(13 10 8 / .45) 90px); }
}
.hero-content { padding-block: calc(var(--nav-h) + 48px) clamp(84px, 13vh, 150px); }
.lede { margin: 24px 0 0; max-width: 32em; font-size: var(--fs-lede); line-height: 1.5; color: var(--ink); text-wrap: pretty; }
/* A thin bar in the colours of the flag of Spain (red, gold, red, as 1:2:1) hangs in the margin beside the tagline */
.hero .lede { position: relative; }
.hero .lede::after { content: ""; position: absolute; top: .3em; bottom: .3em; left: calc(-1 * clamp(14px, 1vw, 22px)); width: clamp(3px, .2vw, 5px);
  border-radius: 3px; background: linear-gradient(#c8372d 25%, var(--gold) 25% 75%, #c8372d 75%); }
/* Streaming logos: a clear mark of where the album lives, though not links (the Listen section has those).
   They scale with the font size here; --h sizes each logo optically (in em) and --y lines up its baseline. */
.available { --logo-opacity: .6; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 2.25em; margin-top: 40px; font-size: clamp(17px, .6vw + 11.5px, 26px); }
.available p { margin: 0; font: 500 var(--fs-sm)/1 var(--sans); color: var(--ink-2); white-space: nowrap; }
.available ul { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 1em 2.25em; margin: 0; padding: 0; }
.available img { height: var(--h); width: auto; opacity: var(--logo-opacity); translate: 0 var(--y, 0); }
@media (max-width: 900px) {
  .hero-content { padding-top: calc(var(--nav-h) + 80px); }
}
@media (max-width: 620px) {
  .available { display: grid; gap: 16px; }
  .available ul { display: grid; grid-template-columns: repeat(2, max-content); gap: 1.25em 2.5em; }
}

/* Album statement */
.album { position: relative; padding-block: clamp(110px, 16vh, 200px) clamp(72px, 11vh, 140px); }
/* An antique compass rose, very faint, behind the right half of the numbers (assets/img/compass.svg).
   Its centre sits a little below the numbers, lower on wider screens, so the fleur-de-lis clears the statement above. */
.album::before { content: ""; position: absolute; z-index: -1; left: calc(50% + 26vw); top: calc(100% - clamp(72px, 11vh, 140px) + 13vw - 120px);
  width: clamp(520px, 50vw, 1400px); aspect-ratio: 1; translate: -50% -50%; pointer-events: none;
  background: url("../img/compass.svg") center / contain no-repeat; opacity: .1; }
.manifesto { margin: 0; max-width: 21em; font: 500 var(--fs-statement)/1.2 var(--serif); letter-spacing: -.005em; text-wrap: pretty; }
.manifesto .w { color: var(--ink-3); transition: color .5s var(--ease); }
.manifesto .w.on { color: var(--ink); }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px clamp(24px, 3vw, 64px); margin: clamp(72px, 10vh, 128px) 0 0; padding-top: clamp(28px, 2.4vw, 48px); border-top: 1px solid var(--line); }
.facts div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 10px; }
.facts dd { margin: 0; font: 500 clamp(56px, 6.4vw, 132px)/1 var(--serif); font-variant-numeric: lining-nums; white-space: nowrap; }
.facts dt { font-size: var(--fs-sm); line-height: 1.45; color: var(--ink-2); }
@media (max-width: 760px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 20px; } }

/* Tracks */
.tracks { padding-block: clamp(56px, 9vh, 112px) clamp(80px, 12vh, 150px); }
.tracks-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px clamp(48px, 5vw, 120px); align-items: end; }
h2 { margin: 0; font: 600 var(--fs-h2)/1.04 var(--serif); letter-spacing: -.012em; text-wrap: balance; }
.tracks-head p { margin: 0; max-width: 30em; color: var(--ink-2); }
@media (max-width: 960px) { .tracks-head { grid-template-columns: minmax(0, 1fr); } }

.eras { margin-top: clamp(48px, 7vh, 88px); }
.eras-lead { margin: 0 0 20px; font-size: var(--fs-sm); color: var(--ink-2); }
.eras-lead strong { font-weight: 600; color: var(--ink); }
.era-bar { --t: clamp(11px, .7vw, 15px); position: relative; display: flex; height: clamp(14px, 1vw, 20px); }
.era { flex: 0 0 var(--w); height: 100%; transition: box-shadow .25s; }
.era.r { background: linear-gradient(90deg, #3a0f0a, var(--crimson)); border-radius: 999px 0 0 999px; }
.era.g { background: linear-gradient(90deg, var(--gold), var(--gold-hi)); box-shadow: 0 0 18px rgb(240 196 110 / .5); }
.era.s { background: linear-gradient(90deg, var(--ember), #4b2b27 50%, #231a22); border-radius: 0 999px 999px 0; }
.era.hot { box-shadow: 0 0 0 3px var(--gold-hi); }
.tick { position: absolute; top: 50%; left: clamp(var(--t) / 2 + 1px, var(--x), 100% - var(--t) / 2 - 1px); width: var(--t); height: var(--t); margin: calc(var(--t) / -2) 0 0 calc(var(--t) / -2); border-radius: 50%; background: var(--bg); border: 2px solid var(--ink); transition: transform .25s var(--ease), background-color .25s; }
.tick.hot { transform: scale(1.6); background: var(--ink); }
.era-years { position: relative; height: 1.2em; margin-top: 14px; font: 500 var(--fs-xs)/1 var(--sans); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.era-years span { position: absolute; top: 0; left: var(--x); white-space: nowrap; }
.era-years .end { transform: translateX(-100%); }
.era-key { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px clamp(24px, 3vw, 56px); margin: 24px 0 0; padding: 0; font-size: var(--fs-sm); line-height: 1.5; color: var(--ink-2); }
.era-key li { display: flex; gap: .6em; }
.era-key li::before { content: ""; flex: none; width: .6em; height: .6em; margin-top: .45em; border-radius: 50%; background: var(--c); }
.era-key b { font-weight: 600; color: var(--ink); }
@media (max-width: 900px) { .era-key { grid-template-columns: minmax(0, 1fr); } }

/* The wall: 1, 2, 3 or 4 paintings across. Track V spans two cells, so eleven tracks always fill whole rows. */
.grid { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(10px, .8vw, 18px); width: min(100% - 2 * var(--gut), var(--max)); margin: clamp(48px, 7vh, 88px) auto 0; padding: 0; }
@media (min-width: 600px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile.wide { grid-column: span 2; aspect-ratio: 2 / 1; }
}
@media (min-width: 1000px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tile.wide { aspect-ratio: auto; }
}
@media (min-width: 1400px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tile { position: relative; aspect-ratio: 1; border-radius: clamp(12px, 1vw, 20px); overflow: hidden; background: var(--bg-2); container-type: inline-size; transition: box-shadow .3s; }
.tile.playing { box-shadow: 0 0 0 3px var(--gold-hi); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.tile.wide img { object-position: 50% 60%; }
.tile:hover img, .tile:focus-within img { transform: scale(1.05); }
.tile-link { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(18px, 6cqi, 32px);
  background: linear-gradient(180deg, rgb(10 8 6 / .4) 0, rgb(10 8 6 / 0) 24%, rgb(10 8 6 / 0) 40%, rgb(10 8 6 / .9) 100%); }
.tile.wide .tile-link { padding: clamp(18px, 3.4cqi, 36px); background: linear-gradient(90deg, rgb(10 8 6 / .88) 0, rgb(10 8 6 / .35) 45%, rgb(10 8 6 / 0) 70%), linear-gradient(180deg, rgb(10 8 6 / .35) 0, rgb(10 8 6 / 0) 30%); }
.tile.wide .tile-link > * { max-width: 62%; }
.num { position: absolute; top: clamp(18px, 5.6cqi, 30px); left: clamp(18px, 6cqi, 32px); font: 600 clamp(18px, 6cqi, 30px)/1 var(--roman); letter-spacing: .06em; color: var(--gold-hi); text-shadow: 0 1px 12px rgb(0 0 0 / .6); }
.tile.wide .num { left: clamp(18px, 3.4cqi, 36px); top: clamp(18px, 3cqi, 32px); }
.meta { display: flex; justify-content: space-between; gap: 12px; font: 500 var(--fs-xs)/1.3 var(--sans); color: var(--ink-2); }
.dur { font-variant-numeric: tabular-nums; white-space: nowrap; }
.tile h3 { margin: 8px 0 0; font: 600 clamp(24px, 8.5cqi, 44px)/1.04 var(--serif); letter-spacing: -.005em; text-wrap: balance; }
.tile.wide h3 { font-size: clamp(28px, 4.6cqi, 54px); }
.hook { display: none; margin: 12px 0 0; font: italic 500 clamp(19px, 5.8cqi, 28px)/1.3 var(--serif); text-wrap: pretty; }
.tile.wide .hook { font-size: clamp(19px, 2.8cqi, 30px); }
@container (min-width: 300px) { .hook { display: block; } }
.tile.wide .meta { justify-content: flex-start; gap: 16px; }
@container (max-width: 439px) {
  .tile.wide .tile-link > * { max-width: none; }
  .tile.wide .tile-link { background: linear-gradient(180deg, rgb(10 8 6 / .4) 0, rgb(10 8 6 / 0) 30%, rgb(10 8 6 / .9) 100%); }
}

/* Listen */
.listen { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(104px, 15vh, 190px); }
.listen-glow { position: absolute; inset: -12%; z-index: -2; background: url("../img/listen-glow.jpg") center / cover; opacity: .5; }
.listen::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--bg) 0, rgb(13 10 8 / .3) 28%, rgb(13 10 8 / .3) 72%, var(--bg) 100%); }
.listen .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 128px); align-items: center; }
.cover { width: 100%; height: auto; aspect-ratio: 1; border-radius: clamp(10px, .8vw, 16px); box-shadow: 0 28px 56px -28px rgb(0 0 0 / .8), 0 0 0 1px rgb(243 236 224 / .08); }
.listen p { margin: 22px 0 0; max-width: 30em; color: var(--ink-2); }
.badges { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, .9vw, 18px); margin-top: clamp(32px, 3vw, 52px); }
.badge { display: flex; align-items: center; gap: 16px; min-height: clamp(76px, 1.6vw + 54px, 92px); padding: 12px clamp(18px, 1.4vw, 28px); border-radius: clamp(14px, 1vw, 20px); border: 1px solid var(--line); background: rgb(13 10 8 / .62); transition: border-color .2s, background-color .2s, transform .25s var(--ease); }
.badge:hover { border-color: rgb(243 236 224 / .4); background: rgb(13 10 8 / .8); transform: translateY(-2px); }
.badge .ico { width: clamp(30px, 1.9vw, 40px); height: clamp(30px, 1.9vw, 40px); color: var(--brand); }
.badge small { display: block; font: 500 var(--fs-xs)/1.2 var(--sans); color: var(--ink-2); }
.badge b { display: block; font: 600 clamp(19px, .4vw + 14px, 24px)/1.3 var(--sans); white-space: nowrap; }
.listen .btn { margin-top: 28px; }
@media (max-width: 1100px) {
  .listen .wrap { grid-template-columns: minmax(0, 1fr); }
  .cover { max-width: 520px; }
}
@media (max-width: 560px) { .badges { grid-template-columns: minmax(0, 1fr); } }

/* About the creator: text left, portrait right (the mirror of the listen section above it) */
.about { padding-block: clamp(40px, 5vh, 80px) clamp(96px, 14vh, 176px); }
.about .wrap { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 128px); align-items: center; }
.about-role { margin: 14px 0 0; font-size: var(--fs-lede); line-height: 1.4; color: var(--gold); }
.about-text p:not(.about-role) { margin: 24px 0 0; max-width: 34em; color: var(--ink-2); text-wrap: pretty; }
.about-text p.about-hi { color: var(--ink); }  /* the greeting */
/* The closing line, styled like the pull quotes in the song stories, with links to the album */
.about-text p.about-note { margin-top: 32px; font: italic 500 1.3em/1.3 var(--serif); color: var(--gold-hi); text-wrap: pretty; }
.about-note a { text-decoration-line: underline; text-decoration-thickness: 1px; text-decoration-color: rgb(246 223 166 / .45); text-underline-offset: .2em; transition: text-decoration-color .2s; }
.about-note a:hover { text-decoration-color: var(--gold-hi); }
.about .btn { margin-top: 36px; }
.about-photo { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: clamp(10px, .8vw, 16px); box-shadow: 0 28px 56px -28px rgb(0 0 0 / .8), 0 0 0 1px rgb(243 236 224 / .08); }
@media (max-width: 1100px) {
  .about .wrap { grid-template-columns: minmax(0, 1fr); }
  .about-photo { order: -1; max-width: 520px; }
}

/* Song story: a full-page view per song, opened from its painting.
   Wide screens: the painting fills the left half and stays put while the story scrolls.
   Phones and portrait tablets: painting on top, kept short enough on a sideways phone that the title shows. */
.story { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: var(--bg); color: var(--ink); overflow-y: auto; overscroll-behavior: contain; }
.story::backdrop { background: var(--bg); }
html.story-open { overflow: hidden; }
.story-song { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100%; }
.story-song[hidden] { display: none; }
.story-art { position: sticky; top: 0; height: 100vh; height: 100dvh; margin: 0; overflow: hidden; }
.story-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.story-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(13 10 8 / 0) 72%, var(--bg) 100%); }
.story-body { padding: clamp(96px, 14vh, 176px) clamp(28px, 5vw, 128px) clamp(72px, 12vh, 160px); }
.story-kicker { margin: 0; font: 600 var(--fs-sm)/1.2 var(--roman); letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }
.story-title { margin: 18px 0 0; font: 600 var(--fs-h2)/1.02 var(--serif); letter-spacing: -.012em; text-wrap: balance; }
.story-sub { margin: 12px 0 0; font-size: var(--fs-lede); color: var(--ink-2); }
.story-meta { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 24px 0 0; font-size: var(--fs-sm); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.story-era { display: inline-flex; align-items: center; gap: .55em; color: var(--ink); }
.story-era::before { content: ""; width: .6em; height: .6em; border-radius: 50%; background: var(--c); }
.story-player { display: flex; align-items: center; gap: clamp(16px, 1.4vw, 24px); max-width: 40em; margin-top: clamp(32px, 4.5vh, 52px); padding: clamp(14px, 1.1vw, 22px);
  border: 1px solid var(--line); border-radius: clamp(18px, 1.4vw, 28px); background: rgb(243 236 224 / .04); }
.st-play { flex: none; width: clamp(64px, 1.6vw + 46px, 80px); height: clamp(64px, 1.6vw + 46px, 80px); border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: var(--bg); transition: background-color .2s, transform .25s var(--ease); }
.st-play:hover { background: #fff; transform: scale(1.04); }
.st-play[data-state="playing"] { background: var(--gold-hi); }
.st-play .ico { width: 28px; height: 28px; }
.st-main { flex: 1; min-width: 0; }
.st-label { margin: 0 0 4px; font: 600 var(--fs-sm)/1.3 var(--sans); }
.st-bar { display: flex; align-items: center; gap: 14px; font: 500 var(--fs-xs)/1 var(--sans); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.st-bar span { flex: none; width: 3em; }
.st-bar span:last-child { text-align: right; }
.st-seek:disabled { cursor: default; }
/* "Hear the full song on" Spotify and Apple Music: round pills with the services' own icon colours, as on the Listen badges */
.story-listen { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: clamp(22px, 2.8vh, 32px); }
.story-listen-label { flex-basis: 100%; margin: 0; font-size: var(--fs-sm); line-height: 1.3; color: var(--ink-2); }
.pill { display: inline-flex; align-items: center; gap: .6em; min-height: clamp(52px, .8vw + 41px, 60px); padding: 0 1.35em 0 1.1em; border-radius: 999px; border: 1px solid var(--line);
  background: rgb(243 236 224 / .05); font: 600 var(--fs-sm)/1 var(--sans); color: var(--ink); white-space: nowrap; transition: border-color .2s, background-color .2s, transform .25s var(--ease); }
.pill:hover { border-color: rgb(243 236 224 / .45); background: rgb(243 236 224 / .1); transform: translateY(-1px); }
.pill .ico { width: 1.45em; height: 1.45em; color: var(--brand); }
.story-text { max-width: 32em; margin-top: clamp(48px, 7vh, 88px); font-size: var(--fs-lede); line-height: 1.6; color: var(--ink-2); }
.story-text p { margin: 0 0 1em; text-wrap: pretty; }
.story-text > p:first-child { color: var(--ink); }
.story-text > p:first-child:not(.no-cap)::first-letter { float: left; margin: .07em .05em 0 0; font: 600 3.3em/.8 var(--roman); color: var(--gold); }
.story-text blockquote { margin: 1.4em 0; padding-left: .9em; border-left: 2px solid var(--gold); font: italic 500 1.3em/1.3 var(--serif); color: var(--gold-hi); }
.story-text blockquote p { margin: 0; }
.story-fact { max-width: calc(var(--fs-lede) * 32); margin-top: clamp(28px, 4vh, 48px); padding: clamp(20px, 1.6vw, 30px) clamp(22px, 1.8vw, 34px); border: 1px solid var(--line);
  border-radius: clamp(16px, 1.2vw, 24px); background: rgb(243 236 224 / .04); font-size: var(--fs-body); line-height: 1.6; color: var(--ink-2); }
.story-fact p { margin: 0; text-wrap: pretty; }
.story-fact .story-fact-label { margin: 0 0 .7em; font: 600 var(--fs-sm)/1.2 var(--roman); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.story-close { position: fixed; z-index: 2; top: clamp(14px, 1.6vw, 28px); right: clamp(14px, 1.6vw, 28px); width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgb(243 236 224 / .3); background: rgb(13 10 8 / .55); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: var(--ink); transition: border-color .2s, background-color .2s; }
.story-close:hover { border-color: rgb(243 236 224 / .7); background: rgb(13 10 8 / .8); }
.story-close .ico { width: 24px; height: 24px; }
.motion .story[open] { animation: story-fade .35s ease both; }
.motion .story[open] .story-body { animation: story-rise .7s var(--ease) both; }
@keyframes story-fade { from { opacity: 0; } }
@keyframes story-rise { from { opacity: 0; transform: translateY(28px); } }
@media (max-width: 900px), (max-aspect-ratio: 4/5) {
  .story-song { grid-template-columns: minmax(0, 1fr); }
  .story-art { position: relative; width: 100%; height: auto; aspect-ratio: 1; max-height: 80vh; max-height: 80svh; } /* a set width keeps the height cap from narrowing it */
  .story-art::after { background: linear-gradient(180deg, rgb(13 10 8 / 0) 62%, var(--bg) 100%); }
  .story-body { padding: 4px var(--gut) clamp(72px, 12vh, 140px); }
}

/* Footer */
.foot { position: relative; isolation: isolate; overflow: clip; border-top: 1px solid var(--line); padding-block: clamp(56px, 6vw, 104px) calc(160px + env(safe-area-inset-bottom)); }
/* The album's compass rose again, just as faint, on the right. It is as tall as the footer, less a margin,
   and on phones the footer cuts off the part that runs past the screen edge. */
.foot::before { content: ""; position: absolute; z-index: -1; left: calc(50% + 30vw); top: 50%; height: calc(100% - 48px); aspect-ratio: 1; translate: -50% -50%; pointer-events: none;
  background: url("../img/compass.svg") center / contain no-repeat; opacity: .1; }
.foot .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px 64px; align-items: end; }
.foot .motto { margin: 0; font: 600 clamp(36px, 4.4vw, 88px)/1 var(--roman); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.foot p { margin: 14px 0 0; font-size: var(--fs-sm); color: var(--ink-2); }
.foot nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0 clamp(20px, 2vw, 36px); font-size: var(--fs-sm); }
.foot nav a { display: flex; align-items: center; min-height: 48px; color: var(--ink-2); transition: color .2s; }
.foot nav a:hover { color: var(--ink); }
/* A quarter of the way from --ink-3 to --ink-2, so the line keeps 4.5:1 where it crosses the compass on phones */
.foot .legal { grid-column: 1 / -1; margin: 0; font-size: var(--fs-xs); color: #938674; }
@media (max-width: 900px) {
  .foot .wrap { grid-template-columns: minmax(0, 1fr); }
  .foot nav { justify-content: flex-start; }
}

/* Preview player */
.player { position: fixed; z-index: 60; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); width: min(1120px, calc(100% - 24px)); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(14px, 1.2vw, 22px); padding: clamp(10px, .8vw, 14px); border-radius: clamp(18px, 1.4vw, 26px); border: 1px solid var(--line);
  background: rgb(23 18 14 / .86); -webkit-backdrop-filter: saturate(160%) blur(22px); backdrop-filter: saturate(160%) blur(22px); box-shadow: 0 20px 48px -16px rgb(0 0 0 / .7);
  transform: translate(-50%, calc(100% + 40px)); opacity: 0; visibility: hidden; transition: transform .45s var(--ease), opacity .3s, visibility 0s linear .45s; }
.player.on { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition: transform .45s var(--ease), opacity .3s; }
.p-cover { width: clamp(60px, 2.2vw + 30px, 78px); height: clamp(60px, 2.2vw + 30px, 78px); border-radius: 10px; object-fit: cover; background: var(--bg-2); }
.p-main { display: grid; gap: 6px; }
.p-text { display: flex; align-items: baseline; gap: 14px; overflow: hidden; }
.p-title { font: 600 clamp(18px, .35vw + 13px, 22px)/1.3 var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-sub { font-size: var(--fs-xs); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-bar { display: flex; align-items: center; gap: 14px; font: 500 var(--fs-xs)/1 var(--sans); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.p-bar span { flex: none; width: 3em; }
.p-bar span:last-child { text-align: right; }
.p-seek { --p: 0%; flex: 1; height: 28px; margin: 0; background: transparent; cursor: pointer; -webkit-appearance: none; appearance: none; }
.p-seek::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--gold-hi) var(--p), rgb(243 236 224 / .18) var(--p)); }
.p-seek::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -6px; border: 0; border-radius: 50%; background: var(--ink); }
.p-seek::-moz-range-track { height: 6px; border-radius: 6px; background: rgb(243 236 224 / .18); }
.p-seek::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--gold-hi); }
.p-seek::-moz-range-thumb { width: 18px; height: 18px; border: 0; border-radius: 50%; background: var(--ink); }
.p-ctrl { display: flex; align-items: center; gap: 4px; }
.p-btn { width: clamp(48px, 1vw + 36px, 58px); height: clamp(48px, 1vw + 36px, 58px); border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); transition: background-color .2s, color .2s; }
.p-btn:hover { background: rgb(243 236 224 / .1); color: var(--ink); }
.p-btn .ico { width: 24px; height: 24px; }
.p-toggle { width: clamp(56px, 1.2vw + 42px, 68px); height: clamp(56px, 1.2vw + 42px, 68px); background: var(--ink); color: var(--bg); }
.p-toggle:hover { background: #fff; color: var(--bg); }
.p-toggle .ico { width: 26px; height: 26px; }
.p-close .ico { width: 22px; height: 22px; }
/* Phones: two rows, so the title and the controls both stay big */
@media (max-width: 700px) {
  .player { grid-template-columns: 52px minmax(0, 1fr) 48px; grid-template-areas: "cover text close" "toggle bar next"; gap: 10px 14px; padding: 12px; }
  .p-main, .p-ctrl { display: contents; }
  .p-cover { grid-area: cover; width: 52px; height: 52px; }
  .p-text { grid-area: text; display: grid; gap: 2px; }
  .p-bar { grid-area: bar; }
  .p-time, .p-prev { display: none; }
  .p-toggle { grid-area: toggle; width: 52px; height: 52px; }
  .p-next { grid-area: next; }
  .p-close { grid-area: close; }
}
