/* ═══════════════════════════════════════════════════════════════════════════
   TTURP — THEME "ANALOG"  ·  a listening room at night
   espresso ground · bone paper · one brass metal · Newsreader + Instrument Sans

   This is not a palette swap. The default theme is already warm-dark, so the
   difference here is compositional, and it is deliberate:

   1. The hero is a TITLE PAGE, not a photo banner. The photograph leaves the
      background and becomes a bordered plate below the type (order swap on
      .page-head.has-photo). Type is centred and ~1.8x the default's display
      size; the page opens on paper, not on an image.
   2. Depth comes from a four-step value ladder, not from black halos. Cards
      are separated by lightness + a visible hairline; the shadow only pools
      under the object.
   3. Surfaces are large and soft (18/26px), inner padding is 20–28px, and
      sections breathe at 96–112px instead of 34–56px.
   4. Metadata is Instrument Sans with tabular numerals; prose is Newsreader.
   5. One metal. --accent and --gold are the same brass value, so the 41 flag
      artworks are the only saturated colour on the page.

   Every rule is scoped to [data-theme="analog"]. No hover transform, scale or
   bounce anywhere: motion is colour and 1–2px only (see the end of the file).
   ═══════════════════════════════════════════════════════════════════════════ */

/* ───────────────────────────────────────────────────────────────────────────
   1. TOKENS
   ─────────────────────────────────────────────────────────────────────────── */
[data-theme="analog"] {
  /* ground — a value ladder, each step ~3.3 L* above the last */
  --bg:          #17110F;
  --bg-alt:      #1F1715;
  --paper:       #26201C;
  --surface:     #2E2622;
  --hero-top:    #1B1412;

  /* ink */
  --ink:         #F4EDE2;   /* 16.1:1 on bg */
  --ink-soft:    #B9AA99;   /*  8.3:1 on bg — a real secondary, not a legible-ish grey */
  --line:        #4A3C35;   /*  1.55:1 on paper — a hairline you can actually see */
  --on-accent:   #1A1310;   /* 7.9:1 on brass */

  /* one metal; --gold is the same value on purpose */
  --accent:      #C9A468;   /* 8.0:1 on bg */
  --accent-soft: #E0BF88;
  --gold:        #C9A468;

  /* depth — a pool under the object, not a halo around it (negative spread) */
  --shadow:      0 1px 2px rgba(10,6,5,.55), 0 14px 28px -16px rgba(10,6,5,.72);
  --shadow-lift: 0 2px 4px rgba(10,6,5,.50), 0 26px 48px -22px rgba(10,6,5,.80);

  /* geometry — a system of four */
  --radius:      18px;
  --radius-lg:   26px;
  --radius-sm:   12px;
  --radius-pill: 999px;

  /* type */
  --serif:   'Newsreader', Georgia, 'Times New Roman', serif;
  --display: 'Newsreader', Georgia, serif;
  --sans:    'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono:    'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --body-weight: 500;
  --fs-min: 0px;

  /* rhythm */
  --measure: 62ch;
  --wrap:    1240px;
  --gutter:  clamp(1.25rem, 4vw, 2.5rem);
  --sec-y:   clamp(4.5rem, 3rem + 5vw, 7rem);

  /* one grain field, alpha baked in, no blend mode */
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.09 0'/></filter><rect width='140' height='140' filter='url(%23g)'/></svg>");

  /* rights chips — the one place colour carries meaning */
  --era-pd-bg:   rgba(169,193,147,.10);  --era-pd-fg:   #A9C193;
  --era-gray-bg: rgba(217,186,124,.10);  --era-gray-fg: #D9BA7C;
  --era-risk-bg: rgba(226,154,140,.10);  --era-risk-fg: #E29A8C;
  --era-unk-bg:  rgba(185,170,153,.08);  --era-unk-fg:  #B9AA99;

  /* culture card. The name is still CENTRED (moving it needs a template and a
     site.js change), so the scrim has to stay >=.44 over the whole card or the
     white name fails on pale flags — Japan, Cyprus, Poland. Weighted to the
     bottom instead of flat, so the top of each flag clears a little. */
  --card-scrim:       linear-gradient(180deg, rgba(13,9,7,.50) 0%, rgba(13,9,7,.52) 52%, rgba(13,9,7,.80) 100%);
  --card-scrim-hover: linear-gradient(180deg, rgba(13,9,7,.44) 0%, rgba(13,9,7,.46) 52%, rgba(13,9,7,.74) 100%);
  --card-wash:  rgba(23,17,15,.58);
  --card-soft:  #B9AA99;
  --card-gold:  #D6B47A;

  color-scheme: dark;
}

