/* ============================================================
   Octave Music — Songbook
   Type:  Archivo (host sans) · Newsreader italic (serif guest)
          · IBM Plex Mono (catalog labels/captions)
   Color: deep ink ground · warm cream type · one brass accent
   Discipline test: legible in pure B&W; brass is a garnish.
   ============================================================ */

:root {
  --ink:        #0B0D10;
  --ink-2:      #0E1014;
  --ink-3:      #13161b;   /* raised panel */
  --cream:      #EDE6D4;   /* body */
  --cream-hi:   #F4EEDF;   /* display weight */
  --cream-dim:  rgba(237, 230, 212, 0.60);
  --cream-mut:  rgba(237, 230, 212, 0.42);
  --line:       rgba(237, 230, 212, 0.14);
  --line-soft:  rgba(237, 230, 212, 0.08);
  --brass:      #C49B57;
  --brass-deep: #B98A3E;

  --accent-on: 1; /* toggled by Tweaks */

  --measure: 62ch;
  --pad: clamp(20px, 5vw, 92px);
  --maxw: 1440px;

  --fast: 320ms cubic-bezier(.2,.6,.2,1);
  --slow: 900ms cubic-bezier(.2,.7,.15,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--cream);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.62;
  font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---- film grain / print texture overlay ---- */
.grain {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: .045; mix-blend-mode: screen;
  background-image: url("assets/grain.png");
  background-size: 220px 220px;
}
/* barely-there warm vignette */
.vignette {
  position: fixed; inset: 0; z-index: 9998; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 18%, transparent 55%, rgba(0,0,0,.45) 100%);
}

::selection { background: rgba(196,155,87,.35); color: var(--cream-hi); }

a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

/* =========================== TYPE =========================== */
.mono {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--cream-mut); font-weight: 500;
}
.eyebrow {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: .72rem; letter-spacing: .26em; text-transform: uppercase;
  color: var(--brass); font-weight: 500;
  display: inline-flex; align-items: center; gap: .8em;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px;
  background: color-mix(in oklab, var(--brass), transparent calc((1 - var(--accent-on)) * 100%));
  display: inline-block;
}
:root[data-accent="0"] .eyebrow { color: var(--cream-dim); }
:root[data-accent="0"] .eyebrow::before { background: var(--cream-mut); }

h1, h2, h3 { font-weight: 600; line-height: 1.02; letter-spacing: -0.02em; color: var(--cream-hi); }

.display {
  font-size: clamp(2.6rem, 6.4vw, 5.6rem);
  letter-spacing: -0.03em; font-weight: 650;
}
.section-title {
  font-size: clamp(2rem, 4.6vw, 3.7rem);
  letter-spacing: -0.025em; line-height: 1.0;
}
.lede {
  font-size: clamp(1.12rem, 1.6vw, 1.4rem);
  line-height: 1.6; color: var(--cream); max-width: 40ch;
  font-weight: 420;
}
p.body { max-width: var(--measure); color: var(--cream-dim); }

/* facts pending research verification */
.verify {
  text-decoration: underline dotted rgba(196,155,87,.55);
  text-underline-offset: 4px; cursor: help;
}
:root[data-accent="0"] .verify { text-decoration-color: var(--cream-mut); }

/* serif guest — used only for pull quotes */
.serif {
  font-family: "Newsreader", Georgia, serif;
  font-style: italic; font-weight: 400;
  letter-spacing: -0.005em; color: var(--cream-hi);
}
:root[data-serif="0"] .serif { font-family: "Archivo", sans-serif; font-style: normal; }

/* =========================== NAV =========================== */
.topbar {
  position: sticky; top: 0; z-index: 200;
  background: color-mix(in oklab, var(--ink) 78%, transparent);
  backdrop-filter: blur(10px) saturate(1.1);
  border-bottom: 1px solid var(--line-soft);
}
.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brandmark {
  display: inline-flex; align-items: center;
  font-family: "Archivo", sans-serif; font-weight: 700; font-size: 1.18rem;
  letter-spacing: -0.02em; color: var(--cream-hi);
  transform-origin: left center;
}
.brandmark img { display: block; height: 62px; width: auto; }
/* When JS runs, the nav lockup starts hidden and is revealed only once the
   flying clone arrives (see app.js). No-JS keeps it visible. */
:root.has-js .brandmark { opacity: 0; }

/* the flying clone that carries the lockup from hero to nav */
.logo-flyer {
  position: fixed; top: 0; left: 0; z-index: 300;
  opacity: 0; pointer-events: none; transform-origin: top left;
  will-change: transform, opacity;
}
.logo-flyer img { display: block; width: auto; }
:root:not(.has-js) .logo-flyer { display: none; }
.brandmark span { color: var(--brass); }
:root[data-accent="0"] .brandmark span { color: var(--cream-hi); }
.nav { display: flex; gap: clamp(18px, 2.6vw, 40px); align-items: center; }
.nav a {
  font-size: .92rem; color: var(--cream-dim); letter-spacing: .01em;
  padding: 6px 0; position: relative; transition: color var(--fast);
}
.nav a:hover { color: var(--cream-hi); }
.nav a.here { color: var(--cream-hi); }
.nav a.here::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: var(--brass);
}
:root[data-accent="0"] .nav a.here::after { background: var(--cream-hi); }
.nav-cta {
  font-family: "IBM Plex Mono", monospace; font-size: .7rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--cream-mut);
}

