/* Captain Brine: an old sea chart. Ink on parchment, brass, and a dark oak player. */
@property --tint { syntax: '<color>'; inherits: true; initial-value: #000000; }

:root {
  --paper: #c9a877;
  --ink: #2a1a0c;
  --ink-dim: #4a3320;
  --ink-faint: #6d5235;
  --accent: #7a2614;        /* oxblood */
  --accent-hi: #9c3318;
  --rule: rgba(52, 32, 14, .42);
  --rule-soft: rgba(52, 32, 14, .2);
  --brass-1: #f3d488; --brass-2: #c9973f; --brass-3: #7a5019;
  --gold: #d6a84f; --gold-hi: #f2cf7e;
  --energy: 0; --bass: 0; --flash: 0;
  --tint: #000000; --tint-a: 0;
  --black: "UnifrakturCook", "Old English Text MT", serif;
  --serif: "IM Fell English", Georgia, "Times New Roman", serif;
  --sc: "IM Fell English SC", Georgia, serif;
  --pad: clamp(16px, 4vw, 56px);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: #3a2814; }
body {
  margin: 0; min-height: 100vh; background: transparent; color: var(--ink);
  font: 19px/1.62 var(--serif); padding-bottom: 130px; overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-hi); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--paper); padding: 8px 14px; }
.skip:focus { left: 8px; }
.sc { font: 400 22px var(--sc); letter-spacing: .08em; color: var(--accent); margin: 0 0 .5em; }

/* ======================================================
   THE CHART: parchment background
   ====================================================== */