[data-theme="analog"] {
  /* display type is deliberately far larger than the default's 78px cap:
     the title page is the theme's signature move */
  --fs-display: clamp(3.25rem, 1rem + 9vw, 9.5rem);      /* 52 → 152 */
  --fs-hero:    clamp(2.75rem, .9rem + 7.4vw, 7.5rem);   /* 44 → 120 */
  --fs-h2:      clamp(1.875rem, 1.35rem + 1.9vw, 2.75rem);
  --fs-h3:      clamp(1.125rem, 1.02rem + .45vw, 1.375rem);
  --fs-lede:    clamp(1.0625rem, 1rem + .35vw, 1.1875rem);
  --fs-body:    1.0625rem;
  --fs-meta:    .875rem;
  --fs-label:   .75rem;

  --lh-display: .94;
  --lh-head:    1.1;
  --lh-body:    1.68;
  --track-label: .2em;
}

/* ───────────────────────────────────────────────────────────────────────────
   2. BASE
   ─────────────────────────────────────────────────────────────────────────── */
[data-theme="analog"] body {
  font-family: var(--sans);
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: var(--lh-body);
  color: var(--ink);
  background-color: var(--bg);
  background-image: var(--grain);
  background-repeat: repeat;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

[data-theme="analog"] .wrap {
  max-width: var(--wrap);
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

[data-theme="analog"] a { color: var(--accent); }
[data-theme="analog"] a:hover { color: var(--accent-soft); }
[data-theme="analog"] em { font-family: var(--serif); }

[data-theme="analog"] ::selection {
  background: var(--accent);
  color: var(--on-accent);
}

[data-theme="analog"] :focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

[data-theme="analog"] h1,
[data-theme="analog"] h2,
[data-theme="analog"] h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.012em;
}

/* ───────────────────────────────────────────────────────────────────────────
   3. MASTHEAD
   ─────────────────────────────────────────────────────────────────────────── */
[data-theme="analog"] .site-head {
  background-color: rgba(23,17,15,.94);
  background-image: none;
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(1.1) blur(12px);
  backdrop-filter: saturate(1.1) blur(12px);
}

[data-theme="analog"] .head-inner {
  padding-top: 18px;
  padding-bottom: 18px;
}

[data-theme="analog"] .brand { gap: 14px; }

[data-theme="analog"] .brand-crest {
  width: 42px;
  height: 42px;
  box-shadow: 0 0 0 1px rgba(201,164,104,.42), 0 0 0 5px rgba(201,164,104,.06);
}

[data-theme="analog"] .brand-text {
  font-family: var(--sans);
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  line-height: 1.5;
  color: var(--ink);
}

[data-theme="analog"] .brand-text em {
  display: inline-block;
  font-family: var(--sans);
  font-style: normal;
  font-size: .6875rem;
  font-weight: 400;
  letter-spacing: .24em;
  color: var(--accent);
  margin-top: 2px;
}

[data-theme="analog"] .nav-search input {
  background-color: rgba(46,38,34,.55);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--ink);
  font-family: var(--sans);
  font-size: .8125rem;
  letter-spacing: .04em;
  padding: 0 18px;
  height: 42px;
  min-width: 190px;
}

[data-theme="analog"] .nav-search input:focus {
  border-color: var(--accent);
  background-color: var(--surface);
}

[data-theme="analog"] .theme-switch {
  border-radius: var(--radius-pill);
  border-color: var(--line);
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  min-height: 42px;
  padding: 0 18px;
}

[data-theme="analog"] .theme-switch:hover {
  color: var(--accent);
  border-color: var(--accent);
  background-color: rgba(201,164,104,.06);
}