/* =========================== HERO =========================== */
.hero {
  position: relative; min-height: clamp(640px, calc(100vh - 64px), 900px);
  display: grid; align-items: end;
  padding-block: clamp(40px, 7vh, 96px);
  overflow: hidden;
}
.hero-figure {
  position: absolute; inset: 0; z-index: 0;
}
.hero-figure .ph { width: 100%; height: 100%; }
.hero-figure::after { /* darken for headline legibility; keep the photo's cinematic tone */
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11,13,16,.42) 0%, rgba(11,13,16,.12) 38%, rgba(11,13,16,.90) 100%),
    linear-gradient(90deg, rgba(11,13,16,.90) 0%, rgba(11,13,16,.34) 48%, rgba(11,13,16,.60) 100%);
}
.hero-figure .tint { /* a whisper of brass warmth, not a hue replacement */
  position: absolute; inset: 0; mix-blend-mode: soft-light;
  background: var(--brass-deep);
  opacity: calc(var(--accent-on) * 0.32);
}
/* frame the portrait */
image-slot#hero-photo::part(image) { object-position: 50% 34% !important; }
.hero .wrap { position: relative; z-index: 2; width: 100%; }

.hero-logo { display: flex; align-items: flex-start; gap: 6px; margin-bottom: clamp(28px, 6vh, 64px); transform-origin: left top; will-change: transform, opacity; }
.hero-logo .lockup { height: clamp(96px, 11vw, 138px); width: auto; display: block; }
.hero-logo .sm { font-family: "IBM Plex Mono", monospace; color: var(--brass); font-size: clamp(.8rem, 1vw, 1rem); line-height: 1; margin-top: 4px; }
:root[data-accent="0"] .hero-logo .sm { color: var(--cream-dim); }

.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px); align-items: end;
}
@media (max-width: 920px){ .hero-grid { grid-template-columns: 1fr; gap: 28px; } }

.hero h1 { font-size: clamp(2.8rem, 7vw, 6.2rem); letter-spacing: -0.035em; line-height: .96; }
.hero h1 .sub {
  display: block; margin-top: .42em;
  font-family: "Archivo", sans-serif;
  font-size: clamp(1.05rem, 1.8vw, 1.55rem); font-weight: 500; letter-spacing: -0.01em;
  text-transform: none;
  color: var(--cream);
}
.hero h1 .sub b { color: var(--cream-hi); font-weight: 650; }

/* ---- Title style variants (Tweaks → Title style). Default = sans, identical to base. ---- */
/* Serif — editorial liner-note voice, echoing errollgarner.com essays & reissue wordmarks */
:root[data-title="serif"] .hero h1 {
  font-family: "Newsreader", Georgia, serif; font-style: italic; font-weight: 400;
  font-size: clamp(3rem, 7.6vw, 6.9rem); letter-spacing: -0.018em; line-height: 1.0;
}
/* Sleeve — record-cover lockup: name forward, all-caps, mono framing */
:root[data-title="sleeve"] .hero h1 { display: flex; flex-direction: column; line-height: .9; }
:root[data-title="sleeve"] .t-the {
  font-family: "IBM Plex Mono", monospace; font-weight: 500;
  font-size: clamp(.66rem, 1.2vw, .92rem); letter-spacing: .42em; text-transform: uppercase;
  color: var(--cream-mut); margin-bottom: .85em;
}
:root[data-title="sleeve"] .t-name {
  font-size: clamp(3rem, 8.6vw, 7.6rem); font-weight: 700; text-transform: uppercase;
  letter-spacing: -0.022em; line-height: .84; color: var(--cream-hi);
}
:root[data-title="sleeve"] .t-book {
  font-family: "IBM Plex Mono", monospace; font-weight: 500;
  font-size: clamp(.82rem, 1.5vw, 1.2rem); letter-spacing: .42em; text-transform: uppercase;
  color: var(--brass); margin-top: .75em;
}
:root[data-accent="0"][data-title="sleeve"] .t-book { color: var(--cream-mut); }
:root[data-title="sleeve"] .hero h1 .sub { margin-top: 1.1em; }
/* Mono — the brand's label system (":E" mark, OCTAVE MUSIC℠) scaled up */
:root[data-title="mono"] .hero h1 {
  font-family: "IBM Plex Mono", monospace; font-weight: 500; text-transform: uppercase;
  font-size: clamp(1.7rem, 4.1vw, 3.7rem); letter-spacing: .1em; line-height: 1.18;
}
:root[data-title="mono"] .hero h1 .sub { letter-spacing: -0.01em; }
.hero-lead { position: relative; border-left: 1px solid var(--line); padding-left: clamp(18px, 1.8vw, 28px); }
.hero-lead::before { content:""; position:absolute; inset:-18px -26px -18px -10px; z-index:-1; background:
  radial-gradient(120% 100% at 60% 50%, rgba(11,13,16,.62) 0%, rgba(11,13,16,.5) 55%, rgba(11,13,16,0) 100%);
  filter: blur(14px); }