.stage { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: #3a2814; pointer-events: none; }
.parchment {
  position: absolute; inset: 0;
  background: url(/img/parchment-desktop.webp) center / cover no-repeat;
}
/* "mobile mode" = portrait screen OR 900px wide or less.
   The portrait parchment and the single-column layout both use this exact same rule. */
@media (max-aspect-ratio: 1/1), (max-width: 900px) {
  .parchment { background-image: url(/img/parchment-mobile.webp); }
  /* lighten the chart behind the words so the compass, ship and burnt edges don't fight the text */
  .parchment::after {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(ellipse 110% 80% at 50% 50%, rgba(232, 210, 168, .72), rgba(222, 196, 150, .5) 70%, rgba(205, 175, 128, .35));
  }
}
.tint {
  position: absolute; inset: 0; opacity: var(--tint-a); mix-blend-mode: multiply;
  background: radial-gradient(ellipse 80% 70% at 50% 45%, var(--tint), transparent 85%);
  transition: --tint 2.2s ease, opacity 2.2s ease;
}
#scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.grain {
  position: absolute; inset: -50%; opacity: .12; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .2 0 0 0 0 .12 0 0 0 0 .05 0 0 0 1.4 -.35'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.1s steps(5) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}
/* the chart warms with the music, and flashes with lightning */
.stage::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: soft-light;
  background: radial-gradient(ellipse at 50% 45%, rgba(255, 235, 180, .9), transparent 70%);
  opacity: calc(var(--energy) * .8);
}
.flash {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; mix-blend-mode: soft-light;
  background: radial-gradient(ellipse at 50% 20%, #fff, rgba(255, 255, 255, .4) 60%, transparent);
  opacity: calc(var(--flash) * .9);
}

/* a stain in the paper, coloured per song */
html[data-scene="crew"]     { --tint: #b3742c; --tint-a: .18; }
html[data-scene="lostbell"] { --tint: #4f8a2c; --tint-a: .2; }
html[data-scene="salt"]     { --tint: #2b6fb0; --tint-a: .22; }
html[data-scene="strange"]  { --tint: #7a3fc4; --tint-a: .24; }
html[data-scene="strange"] .tint { animation: trip 12s ease-in-out infinite; }
@keyframes trip { 0%, 100% { --tint: #7a3fc4; } 33% { --tint: #2f9a5c; } 66% { --tint: #b83f8c; } }
html[data-scene="stew"]     { --tint: #d07a1c; --tint-a: .26; }
html[data-scene="deep"]     { --tint: #186e68; --tint-a: .28; }
html[data-scene="fog"]      { --tint: #8a8a92; --tint-a: .3; }
html[data-scene="drowned"]  { --tint: #4d6f9c; --tint-a: .28; }
html[data-scene="coat"]     { --tint: #5a5248; --tint-a: .3; }
html[data-scene="oldgirl"]  { --tint: #1f5a9a; --tint-a: .3; }
html[data-scene="shadows"]  { --tint: #b8380f; --tint-a: .34; }
html[data-scene="quay"]     { --tint: #c08a3a; --tint-a: .2; }
html[data-scene="wellerman"]{ --tint: #4e5c6c; --tint-a: .2; }

/* ======================================================
   HEADER / FOOTER
   ====================================================== */
/* a printed masthead: sits on the chart, scrolls away with the page */
.site-header {
  position: relative; z-index: 20; display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; max-width: 1220px; margin: 0 auto; padding: 26px var(--pad) 16px;
}
.site-header::after { /* engraved double rule with diamond caps */
  content: ""; position: absolute; left: var(--pad); right: var(--pad); bottom: 0; height: 6px;
  border-top: 1px solid var(--ink-dim); border-bottom: 2.5px solid var(--ink-dim); opacity: .7;
}
.site-header::before {
  content: ""; position: absolute; left: var(--pad); right: var(--pad); bottom: -1px; height: 8px; opacity: .7;
  background:
    linear-gradient(45deg, transparent 50%, var(--ink-dim) 50%) left / 8px 8px no-repeat,
    linear-gradient(-45deg, transparent 50%, var(--ink-dim) 50%) right / 8px 8px no-repeat;
}
.logo { font: 700 38px/1 var(--black); color: var(--ink); text-decoration: none; }
.logo:hover { color: var(--accent); }
.site-header nav { display: flex; align-items: center; gap: clamp(10px, 2.4vw, 28px); padding-bottom: 4px; }
.site-header nav a {
  font: 19px var(--sc); color: var(--ink); text-decoration: none; letter-spacing: .08em; position: relative;
}
.site-header nav a + a::before { /* small star between links */
  content: "\2726"; position: absolute; left: calc(clamp(10px, 2.4vw, 28px) / -2 - 4px); top: 50%; transform: translateY(-50%);
  font-size: 9px; color: var(--accent); opacity: .8;
}
.site-header nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: var(--accent);
  transform: scaleX(0); transition: transform .25s;
}
.site-header nav a:hover { color: var(--accent); }
.site-header nav a:hover::after { transform: scaleX(1); }
.site-footer { padding: 40px var(--pad) 30px; text-align: center; color: var(--ink-faint); font-size: 16px; }
.footer-name { font: 700 40px/1 var(--black); color: var(--ink); margin: 22px 0 6px; }

main { display: block; padding: 0 var(--pad); max-width: 1220px; margin: 0 auto; outline: none; transition: opacity .3s, filter .3s; }
body.leaving main { opacity: .2; filter: blur(2px); }

/* ======================================================
   TYPE: printer's ink
   ====================================================== */
h1, h2, h3 { font-weight: 400; line-height: 1.08; margin: 0 0 .4em; text-wrap: balance; }
.eyebrow, .lede, .section-lede, .crumbs { text-wrap: balance; }
.blackletter { font-family: var(--black); font-weight: 700; color: var(--ink); text-shadow: 0 1px 0 rgba(255, 238, 205, .35), 0 0 1px rgba(42, 26, 12, .5); }
.title-xl { font-size: clamp(68px, 10.5vw, 150px); line-height: .92; }
.title-l { font-size: clamp(44px, 6.4vw, 86px); line-height: .98; }
.hero-sub { font: 700 clamp(26px, 3.2vw, 42px)/1 var(--black); color: var(--accent); margin: 6px 0 22px; }
.eyebrow { font: 17px var(--sc); letter-spacing: .14em; color: var(--accent); margin: 0 0 12px; }
.eyebrow a { color: inherit; }
.lede { font-size: clamp(20px, 2vw, 24px); color: var(--ink); max-width: 36em; font-style: italic; }
.by { color: var(--ink-dim); margin: 0 0 .9em; font-style: italic; }
.section { padding: 8px 0 0; }
.section-title { font: 700 clamp(38px, 5.2vw, 64px)/1 var(--black); color: var(--ink); }
.section > .section-title, .section-lede { text-align: center; margin-inline: auto; }
.section-lede { color: var(--ink-dim); max-width: 38em; font-style: italic; margin-bottom: 34px; }

/* ornaments cut from the sleeve, printed in ink */
.divider {
  display: flex; align-items: center; gap: 14px; color: var(--ink-dim);
  margin: clamp(56px, 8vw, 100px) auto clamp(24px, 4vw, 40px); max-width: 980px; padding: 0 4px;
}
.divider .wheel { width: 58px; height: 58px; flex: none; opacity: .85; animation: helm 40s linear infinite; }
.divider .rule {
  flex: 1; height: 7px; position: relative; opacity: .75;
  border-top: 1px solid currentColor; border-bottom: 2.5px solid currentColor;
}
.divider .rule::after { /* diamond end-caps, like an engraved chart border */
  content: ""; position: absolute; top: 50%; width: 9px; height: 9px; background: currentColor; transform: translateY(-50%) rotate(45deg);
}
.divider .rule:first-child::after { left: -4px; }
.divider .rule:last-child::after { right: -4px; }
@keyframes helm { to { transform: rotate(360deg); } }
.site-footer .divider { margin-top: 10px; }
.about-emblem { filter: brightness(.28) sepia(.8) saturate(1.4); opacity: .85; }

/* ======================================================
   PANELS: inked frames on the chart
   ====================================================== */
.plate {
  position: relative; border: 1px solid var(--rule); border-radius: 1px;
  background: linear-gradient(170deg, rgba(240, 222, 186, .38), rgba(150, 110, 60, .14));
  box-shadow: inset 0 0 0 5px rgba(201, 168, 119, .25), inset 0 0 0 6px var(--rule-soft), inset 0 0 50px rgba(110, 75, 30, .18), 0 10px 30px rgba(50, 28, 8, .18);
}
.plate::before, .plate::after { content: "\2726"; position: absolute; top: 9px; color: var(--accent); font-size: 13px; line-height: 1; opacity: .75; }
.plate::before { left: 12px; } .plate::after { right: 12px; }

/* ======================================================
   BUTTONS: brass plates and medallions
   ====================================================== */
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin: 26px 0 8px; }
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 26px 0 10px;
  font: 20px/1 var(--sc); letter-spacing: .06em; text-decoration: none; cursor: pointer; border-radius: 2px;
  transition: transform .15s, box-shadow .25s, filter .25s;
}
.btn.brass {
  color: #2a190a; border: 1px solid #3b250c;
  background: linear-gradient(180deg, var(--brass-1) 0%, var(--brass-2) 48%, #a8752c 52%, var(--brass-3) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 246, 214, .75), inset 0 -2px 0 rgba(50, 28, 6, .45),
    0 0 0 3px rgba(42, 26, 12, .85), 0 0 0 4px rgba(214, 168, 79, .6), 0 8px 18px rgba(40, 20, 0, .35);
  text-shadow: 0 1px 0 rgba(255, 238, 190, .6);
}
.btn.brass:hover { filter: brightness(1.07); color: #1a0f04; }
.btn.brass .ico {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 40% 35%, #3b2610, #170e05); color: var(--brass-1);
  box-shadow: inset 0 0 0 1px rgba(255, 220, 150, .35), 0 1px 0 rgba(255, 240, 200, .5);
}
.btn.brass .ico svg { width: 15px; height: 15px; fill: currentColor; }
.btn.ghost {
  color: var(--ink); padding: 0 24px; background: rgba(240, 222, 186, .25);
  border: 1px solid rgba(42, 26, 12, .6);
  box-shadow: inset 0 0 0 3px rgba(201, 168, 119, .4), inset 0 0 0 4px rgba(42, 26, 12, .25);
}
.btn.ghost:hover { background: rgba(240, 222, 186, .45); color: var(--accent); }
.btn:active, .medallion:active { transform: translateY(1px); }
.btn.playing.brass { box-shadow: inset 0 1px 0 rgba(255, 246, 214, .75), inset 0 -2px 0 rgba(50, 28, 6, .45), 0 0 0 3px rgba(42, 26, 12, .85), 0 0 0 4px rgba(242, 207, 126, .9), 0 0 calc(14px + var(--energy) * 40px) rgba(200, 140, 40, .55); }

.medallion {
  position: relative; flex: none; width: 58px; height: 58px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  display: grid; place-items: center; color: #2a1906;
  background: radial-gradient(circle at 36% 28%, #fff4cc 0%, #eac778 20%, #c18b37 52%, #7a4c15 88%, #4b2c0a 100%);
  box-shadow: inset 0 0 0 2px rgba(70, 40, 8, .65), inset 0 0 0 5px rgba(255, 228, 160, .28), inset 0 0 0 6px rgba(70, 40, 8, .35),
    inset 0 -5px 10px rgba(40, 20, 0, .45), 0 2px 0 rgba(40, 20, 0, .4), 0 6px 14px rgba(40, 20, 0, .45);
  transition: transform .15s, filter .2s, box-shadow .25s;
}
.medallion::after {
  content: ""; position: absolute; inset: 4px; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(70, 40, 8, .35) 0 4deg, transparent 4deg 10deg);
  -webkit-mask: radial-gradient(circle, transparent 66%, #000 67%, #000 76%, transparent 77%);
          mask: radial-gradient(circle, transparent 66%, #000 67%, #000 76%, transparent 77%);
}
.medallion:hover { filter: brightness(1.1); }
.medallion svg { width: 22px; height: 22px; fill: currentColor; filter: drop-shadow(0 1px 0 rgba(255, 240, 200, .6)); position: relative; z-index: 1; }
.medallion.small { width: 44px; height: 44px; }
.medallion.small svg { width: 17px; height: 17px; }
.medallion.playing { box-shadow: inset 0 0 0 2px rgba(70, 40, 8, .65), inset 0 0 0 5px rgba(255, 228, 160, .28), inset 0 -5px 10px rgba(40, 20, 0, .45), 0 0 0 2px rgba(122, 38, 20, .7), 0 0 calc(10px + var(--energy) * 36px) rgba(200, 140, 40, .6); }
/* exactly one icon at a time */
.i-pause { display: none; }
.playing > .i-play, .playing .ico .i-play, .player.playing .p-play .i-play { display: none; }
.playing > .i-pause, .playing .ico .i-pause, .player.playing .p-play .i-pause { display: block; }

/* ======================================================
   RECORD: sleeve with the vinyl sliding out
   ====================================================== */
.record { position: relative; width: 100%; aspect-ratio: 1; }
.sleeve {
  position: relative; z-index: 2; display: block; border-radius: 2px;
  box-shadow: 0 2px 0 rgba(255, 240, 200, .25), 0 24px 44px -12px rgba(40, 20, 5, .7), 0 0 0 1px rgba(42, 26, 12, .6);
  transition: transform .4s cubic-bezier(.2, .7, .2, 1);
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}
.sleeve img { width: 100%; border-radius: 2px; }
.sleeve::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: 2px;
  background: radial-gradient(circle at var(--gx, 30%) var(--gy, 0%), rgba(255, 238, 200, .18), transparent 55%);
  mix-blend-mode: screen;
}
.vinyl {
  position: absolute; z-index: 1; top: 3%; left: 3%; width: 94%; aspect-ratio: 1;
  transform: translateX(var(--peek, 0%)); transition: transform 1s cubic-bezier(.2, .8, .2, 1);
}
.disc {
  position: absolute; inset: 0; border-radius: 50%;
  background:
    conic-gradient(from 20deg, rgba(255, 255, 255, 0) 0deg, rgba(255, 255, 255, .12) 25deg, rgba(255, 255, 255, 0) 60deg, rgba(255, 255, 255, 0) 180deg, rgba(255, 255, 255, .1) 205deg, rgba(255, 255, 255, 0) 240deg),
    repeating-radial-gradient(circle, #121110 0 1.4px, #22201c 1.4px 2.6px), #161513;
  box-shadow: 0 10px 24px rgba(40, 20, 5, .55), inset 0 0 0 2px #050505;
}
.vinyl-label {
  position: absolute; inset: 32%; border-radius: 50%; background-size: cover; background-position: center;
  box-shadow: 0 0 0 3px #0a0a0a, 0 0 0 4px rgba(214, 168, 79, .4);
}
.vinyl-label::after { content: ""; position: absolute; inset: 46%; border-radius: 50%; background: #050505; }
.record:hover .vinyl, .record.spinning .vinyl { --peek: 34%; }
.hero-record .vinyl { --peek: 22%; }
.hero-record .record:hover .vinyl, .hero-record .record.spinning .vinyl { --peek: 36%; }
.record.spinning .disc { animation: spin 2.4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ======================================================
   HERO
   ====================================================== */
.hero {
  position: relative; min-height: calc(100svh - 70px); display: grid; grid-template-columns: 1.05fr .95fr;
  align-items: center; gap: clamp(24px, 5vw, 70px); padding: 30px 0 70px;
}
.hero-record { width: 100%; max-width: 470px; margin-right: 18%; justify-self: center; }
.hero.lost { grid-template-columns: 1fr; text-align: center; }
.hero.lost .cta, .hero.lost .lede { justify-content: center; margin-inline: auto; }
.dive-hint {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px;
  font: 15px var(--sc); letter-spacing: .3em; color: var(--ink-dim); text-decoration: none;
}
.dive-hint::after { content: ""; width: 1px; height: 46px; background: linear-gradient(var(--accent), transparent); animation: sink 2.4s ease-in-out infinite; transform-origin: top; }
@keyframes sink { 0% { transform: scaleY(0); opacity: 1; } 70% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* ======================================================
   MUSIC GRID
   ====================================================== */
.release-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 34px; }
.release-card { display: grid; grid-template-columns: 1fr; gap: 22px; padding: 30px 30px 26px; }
.release-card .record { max-width: 300px; margin-right: 30%; }
.release-card h3 { font: 700 clamp(30px, 3vw, 40px)/1.02 var(--black); margin-bottom: 10px; }
.release-card h3 a { color: var(--ink); text-decoration: none; }
.release-card h3 a:hover { color: var(--accent); }
.release-card p { color: var(--ink-dim); font-size: 18px; }
.release-card .cta { margin-top: 18px; }

/* ======================================================
   THE VOYAGE: a ship's log
   ====================================================== */
.log { list-style: none; padding: 0; margin: 0 auto; max-width: 900px; }
.log-entry { display: grid; grid-template-columns: 84px 1fr auto; gap: 22px; align-items: center; padding: 20px 6px; border-bottom: 1px solid var(--rule-soft); position: relative; }
.log-entry:first-child { border-top: 1px solid var(--rule-soft); }
.log-entry::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(122, 38, 20, .08), transparent); opacity: 0; transition: opacity .3s; }
.log-entry:hover::before { opacity: 1; }
.log-num { font: 30px/1 var(--sc); color: var(--accent); text-align: center; letter-spacing: .04em; }
.log-body h3 { font: 700 clamp(26px, 2.6vw, 34px)/1.05 var(--black); margin: 0 0 6px; }
.log-body h3 a { color: var(--ink); text-decoration: none; }
.log-body h3 a:hover { color: var(--accent); }
.log-body p { margin: 0; color: var(--ink-dim); font-style: italic; }

/* ======================================================
   ABOUT
   ====================================================== */
.about-plate { max-width: 820px; margin: 0 auto; padding: clamp(28px, 5vw, 60px); text-align: center; }
.about-emblem { width: 140px; margin: 0 auto 6px; }
.about-plate p { font-size: 21px; text-align: left; }
.soon { color: var(--accent); font-style: italic; text-align: center !important; }
.store-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.about-plate .store-links, .store-links.small { justify-content: center; }
.store-links a { padding: 9px 16px; border: 1px solid var(--rule); text-decoration: none; font: 17px var(--sc); color: var(--ink); background: rgba(240, 222, 186, .3); }
.store-links a:hover { color: var(--accent); border-color: var(--accent); }

/* ======================================================
   RELEASE + SONG PAGES
   ====================================================== */
.crumbs { font: 16px var(--sc); color: var(--ink-faint); padding: 18px 0 22px; letter-spacing: .05em; }
.crumbs a { color: var(--ink-dim); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs .sep { margin: 0 10px; color: var(--accent); font-size: 11px; vertical-align: 2px; }
.release-head, .song-head { display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: clamp(30px, 7vw, 110px); align-items: center; }
/* full-size sleeve; the gap is wide enough for the vinyl to slide out without touching the text */
.release-head, .song-head { column-gap: clamp(120px, 11vw, 170px); }
.release-head .record.spinning .vinyl, .song-head .record.spinning .vinyl,
.release-head .record:hover .vinyl, .song-head .record:hover .vinyl { --peek: 26%; }
.song-head { grid-template-columns: minmax(0, 320px) 1fr; }
.head-text { min-width: 0; }

.list-plate { padding: clamp(22px, 4vw, 44px); }
.list-plate .section-title { text-align: center; }
.tracklist { list-style: none; padding: 0; margin: 10px 0 0; }
.track { display: grid; grid-template-columns: 44px 38px 1fr auto; align-items: center; gap: 16px; padding: 10px 8px; border-bottom: 1px solid var(--rule-soft); transition: background .25s; }
.track:last-child { border-bottom: 0; }
.track:hover, .track.current { background: linear-gradient(90deg, rgba(122, 38, 20, .1), transparent 80%); }
.t-num { font: 22px var(--sc); color: var(--ink-faint); text-align: center; position: relative; height: 24px; }
.t-num .eq { display: none; position: absolute; inset: 2px 8px; align-items: end; justify-content: center; gap: 3px; }
.t-num .eq i { width: 4px; background: var(--accent); border-radius: 1px; animation: eq .9s ease-in-out infinite; }
.t-num .eq i:nth-child(2) { animation-delay: -.3s; } .t-num .eq i:nth-child(3) { animation-delay: -.6s; }
@keyframes eq { 0%, 100% { height: 20%; } 50% { height: 100%; } }
.track.current.playing .n { display: none; }
.track.current.playing .eq { display: flex; }
.t-title { font-size: 22px; color: var(--ink); text-decoration: none; }
.t-title:hover, .track.current .t-title { color: var(--accent); }
.t-time { color: var(--ink-faint); font-variant-numeric: tabular-nums; font-size: 17px; }
.credits { max-width: 520px; margin: 50px auto 0; text-align: center; }
.credits dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 26px; color: var(--ink-dim); font-size: 17px; text-align: left; }
.credits dt { font-family: var(--sc); color: var(--accent); }
.credits dd { margin: 0; }

.lyrics { max-width: 760px; margin: 0 auto; padding: clamp(28px, 6vw, 70px) clamp(22px, 7vw, 90px); }
.lyrics .section-title { text-align: center; margin-bottom: 30px; }
.stanza { margin: 0 0 32px; }
.stanza h3 { font: 15px var(--sc); letter-spacing: .2em; color: var(--accent); margin: 0 0 8px; text-transform: lowercase; }
.stanza h3::before { content: "\2014 "; opacity: .6; }
.stanza p { margin: 0; font-size: clamp(19px, 2vw, 23px); line-height: 1.7; }
.stanza .ln { display: block; padding-left: 1.1em; text-indent: -1.1em; } /* wrapped part of a long line is indented */
.stanza.chorus p { padding-left: 22px; border-left: 2px solid rgba(122, 38, 20, .45); font-style: italic; }
.song-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 50px auto 0; max-width: 760px; }
.song-nav a {
  padding: 18px 22px; text-decoration: none; color: var(--ink); font: 700 24px/1.1 var(--black);
  background: rgba(240, 222, 186, .3); border: 1px solid var(--rule);
  box-shadow: inset 0 0 0 4px rgba(201, 168, 119, .3), inset 0 0 0 5px var(--rule-soft);
}
.song-nav a span { display: block; font: 14px var(--sc); letter-spacing: .18em; color: var(--accent); margin-bottom: 6px; }
.song-nav .next { text-align: right; grid-column: 2; }
.song-nav a:hover { color: var(--accent); border-color: var(--accent); }

.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s ease, transform 1s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ======================================================
   PLAYER: dark oak and brass, its own light-on-dark palette
   ====================================================== */
.player {
  --ink: #ecdfc0; --ink-dim: #c2b391; --ink-faint: #9a8a6a;
  position: fixed; left: 50%; bottom: 14px; z-index: 30; width: min(1180px, calc(100% - 24px));
  transform: translateX(-50%); color: var(--ink);
  display: grid; grid-template-columns: 64px minmax(130px, 1fr) auto minmax(220px, 2.1fr) auto; align-items: center; gap: 20px;
  padding: 12px 20px 12px 12px; border-radius: 3px;
  background: linear-gradient(180deg, rgba(36, 26, 16, .97), rgba(16, 11, 7, .98));
  border: 1px solid rgba(214, 168, 79, .55);
  box-shadow: inset 0 0 0 4px rgba(12, 8, 5, .95), inset 0 0 0 5px rgba(236, 223, 192, .13), inset 0 1px 0 rgba(255, 230, 170, .12),
    0 16px 40px rgba(30, 15, 3, .55), 0 0 calc(var(--energy) * 50px) rgba(242, 207, 126, .25);
  transition: transform .55s cubic-bezier(.2, .8, .2, 1), opacity .35s;
}
.player.is-idle { transform: translate(-50%, 150%); opacity: 0; pointer-events: none; }
.p-sleeve { width: 64px; height: 64px; padding: 3px; background: #d9c69c; box-shadow: 0 3px 8px rgba(0, 0, 0, .8); transform: rotate(-2deg); }
.p-cover { width: 100%; height: 100%; object-fit: cover; background: #000; }
.p-meta { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.p-title { font: 700 22px/1.1 var(--black); color: var(--ink); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-title:hover { color: var(--gold-hi); }
.p-release { font: 14px var(--sc); letter-spacing: .08em; color: var(--ink-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-controls { display: flex; align-items: center; gap: 10px; }
.p-btn { width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; padding: 0; background: transparent; color: var(--ink-dim); cursor: pointer; transition: color .2s, background .2s; }
.p-btn:hover { color: var(--gold-hi); background: rgba(214, 168, 79, .12); }
.p-btn svg { width: 20px; height: 20px; fill: currentColor; }
.p-play { width: 58px; height: 58px; }
.p-wave { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; min-width: 0; }
.p-time { font: 15px var(--sc); color: var(--ink-faint); font-variant-numeric: tabular-nums; min-width: 34px; text-align: center; }
.wave { position: relative; height: 46px; cursor: pointer; touch-action: none; }
.wave canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.wave-tip {
  position: absolute; bottom: calc(100% + 6px); left: 0; transform: translateX(-50%); pointer-events: none;
  font: 14px var(--sc); color: #1a0f04; background: var(--gold-hi); padding: 2px 7px; border-radius: 2px;
  opacity: 0; transition: opacity .15s; box-shadow: 0 4px 10px rgba(0, 0, 0, .6);
}
.wave:hover .wave-tip, .wave.dragging .wave-tip { opacity: 1; }
.p-volume { display: flex; align-items: center; gap: 4px; }
.p-volume .x { display: none; }
.p-volume.muted .w1, .p-volume.muted .w2 { display: none; }
.p-volume.muted .x { display: block; }
.p-vol { -webkit-appearance: none; appearance: none; width: 0; opacity: 0; height: 18px; background: transparent; cursor: pointer; transition: width .3s, opacity .3s; --p: 90%; }
.p-volume:hover .p-vol, .p-vol:focus-visible { width: 90px; opacity: 1; }
.p-vol::-webkit-slider-runnable-track { height: 3px; background: linear-gradient(90deg, var(--gold) var(--p), rgba(236, 223, 192, .2) var(--p)); }
.p-vol::-moz-range-track { height: 3px; background: linear-gradient(90deg, var(--gold) var(--p), rgba(236, 223, 192, .2) var(--p)); }
.p-vol::-webkit-slider-thumb { -webkit-appearance: none; width: 11px; height: 11px; margin-top: -4px; background: var(--gold-hi); transform: rotate(45deg); box-shadow: 0 0 0 2px #120c05; }
.p-vol::-moz-range-thumb { width: 10px; height: 10px; border: 0; border-radius: 0; background: var(--gold-hi); transform: rotate(45deg); }

/* ======================================================
   RESPONSIVE
   ====================================================== */
@media (max-width: 980px) {
  .player { grid-template-columns: 56px minmax(0, 1fr) auto; grid-template-rows: auto auto; gap: 10px 14px; padding: 10px 14px 12px 10px; }
  .p-sleeve { width: 56px; height: 56px; }
  .p-wave { grid-column: 1 / -1; }
  .p-volume { display: none; }
  body { padding-bottom: 180px; }
}
@media (max-aspect-ratio: 1/1), (max-width: 900px) {
  /* one centred column, record centred above the words */
  .hero { grid-template-columns: 1fr; min-height: auto; padding: 18px 0 10px; text-align: center; gap: 28px; }
  .hero-record { order: -1; max-width: 280px; margin: 0 auto; }
  .hero .lede, .head-text .lede { margin-inline: auto; }
  .release-head, .song-head { grid-template-columns: 1fr; text-align: center; row-gap: 26px; }
  .release-head .record, .song-head .record { margin: 0 auto; }
  .release-head .record { max-width: 300px; }
  .song-head .record { max-width: 240px; }
  /* the vinyl stays tucked in until it plays, so the sleeve sits dead centre */
  .hero-record .vinyl, .release-head .vinyl, .song-head .vinyl, .release-card .vinyl { --peek: 0%; }
  .hero-record .record.spinning .vinyl, .release-head .record.spinning .vinyl,
  .song-head .record.spinning .vinyl, .release-card .record.spinning .vinyl { --peek: 20%; }
  .record:hover .vinyl { --peek: 0%; }
  .cta { justify-content: center; }
  .head-text .store-links { justify-content: center; }
  .crumbs { text-align: center; }
  .dive-hint { display: none; }
  .release-card { text-align: center; }
  .release-card .record { margin: 0 auto; }
}
@media (max-width: 600px) {
  :root { --pad: 18px; --ink: #1d1208; --ink-dim: #34241a; --ink-faint: #54402b; }
  body { font-size: 19px; line-height: 1.6; }
  .title-xl { font-size: 64px; }
  .title-l { font-size: 42px; line-height: 1.02; }
  .hero-sub { font-size: 28px; margin-bottom: 16px; }
  .eyebrow { font-size: 15px; letter-spacing: .1em; }
  .lede { font-size: 19px; font-style: normal; line-height: 1.55; }
  .section-lede { font-style: normal; font-size: 18px; padding: 0 4px; }
  .section-title { font-size: 40px; }
  .divider { margin: 54px auto 22px; gap: 10px; }
  .divider .wheel { width: 44px; height: 44px; }
  .cta { flex-direction: column; align-items: stretch; gap: 14px; width: 100%; max-width: 340px; margin-inline: auto; }
  .btn { justify-content: center; min-height: 54px; }
  .btn.brass { padding: 0 22px 0 10px; }
  .btn.brass .ico { position: absolute; left: 10px; }
  .crumbs { font-size: 14px; padding: 6px 0 14px; line-height: 1.5; }
  .crumbs .sep { margin: 0 6px; }
  .release-card { padding: 26px 18px 22px; }
  .release-card .record { max-width: 240px; }
  .release-card p { font-size: 18px; }
  .release-card .cta { margin-top: 14px; }
  /* ship's log: number + title + play button on one line, the story underneath */
  .log-entry {
    grid-template-columns: 1fr auto; grid-template-areas: "num btn" "title btn" "text text";
    gap: 2px 14px; padding: 18px 4px; align-items: center;
  }
  .log-body { display: contents; }
  .log-num { grid-area: num; text-align: left; font-size: 16px; letter-spacing: .14em; }
  .log-body h3 { grid-area: title; font-size: 27px; margin: 0; }
  .log-body p { grid-area: text; font-style: normal; font-size: 17px; margin-top: 8px; color: var(--ink-dim); }
  .log-entry .medallion { grid-area: btn; }
  .about-plate { padding: 30px 20px; }
  .about-plate p { font-size: 18px; }
  .about-emblem { width: 110px; }
  .list-plate { padding: 24px 12px; }
  .t-title { font-size: 20px; line-height: 1.25; }
  .lyrics { padding: 30px 20px; }
  .stanza p { font-size: 19px; }
  .stanza.chorus p { padding-left: 14px; }
  .credits dl { font-size: 16px; }
  .site-header { flex-direction: column; align-items: center; gap: 8px; padding: 18px 14px 14px; }
  .logo { font-size: 34px; white-space: nowrap; }
  .site-header nav { gap: 20px; }
  .site-header nav a { font-size: 16px; white-space: nowrap; letter-spacing: .06em; }
  .site-header nav a + a::before { left: -14px; }
  .track { grid-template-columns: 44px 1fr auto; gap: 12px; }
  .t-num { display: none; }
  .song-nav { grid-template-columns: 1fr; }
  .song-nav .next { grid-column: 1; }
  .player { width: calc(100% - 16px); bottom: 8px; }
  .p-title { font-size: 19px; }
  .p-play { width: 52px; height: 52px; }
  .p-skip { width: 34px; }
  .sleeve { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