/* the menu is Instrument Sans now: Newsreader at 18px is too delicate, and
   the default's scale(1.6) hover is replaced by a brass rule */
[data-theme="analog"] .main-nav {
  border-top: 1px solid var(--line);
  background-color: transparent;
  background-image: none;
}

[data-theme="analog"] .nav-inner {
  gap: clamp(1.5rem, 3vw, 2.75rem);
}

[data-theme="analog"] .main-nav a {
  font-family: var(--sans);
  font-size: .78125rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  min-height: 56px;
  padding: 0;
  border-bottom: 1px solid transparent;
  transform: none;
  transition: color .16s ease, border-color .16s ease;
}

[data-theme="analog"] .main-nav a:hover {
  color: var(--ink);
  transform: none;
  border-bottom-color: var(--accent);
  text-decoration: none;
}

[data-theme="analog"] .main-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

/* ───────────────────────────────────────────────────────────────────────────
   4. THE TITLE PAGE  (page-head + home hero)
   The single biggest structural move: type first, photograph as a plate.
   ─────────────────────────────────────────────────────────────────────────── */
[data-theme="analog"] .page-head {
  padding: clamp(3.5rem, 7vw, 6.5rem) 0 clamp(2.5rem, 5vw, 4rem);
  border-bottom: 0;
  background-color: transparent;
  background-image: none;
  text-align: center;
}

[data-theme="analog"] .page-head .wrap { max-width: 1080px; }

[data-theme="analog"] .page-head .crumbs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .3em;
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: clamp(1.25rem, 3vw, 2.25rem);
}

[data-theme="analog"] .page-head .crumbs a {
  color: var(--ink-soft);
  min-height: 0;
  letter-spacing: inherit;
  border-bottom: 1px solid transparent;
}

[data-theme="analog"] .page-head .crumbs a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
  text-decoration: none;
}

[data-theme="analog"] .page-head h1 {
  font-family: var(--display);
  font-size: var(--fs-display);
  font-weight: 400;
  line-height: .9;
  letter-spacing: -.035em;
  color: var(--ink);
  text-shadow: none;
  margin: 0;
}