.hero-lead p { color: rgba(237,230,212,.92); font-size: clamp(1rem, 1.1vw, 1.08rem); line-height: 1.62; text-shadow: 0 1px 10px rgba(0,0,0,.55); }
.hero-lead p b { color: var(--cream-hi); font-weight: 600; }

/* =========================== SECTIONS =========================== */
section { position: relative; }
.band { padding-block: clamp(64px, 12vh, 150px); border-top: 1px solid var(--line-soft); }
.sec-head { margin-bottom: clamp(34px, 6vh, 70px); max-width: 56ch; }
.sec-head .eyebrow { margin-bottom: 18px; }
.sec-head .section-title { margin-bottom: .5em; }

/* ---------- MISTY ---------- */
.misty-intro {
  display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr);
  gap: clamp(30px, 5vw, 80px); align-items: end; margin-bottom: clamp(40px, 7vh, 84px);
}
@media (max-width: 920px){ .misty-intro { grid-template-columns: 1fr; gap: 30px; } }

.count {
  font-weight: 680; letter-spacing: -0.05em; line-height: .82;
  font-size: clamp(3.6rem, 10.5vw, 9.5rem);
  color: var(--brass);
  font-variant-numeric: tabular-nums;
  text-align: right; white-space: nowrap;
}
:root[data-accent="0"] .count { color: var(--cream-hi); }
.count .plus { color: var(--brass-deep); }
:root[data-accent="0"] .count .plus { color: var(--cream-dim); }
.count-cap { text-align: right; margin-top: .4em; max-width: 24ch; margin-left: auto; }
.count-cap .big {
  font-size: clamp(1.3rem, 2.2vw, 2rem); font-weight: 600; color: var(--cream-hi);
  letter-spacing: -0.02em; line-height: 1.08; display: block;
}

/* ---------- MOSAIC ---------- */
.mosaic {
  --cols: 9;
  display: grid; grid-template-columns: repeat(var(--cols), 1fr);
  gap: clamp(8px, 0.7vw, 14px);
}
@media (max-width: 1180px){ .mosaic { --cols: 7; } }
@media (max-width: 760px){ .mosaic { --cols: 5; } }
@media (max-width: 440px){ .mosaic { --cols: 4; } }

/* On touch / phone widths, hide the cramped per-tile caption overlay.
   Tiles are links, so tapping still opens the recording's Apple Music page. */
@media (hover: none), (max-width: 760px){
  .tile .tip { display: none !important; }
}

/* Mobile top nav: keep the logo + links on a single row, scaling the lockup
   and link type down with the viewport so they fit narrow phone widths. */
@media (max-width: 760px){
  .topbar .wrap { height: 62px; gap: clamp(8px, 2.4vw, 18px); }
  .brandmark { flex: 0 0 auto; }
  .brandmark img { height: clamp(36px, 9.5vw, 50px); }
  .nav { flex: 1 1 auto; flex-wrap: nowrap; justify-content: flex-end; gap: clamp(9px, 3vw, 20px); }
  .nav a { font-size: clamp(.74rem, 3.4vw, .96rem); white-space: nowrap; }
}

.tile {
  position: relative; aspect-ratio: 1; border: 0; cursor: pointer;
  background: var(--ink-3); color: var(--cream);
  overflow: hidden; padding: 10% 9%;
  display: flex; flex-direction: column; justify-content: space-between;
  text-align: left; font-family: "Archivo", sans-serif; text-decoration: none;
  outline: 1px solid var(--line-soft); outline-offset: -1px;
  /* visible by default; opacity is NOT transitioned so tiles can never get stuck hidden.
     resting in the SAME 3D space as hover so hover only animates translateZ (smooth glide). */
  opacity: 1;
  transform: perspective(520px) translateZ(0);
  /* subtle resting shadow — each sleeve floats a touch above the page (Apple-store feel) */
  box-shadow: 0 10px 22px -10px rgba(0,0,0,.62), 0 3px 8px -4px rgba(0,0,0,.45);
  transition: transform 240ms cubic-bezier(.33,.9,.35,1), box-shadow 240ms cubic-bezier(.33,.9,.35,1), outline-color 160ms ease;
  transition-delay: 0s;
  will-change: transform;
}
.mosaic.in .tile:hover, .mosaic.in .tile:focus-visible,
.tile:hover, .tile:focus-visible {
  /* pulled toward the viewer in z — real depth + foreshortening, not a flat scale */
  transform: perspective(520px) translateZ(112px);
  z-index: 10; outline-color: var(--brass); overflow: visible;
  box-shadow: 0 34px 60px -18px rgba(0,0,0,.78), 0 10px 22px -12px rgba(0,0,0,.6);
}
:root[data-accent="0"] .tile:hover, :root[data-accent="0"] .tile:focus-visible { outline-color: var(--cream); }

