/* generated from web/tokens.json — do not edit. Run `node scripts/build-tokens.mjs` after changing the token file. */

/*
 * Cascade layers, declared once and first. Later layers win, and any CSS outside a layer beats
 * every layer: that is how the old, unlayered page stylesheets keep working while new pages are
 * rebuilt from the components layer.
 */
@layer reset, base, components, pages;

:root {
  color-scheme: light;
  --surface-page: #fafaf9;
  --surface: #fafaf9;
  --surface-sunk: #f2f2f0;
  --surface-raised: #ffffff;
  --surface-hover: #efefec;
  --surface-rail-hover: #e9e9e6;
  --surface-sidebar: #f3f3f1;
  --text: #1b1b19;
  --text-secondary: #46453f;
  --text-muted: #6a6963;
  --text-faint: #8e8d87;
  --text-inverse: #fafaf9;
  --border: #e3e2de;
  --border-soft: #ebebe8;
  --border-strong: #b8b7b1;
  --selection: #1b1b19;
  --selection-soft: #ebebe8;
  --verdict-positive: #1e6a4e;
  --verdict-positive-soft: #e5f0ea;
  --verdict-negative: #b23a2e;
  --verdict-negative-soft: #f8e9e6;
  --error: #9c2a6b;
  --error-soft: #f7e8f0;
  --error-text: #6e1d4b;
  --warning: #8a5a10;
  --warning-soft: #f6eedd;
  --focus: #2f6f9f;
  --status-queued: #657d70;
  --scenario-downside: #5f8fca;
  --scenario-base: #2f68b4;
  --scenario-upside: #173e73;
  --scenario-soft: #dbe6f4;
  --forecast-band: #f4f4f1;
  --reported: #46453f;
  --series-1: #2a78d6;
  --series-2: #eb6834;
  --series-3: #0e93b8;
  --series-4: #c98a00;
  --series-5: #e87ba4;
  --series-6: #6250d6;
  --series-7: #8a5b33;
  --series-8: #5f6f7a;
  --series-9: #b0399c;
  --series-10: #1d3f8f;
  --scrim: #16202a52;
  --shadow-1: 0 1px 2px #16202a0d, 0 1px 1px #16202a08;
  --shadow-2: 0 2px 4px #16202a0f, 0 8px 20px #16202a1c;
  --shadow-3: 0 4px 12px #16202a14, 0 24px 64px #16202a2b;
  --shadow-ring: 0 0 0 3px #16202a12;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-0-5: 2px;
  --space-1-5: 6px;
  --space-2-5: 10px;
  --radius-sheet: 12px;
  --radius-panel: 10px;
  --radius-control: 6px;
  --radius-tag: 3px;
  --radius-pill: 999px;
  --text-xs: 11px;
  --text-s: 12px;
  --text-ui: 13px;
  --text-m: 14px;
  --text-prose: 16px;
  --text-l: 17px;
  --text-xl: 21px;
  --text-2xl: 26px;
  --text-3xl: 32px;
  --text-4xl: 40px;
  --leading-display: 1.1;
  --leading-tight: 1.25;
  --leading-snug: 1.4;
  --leading-body: 1.6;
  --leading-loose: 1.75;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --stretch-display: 82%;
  --stretch-figure: 74%;
  --font-sans: 'Archivo Variable', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: ui-monospace, 'SFMono-Regular', Consolas, monospace;
  --font-reading: Charter, 'Bitstream Charter', 'Iowan Old Style', 'Sitka Text', Cambria, Georgia, serif;
  --duration-fast: 140ms;
  --duration-base: 200ms;
  --duration-exit: 160ms;
  --ease-out: cubic-bezier(0.215, 0.61, 0.355, 1);
  --ease-in: cubic-bezier(0.55, 0.055, 0.675, 0.19);
  --press-scale: .97;
  --sidebar-expanded: 240px;
  --sidebar-collapsed: 56px;
  --header-height: 52px;
  --tabbar-height: 48px;
  --measure: 70ch;
  --chart-height: 280px;
  --measure-reading: 66ch;
  --type-display-figure-size: 40px;
  --type-display-figure-leading: 1.05;
  --type-display-figure-weight: 650;
  --type-display-figure-stretch: 74%;
  --type-display-figure-tracking: -0.01em;
  --type-page-title-size: 28px;
  --type-page-title-leading: 1.15;
  --type-page-title-weight: 700;
  --type-page-title-stretch: 82%;
  --type-page-title-tracking: -0.015em;
  --type-section-title-size: 17px;
  --type-section-title-leading: 1.25;
  --type-section-title-weight: 600;
  --type-section-title-stretch: 100%;
  --type-section-title-tracking: -0.01em;
  --type-body-size: 16px;
  --type-body-leading: 1.6;
  --type-body-weight: 400;
  --type-body-stretch: 100%;
  --type-body-tracking: 0;
  --type-table-size: 13px;
  --type-table-leading: 1.4;
  --type-table-weight: 400;
  --type-table-stretch: 100%;
  --type-table-tracking: 0;
  --type-caption-size: 12px;
  --type-caption-leading: 1.4;
  --type-caption-weight: 400;
  --type-caption-stretch: 100%;
  --type-caption-tracking: 0;
  --type-reading-size: 16px;
  --type-reading-leading: 1.68;
  --type-reading-weight: 400;
  --type-reading-stretch: 100%;
  --type-reading-tracking: 0;
}

