/* ============================================================================
   PREVIOUSLY AUDIO — DESIGN TOKENS · v2.0 — LOCKED SYSTEM (Audio Stage 2,
   2026-10-20). This sheet adopts the locked house system (D-B): navy ink
   #0C121B / charcoal #101623 structure, GOLD #F2BC68 as the signature accent,
   Marathon display + Inter body. The retired Sep-28 "Signal Red" law is
   superseded: red survives ONLY as the verified-live indicator (--pv-live).
   Legacy --pv-red* names are kept as aliases onto the gold family (the
   house migration pattern — same as /css/design-tokens.css legacy aliases)
   so existing components keep working while they migrate stage by stage.
   One source of truth: pages consume these variables, never hardcode values.
   CONVERSION 2026-10-21 (#259 closeout, James's order): surface/ink tokens
   now carry the canonical d3 values NATIVELY in this sheet — the chain no
   longer resolves through the legacy site sheet (--desert-*), and the
   former prefers-color-scheme light block is deleted: this family is
   dark-only, color-scheme comes from design-tokens-d3.css.
   ============================================================================ */

:root{
  /* S4-7 (2026-10-21): legacy color-scheme:dark declaration removed (S2 remainder). */
  /* ---- Color · surfaces (site base, dark-first names kept) ---- */
  --pv-noir:        #0C121B;  /* page background — canonical d3 ground (native since 2026-10-21 hub conversion; was var(--desert-bg)) */
  --pv-noir-2:      #141F2C;  /* elevated surface: cards, sheets, modals — canonical surface-1 */
  --pv-noir-3:      #1B2A3B;  /* pressed / raised — canonical surface-2 */
  --pv-glass:       rgba(12, 18, 27, .82); /* sticky bars over content [WEB: backdrop-blur] */

  /* ---- Color · ink ---- */
  --pv-ivory:       #C7D0DA;  /* primary text — canonical d3 text */
  --pv-ivory-dim:   rgba(199, 208, 218, .62); /* secondary text */
  --pv-ivory-faint: rgba(199, 208, 218, .38); /* LARGE/DECORATIVE ONLY.
     Never body copy, never placeholders, never essential UI text. */
  --pv-rule:        rgba(199, 208, 218, .14); /* hairline dividers + idle borders (decorative, exempt) */

  /* ---- Color · brand accent: GOLD — the locked signature ---- */
  --pv-gold:        #F2BC68;   /* THE accent: fills, underlines, active states */
  --pv-gold-rgb:    242, 188, 104;
  --pv-gold-deep:   #B07E2E;   /* hover depth within the gold family (Sports-locked value) */
  --pv-gold-ink:    #0C121B;   /* text/icons ON gold fills (Sports-locked value) */
  --pv-gold-glow:   rgba(242, 188, 104, .38);  /* focus rings, button shadows */
  --pv-gold-glow-lg:rgba(242, 188, 104, .55);

  /* ---- Legacy accent aliases (retired red family -> gold) ---- */
  --pv-red:         var(--pv-gold);
  --pv-red-deep:    var(--pv-gold-deep);
  --pv-red-ember:   var(--pv-gold-deep);
  --pv-red-wine:    var(--pv-gold-deep);
  --pv-red-glow:    var(--pv-gold-glow);
  --pv-red-glow-lg: var(--pv-gold-glow-lg);

  /* ---- Color · on-accent text ---- */
  --pv-on-red:      var(--pv-gold-ink);  /* text/icons ON gold fills — dark on
     gold is the house CTA pattern. Light text on gold is BANNED (contrast). */

  /* ---- Color · status (never neon) ---- */
  --pv-live:        #F46B62;  /* the ONE red — verified-live indicator ONLY */
  --pv-warn:        var(--color-warn);  /* muted amber, warnings only — DARK SURFACES ONLY.
     Never on light backgrounds. */
  --pv-muted-ok:    var(--color-win);  /* desaturated sage for "available" — DARK SURFACES ONLY.
     Never on light backgrounds. [never neon green] */

  /* ---- Type ---- */
  --pv-serif: 'Marathon Long Run Display', 'Previously Display', sans-serif; /* display (locked) */
  --pv-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; /* body/UI */

  /* Type scale — display sizes use fluid clamp(); body fixed for rhythm */
  --pv-display-xl: clamp(120px, 22vw, 320px); /* ghost outline titles [WEB] */
  --pv-display:    clamp(52px, 9.5vw, 148px); /* page hero titles */
  --pv-title:      clamp(28px, 3.4vw, 44px);  /* section titles */
  --pv-h3:         clamp(20px, 2.4vw, 26px);
  --pv-lede:       clamp(18px, 2vw, 22px);
  --pv-body:       17px;
  --pv-body-sm:    14px;
  --pv-caption:    13px;
  --pv-label:      11px;  /* micro labels: ALWAYS uppercase + tracked */
  --pv-label-xs:   10px;

  --pv-track-xl: .34em;  /* kickers */
  --pv-track-lg: .24em;  /* buttons */
  --pv-track-md: .18em;  /* chips */
  --pv-track-tight: -.02em; /* display serif */

  --pv-leading-display: .94;
  --pv-leading-title: 1.08;
  --pv-leading-body: 1.6;
  --pv-leading-ui: 1.4;

  /* ---- Spacing · 4pt base ---- */
  --pv-s1: 4px;  --pv-s2: 8px;  --pv-s3: 12px; --pv-s4: 16px;
  --pv-s6: 24px; --pv-s8: 32px; --pv-s12: 48px; --pv-s16: 64px;
  --pv-s24: 96px; --pv-s32: 128px;

  /* ---- Radii — squared card family (house NO-PILLS law) ---- */
  --pv-r-pill: 10px;  /* legacy name — the FIELD radius: buttons, chips, search, toggles */
  --pv-r-card: 14px;   /* cards, sheets */
  --pv-r-card-sm: 12px;
  --pv-r-sm: 8px;      /* inputs-inline, tags */
  --pv-r-round: 50%;

  /* ---- Shadows · gold glow for brand moments, black for depth ---- */
  --pv-shadow-btn:    0 10px 34px var(--pv-gold-glow);
  --pv-shadow-btn-lg: 0 16px 44px var(--pv-gold-glow-lg);
  --pv-shadow-card:   0 18px 44px rgba(0, 0, 0, .5);
  --pv-shadow-pop:    0 40px 120px rgba(0, 0, 0, .6), 0 0 0 1px rgba(var(--pv-gold-rgb), .35);
  --pv-shadow-bar:    0 8px 28px rgba(0, 0, 0, .45);

  /* ---- Layout ---- */
  --pv-content-max: 1280px;   /* inner content measure. The outer shell caps at
     1440px (full-bleed heroes exempt — they run edge to edge). */
  --pv-shell-max: 1440px;     /* outer shell cap for ultrawide monitors */
  --pv-gutter: 32px;       /* desktop page padding */
  --pv-gutter-sm: 20px;    /* phone page padding */
  --pv-nav-h: 64px;        /* desktop nav height; 56px below 1024px (see below) */

  /* ---- Breakpoints (for documentation; use in media queries) ---- */
  --pv-bp-phone: 390px;
  --pv-bp-tablet: 768px;
  --pv-bp-laptop: 1024px;
  --pv-bp-wide: 1440px;

  /* ---- Z-index scale (one scale, whole site — no page invents its own) ---- */
  --pv-z-content: 1;
  --pv-z-sticky: 10;       /* sticky section headers, table heads */
  --pv-z-search: 40;       /* uniform search bar (sticky) */
  --pv-z-nav: 50;          /* sticky nav — above search, below overlays */
  --pv-z-consent: 90;      /* cookie banner + preferences modal */
  --pv-z-modal: 100;      /* dialogs, sheets, lightboxes */
  --pv-z-toast: 110;       /* transient notifications, topmost */

  /* ---- Touch targets ---- */
  --pv-target-min: 44px;   /* WCAG 2.2 AA target size. Every tappable control is
     at least 44×44 CSS px. No exceptions — phone and desktop. */

  /* ---- Motion ---- */
  --pv-ease: cubic-bezier(.22,.8,.28,1);
  --pv-ease-snap: cubic-bezier(.3,1.4,.4,1); /* springy: ONLY for playful elements (poll bars, VS badges) */
  --pv-t-instant: .1s;   /* touch feedback, active/press states */
  --pv-t-fast: .18s;     /* hover states, focus rings, small fades */
  --pv-t-med: .25s;      /* card lifts, drawer slides, tab switches */
  --pv-t-slow: .4s;      /* page-level reveals, large panel animations */
  --pv-t-reveal: .6s;    /* scroll-triggered reveals */
  --pv-hero-rotate: 30s;   /* hero auto-advance cadence — never faster */
  /* ---- Micro-interaction shadows (spec §12) ---- */
  --pv-shadow-card-hover: 0 14px 34px rgba(0, 0, 0, .5);
  --pv-shadow-chip-hover: 0 8px 20px rgba(0, 0, 0, .4);
  /* ---- Focus ---- */
  --pv-focus-outline: 2px solid #0C121B; /* THE focus indicator: D-B ink navy.
     The section renders on a light base, where gold alone cannot clear the
     3:1 UI bar (Sports uses gold outlines on its dark surfaces). Ink clears
     it on both polarities; the gold glow below pairs as the brand ring. */
  --pv-focus-ring: 0 0 0 3px var(--pv-gold-glow);
}/* Nav height follows the nav spec: 64px desktop, 56px below 1024px.
   One variable name — components (search sticky offset, etc.) just use it. */
@media (max-width: 1023px){
  :root { --pv-nav-h: 56px; }
}/* Reduced motion: the law, everywhere */
@media (prefers-reduced-motion: reduce){
  :root { --pv-hero-rotate: 0s; }
}/* Forced colors (Windows High Contrast) — the design degrades honestly:
   focus stays visible, text stays readable, decoration steps aside. */
@media (forced-colors: active){
  :root {
    --pv-focus-outline: 2px solid ButtonText;
  }
  a, button { forced-color-adjust: auto; }
  .pv-search__bar, .pv-search__clear, .pv-search__retry {
    border: 1px solid ButtonText;
  }
}/* Print — dark-first on screen, ink-honest on paper: light, minimal, no chrome. */
@media print{
  :root {
    color-scheme: light;
    --pv-noir: #C7D0DA;
    --pv-ivory: #211910;
    --pv-ivory-dim: #2A1C11;
  }
  nav[aria-label="Primary"], .pv-search, footer .pv-footer__sections {
    display: none;
  }
  body { background: #C7D0DA; color: #211910; }
  a { color: #211910; text-decoration: underline; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 11px; }
}