.tile .ar { font-weight: 640; letter-spacing: -0.02em; line-height: .98; font-size: clamp(.62rem, 1.05vw, .92rem); }
.tile .mid { font-family: "IBM Plex Mono", monospace; font-size: .56rem; letter-spacing: .24em; text-transform: uppercase; color: var(--cream-mut); }
.tile .yr  { font-family: "IBM Plex Mono", monospace; font-size: .6rem; letter-spacing: .1em; color: var(--cream-dim); }
.tile .rings { position: absolute; inset: 0; opacity: .14; background:
  repeating-radial-gradient(circle at 50% 46%, transparent 0 5px, var(--cream) 5px 6px); }

/* real album cover fills the tile (typeset sleeve becomes the fallback) */
.tile.has-cover { padding: 0; background: var(--ink-3); }
.tile.has-cover > :not(.cover-img):not(.tip) { display: none; }
.tile.has-cover::before { display: none; }
.tile .cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* tonal + layout variants (assigned in JS) */
.tile.inv { background: var(--cream); color: var(--ink); outline-color: rgba(0,0,0,.12); }
.tile.inv .mid, .tile.inv .yr { color: rgba(11,13,16,.6); }
.tile.inv .rings { background: repeating-radial-gradient(circle at 50% 46%, transparent 0 5px, var(--ink) 5px 6px); opacity:.12; }

.tile.t-frame { outline-color: var(--line); }
.tile.t-frame::before { content:""; position:absolute; inset:7px; border:1px solid currentColor; opacity:.32; }
.tile.t-center { align-items: center; justify-content: center; text-align: center; gap: .5em; }
.tile.t-center .ar { font-size: clamp(.7rem, 1.2vw, 1rem); }
.tile.t-year .yr  { font-size: clamp(1.6rem, 3vw, 2.6rem); font-weight: 700; color: var(--brass); letter-spacing: -0.02em; align-self: flex-start; }
:root[data-accent="0"] .tile.t-year .yr { color: var(--cream-hi); }
.tile.t-big .ar { font-size: clamp(.9rem, 1.7vw, 1.5rem); align-self: flex-end; }
.tile.t-vert .mid { writing-mode: vertical-rl; position:absolute; top:9%; left:9%; }
.tile.t-vert { padding-left: 22%; }
.tile.t-split { padding: 0; }
.tile.t-split .top { background: var(--cream); color: var(--ink); flex:1; display:flex; align-items:center; justify-content:center; }
.tile.t-split .bot { flex:1; display:flex; align-items:flex-end; padding: 9%; }
.tile.t-split .mid { color: rgba(11,13,16,.7); }

.tile .tip {
  position: absolute; top: 100%; left: 0; right: 0;       /* matches artwork width, flush to its bottom edge */
  transform-origin: top center; transform: scaleY(0);
  background: var(--ink); border: 1px solid var(--brass);
  box-shadow: 0 14px 26px rgba(0,0,0,.5);
  padding: 7px 9px; font-family:"IBM Plex Mono", monospace; font-size: .52rem;
  letter-spacing: .01em; line-height: 1.42; color: var(--cream); pointer-events:none;
  white-space: normal; text-align: left; overflow-wrap: anywhere;
  opacity: 0; transition: opacity 160ms ease, transform 360ms cubic-bezier(.2,.72,.24,1);
  transition-delay: 0s; z-index: 30; text-transform: none;
}
/* unfurls like a banner ~1s after the cover reaches full size; casual sweeps never trigger it */
.tile:hover .tip, .tile:focus-visible .tip {
  opacity: 1; transform: scaleY(1); transition-delay: 1.4s;
}
.tile .tip b { color: var(--cream-hi); }
.tile .tip .y { color: var(--brass); }
:root[data-accent="0"] .tile .tip { border-top-color: var(--cream); }
:root[data-accent="0"] .tile .tip .y { color: var(--cream-hi); }

/* credits run */
.credits { margin-top: clamp(40px, 6vh, 72px); border-top: 1px solid var(--line); padding-top: 28px; }
.credits .mono { display:block; margin-bottom: 18px; }
.credits-flow {
  columns: 22ch auto; column-gap: clamp(28px, 4vw, 64px);
  font-size: .95rem; line-height: 1.85; color: var(--cream-dim);
}
.credits-flow span { white-space: nowrap; }
.credits-flow b { color: var(--cream); font-weight: 600; }

