/* ==========================================================================
   brand-tokens.css — the single canonical source of the v2.0 brand palette
   (dashboard-forward system, REQ-267).

   Mirrors the token table in `UX/tarotscope-design-guidelines.md` (§"v2.0
   Color Palette") and the JS-side `ts-palette.js`. The palette is CLOSED:
   pages consume these tokens, they do NOT re-declare them.

   Two naming schemes coexist for the SAME v2 values (historical): the
   "short" scheme (`--bg` / `--gold` / `--text`) used by dashboard / auth /
   chat / registration / error, and the "descriptive" scheme (`--bg-deep` /
   `--gold-bright` / `--text-main`) used by the reading pages (daily /
   natal-chart / tarot-reading). Both are the INVARIANT CORE and live here
   once. Only page-specific ACCENT tokens (which legitimately differ per page
   — e.g. calendar element tints) stay in the page CSS.

   Pages `@import` this file at the top, then declare ONLY their own accents.

   NOT migrated here, by design (each is a special case, not an oversight):
     - monthly.css / weekly.css scope their tokens to `body.ts-{monthly,weekly}`
       ON PURPOSE — the same stylesheet is also loaded by legacy v1 variants of
       those pages (no body class), so their tokens MUST stay body-scoped. An
       `@import` onto :root here would leak v2 onto the legacy variant (verified
       regression). Centralizing them needs the legacy variants migrated to v2
       first. They also carry a divergent accent sub-palette
       (--rose/--violet/--terra/--gold-dark) that is intentional semantic tints.
     - profile.css is already the SOLE token source on the profile pages (they
       don't load tarotscope-base) — nothing to dedupe.
     - tarotscope-base.css is already the single v1 (parchment) source, loaded
       on ~30 pages — not duplicated.
     - tokens.css (Rider-Waite) is still load-bearing: base.css reads its
       --color-x, --sp-x and --font-x tokens, and --tap-min is used by 9 files.
   Do NOT add a token here whose value conflicts with any of the above.
   ========================================================================== */
:root {
  /* ── Backgrounds ── (short + descriptive aliases, same v2 values) */
  --bg:            #0b0a12;
  --bg-deep:       #0b0a12;
  --bg-2:          #120f1c;
  --surface:       #161324;
  --bg-card:       #161324;
  --surface-2:     #1c1930;
  --bg-card-hover: #1c1930;
  --bg-surface:    #1a1530;

  /* ── Lines ── */
  --line:      rgba(201, 168, 109, 0.30);   /* .18 until 2026-11-09: 1.4:1 on --surface, the frames vanished */
  --line-soft: rgba(201, 168, 109, 0.14);

  /* ── Gold ── */
  --gold:        #c9a86d;
  --gold-frame:  #c9a86d;
  --gold-2:      #e4c98a;
  --gold-bright: #e4c98a;
  --gold-dim:    #a08b58;   /* 5.9:1 on --bg, 5.5:1 on --surface (was #8a7649: 4.5 / 4.1) */
  --gold-dark:   #a08b58;
  --ochre:       #d4b87d;

  /* ── Text ── (short + descriptive aliases) */
  --text:        #e8e1d3;
  --text-main:   #e8e1d3;
  --cream:       #e8e1d3;
  --cream-warm:  #e4c98a;
  --text-2:      #b8ae99;
  --text-dim:    #b8ae99;
  --cream-dim:   #b8ae99;
  --text-3:      #9a9380;   /* 6.4:1 on --bg, 5.95:1 on --surface (was #7a7466: 4.2 / 3.9, under AA) */
  --text-faint:  #9a9380;

  /* ── The two voices ── Oracle and Mocker (REQ-742). Promoted here from
     `dashboard.css`, which declared them for itself: they are core palette,
     two independent surfaces read them, and a core token lives once. The
     values are unchanged, so `dashboard.css`'s own copy is a duplicate with
     the same value rather than a conflict. */
  --oracle: #4a6fa5;
  --mocker: #c87452;

  /* ── Shared accent ── (canonical teal = #8ec4b8, per design decision) */
  --teal: #8ec4b8;

  /* ── Aspect polarity ── the two poles every synastry surface reads in.
     Harmony is teal, tension terracotta — the pair the synastry grid has drawn
     since REQ-335, promoted here so the compatibility result page renders the
     same concept in the same colour instead of picking its own.
     NOTE: `synastry-grid.css` mirrors these as local `--sg-tone-h` /
     `--sg-tone-c` because that component is also embedded on pages that never
     load this file. Change one, change both. */
  --harmony: #6ba89c;
  --tension: #c87452;

  /* ── Motion + type ── */
  --t:    180ms;
  --ease: cubic-bezier(.2,.7,.2,1);

  --f-display: 'Cormorant Garamond', 'Times New Roman', serif;
  /* REQ-866: the reading colour of the v2 palette (the numbers live in reading.css) */
  --read-color: var(--text-2);
  --f-sans:    'Inter', system-ui, -apple-system, sans-serif;
  --f-mono:    'JetBrains Mono', ui-monospace, monospace;
}