/* The reader chose dark explicitly (web/theme.js sets the attribute from localStorage). */
:root[data-theme="dark"] {
  color-scheme: dark;
  --surface-page: #1f1f1e;
  --surface: #1f1f1e;
  --surface-sunk: #262625;
  --surface-raised: #2a2a29;
  --surface-hover: #292928;
  --surface-rail-hover: #262625;
  --surface-sidebar: #191918;
  --text: #ecebe7;
  --text-secondary: #c9c8c2;
  --text-muted: #9e9d97;
  --text-faint: #73726d;
  --text-inverse: #1f1f1e;
  --border: #363634;
  --border-soft: #2c2c2b;
  --border-strong: #5b5a56;
  --selection: #ecebe7;
  --selection-soft: #2e2e2d;
  --verdict-positive: #5cc497;
  --verdict-positive-soft: #17322a;
  --verdict-negative: #f08a7c;
  --verdict-negative-soft: #3a201d;
  --error: #e58bbd;
  --error-soft: #371c2b;
  --error-text: #f2b6d6;
  --warning: #e2a952;
  --warning-soft: #33280f;
  --focus: #7ab2e0;
  --status-queued: #8ea597;
  --scenario-downside: #4474ae;
  --scenario-base: #6b9fe0;
  --scenario-upside: #b0cdf3;
  --scenario-soft: #22344a;
  --forecast-band: #232322;
  --reported: #c9c8c2;
  --series-1: #5a9be6;
  --series-2: #e8943a;
  --series-3: #3fb8d8;
  --series-4: #f0b429;
  --series-5: #ec8fb2;
  --series-6: #9488f0;
  --series-7: #c08e5e;
  --series-8: #9aa8b3;
  --series-9: #d76cc4;
  --series-10: #c7d2fe;
  --scrim: #000000a3;
  --shadow-1: 0 1px 2px #00000040, 0 0 0 1px #ffffff08;
  --shadow-2: 0 2px 4px #00000059, 0 8px 20px #00000066;
  --shadow-3: 0 4px 12px #00000066, 0 24px 64px #00000099;
  --shadow-ring: 0 0 0 3px #e5eaec1f;
}

