/* Clear Slate design tokens. Source of truth: docs/brand/DESIGN-BASIS.md §2-§4.
   Paper space (light) on :root; model space (dark) via the OS setting or data-theme="model".
   Change a value in the spec first, then here (and in the pid-app theme, §12). */

@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-condensed-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/barlow-condensed-700.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../fonts/public-sans-400-600.woff2") format("woff2"); }
@font-face { font-family: "B612 Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/b612-mono-400.woff2") format("woff2"); }
@font-face { font-family: "B612 Mono"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/b612-mono-700.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --sheet: #F6F7F3; --sheet-2: #ECEFE7; --grid: #D8DFD1;
  --ink: #1A2230; --ink-2: #586377;
  --hl: #F6DB5A; --hl-ink: #1A2230;
  --red: #C42E1F; --ok: #2F6B3C;
  --pad: #E3EDDA; --pad-grid: #BCD0AC;
  --cta-bg: #1A2230; --cta-fg: #F6F7F3;
  /* mark B */
  --mk-ink: #1A2230; --mk-bg: #F6F7F3; --mk-accent: #1A2230;

  --f-display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
  --f-body: "Public Sans", "Segoe UI", system-ui, sans-serif;
  --f-mono: "B612 Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --pen-1: 1px; --pen-2: 1.5px; --pen-3: 2.5px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="paper"]) {
    color-scheme: dark;
    --sheet: #212830; --sheet-2: #29313B; --grid: #323C48;
    --ink: #E6E9EE; --ink-2: #98A2B3;
    --hl: #5E5422; --hl-ink: #FFF3B8;
    --red: #FF6656; --ok: #7CD08E;
    --pad: #243128; --pad-grid: #34473A;
    --cta-bg: #FFE04A; --cta-fg: #212830;
    --mk-ink: #E6E9EE; --mk-bg: #212830; --mk-accent: #FFE04A;
  }
}

:root[data-theme="model"] {
  color-scheme: dark;
  --sheet: #212830; --sheet-2: #29313B; --grid: #323C48;
  --ink: #E6E9EE; --ink-2: #98A2B3;
  --hl: #5E5422; --hl-ink: #FFF3B8;
  --red: #FF6656; --ok: #7CD08E;
  --pad: #243128; --pad-grid: #34473A;
  --cta-bg: #FFE04A; --cta-fg: #212830;
  --mk-ink: #E6E9EE; --mk-bg: #212830; --mk-accent: #FFE04A;
}