/* ---------- SONGBOOK CARDS ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); }
@media (max-width: 900px){ .cards { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px){ .cards { grid-template-columns: 1fr; } }
.card {
  background: var(--ink); padding: clamp(26px, 2.4vw, 40px);
  min-height: clamp(180px, 16vw, 230px);
  display: flex; flex-direction: column; justify-content: space-between;
  transition: background var(--fast);
  text-decoration: none; color: inherit; position: relative;
}
.card:hover { background: var(--ink-2); }
.card:focus-visible { outline: 2px solid var(--brass); outline-offset: -2px; }
.card .t { font-family:"Newsreader", Georgia, serif; font-style: italic; font-weight: 400;
  font-size: clamp(1.7rem, 2.6vw, 2.5rem); color: var(--cream-hi); line-height: 1.02; letter-spacing:-0.01em; }
:root[data-serif="0"] .card .t { font-family:"Archivo",sans-serif; font-style:normal; font-weight:600; }
.card .meta { display:flex; flex-direction:column; gap:6px; }
.card .yr { font-family:"IBM Plex Mono", monospace; font-size:.72rem; letter-spacing:.14em; color: var(--brass); }
:root[data-accent="0"] .card .yr { color: var(--cream-dim); }
.card .rec { font-size: .9rem; color: var(--cream-dim); }
.card .pub { display: block; margin-top: 4px; font-family:"IBM Plex Mono", monospace; font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cream-mut); }
.card .listen {
  display: inline-flex; align-items: center; gap: .5em; margin-top: 12px;
  font-family:"IBM Plex Mono", monospace; font-size: .64rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--cream-mut); opacity: .55; transition: color var(--fast), opacity var(--fast);
}
.card .listen .arr { font-size: .9em; transition: transform var(--fast); }
.card:hover .listen, .card:focus-visible .listen { color: var(--brass); opacity: 1; }
.card:hover .listen .arr { transform: translate(2px, -2px); }
:root[data-accent="0"] .card:hover .listen { color: var(--cream); }
.songbook-foot { margin-top: 30px; color: var(--cream-dim); font-size: .98rem; }

/* ---------- ON SCREEN ---------- */
.screen-list { display:flex; flex-direction:column; }
.screen-row {
  display:grid; grid-template-columns: 120px minmax(0,1fr) minmax(0,1.4fr);
  gap: clamp(18px,3vw,48px); align-items: baseline;
  padding: clamp(22px,3vh,38px) 0; border-top: 1px solid var(--line);
}
.screen-row:last-child { border-bottom: 1px solid var(--line); }
@media (max-width: 760px){ .screen-row { grid-template-columns: 1fr; gap: 8px; } }
.screen-row .yr { font-family:"IBM Plex Mono",monospace; font-size:1.1rem; color: var(--brass); letter-spacing:.04em; }
:root[data-accent="0"] .screen-row .yr { color: var(--cream-dim); }
.screen-row .ttl { font-size: clamp(1.4rem, 2.4vw, 2.1rem); font-weight: 620; color: var(--cream-hi); letter-spacing:-0.02em; line-height:1.04; }
.screen-row .ttl em { font-family:"Newsreader",serif; font-style:italic; font-weight:400; }
:root[data-serif="0"] .screen-row .ttl em { font-family:"Archivo",sans-serif; font-style:normal; }
.screen-row .ttl .comp { display:block; margin-top:6px; font-family:"IBM Plex Mono",monospace; font-size:.7rem; letter-spacing:.14em; color: var(--cream-mut); text-transform:uppercase; }
.screen-row .desc { color: var(--cream-dim); max-width: 46ch; }
.screen-row.anchor .ttl { font-size: clamp(1.9rem, 3.4vw, 3rem); }
.screen-row.anchor .desc { color: var(--cream); }

/* ---------- REISSUE FILM-STRIP ROW ---------- */
.strip-scroll { margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(230px, 26vw, 330px); gap: clamp(14px,1.6vw,26px); padding-block: 6px; }
.reissue { display:flex; flex-direction:column; gap: 16px; text-decoration: none; color: inherit; }
.reissue .cover { aspect-ratio: 1; background: var(--ink-3); outline: 1px solid var(--line-soft); position: relative; overflow:hidden; transition: outline-color var(--fast); }
.reissue .cover::after { content:""; position:absolute; inset:0; background: var(--ink); opacity:0; transition: opacity var(--fast); }
.reissue:hover .cover { outline-color: var(--brass); }
.reissue:hover .cover::after { opacity:.12; }
:root[data-accent="0"] .reissue:hover .cover { outline-color: var(--cream); }
.reissue:focus-visible { outline: 2px solid var(--brass); outline-offset: 4px; }
.reissue .t { transition: color var(--fast); }
.reissue:hover .t { color: var(--brass); }
:root[data-accent="0"] .reissue:hover .t { color: var(--cream-hi); }
.reissue .cover .ph { position:absolute; inset:0; }
.reissue .cover .fwd { position:absolute; top:12px; left:12px; font-family:"IBM Plex Mono",monospace; font-size:.6rem; letter-spacing:.16em; text-transform:uppercase; color: var(--ink); background: var(--brass); padding: 4px 8px; }
:root[data-accent="0"] .reissue .cover .fwd { background: var(--cream); }
.reissue .t { font-family:"Newsreader",serif; font-style:italic; font-size: clamp(1.2rem,1.7vw,1.6rem); color: var(--cream-hi); line-height:1.08; }
:root[data-serif="0"] .reissue .t { font-family:"Archivo",sans-serif; font-style:normal; font-weight:600; }
.reissue .ln { display:flex; gap:10px; align-items:baseline; }
.reissue .yr { font-family:"IBM Plex Mono",monospace; font-size:.72rem; color: var(--brass); letter-spacing:.1em; }
:root[data-accent="0"] .reissue .yr { color:var(--cream-dim); }
.reissue .label { font-size:.82rem; color: var(--cream-dim); }
.reissue .pub { font-family:"IBM Plex Mono",monospace; font-size:.62rem; letter-spacing:.12em; text-transform:uppercase; color: var(--cream-mut); margin-top:2px; }