/* No explicit choice: follow the operating system. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --surface-page: #1f1f1e;
    --surface: #1f1f1e;
    --surface-sunk: #262625;
    --surface-raised: #2a2a29;
    --surface-hover: #292928;
    --surface-rail-hover: #262625;
    --surface-sidebar: #191918;
    --text: #ecebe7;
    --text-secondary: #c9c8c2;
    --text-muted: #9e9d97;
    --text-faint: #73726d;
    --text-inverse: #1f1f1e;
    --border: #363634;
    --border-soft: #2c2c2b;
    --border-strong: #5b5a56;
    --selection: #ecebe7;
    --selection-soft: #2e2e2d;
    --verdict-positive: #5cc497;
    --verdict-positive-soft: #17322a;
    --verdict-negative: #f08a7c;
    --verdict-negative-soft: #3a201d;
    --error: #e58bbd;
    --error-soft: #371c2b;
    --error-text: #f2b6d6;
    --warning: #e2a952;
    --warning-soft: #33280f;
    --focus: #7ab2e0;
    --status-queued: #8ea597;
    --scenario-downside: #4474ae;
    --scenario-base: #6b9fe0;
    --scenario-upside: #b0cdf3;
    --scenario-soft: #22344a;
    --forecast-band: #232322;
    --reported: #c9c8c2;
    --series-1: #5a9be6;
    --series-2: #e8943a;
    --series-3: #3fb8d8;
    --series-4: #f0b429;
    --series-5: #ec8fb2;
    --series-6: #9488f0;
    --series-7: #c08e5e;
    --series-8: #9aa8b3;
    --series-9: #d76cc4;
    --series-10: #c7d2fe;
    --scrim: #000000a3;
    --shadow-1: 0 1px 2px #00000040, 0 0 0 1px #ffffff08;
    --shadow-2: 0 2px 4px #00000059, 0 8px 20px #00000066;
    --shadow-3: 0 4px 12px #00000066, 0 24px 64px #00000099;
    --shadow-ring: 0 0 0 3px #e5eaec1f;
  }
}

/* Paper is white: printing always uses the light colours, whatever the screen theme. */
@media print {
  :root:root:root {
    color-scheme: light;
    --surface-page: #fafaf9;
    --surface: #fafaf9;
    --surface-sunk: #f2f2f0;
    --surface-raised: #ffffff;
    --surface-hover: #efefec;
    --surface-rail-hover: #e9e9e6;
    --surface-sidebar: #f3f3f1;
    --text: #1b1b19;
    --text-secondary: #46453f;
    --text-muted: #6a6963;
    --text-faint: #8e8d87;
    --text-inverse: #fafaf9;
    --border: #e3e2de;
    --border-soft: #ebebe8;
    --border-strong: #b8b7b1;
    --selection: #1b1b19;
    --selection-soft: #ebebe8;
    --verdict-positive: #1e6a4e;
    --verdict-positive-soft: #e5f0ea;
    --verdict-negative: #b23a2e;
    --verdict-negative-soft: #f8e9e6;
    --error: #9c2a6b;
    --error-soft: #f7e8f0;
    --error-text: #6e1d4b;
    --warning: #8a5a10;
    --warning-soft: #f6eedd;
    --focus: #2f6f9f;
    --status-queued: #657d70;
    --scenario-downside: #5f8fca;
    --scenario-base: #2f68b4;
    --scenario-upside: #173e73;
    --scenario-soft: #dbe6f4;
    --forecast-band: #f4f4f1;
    --reported: #46453f;
    --series-1: #2a78d6;
    --series-2: #eb6834;
    --series-3: #0e93b8;
    --series-4: #c98a00;
    --series-5: #e87ba4;
    --series-6: #6250d6;
    --series-7: #8a5b33;
    --series-8: #5f6f7a;
    --series-9: #b0399c;
    --series-10: #1d3f8f;
    --scrim: #16202a52;
    --shadow-1: 0 1px 2px #16202a0d, 0 1px 1px #16202a08;
    --shadow-2: 0 2px 4px #16202a0f, 0 8px 20px #16202a1c;
    --shadow-3: 0 4px 12px #16202a14, 0 24px 64px #16202a2b;
    --shadow-ring: 0 0 0 3px #16202a12;
  }
}