[data-theme="analog"] .page-head .hsub {
  font-family: var(--serif);
  font-size: clamp(1.0625rem, .95rem + .6vw, 1.3125rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0;
  color: var(--accent);
  max-width: 48ch;
  margin: clamp(1rem, 2vw, 1.4rem) auto 0;
}

[data-theme="analog"] .page-head .lede {
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.62;
  color: var(--ink-soft);
  max-width: 64ch;
  margin: clamp(1.5rem, 2.5vw, 2rem) auto 0;
  text-align: left;
  text-shadow: none;
}

[data-theme="analog"] .page-head .lede + .lede { margin-top: 1rem; }

[data-theme="analog"] .page-head .stats-row {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 0;
  flex-wrap: wrap;
  margin-top: clamp(1.5rem, 3vw, 2rem);
  font-family: var(--sans);
  font-size: .8125rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-shadow: none;
}

[data-theme="analog"] .page-head .stats-row > span {
  padding: 0 clamp(1.25rem, 3vw, 2.25rem);
}

[data-theme="analog"] .page-head .stats-row > span + span {
  border-left: 1px solid var(--line);
}

[data-theme="analog"] .page-head .stats-row b {
  display: block;
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: -.01em;
  text-transform: none;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  margin-bottom: .15em;
}

/* ── has-photo: the photograph is unset as a background and re-mounted as
      a plate AFTER the type. DOM order is [colour, sweep, wrap]; flex + order
      reverses it without touching a template. */
[data-theme="analog"] .page-head.has-photo {
  --pad-b: clamp(2.5rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  padding: clamp(2.5rem, 5vw, 4.25rem) 0 var(--pad-b);
  background-color: transparent;
  background-image: none;
  overflow: hidden;
  isolation: isolate;
}

[data-theme="analog"] .page-head.has-photo > .wrap {
  order: 1;
  /* static so the plate caption resolves against the section, not this column;
     z-index still applies because .wrap is a flex item */
  position: static;
  z-index: 3;
  width: 100%;
}

[data-theme="analog"] .page-head.has-photo > .hero-colour {
  order: 2;
  position: relative;
  inset: auto;
  z-index: 1;
  display: block;
  width: min(1160px, calc(100% - 2 * var(--gutter)));
  margin: clamp(1.75rem, 3vw, 2.5rem) auto 0;
  aspect-ratio: 2.95 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  clip-path: none;
  animation: none;
  filter: saturate(.86) contrast(1.02);
  background-image:
    linear-gradient(180deg, rgba(23,17,15,.02) 34%, rgba(23,17,15,.62) 100%),
    var(--hero-colour);
  background-size: cover, cover;
  background-position: center 42%, center 42%;
  box-shadow: inset 0 0 0 1px rgba(244,237,226,.14),
              0 40px 70px -50px rgba(0,0,0,.95);
}

[data-theme="analog"] .page-head.has-photo > .hero-sweep { display: none; }

[data-theme="analog"] .page-head.has-photo h1,
[data-theme="analog"] .page-head.has-photo .crumbs,
[data-theme="analog"] .page-head.has-photo .crumbs a,
[data-theme="analog"] .page-head.has-photo .lede,
[data-theme="analog"] .page-head.has-photo .stats-row,
[data-theme="analog"] .page-head.has-photo .stats-row b {
  text-shadow: none;
}

[data-theme="analog"] .page-head.has-photo h1 { color: var(--ink); }
[data-theme="analog"] .page-head.has-photo .hsub { color: var(--accent); }

/* the honesty chip becomes a plate caption, bottom-right, inside the frame */
[data-theme="analog"] .page-head.has-photo .hero-chip {
  position: absolute;
  right: max(1.25rem, calc((100% - 1160px) / 2 + 1.5rem));
  bottom: calc(var(--pad-b) + 1.5rem);
  z-index: 4;
  display: inline-block;
  font-family: var(--sans);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink);
  background-color: rgba(23,17,15,.74);
  background-image: none;
  border: 1px solid rgba(201,164,104,.45);
  border-radius: var(--radius-pill);
  padding: 7px 14px;
  opacity: 1;
  animation: none;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

/* ── the home hero gets the same title-page voice ───────────────────────── */
[data-theme="analog"] .hero {
  padding: clamp(4.5rem, 9vw, 8rem) 0 clamp(3.5rem, 7vw, 6rem);
  border-bottom: 0;
  background-color: transparent;
  background-image: none;
  text-align: center;
}

[data-theme="analog"] .hero .wrap { max-width: 1000px; }

[data-theme="analog"] .hero .kicker {
  font-family: var(--sans);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: .24em;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

[data-theme="analog"] .hero h1 {
  font-family: var(--display);
  font-size: var(--fs-hero);
  font-weight: 400;
  line-height: var(--lh-display);
  letter-spacing: -.035em;
  margin-bottom: 1.5rem;
}

[data-theme="analog"] .hero h1 .t { color: var(--accent); }

[data-theme="analog"] .hero p.sub {
  font-family: var(--serif);
  font-size: clamp(1.125rem, 1rem + .7vw, 1.375rem);
  font-style: italic;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 auto 2.5rem;
}

[data-theme="analog"] .hero-stats { justify-content: center; gap: 0; }

[data-theme="analog"] .hero-stats .stat { padding: 0 clamp(1.25rem, 3vw, 2.25rem); }
[data-theme="analog"] .hero-stats .stat + .stat { border-left: 1px solid var(--line); }

[data-theme="analog"] .hero-stats .stat .n {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

[data-theme="analog"] .hero-stats .stat .l {
  font-family: var(--sans);
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ───────────────────────────────────────────────────────────────────────────
   5. SECTION RHYTHM
   Templates carry inline padding on several sections; those are overridden
   with !important on the block axis only.
   ─────────────────────────────────────────────────────────────────────────── */
[data-theme="analog"] .sec {
  padding-block: var(--sec-y) !important;
  padding-inline: 0;
}

[data-theme="analog"] .sec.alt {
  background-color: var(--bg-alt);
  background-image: var(--grain);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

[data-theme="analog"] .section-head { margin-bottom: clamp(2rem, 4vw, 3rem); }

[data-theme="analog"] .section-head .kicker,
[data-theme="analog"] .kicker {
  font-family: var(--sans);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .9rem;
}

[data-theme="analog"] .section-head h2 {
  font-family: var(--serif);
  font-size: var(--fs-h2);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.02em;
  max-width: 24ch;
}

[data-theme="analog"] .rail-note {
  font-family: var(--sans);
  font-size: var(--fs-lede);
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 62ch;
  margin-top: 1rem;
}

/* about-the-hearth: section head in the margin, prose in the measure — a
   two-column editorial spread instead of a stacked block */
[data-theme="analog"] #about-hearth .wrap {
  display: grid;
  grid-template-columns: minmax(200px, 300px) minmax(0, 1fr);
  column-gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

[data-theme="analog"] #about-hearth .section-head {
  grid-column: 1;
  grid-row: 1;
  margin-bottom: 0;
}

[data-theme="analog"] #about-hearth .section-head h2 { font-size: clamp(1.625rem, 2vw, 2.125rem); }
[data-theme="analog"] #about-hearth .section-head .kicker { margin-bottom: 1rem; }

[data-theme="analog"] #about-hearth .wrap > .lede {
  grid-column: 2;
  grid-row: 1;
  font-family: var(--sans);
  font-size: var(--fs-lede);
  font-weight: 400;
  line-height: 1.8;
  color: var(--ink-soft);
  max-width: 64ch;
  margin: 0;
}

[data-theme="analog"] #about-hearth .wrap > .hsub {
  grid-column: 2;
  grid-row: 2;
  font-family: var(--sans);
  font-size: .75rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 1.75rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  max-width: 64ch;
}

[data-theme="analog"] .track-card {
  border-radius: var(--radius);
  background-color: var(--paper);
  border: 1px solid var(--line);
  box-shadow: none;
  padding: 12px;
  gap: 14px;
}

[data-theme="analog"] .track-card:hover { border-color: var(--accent); }

[data-theme="analog"] .track-card .thumb { border-radius: var(--radius-sm); }

[data-theme="analog"] .track-card .tc-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.35;
}

[data-theme="analog"] .track-card .tc-meta,
[data-theme="analog"] .track-card .era-chip {
  font-family: var(--sans);
  font-variant-numeric: tabular-nums;
}

/* ── the recordings shelf ──────────────────────────────────────────────── */
[data-theme="analog"] .live-grid {
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.25rem) clamp(1.25rem, 2.4vw, 1.75rem);
  align-items: stretch;
}

/* a sleeve standing on a shelf: equal-height cards in each row, the image
   cropped nearer to a sleeve, and a hairline lip under every card so the row
   reads as one shelf rather than a set of floating boxes */
[data-theme="analog"] .live-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: visible;
  background-color: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 10px 10px 0;
  box-shadow: 0 24px 34px -28px rgba(0,0,0,.95);
  transition: border-color .16s ease, box-shadow .16s ease;
}