/* ---------- PULL QUOTE ---------- */
.pull { padding-block: clamp(60px,11vh,130px); border-top:1px solid var(--line-soft); }
.pull blockquote { max-width: 24ch; margin-inline:auto; text-align:center; }
.pull .q { font-family:"Newsreader",serif; font-style:italic; font-weight:400; font-size: clamp(1.8rem,4.6vw,3.6rem); line-height:1.16; color: var(--cream-hi); letter-spacing:-0.01em; }
:root[data-serif="0"] .pull .q { font-family:"Archivo",sans-serif; font-style:normal; font-weight:500; }
.pull .q .mk { color: var(--brass); }
:root[data-accent="0"] .pull .q .mk { color: var(--cream-dim); }
.pull cite { display:block; margin-top: 28px; font-style:normal; }

/* ---------- SAMPLED ---------- */
.sample-feature {
  display: grid; grid-template-columns: clamp(160px, 22vw, 260px) 1fr;
  gap: clamp(24px, 3.5vw, 56px); align-items: center;
  margin-top: clamp(30px, 3.4vw, 52px);
  padding: clamp(20px, 2.4vw, 36px);
  background: var(--ink-2); outline: 1px solid var(--line-soft);
  text-decoration: none; color: inherit; transition: outline-color var(--fast), background var(--fast);
}
.sample-feature:hover { outline-color: var(--brass); background: var(--ink-3); }
:root[data-accent="0"] .sample-feature:hover { outline-color: var(--cream); }
@media (max-width: 680px){ .sample-feature { grid-template-columns: 1fr; gap: 24px; } }
.sf-cover { aspect-ratio: 1; overflow: hidden; background: var(--ink-3); box-shadow: 0 18px 44px rgba(0,0,0,.45); }
.sf-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sf-kicker { font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--brass); margin-bottom: 16px; }
:root[data-accent="0"] .sf-kicker { color: var(--cream-mut); }
.sf-track { font-family: "Newsreader", Georgia, serif; font-style: italic; font-weight: 400;
  font-size: clamp(1.7rem, 3vw, 2.7rem); line-height: 1.04; color: var(--cream-hi); letter-spacing: -0.01em; margin: 0 0 .35em; text-wrap: pretty; }
:root[data-serif="0"] .sf-track { font-family: "Archivo", sans-serif; font-style: normal; font-weight: 600; }
.sf-meta { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--cream-dim); margin-bottom: 1.1em; }
.sf-note { color: var(--cream-dim); font-size: 1.05rem; line-height: 1.62; max-width: 60ch; margin: 0 0 1.2em; }
.sf-listen { display: inline-flex; align-items: center; gap: .5em; font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--cream-mut); transition: color var(--fast); }
.sf-listen .arr { transition: transform var(--fast); }
.sample-feature:hover .sf-listen { color: var(--brass); }
.sample-feature:hover .sf-listen .arr { transform: translate(2px, -2px); }
:root[data-accent="0"] .sample-feature:hover .sf-listen { color: var(--cream); }

.sample-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); margin-top: clamp(20px, 2vw, 30px); }
@media (max-width: 760px){ .sample-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px){ .sample-grid { grid-template-columns: 1fr; } }
.sample { display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--ink); padding: clamp(16px, 1.6vw, 24px) clamp(18px, 1.8vw, 26px);
  text-decoration: none; color: inherit; transition: background var(--fast); }
