/* ============================================================================
   site-theme.css - the public site's design tokens (redesign step 2, 2026-11-17)
   Named "theme", not "tokens": .gitignore blocks any *token* file name as a secrets guard, and that guard stays.

   Direction C, "After Hours, revised", approved by the owner on 2026-11-17
   (docs/design/2026-11-17-OZF2-Refresh/PROPOSAL.md). The values come from the approved mock-up
   (proposal/c/c.css: B's :root plus the "C revisions" block), renamed from --b-* / --c-* to --site-*.

   Rules:
   - Every value a site component uses is a --site-* token from this file. A missing value is added here
     first, never written raw in a component (the controller's DESIGN-RULES 1, applied to the site).
   - This file is the site's. It does NOT import or change the controller's --c4-* tokens; the tools keep
     their own faces and colours (deck A amber, deck B sky, red only for an alarm), and the site never
     uses those hues.
   - Dark only (owner, 2026-11-03).
   - Fonts are self-hosted from assets/fonts (no Google request): Inter Tight and JetBrains Mono, which the
     site and the tools already ship, and Instrument Serif (SIL OFL 1.1, Fontsource 5.3.0, downloaded with
     the owner's OK on 2026-11-17). Each has a latin and a latin-ext face, so accented titles (Malecón,
     Paŝu, ÉLECTRIQUES) never fall back to another font.
   ========================================================================= */

