/* BCDRInsight · design tokens
   v1.0 · locked system
   =======================================
   Palette — Track B (Tidepool & Sage)
   Type    — Inter + IBM Plex Mono
*/

:root{
  /* --- Ink ramp ----------------------------------- */
  --ink:               #0F1A24;  /* primary text, strongest surfaces */
  --ink-2:             #1C2A36;
  --ink-3:             #2E3E4C;

  /* --- Primary (Tidepool) ------------------------- */
  --primary:           #0E3B4F;  /* deep teal — primary surfaces */
  --primary-hover:     #0B2E3F;
  --primary-soft:      #E6EEF2;  /* 10% tints for fills */
  --primary-ink:       #FFFFFF;  /* text on primary */

  /* --- Sage (Xeperno bridge) ---------------------- */
  --sage:              #5AA47C;  /* accent, bridge to parent brand */
  --sage-strong:       #41775A;
  --sage-soft:         #E4F1EA;
  --sage-ink:          #2F6F4D;

  /* --- Signals ------------------------------------ */
  --signal-amber:      #F2994A;  /* retention anomaly, warning */
  --signal-amber-soft: #FAE6DD;
  --signal-amber-ink:  #A14A1E;
  --signal-red:        #C0483A;  /* backup failure, critical */
  --signal-red-soft:   #F5E1DE;
  --signal-red-ink:    #7E2A20;

  /* --- Paper ramp --------------------------------- */
  --paper:             #FAFAF7;  /* app & report background */
  --paper-2:           #F2F1EB;  /* alt rows, subtle fills */
  --paper-3:           #E4E1D8;

  /* --- Lines & muted ------------------------------ */
  --line:              #E4E1D8;
  --rule:              #D5D1C5;
  --muted:             #6A6F75;
  --muted-2:           #9AA0A6;

  /* --- Xeperno bridge (accent only) --------------- */
  --xeperno-sand:      #E0DDCC;

  /* --- Type --------------------------------------- */
  --f-display: 'Inter', 'Helvetica Neue', system-ui, sans-serif;
  --f-mono:    'IBM Plex Mono', ui-monospace, 'JetBrains Mono', monospace;

  /* Scale — based on 16px body */
  --fs-xs:     11px;   /* mono labels */
  --fs-sm:     13px;   /* secondary text */
  --fs-base:   15px;   /* body */
  --fs-md:     18px;   /* lede / subhead */
  --fs-lg:     24px;   /* h3 */
  --fs-xl:     32px;   /* h2 */
  --fs-2xl:    40px;   /* h1 (onepager, deck body) */
  --fs-3xl:    56px;   /* display / deck titles */

  --lh-tight:  1.1;
  --lh-snug:   1.3;
  --lh-normal: 1.55;
  --lh-loose:  1.7;

  --tracking-display: -0.02em;
  --tracking-mono:    0.04em;
  --tracking-caps:    0.14em;

  /* --- Space scale (4pt grid) --------------------- */
  --s-1:  4px;
  --s-2:  8px;
  --s-3:  12px;
  --s-4:  16px;
  --s-5:  20px;
  --s-6:  24px;
  --s-8:  32px;
  --s-10: 40px;
  --s-12: 48px;
  --s-16: 64px;
  --s-20: 80px;

  /* --- Radii -------------------------------------- */
  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 8px;
  --r-xl: 12px;
  --r-pill: 999px;

  /* --- Shadow (used sparingly) -------------------- */
  --shadow-xs: 0 1px 2px rgba(14, 26, 36, .06);
  --shadow-sm: 0 2px 6px -1px rgba(14, 26, 36, .08);
  --shadow-md: 0 6px 18px -6px rgba(14, 26, 36, .14);
}
