/* THE SOUND — SITE-WIDE DESIGN SYSTEM · v4 (proposal)
   ============================================================
   Not wired into any live page yet. This is the token layer the Phase-1
   design-system proposal is built on — read by /_kit and documented in
   docs/design-system.md. When Phase 2 migration starts, live pages adopt
   this file (and components-v4.css) in place of their own one-off styles.

   Source of truth for the values here: docs/design-system.md, which in
   turn cites brand/ads-and-social-2026-10/ (pixel-sampled grounds) and
   the merged Courts v3 kit review (tokens-courts-v3.css) this extends
   site-wide.

   TYPE ROLES, NOT FONT NAMES. Every component in components-v4.css reads
   --font-display / --font-body / --font-label — never a font name
   directly. Both are settled now (Kevin, round 7, 6 Nov): --font-body is
   Barlow, --font-label is Barlow Condensed. Archivo is retired from this
   system entirely — it was the previous --font-label face, and the only
   other place it appeared was the body-font comparison toggle in /_kit
   (removed the same round), so nothing here loads it any more.
   ============================================================ */

@font-face{ font-family:'Zodiak'; src:url('/fonts/zodiak/zodiak-light.woff2') format('woff2'); font-weight:300; font-style:normal; font-display:swap; }
@font-face{ font-family:'Zodiak'; src:url('/fonts/zodiak/zodiak-light-italic.woff2') format('woff2'); font-weight:300; font-style:italic; font-display:swap; }

/* Barlow Condensed — self-hosted static weights (400/500/600), the
   --font-label face (Kevin, round 7, 6 Nov — was Archivo). Copied into its
   own /fonts/barlow-condensed/ home for the same reason Barlow itself was
   (see below): so --font-label doesn't stay scoped to Play's font folder.
   Same Latin-subset unicode-range as every other self-hosted face here. */
@font-face{ font-family:'Barlow Condensed'; src:url('/fonts/barlow-condensed/barlow-condensed-400.woff2') format('woff2'); font-weight:400; font-style:normal; font-display:swap; 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:'Barlow Condensed'; src:url('/fonts/barlow-condensed/barlow-condensed-500.woff2') format('woff2'); font-weight:500; font-style:normal; font-display:swap; 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:'Barlow Condensed'; src:url('/fonts/barlow-condensed/barlow-condensed-600.woff2') format('woff2'); font-weight:600; font-style:normal; font-display:swap; 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; }

/* IBM Plex Mono — self-hosted, --font-mono's only face. Two static weights
   (400/500) cover every current use (links, codes, the progress timeline). */
@font-face{ font-family:'IBM Plex Mono'; src:url('/fonts/plex-mono/plex-mono-regular.woff2') format('woff2'); font-weight:400; font-style:normal; font-display:swap; }
@font-face{ font-family:'IBM Plex Mono'; src:url('/fonts/plex-mono/plex-mono-medium.woff2') format('woff2'); font-weight:500; font-style:normal; font-display:swap; }

/* Barlow — self-hosted static weights (400/500/600, the ones the kit uses),
   copied from /fonts/play/ into their own /fonts/barlow/ home so --font-body
   isn't scoped to the Play app's font folder; /fonts/play/ is untouched and
   keeps working (Kevin, round 5 review: "tokens-v4.css doesn't declare
   Barlow, so any page that adopts the tokens has no body font").
   The files are the latin subset, so the faces say so (unicode-range, the same as
   Play's own rules for these files): without it, a character outside the subset
   (✓, ✦) sent /play to this copy too and the same file downloaded twice. */
@font-face{ font-family:'Barlow'; src:url('/fonts/barlow/barlow-400.woff2') format('woff2'); font-weight:400; font-style:normal; font-display:swap; 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:'Barlow'; src:url('/fonts/barlow/barlow-500.woff2') format('woff2'); font-weight:500; font-style:normal; font-display:swap; 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:'Barlow'; src:url('/fonts/barlow/barlow-600.woff2') format('woff2'); font-weight:600; font-style:normal; font-display:swap; 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; }