[data-theme="analog"] .live-card::after {
  content: "";
  position: absolute;
  left: -7px;
  right: -7px;
  bottom: -13px;
  height: 1px;
  background-image: linear-gradient(90deg,
    transparent 0, var(--line) 10%, var(--line) 90%, transparent 100%);
}

/* the thumbnail stays 16:9: these frames carry baked-in captions at their
   edges, so cropping them to sleeve proportions would cut the artist names
   off. The shelf impression comes from the frame and the row, not the crop. */

[data-theme="analog"] .live-card:hover {
  border-color: var(--accent);
  box-shadow: 0 30px 40px -28px rgba(0,0,0,1);
}

[data-theme="analog"] .live-card .yt-lite,
[data-theme="analog"] .live-card .yt-lite::after {
  border-radius: 17px;
}

[data-theme="analog"] .live-card .yt-lite { overflow: hidden; }

[data-theme="analog"] .live-card .lc-body {
  padding: 1.15rem .85rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  flex: 1 1 auto;
}

[data-theme="analog"] .live-card h3 {
  font-family: var(--serif);
  font-size: var(--fs-h3);
  font-weight: 400;
  line-height: 1.32;
  letter-spacing: -.005em;
}

[data-theme="analog"] .live-card h3 a { color: var(--ink); }
[data-theme="analog"] .live-card h3 a:hover { color: var(--accent); text-decoration: none; }