.sample:hover { background: var(--ink-2); }
.sm-l { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sm-track { font-family: "Newsreader", Georgia, serif; font-style: italic; font-size: 1.2rem; color: var(--cream-hi); line-height: 1.1; }
:root[data-serif="0"] .sm-track { font-family: "Archivo", sans-serif; font-style: normal; font-weight: 600; }
.sm-artist { font-family: "IBM Plex Mono", monospace; font-size: .68rem; letter-spacing: .04em; color: var(--cream-mut); }
.sm-r { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.sm-src { font-family: "IBM Plex Mono", monospace; font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; color: var(--cream-dim); }
.sm-yr { font-family: "IBM Plex Mono", monospace; font-size: .66rem; color: var(--brass); }
:root[data-accent="0"] .sm-yr { color: var(--cream-dim); }
.sm-arr { color: var(--cream-mut); opacity: 0; transition: opacity var(--fast), transform var(--fast); }
.sample:hover .sm-arr { opacity: 1; color: var(--brass); transform: translate(1px, -1px); }

/* ---------- ABOUT ---------- */
.about-grid { display:grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: clamp(34px,5vw,80px); align-items:start; }
@media (max-width: 860px){ .about-grid { grid-template-columns:1fr; } }
.about-fig { position:relative; }
.about-fig .ph { aspect-ratio: 4/5; }
.about-fig .seal { position:absolute; right:-18px; bottom:-18px; width: clamp(98px,12vw,138px); background: var(--ink); padding:16px 14px; border:1px solid var(--line); }
.about-fig .seal img { width:100%; display:block; }
.about-body p { color: var(--cream-dim); margin-bottom: 1.1em; max-width: 56ch; }
.about-body p b { color: var(--cream); font-weight:600; }
.tm-notice { margin-top: 30px; padding-top: 22px; border-top:1px solid var(--line); }
.tm-notice .mono { color: var(--cream-dim); text-transform:none; letter-spacing:.06em; font-size:.78rem; }
.tm-notice .mono .sm { color: var(--brass); }
:root[data-accent="0"] .tm-notice .mono .sm { color: var(--cream-hi); }

/* =========================== PAGE FOOTER (page-specific) =========================== */
.page-foot { padding-block: clamp(40px,7vh,80px); border-top:1px solid var(--line); text-align:center; }
.page-foot .back { font-size:.95rem; color: var(--cream-dim); display:inline-flex; gap:10px; align-items:center; transition: color var(--fast); }
.page-foot .back:hover { color: var(--cream-hi); }
.page-foot .tm { margin-top: 22px; }

/* =========================== GLOBAL SITE FOOTER =========================== */
.site-foot { background: var(--ink-2); border-top:1px solid var(--line); padding-block: clamp(48px,8vh,84px); }
.site-foot .wrap { display:grid; grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); gap: clamp(34px,5vw,80px); align-items:start; }
@media (max-width:760px){ .site-foot .wrap { grid-template-columns:1fr; gap:36px; } }
.site-foot h3 { font-size: clamp(1.3rem,2.2vw,1.9rem); color: var(--cream-hi); letter-spacing:-0.02em; margin-bottom:18px; }
.signup { display:flex; gap:10px; max-width: 420px; border-bottom:1px solid var(--line); padding-bottom:10px; }
.signup input { flex:1; background:transparent; border:0; color:var(--cream); font-family:"Archivo",sans-serif; font-size:1rem; outline:none; }
.signup input::placeholder { color: var(--cream-mut); }
.signup button { background:transparent; border:0; color: var(--brass); font-family:"IBM Plex Mono",monospace; font-size:.72rem; letter-spacing:.16em; text-transform:uppercase; cursor:pointer; }
:root[data-accent="0"] .signup button { color: var(--cream-hi); }
.streams { display:flex; flex-direction:column; gap: 12px; }
.streams .mono { color: var(--cream-mut); margin-bottom: 4px; }
.streams a { color: var(--cream-dim); font-size:.96rem; display:flex; justify-content:space-between; padding:8px 0; border-bottom:1px solid var(--line-soft); transition: color var(--fast); }
.streams a:hover { color: var(--cream-hi); }
.streams a span { font-family:"IBM Plex Mono",monospace; font-size:.66rem; color:var(--cream-mut); letter-spacing:.1em; }
.copyright { grid-column:1/-1; margin-top: 18px; padding-top: 26px; border-top:1px solid var(--line-soft); display:flex; justify-content:space-between; flex-wrap:wrap; gap:14px; }
.copyright .mono { text-transform:none; letter-spacing:.04em; }

/* ---- theme <image-slot> empty state for the dark canvas (it ships light) ---- */
/* !important: the component's internal .frame/.ring rules out-specify ::part */
image-slot { color: var(--cream-dim); }
image-slot::part(frame) {
  background:
    repeating-linear-gradient(135deg, #22262e 0 13px, #0e1116 13px 26px) !important;
}
image-slot::part(ring) { border-color: rgba(237,230,212,0.22) !important; }
/* hero photo: a moody solid field, not stripes (the brass tint sits on top) */
image-slot#hero-photo::part(frame) {
  background:
    radial-gradient(120% 130% at 30% 0%, #1a1c20 0%, #0d0f12 60%, #090a0d 100%) !important;
}
image-slot#hero-photo { color: var(--cream-dim); }

/* =========================== IMAGE PLACEHOLDERS =========================== */
.ph {
  background:
    repeating-linear-gradient(135deg, var(--ink-3) 0 11px, var(--ink-2) 11px 22px);
  display:flex; align-items:center; justify-content:center; text-align:center;
  position: relative;
}
.ph .ph-label {
  font-family:"IBM Plex Mono",monospace; font-size:.66rem; letter-spacing:.16em; text-transform:uppercase;
  color: var(--cream-mut); border:1px solid var(--line); padding:8px 12px; background: rgba(11,13,16,.5);
  max-width: 80%; line-height:1.5;
}

/* =========================== REVEAL ANIMATION =========================== */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(26px); transition: opacity var(--slow), transform var(--slow); }
  .reveal.in { opacity: 1; transform: none; }
  .reveal[data-d="1"]{ transition-delay:.08s; }
  .reveal[data-d="2"]{ transition-delay:.16s; }
  .reveal[data-d="3"]{ transition-delay:.24s; }
  .reveal[data-d="4"]{ transition-delay:.32s; }
  .reveal[data-d="5"]{ transition-delay:.40s; }
  /* entrance: staggered fade + a gentle rise toward the viewer along the same z-axis as hover.
     opacity is animated (not transitioned), so it also fades the box-shadow in WITH the tile —
     one smooth motion, no separate shadow pop. backwards fill keeps tiles hidden until their
     staggered delay; base .tile stays opacity:1 so nothing can get stuck hidden. */
  @keyframes tile-rise {
    from { opacity: 0; transform: perspective(520px) translateZ(-30px); }
    to   { opacity: 1; transform: perspective(520px) translateZ(0); }
  }
  .mosaic:not(.in) .tile { opacity: 0; }
  .mosaic.in .tile { animation: tile-rise 720ms cubic-bezier(.22,1,.36,1) backwards; }
}