:root{
  /* — grounds: the full sampled set (docs/design-system.md §2) —
     --bg/--surface/--text/etc. below are the DEFAULT (Black/App) ground.
     The other five grounds are available as their own tokens so a
     component can be told "this one's allowed on Paper too" without
     redefining the whole palette — see .ds-on-paper / .ds-on-sage below. */
  --ground-black:#0C0A09;
  --ground-white:#FFFFFF;
  --ground-paper:#E6DCCB;
  --ground-sage-deep:#5A624B;
  --ground-sage-light:#757B61;
  --ground-light-stop:#E4D3B5;

  --ink-bone:#F4EFE6;
  --ink-dark:#0C0A09; /* near-black — the warm #2A2118 "ink" is retired, same as the browns (docs §1.1) */

  /* — default surface = Black (App ground; Club web pages stay Black for
     now per Kevin's 16 Oct call — only the browns retire, not the ground) — */
  --bg:var(--ground-black);
  --surface:#151515;   /* true neutral (was #161412) — no warm cast */
  --surface-2:#1C1C1C; /* was #1E1C19 */
  --surface-3:#242424; /* was #2A2622. The selected/raised step — a card, row or day that's
    chosen gets this fill plus a thin bone ring, not a border on transparent
    (Kevin, round 6 review: "tonal fills, no borders by default") */
  --text:var(--ink-bone);
  --text-soft:#BDBDBD;  /* neutral grey (was bone at 76%) */
  --text-muted:#8A8A8A; /* neutral grey (was bone at 55%) */
  --border:#2A2A2A;     /* line (was bone at 14%) */
  --border-strong:#3D3D3D; /* (was bone at 24%) */

  /* — brass: one fill per screen, never more (docs §6) — */
  --accent:#CBA872;        /* text/label/fill on Black or White */
  --accent-on-light:#8F6F42;   /* text/label on White/Paper/Light-stop — large text only off White */
  --accent-fill-light:#7A5E38; /* button fill on White/Paper — darker than --accent-on-light so paper-colored text clears AA */
  --accent-ink:var(--ground-black); /* text color ON a brass fill, Black-ground button */

  /* — status pills use a dot, never the word as colored text; inline errors
     may use rust text under a field, since that's a different job (docs
     §3.6, §3.8) — */
  /* Black ground only (Kevin, round 7, 6 Nov): a brighter pair that reads
     clearly on near-black. #6E846F/#A15A38 move to the light grounds only
     — see .ds-on-white/.ds-on-paper/.ds-on-sage/.ds-on-light-stop below,
     which now set their own --good/--rust/--danger back to those values. */
  --good:#9CC78F;
  --rust:#C98F7A;
  --danger:#C98F7A;   /* same hex as rust — one "something's wrong" color, not a second palette */
  /* no --warning token: it was the retired brass hex under another name and
     read as indistinguishable from brass (Kevin, round 4 review). Warnings
     use --rust. */

  /* — weather: the two conditions Play's windows/slots/days actually carry
     (docs §1.7). Flat, not ground-switched — weather only shows up on App
     surfaces (Play, Courts), which are always Black. — */
  --weather-dry:#9CC78F;
  --weather-rain:#7FA6C4;

  /* — partner tints: one per person, never brass, always readable with dark
     (--bg) text on them. Assigned by a stable hash of the person so someone
     keeps their color across sessions (docs §1.7) — six is enough that a
     small friend group rarely collides, and flat for the same reason as
     weather: partner marks only appear on App/Black surfaces. — */
  --partner-1:#8FA68F; /* sage-green */
  --partner-2:#C99A7A; /* terracotta */
  --partner-3:#8FA3BF; /* dusty blue */
  --partner-4:#C2B07E; /* olive-gold */
  --partner-5:#B98FA6; /* muted rose */
  --partner-6:#9E93BF; /* muted lavender */

  /* — type roles (never reference a font name outside this block) — */
  --font-display:'Zodiak','Zodiak Fallback',Georgia,serif;
  --font-body:'Barlow',system-ui,-apple-system,sans-serif;
  --font-label:'Barlow Condensed','Barlow',sans-serif; /* was Archivo — Kevin, round 7, 6 Nov */
  --font-mono:'IBM Plex Mono',ui-monospace,'SF Mono',Menlo,monospace; /* links, codes, the progress timeline ONLY — docs §1.2 */

  /* — label tracking: one value, every uppercase label (Kevin, round 7, 6
     Nov) — replaces each component's own hand-picked tracking value. */
  --track-label:.16em;

  /* — type scale (role + size, matched to docs/design-system.md §3) — */
  --text-display-xl:56px;
  --text-display-l:40px;
  --text-display-m:24px;
  --text-figure:32px;
  --text-body:16px;
  --text-meta:14px;
  --text-label:13px;      /* the floor — nothing on the site goes smaller */

  /* — spacing · 4px base (unchanged from tokens.css — not part of the sprawl) — */
  --space-1:4px; --space-2:8px; --space-3:12px; --space-4:16px; --space-5:24px;
  --space-6:32px; --space-7:48px; --space-8:64px; --space-9:96px; --space-10:128px;

  /* — radius: two values, plus true circles. pills are retired. — */
  --radius-action:3px;   /* every button, chip, input box */
  --radius-panel:8px;    /* cards, panels — one step only, never nested */

  /* — motion — */
  --dur-fast:180ms; --dur:320ms; --dur-slow:600ms;
  --ease:cubic-bezier(.2,.6,.2,1);

  /* — layout — */
  --container:1180px; --gutter:32px;

  /* — focus ring: one treatment, every interactive element — */
  --focus-ring:0 0 0 2px var(--bg), 0 0 0 4px var(--accent);
}