[data-theme="analog"] .live-card .lc-culture {
  font-family: var(--sans);
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  order: -1;
  margin-top: 0;
}

[data-theme="analog"] .live-card .yt-badge {
  align-self: flex-start;
  font-family: var(--sans);
  font-size: .6875rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  padding: 3px 9px;
}

/* ───────────────────────────────────────────────────────────────────────────
   7. FIGURES ON RECORD
   ─────────────────────────────────────────────────────────────────────────── */
[data-theme="analog"] .rail-head { align-items: baseline; }

[data-theme="analog"] .rail-btn {
  border-radius: var(--radius-pill);
  background-color: transparent;
  border-color: var(--line);
}

[data-theme="analog"] .rail-btn:hover { background-color: var(--surface); border-color: var(--accent); }

[data-theme="analog"] .figure-grid { gap: 22px; padding-bottom: 1.5rem; }

[data-theme="analog"] .figure-card {
  flex-basis: 260px;
  border-radius: var(--radius-lg);
  border-color: var(--line);
  box-shadow: var(--shadow);
  transition: border-color .16s ease;
}

[data-theme="analog"] .figure-card:hover { border-color: var(--accent); }
[data-theme="analog"] .figure-card.is-active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }

[data-theme="analog"] .figure-card figcaption { padding: 1.1rem 1.1rem 1.25rem; gap: .3rem; }

[data-theme="analog"] .figure-card strong {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.1875rem;
  letter-spacing: -.005em;
}

[data-theme="analog"] .figure-card .f-role {
  font-family: var(--sans);
  font-size: .6875rem;
  letter-spacing: .18em;
  color: var(--accent);
}

[data-theme="analog"] .figure-card .f-count {
  font-family: var(--sans);
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
}

/* ───────────────────────────────────────────────────────────────────────────
   8. GALLERY — fewer, larger plates
   ─────────────────────────────────────────────────────────────────────────── */
[data-theme="analog"] .pgallery {
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-top: 2rem;
}

[data-theme="analog"] .pg-shot {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--surface);
  transition: border-color .16s ease;
}

[data-theme="analog"] .pg-shot:hover,
[data-theme="analog"] .pg-shot:focus-visible { border-color: var(--accent); }

[data-theme="analog"] .pg-shot img {
  border-radius: calc(var(--radius) - 1px);
  aspect-ratio: 4 / 3;
  filter: grayscale(.2) contrast(1.02);
  transition: filter .3s ease;
}

[data-theme="analog"] .pg-shot:hover img { filter: grayscale(0) contrast(1.04); }

[data-theme="analog"] .pg-lead img { aspect-ratio: 21 / 9; }