/* ---- fonts ---- */
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../assets/fonts/instrument-serif-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../assets/fonts/instrument-serif-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("../assets/fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("../assets/fonts/instrument-serif-latin-ext-400-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* Instrument Serif has no Esperanto circumflex consonants (Ĉĉ Ĝĝ Ĥĥ Ĵĵ Ŝŝ), used in Paŝu en la Lumon and Neniu
   Turniĝo Reen; measured 2026-11-17 with CDP getPlatformFontsForNode, they fell back to Georgia. These ten letters
   come from Noto Serif Display (SIL OFL), condensed to width 62.5 to sit with Instrument Serif. The family is
   named "Instrument Serif" and limited by unicode-range, so every other glyph stays Instrument Serif. Owner choice
   "B", 2026-11-17. */
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../assets/fonts/noto-serif-display-esperanto-400-normal.woff2") format("woff2");
  unicode-range: U+0108-0109, U+011C-011D, U+0124-0125, U+0134-0135, U+015C-015D; }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("../assets/fonts/noto-serif-display-esperanto-400-italic.woff2") format("woff2");
  unicode-range: U+0108-0109, U+011C-011D, U+0124-0125, U+0134-0135, U+015C-015D; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../assets/fonts/inter-tight-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../assets/fonts/inter-tight-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../assets/fonts/inter-tight-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../assets/fonts/inter-tight-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../assets/fonts/inter-tight-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../assets/fonts/inter-tight-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../assets/fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../assets/fonts/jetbrains-mono-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  color-scheme: dark;

  /* ---- colour: surfaces ---- */
  --site-surface-night: #0b0a09;          /* page */
  --site-surface-smoke: #15130f;          /* bands, cards */
  --site-surface-raised: #1e1b17;         /* controls, rows on hover */
  --site-surface-scrim: rgba(11, 10, 9, 0.72);
  --site-surface-scrim-strong: rgba(11, 10, 9, 0.9);
  --site-line: rgba(255, 255, 255, 0.12);
  --site-line-strong: rgba(255, 255, 255, 0.28);
  --site-btn-face: rgba(255, 255, 255, 0.04);
  --site-btn-face-hover: rgba(255, 255, 255, 0.1);

  /* ---- colour: ink. Contrast (WCAG 2) on night / smoke / raised ---- */
  --site-ink: #efe8dd;                    /* 16.3 / 15.3 / 14.1 */
  --site-ink-2: #b9b0a3;                  /*  9.2 /  8.7 /  8.0 */
  --site-ink-3: #8a8276;                  /*  5.2 /  4.9 /  4.5 - small text only on night or smoke */
  --site-ink-inverse: #0b0a09;            /* on ink or lamplight fills: 16.3 / 10.0 */

  /* ---- colour: accent ---- */
  --site-lamp: #d9b27c;                   /* hover, focus ring, wordmark 1Ø4, the one italic word: never a fill */
  --site-rel: #296297;                    /* per release, set inline from release palette.primary; decoration only */
  --site-rel-2: #1d91b9;                  /* per release secondary; decoration only */

  /* ---- type ---- */
  --site-font-display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --site-font-ui: "Inter Tight", "Inter", system-ui, sans-serif;
  --site-font-data: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --site-type-hero: clamp(3.5rem, 2rem + 8vw, 9.5rem);
  --site-type-d1: clamp(2.75rem, 1.6rem + 4.6vw, 6rem);
  --site-type-d2: clamp(2rem, 1.4rem + 2.4vw, 3.5rem);
  --site-type-d3: clamp(1.5rem, 1.2rem + 1vw, 2.125rem);
  --site-type-lead: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem);
  --site-type-body: 1rem;                 /* 16 px minimum */
  --site-type-small: 0.875rem;
  --site-type-label: 0.75rem;
  --site-type-tag: 0.625rem;              /* placeholder and 1Ø4 tags only */
  --site-track-label: 0.16em;
  --site-track-button: 0.06em;
  --site-weight-body: 400;
  --site-weight-ui: 500;
  --site-weight-strong: 600;
  --site-leading-tight: 0.95;
  --site-leading-body: 1.6;
  --site-measure: 65ch;

  /* ---- space: 4 px base ---- */
  --site-s1: 4px;
  --site-s2: 8px;
  --site-s3: 12px;
  --site-s4: 16px;
  --site-s5: 24px;
  --site-s6: 32px;
  --site-s7: 48px;
  --site-s8: 64px;
  --site-s9: 96px;
  --site-s10: 144px;
  --site-gutter: clamp(16px, 4vw, 56px);
  --site-section: clamp(64px, 10vw, 144px);

  /* ---- size ---- */
  --site-size-nav: 64px;
  --site-size-player: 56px;
  --site-size-hit: 44px;                  /* buttons, play, menu, slide segments; chips and toggles use --site-size-chip */
  --site-size-chip: 36px;
  --site-size-cover-sm: 40px;
  --site-size-visualiser: 160px;          /* the player bar's spectrum strip (width) */
  --site-size-visualiser-h: 28px;
  --site-size-wall-tile: 72px;
  --site-size-wall-tile-phone: 48px;
  --site-size-max: 1440px;
  --site-size-hairline: 1px;
  --site-size-focus: 2px;
  --site-size-focus-offset: 3px;
  --site-size-shelf-card: clamp(200px, 22vw, 300px);
  --site-size-slide-cover: 420px;

  /* ---- radius, shadow ---- */
  --site-radius-1: 2px;                   /* buttons, chips, tags, thumbnails: as the tools */
  --site-radius-2: 4px;                   /* covers, panels */
  --site-radius-round: 999px;             /* the round play control only */
  --site-lift: 0 24px 48px -16px rgba(0, 0, 0, 0.75), 0 2px 6px rgba(0, 0, 0, 0.5);
  --site-lift-hero: 0 24px 80px rgba(0, 0, 0, 0.55);

  /* ---- imagery ---- */
  --site-slide-blur: 10px;                /* home slide: the sleeve as background */
  --site-slide-bright: 0.74;
  --site-intro-bright: 0.82;              /* home intro portrait, so the corner facts and lead read over it */
  --site-ambient-blur: 48px;              /* release page: its own sleeve as light */
  --site-grain: url("../assets/img/noise-transparent.png");

  /* ---- motion (all off under prefers-reduced-motion) ---- */
  --site-dur-fast: 140ms;
  --site-dur-med: 320ms;
  --site-dur-fade: 1200ms;                /* hero crossfade, a fader move */
  --site-dur-slide: 7000ms;               /* hero dwell */
  --site-shadow-text: 0 2px 16px rgba(0, 0, 0, 0.7);  /* a caption over a photo */
  --site-dur-drift: 14000ms;              /* a release scene's slow push-in */
  --site-ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  /* ---- step 3: values the components need (added here first, never raw in site.css) ---- */
  --site-night-a25: rgba(11, 10, 9, 0.25);
  --site-night-a35: rgba(11, 10, 9, 0.35);
  --site-night-a50: rgba(11, 10, 9, 0.5);
  --site-night-a75: rgba(11, 10, 9, 0.75);
  --site-night-a85: rgba(11, 10, 9, 0.85);
  --site-night-a92: rgba(11, 10, 9, 0.92);
  --site-white-a02: rgba(255, 255, 255, 0.02);
  --site-white-a05: rgba(255, 255, 255, 0.05);
  --site-white-a07: rgba(255, 255, 255, 0.07);
  --site-type-track: 1.0625rem;
  --site-type-row: 1.5rem;
  --site-type-ghost: clamp(6rem, 14vw, 16rem);
  --site-size-icon: 14px;
  --site-size-play-sm: 36px;
  --site-size-thumb: 56px;                /* list rows */
  --site-size-thumb-lg: 72px;             /* pager */
  --site-size-thumb-xs: 28px;             /* stacked mini covers */
  --site-size-mix-art: 88px;              /* mix card artwork, compact */
  --site-size-mix-mini: 60px;             /* Mixcloud's mini player height */
  --site-size-mix-full: 120px;            /* Mixcloud's standard player height */
  --site-size-toc: 232px;                 /* a feature's contents rail (Features, 2026-11-19) */
  --site-size-yt-dock: 380px;             /* the docked YouTube player while reading */
  --site-size-fn-sheet: 680px;            /* a footnote opened in place */
  --site-size-progress: 3px;              /* the reading-progress line under the nav */
  --site-size-listen: 22px;               /* the listen button beside a title in the text */
  --site-size-rel-rule: 96px;
  --site-size-rel-rule-h: 3px;
  --site-size-break-h: min(62vh, 620px);  /* a story break's height */
  --site-size-break-h-phone: 72vw;        /* a story break on a phone: wide, not a portrait crop */
  --site-size-letterbox: 9%;
  --site-break-width: 100%;               /* set per break by js/site/scenes.js: the page width */
  --site-break-left: 0px;                 /* set per break by js/site/scenes.js: the offset to the page edge */              /* the cinema bars on a story break */
  --site-size-seg-bar: 2px;
  --site-size-filter-label: 64px;
  --site-size-hero-min: 640px;
  --site-size-hero-max: 980px;
  --site-size-phone-hero: 62svh;
  --site-size-phone-hero-min: 380px;
  --site-backdrop-blur: 64px;             /* discography: the record under the pointer */
  --site-backdrop-bright: 0.38;
  --site-ambient-bright: 0.42;
  --site-duo-light: #d9b27c;               /* duotone highlight: lamplight (the mock-up's home artist image) */
  --site-duo-dark: #1a120c;                /* duotone shadow: warm near-black */
  --site-grain-opacity: 0.22;
  --site-shift-hover: 4px;
  --site-size-mark-rule: clamp(24px, 6vw, 120px);   /* hairlines either side of the nav wordmark */
  --site-size-logo-nav: 32px;                       /* the box logo at the nav's left edge and in the menu */
  --site-size-logo-foot: 72px;                      /* the box logo over the footer's sign-off */
  --site-size-slide-bottom: clamp(96px, 14vh, 160px);
  --site-size-card-min: 220px;
  --site-size-genre-min: 320px;
  --site-size-tl-col: 320px;              /* mix tracklist column width */
  --site-size-stripe: 12px;               /* placeholder hatching */

  /* ---- layers ---- */
  --site-z-nav: 30;
  --site-z-player: 40;
  --site-z-overlay: 60;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --site-dur-fast: 0ms;
    --site-dur-med: 0ms;
    --site-dur-fade: 0ms;
    --site-dur-drift: 0ms;
  }
}
