/* Tangerine Books — colour tokens (design-system source of truth).
 *
 * Vendored as the single source of truth for the brand palette (ADR-0006:
 * vendor the design tokens; consume them via CSS custom properties). The
 * component stylesheet (app.css) reads these `--tb-*` variables and never
 * hard-codes a hex value, so a design-system refresh is a file swap here,
 * not a hunt through the components.
 *
 * Palette: Tangerine Taps v3 "Warm Four" (Direction 1A "Counter", per the
 * responsive-redesign handoff). Paper grounds with ink text by day; a
 * midnight surface with moon text for the night (Taps) segment, chrome, and
 * login; tangerine as THE accent. Semantic good/bad no longer gets its own
 * hue — "bad/attention" is tangerine, "good/met" is plain ink weight.
 */

:root {
  /* Grounds and ink (day) */
  --tb-paper: #f6f0e4;          /* page ground */
  --tb-paper-warm: #f3ebdc;     /* sunk panels, banners, bar tracks */
  --tb-paper-card: #fffdf7;     /* cards on the day ground */
  --tb-ink: #1a1612;            /* text + lines on paper; never a full bg except small chips */
  --tb-ink-muted: #5a5248;      /* secondary text on paper */

  /* Night surface (chrome, TAPS·NIGHT card, login) */
  --tb-midnight: #061e2d;       /* header, bottom nav, night card, login ground */
  --tb-midnight-deep: #03141f;  /* sunk panel on midnight (login form panel) */
  --tb-moon: #efe6cf;           /* text + lines on midnight */
  --tb-moon-muted: #9fb6c4;     /* secondary text on midnight */

  /* Accents */
  --tb-tangerine: #ee7f3f;      /* THE accent: active nav, primary buttons, goal fill, keyline */
  --tb-tangerine-ink: #b85c22;  /* link colour / attention text on paper; hover-deepened tangerine */
  --tb-mustard: #e0b84f;        /* NIGHT-ONLY accent: TAPS CM numeral, stale-banner emphasis */

  /* --- Legacy aliases (v2 names -> Warm Four values) ----------------------
     Kept because app.css still reads these names widely (paper/ink/tango
     rename residue from the v2 palette). Safe to delete only once every
     call site is rewritten — out of scope for the #132 hue retirement.
     Retired and deleted (#132): --tb-teal, --tb-terracotta, --tb-red
     (call sites now use --tb-ink / --tb-tangerine-ink directly). */
  --tb-paper-sunk: var(--tb-paper-warm);
  --tb-paper-raised: var(--tb-paper-card);
  --tb-ink-soft: var(--tb-ink-muted);
  --tb-tango: var(--tb-tangerine);
  --tb-tango-ink: var(--tb-tangerine-ink);
  --tb-mustard-wash: var(--tb-paper-warm);
  --tb-midnight-ink: var(--tb-moon);

  /* Health indicators: RETIRED as colour tokens (#129, per the approved
     Stock prototype #128). Severity is shape + how much tangerine the dot
     carries — red = filled tangerine dot, yellow = hollow tangerine ring,
     green = a small ink-muted dot (see .health-dot in app.css). No
     green/yellow/red hue channel anywhere. */

  /* Chart-series palette: RETIRED (#127, per the approved Reports
     prototype #126). Charts are monochrome — ink strokes/fills on
     paper-warm tracks with tangerine as the only accent (goal line,
     hover, active/peak highlight). No multi-hue series anywhere. */

  /* Pure white/black kept as tokens so components never reach past the set */
  --tb-white: #ffffff;
  --tb-black: #000000;
}