[data-theme="analog"] .pg-cap {
  font-family: var(--sans);
  font-size: .75rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

[data-theme="analog"] .pg-note {
  font-family: var(--sans);
  font-size: .8125rem;
  color: var(--ink-soft);
  margin-top: 1.25rem;
}

/* ───────────────────────────────────────────────────────────────────────────
   9. CONTROLS — pills; SURFACES — soft rectangles
   ─────────────────────────────────────────────────────────────────────────── */
[data-theme="analog"] .btn {
  border-radius: var(--radius-pill);
  background-color: var(--accent);
  border: 1px solid var(--accent);
  color: var(--on-accent);
  font-family: var(--sans);
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 13px 26px;
}

[data-theme="analog"] .btn:hover {
  background-color: var(--accent-soft);
  border-color: var(--accent-soft);
  color: var(--on-accent);
}

[data-theme="analog"] .filter-bar {
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  background-color: var(--paper);
  box-shadow: none;
  padding: 1.25rem 1.5rem;
}

[data-theme="analog"] .filter-bar .fb-text { font-family: var(--sans); font-size: 1rem; }
[data-theme="analog"] .filter-bar .fb-text strong { font-family: var(--serif); font-weight: 400; font-size: 1.375rem; }

[data-theme="analog"] .filter-bar .fb-clear {
  border-radius: var(--radius-pill);
  border: 1px solid var(--accent);
  background-color: var(--accent);
  color: var(--on-accent);
  font-family: var(--sans);
  font-size: .8125rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 12px 24px;
}

[data-theme="analog"] .filter-bar .fb-clear:hover {
  background-color: var(--accent-soft);
  border-color: var(--accent-soft);
}

[data-theme="analog"] .playlist-player {
  background-color: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 30px 44px -34px rgba(0,0,0,.9);
}

[data-theme="analog"] .pl-head { gap: 1rem; margin-bottom: 1.1rem; align-items: baseline; }

[data-theme="analog"] .pl-head strong {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: -.005em;
}

[data-theme="analog"] .pl-note {
  font-family: var(--sans);
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

[data-theme="analog"] .embed-wrap {
  max-width: 880px;
  margin-inline: auto;
  border-radius: var(--radius);
  overflow: hidden;
}

[data-theme="analog"] .label-fig {
  border-radius: var(--radius-lg);
  border-color: var(--line);
  background-color: var(--paper);
  padding: 14px;
  box-shadow: var(--shadow);
}

[data-theme="analog"] .label-fig img { border-radius: var(--radius-sm); background-color: var(--surface); }

[data-theme="analog"] .meta-list > div { border-color: var(--line); padding: 1rem 0; }

[data-theme="analog"] .meta-list dt {
  font-family: var(--sans);
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-top: 3px;
}

[data-theme="analog"] .meta-list dd {
  font-family: var(--serif);
  font-size: 1.0625rem;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

[data-theme="analog"] .era-chip {
  border: 1px solid transparent;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .6875rem;
}

[data-theme="analog"] .disc-chip {
  border-radius: var(--radius-pill);
  border-color: var(--line);
  background-color: transparent;
  font-family: var(--sans);
  font-size: .8125rem;
}

[data-theme="analog"] .disc-chip.is-on {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

[data-theme="analog"] .disc-grid { gap: clamp(1rem, 2vw, 1.5rem); }

[data-theme="analog"] .disc-card {
  border-radius: var(--radius);
  border-color: var(--line);
  background-color: var(--paper);
  box-shadow: none;
}

[data-theme="analog"] .disc-card:hover { border-color: var(--accent); }

[data-theme="analog"] .dc-img { border-radius: var(--radius) var(--radius) 0 0; background-color: var(--surface); }

[data-theme="analog"] .dc-cap { padding: 1rem 1.1rem 1.15rem; }

[data-theme="analog"] .dc-cap strong { font-family: var(--serif); font-weight: 400; font-size: .9375rem; }

[data-theme="analog"] .dc-meta { font-family: var(--sans); font-variant-numeric: tabular-nums; letter-spacing: .04em; }

/* ───────────────────────────────────────────────────────────────────────────
   10. PROSE
   ─────────────────────────────────────────────────────────────────────────── */
[data-theme="analog"] .prose { max-width: 66ch; padding: clamp(3rem, 6vw, 5rem) 0; }

[data-theme="analog"] .prose h1 {
  font-family: var(--serif);
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -.025em;
}

[data-theme="analog"] .prose .lede {
  font-family: var(--serif);
  font-size: 1.375rem;
  font-style: italic;
  line-height: 1.55;
  color: var(--accent);
  margin-bottom: 2rem;
}

[data-theme="analog"] .prose h2 {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: -.015em;
  margin: 3rem 0 1rem;
}

[data-theme="analog"] .prose h3 {
  font-family: var(--sans);
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin: 2.25rem 0 .75rem;
}

[data-theme="analog"] .prose p { font-size: 1.0625rem; line-height: 1.8; margin-bottom: 1.15rem; }

[data-theme="analog"] .prose blockquote {
  border-left: 2px solid var(--accent);
  padding: 0 0 0 1.5rem;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--ink);
}

[data-theme="analog"] .prose .divider { border-top-color: var(--line); margin: 2.5rem 0; }

[data-theme="analog"] .prose code {
  background-color: var(--surface);
  border-color: var(--line);
  border-radius: 6px;
  font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
}

[data-theme="analog"] .prose pre { border-radius: var(--radius); background-color: var(--surface); }

/* ───────────────────────────────────────────────────────────────────────────
   11. FOOTER
   ─────────────────────────────────────────────────────────────────────────── */
[data-theme="analog"] .site-foot {
  background-color: var(--bg-alt);
  background-image: var(--grain);
  border-top: 1px solid var(--line);
  padding: clamp(3rem, 5vw, 4.5rem) 0 1.5rem;
  margin-top: 0;
}

[data-theme="analog"] .foot-inner { gap: 3rem; }

[data-theme="analog"] .foot-brand { max-width: 380px; }

[data-theme="analog"] .foot-brand strong {
  font-family: var(--serif);
  font-size: 1.375rem;
  font-weight: 400;
  letter-spacing: -.01em;
  line-height: 1.25;
}

[data-theme="analog"] .foot-brand p {
  font-family: var(--sans);
  font-size: .875rem;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-top: .75rem;
}

[data-theme="analog"] .foot-links {
  gap: .65rem;
  font-family: var(--sans);
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

[data-theme="analog"] .foot-links a { color: var(--ink-soft); }
[data-theme="analog"] .foot-links a:hover { color: var(--accent); text-decoration: none; }

[data-theme="analog"] .foot-legal {
  border-top-color: var(--line);
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  font-family: var(--sans);
  font-size: .75rem;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* ───────────────────────────────────────────────────────────────────────────
   12. MOTION — colour and 1–2px only. No scale, no bounce, no glow.
   ─────────────────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  [data-theme="analog"] *,
  [data-theme="analog"] *::before,
  [data-theme="analog"] *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  /* base css hides the hero layers under reduced motion; the plate is content
     here, so it must stay visible (it simply stops animating — it never did) */
  [data-theme="analog"] .page-head.has-photo > .hero-colour {
    display: block;
    animation: none;
    clip-path: none;
  }
  [data-theme="analog"] .page-head.has-photo .hero-chip {
    display: inline-block;
    opacity: 1;
    animation: none;
  }
}

/* ───────────────────────────────────────────────────────────────────────────
   13. SMALL SCREENS
   ─────────────────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  [data-theme="analog"] #about-hearth .wrap {
    grid-template-columns: 1fr;
    row-gap: 1.5rem;
  }
  [data-theme="analog"] #about-hearth .section-head,
  [data-theme="analog"] #about-hearth .wrap > .lede,
  [data-theme="analog"] #about-hearth .wrap > .hsub {
    grid-column: 1;
    grid-row: auto;
  }
}

@media (max-width: 680px) {
  [data-theme="analog"] .page-head,
  [data-theme="analog"] .hero { text-align: left; }

  [data-theme="analog"] .page-head .crumbs,
  [data-theme="analog"] .page-head .stats-row,
  [data-theme="analog"] .hero-stats { justify-content: flex-start; }

  [data-theme="analog"] .page-head .hsub { margin-left: 0; margin-right: 0; max-width: none; }
  [data-theme="analog"] .page-head .lede { margin-left: 0; margin-right: 0; }
  [data-theme="analog"] .hero p.sub { margin-left: 0; }

  [data-theme="analog"] .page-head .stats-row > span:first-child { padding-left: 0; }

  [data-theme="analog"] .page-head.has-photo > .hero-colour {
    aspect-ratio: 16 / 10;
    border-radius: var(--radius);
    width: calc(100% - 2rem);
  }

  [data-theme="analog"] .page-head.has-photo .hero-chip {
    right: 1.5rem;
    bottom: calc(var(--pad-b) + 1rem);
    font-size: .625rem;
    padding: 5px 10px;
  }

  [data-theme="analog"] .brand-text { font-size: .78125rem; letter-spacing: .12em; }
  [data-theme="analog"] .brand-text em { font-size: .75rem; letter-spacing: .16em; }

  [data-theme="analog"] .pgallery { grid-template-columns: repeat(2, 1fr); }
  [data-theme="analog"] .pg-lead img { aspect-ratio: 16 / 9; }
  [data-theme="analog"] .live-grid { grid-template-columns: 1fr; }
  [data-theme="analog"] .playlist-player { padding: 1rem; border-radius: var(--radius); }
}

@media print {
  [data-theme="analog"] body { background-image: none; }
}