/* — Club grounds, as opt-in surface classes (ads/posts/future club email;
   NOT applied to club web pages today — see docs/design-system.md §1) — */
/* text-soft/text-muted are near-black (--ink-dark) at alpha, not a literal
   brown hex — that's what keeps them neutral grey instead of warm (Kevin,
   round 4 review: "browns are back"). .22/.65 muted clears 4.5:1 AA on the
   lightest of these three grounds (Light stop, the worst case — docs §1.1). */
.ds-on-white{ --bg:var(--ground-white); --surface:#F2EFE8; --surface-2:#E8E3D8; --surface-3:#DED7C8; --text:var(--ink-dark); --text-soft:rgba(12,10,9,.72); --text-muted:rgba(12,10,9,.65); --border:rgba(12,10,9,.14); --border-strong:rgba(12,10,9,.22); --accent:var(--accent-on-light); --accent-ink:var(--ground-white); --good:#6E846F; --rust:#A15A38; --danger:#A15A38; }
.ds-on-paper{ --bg:var(--ground-paper); --surface:#EDE4D0; --surface-2:#E6DBC4; --surface-3:#DFD2B8; --text:var(--ink-dark); --text-soft:rgba(12,10,9,.72); --text-muted:rgba(12,10,9,.65); --border:rgba(12,10,9,.14); --border-strong:rgba(12,10,9,.22); --accent:var(--accent-on-light); --accent-ink:#F7F1E5; --good:#6E846F; --rust:#A15A38; --danger:#A15A38; }
/* Sage's surface-3 is a half-step, not a full one: surface-2 already sits
   under 4.5:1 for bone body text (4.03:1 — a pre-existing gap, not opened by
   surface-3) because Sage is a deep, saturated ground; a full third step
   would widen that gap further. Sage stays documented-only (ads/posts), not
   applied to any live interactive surface this selected-state rule renders
   on, so this is flagged rather than solved here. */
.ds-on-sage{ --bg:var(--ground-sage-deep); --surface:#656D55; --surface-2:#707860; --surface-3:#767E66; --text:var(--ink-bone); --text-soft:rgba(244,239,230,.82); --text-muted:rgba(244,239,230,.6); --border:rgba(244,239,230,.2); --border-strong:rgba(244,239,230,.3); --accent:var(--ink-bone); --accent-ink:var(--ground-sage-deep); --good:#6E846F; --rust:#A15A38; --danger:#A15A38; }
.ds-on-light-stop{ --bg:var(--ground-light-stop); --surface:#EDDFC4; --surface-2:#E6D5B4; --surface-3:#DFCBA4; --text:var(--ink-dark); --text-soft:rgba(12,10,9,.72); --text-muted:rgba(12,10,9,.65); --border:rgba(12,10,9,.14); --border-strong:rgba(12,10,9,.22); --accent:var(--accent-on-light); --accent-ink:#F7F1E5; --good:#6E846F; --rust:#A15A38; --danger:#A15A38; }
