/* ============================================================================
   BME — DESIGN TOKENS  ·  the single source of truth
   ----------------------------------------------------------------------------
   Foundational tokens are fixed. Semantic roles (--bg / --surface / --fg /
   --line) invert under .dark. The superbar (--ink) and safety bar
   (--deep-heritage-blue) NEVER invert — they are constant chrome and are
   styled with literal values, not these roles.

   This file is the canonical block engineers copy into their own repos.
   Keep it in sync with §12 Foundation of the style guide.
   ========================================================================= */

:root {
  /* Foundational */
  --heritage-blue: #6163BA;          /* dominant brand */
  --deep-heritage-blue: #3C47AC;     /* safety bar, hover/active */
  --ink: #0A0A0A;
  --faded-ink: #1E1E1E;
  --graphite: #6B6B6B;
  --bone: #F1EFEC;
  --gauze: #FAF9F9;

  /* Secondary · message palette (theme-independent) */
  --info: #6163BA;
  --success: oklch(0.54 0.125 149);
  --warning: #DFA837;
  --caution: #D87B32;
  --danger: #C14856;                 /* the one sanctioned red */
  --note: oklch(0.54 0.125 312);

  /* Semantic roles — LIGHT */
  --bg: var(--gauze);
  --surface: var(--bone);
  --fg: var(--ink);
  --meta: var(--graphite);
  --line: var(--ink);
  --line-soft: rgb(10 10 10 / 0.18);
}

.dark {
  /* Semantic roles — DARK (clean inversion) */
  --bg: var(--ink);
  --surface: var(--faded-ink);
  --fg: var(--gauze);
  --meta: var(--graphite);
  --line: var(--gauze);
  --line-soft: rgb(250 249 249 / 0.20);
}

/* Superbar (--ink) and safety bar (--deep-heritage-blue) NEVER invert. */
