/* Business Analytics Hub — design tokens (brand direction A, "Ledger", approved by Max 2026-12-02)
   Palette, type and shape come from brand-exploration/brand-directions.md (Direction A). Derived tints and
   the hover blue are marked "derived". Every text/background pair is checked by tools/contrastcheck.py. */

/* Fonts: all SIL Open Font License 1.1, self-hosted, license files beside the files. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2-variations"); 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: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/assets/fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 200 900; font-display: swap; src: url("/assets/fonts/source-serif-4-latin-wght-normal.woff2") format("woff2-variations"); 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: "Source Serif 4"; font-style: normal; font-weight: 200 900; font-display: swap; src: url("/assets/fonts/source-serif-4-latin-ext-wght-normal.woff2") format("woff2-variations"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Serif 4"; font-style: italic; font-weight: 200 900; font-display: swap; src: url("/assets/fonts/source-serif-4-latin-wght-italic.woff2") format("woff2-variations"); 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: "Source Serif 4"; font-style: italic; font-weight: 200 900; font-display: swap; src: url("/assets/fonts/source-serif-4-latin-ext-wght-italic.woff2") format("woff2-variations"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); 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: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/ibm-plex-mono-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2"); 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: "IBM Plex Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/ibm-plex-mono-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  /* Ledger palette */
  --ink: #14213d;           /* Ledger Ink: text, mark tile, dark bands */
  --blue: #1f47c9;          /* Ledger Blue: primary action and links */
  --accent: #e4572e;        /* Signal Vermilion: graphics and highlights only (3.47:1 on paper, never body text) */
  --accent-text: #b8341b;   /* Vermilion Deep: accent as text (5.58:1 on paper) */
  --paper: #faf8f3;         /* Paper: page background */
  --rule: #ddd7cb;          /* Rule: decorative hairlines */
  --graphite: #545b69;      /* Graphite: secondary text */
  --white: #ffffff;

  /* Derived (contrast-tested) */
  --blue-strong: #1a3ba8;   /* link hover and pressed: 9.40:1 on white, 8.85:1 on paper */
  --blue-50: #eaeffb;       /* pale blue tint (notices, current item) */
  --blue-100: #c9d5f5;      /* border for blue tint */
  --accent-strong: #962a14;  /* hover for the vermilion-deep button */
  --accent-50: #fcebe5;     /* pale vermilion tint */
  --paper-2: #f3efe6;       /* alternate band and quiet surfaces */
  --text: var(--ink);
  --text-2: var(--graphite);        /* 6.82:1 on white, 6.43:1 on paper, 5.95:1 on paper-2 */
  --text-muted: #636978;            /* 5.49:1 on white, 5.18:1 on paper, 4.79:1 on paper-2 */
  --border: var(--rule);
  --border-strong: #767c8a;         /* input and control outlines: 4.2:1 on white, 3.94:1 on paper */
  --surface: #ffffff;
  --surface-alt: var(--paper-2);
  --bg: var(--paper);

  /* On dark (ink) bands */
  --ink-800: #1d2b4d;       /* panels on ink */
  --ink-700: #3a4a70;       /* decorative lines on ink */
  --on-dark: #faf8f3;       /* paper on ink: 15.05:1 */
  --on-dark-2: #c9cfdc;     /* 10.22:1 on ink, 8.93:1 on ink-800 */
  --accent-on-dark: #ff8a65;/* vermilion light on ink: 6.90:1 */
  --blue-on-dark: #8fa8ff;  /* links on ink: 7.01:1 */

  /* Status (text on its matching tint, all >= 4.5:1) */
  --warn-bg: #fffbeb;
  --warn-text: #92400e;
  --warn-text-strong: #78350f;
  --warn-border: #f59e0b;
  --ok-bg: #ecfdf5; --ok-text: #065f46; --ok-border: #6ee7b7;
  --err-bg: #fef2f2; --err-text: #991b1b; --err-border: #fca5a5; --err: #b91c1c;
  --opinion-bg: #f5f3ff; --opinion-text: #5b21b6; --opinion-border: #c4b5fd;
  --forecast-bg: #fff7ed; --forecast-text: #9a3412; --forecast-border: #fdba74;

  /* Type */
  --font-serif: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.1875rem;
  --fs-h4: 1.1875rem;
  --fs-h3: 1.4375rem;
  --fs-h2: clamp(1.75rem, 1.3rem + 1.7vw, 2.5rem);
  --fs-h1: clamp(2.5rem, 1.6rem + 3.8vw, 4.25rem);
  --lh-body: 1.6;
  --lh-tight: 1.12;

  /* Space (8px scale) */
  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4rem; --s-9: 6rem;

  /* Shape and layout (Ledger: square-ish) */
  --radius-sm: 4px; --radius: 6px; --radius-lg: 10px;
  --container: 1200px;
  --header-h: 72px;
  --shadow-sm: 0 1px 2px rgba(20, 33, 61, 0.06);
  --shadow-md: 0 8px 24px rgba(20, 33, 61, 0.12);
  --scrim: rgba(20, 33, 61, 0.62);
  --focus: #1f47c9;
  --focus-on-dark: #8fa8ff;
}