/* utility */
.flush-r { margin-left: auto; }

/* =========================== TWEAKS PANEL =========================== */
.tweaks {
  position: fixed; right: 20px; bottom: 20px; z-index: 10000;
  width: 268px; background: var(--ink-2); color: var(--cream);
  border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0,0,0,.5);
  font-family: "IBM Plex Mono", monospace; display: none;
}
.tweaks.show { display: block; }
.tweaks-hd { display:flex; align-items:center; justify-content:space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.tweaks-hd .ttl { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--cream-hi); }
.tweaks-hd button { background: none; border: 0; color: var(--cream-mut); cursor: pointer; font-size: 1rem; line-height: 1; padding: 2px 4px; }
.tweaks-hd button:hover { color: var(--cream-hi); }
.tweaks-body { padding: 6px 16px 16px; display: flex; flex-direction: column; }
.tw-row { padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
.tw-row:last-child { border-bottom: 0; }
.tw-row .lab { font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--cream-mut); display:block; margin-bottom: 9px; }
.seg { display: flex; gap: 0; border: 1px solid var(--line); }
.seg button {
  flex: 1; background: transparent; border: 0; color: var(--cream-dim);
  font-family: inherit; font-size: .64rem; letter-spacing: .12em; text-transform: uppercase;
  padding: 8px 4px; cursor: pointer; border-right: 1px solid var(--line); transition: background .2s, color .2s;
}
.seg button:last-child { border-right: 0; }
.seg button.on { background: var(--brass); color: var(--ink); }
:root[data-accent="0"] .seg button.on { background: var(--cream); color: var(--ink); }
/* 5-up segmented control (Hero photo) packs tighter */
.seg.seg-5 button { padding: 8px 2px; letter-spacing: .06em; }

/* =========================== HERO PHOTO =========================== */
/* Five archival candidates (Tweaks → Hero photo), all from the William P. Gottlieb
   session of Garner at the piano, NYC 1946–48 — Library of Congress, public domain.
   Two independent axes: which photograph (data-photo) and how it's graded (data-grade).
   Monochrome-disciplined throughout; brass is a warm overlay, never load-bearing. */
.hero-figure .grade { /* extra cinematic edge-darkening, off unless a grade calls for it */
  position: absolute; inset: 0; opacity: 0; transition: opacity .55s ease; pointer-events: none;
  background: radial-gradient(125% 115% at 63% 30%, transparent 26%, rgba(7,8,10,.6) 100%);
}
#hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover;
  object-position: 50% 32%;
  transition: filter .55s ease, transform .7s cubic-bezier(.2,.7,.2,1), object-position .7s ease;
  transform-origin: 60% 55%; will-change: filter, transform; background: #16181c;
}

/* --- Axis 1: which photograph (framing tuned per image so the face sits clear of the copy) --- */
.hero[data-photo="trio"]  #hero-img { object-position: 52% 26%; }  /* e — with bassist, hands on keys */
.hero[data-photo="joy"]   #hero-img { object-position: 50% 24%; }  /* a — head back, mid-laugh */
.hero[data-photo="smile"] #hero-img { object-position: 38% 26%; }  /* g — warm smile, club */
.hero[data-photo="keys"]  #hero-img { object-position: 50% 18%; transform: scale(1.04); }  /* c — vertical, at the keyboard */
.hero[data-photo="stage"] #hero-img { object-position: 72% 42%; }  /* d — wide, ornate scrollwork */

/* --- Axis 2: grade/treatment --- */
.hero[data-grade="brass"]   #hero-img { filter: grayscale(.92) contrast(1.04); }
.hero[data-grade="brass"]   .tint  { opacity: calc(var(--accent-on) * .32); }

.hero[data-grade="mono"]    #hero-img { filter: grayscale(1) contrast(1.12) brightness(1.04); }
.hero[data-grade="mono"]    .tint  { opacity: 0; }

.hero[data-grade="duotone"] #hero-img { filter: url(#duo-brass) contrast(1.02); }
.hero[data-grade="duotone"] .tint  { opacity: 0; }

.hero[data-grade="deep"]    #hero-img { filter: grayscale(.7) contrast(1.17) brightness(.8); }
.hero[data-grade="deep"]    .tint  { opacity: calc(var(--accent-on) * .2); }
.hero[data-grade="deep"]    .grade { opacity: 1; }
