/* GENERATED from tokens/tokens.json by scripts/build-tokens.mjs. Do not edit by hand.
 *
 * Palette: fixed brand colours (--forest, --sage, --off-white, --clay, --burnt-orange, --gold).
 * Semantic: app UI tokens with light and dark values. Components should use these, not the palette.
 *
 * Dark mode follows the OS unless <html data-theme="light|dark"> pins it. The dark values are written
 * twice on purpose: once for "follow the system", once for the explicit dark setting.
 */

:root {
  --forest: #0F3B2E;
  --sage: #A3B18A;
  --off-white: #F8F5EC;
  --clay: #C87856;
  --burnt-orange: #B5522E;
  --gold: #F6D478;
  --paper: var(--off-white);
  --ember: var(--burnt-orange);

  --font-ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", system-ui, sans-serif;
  --font-serif: ui-serif, "Iowan Old Style", "Charter", "Palatino Linotype", Georgia, serif;
  --font-brand: ui-rounded, "SF Pro Rounded", "Nunito", "Varela Round", "Quicksand", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, "JetBrains Mono", Consolas, monospace;

  --radius-window: 12px;
  --radius-card: 10px;
  --radius-control: 7px;
  --radius-menu: 10px;
  --radius-dock: 18px;
  --radius-pill: 999px;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --duration-fast: 120ms;
  --duration-base: 200ms;
  --duration-enter: 220ms;
  --duration-slow: 400ms;

  --size-menubar: 34px;
  --size-titlebar: 38px;
  --size-control: 30px;
  --size-menubar-control: 24px;
  --size-mac-traffic-light-inset: 84px;
}

/* ---------------------------------------------------------------- light */
:root {
  --bg: #ECE7DA;
  --bg-contour: #0F3B2E14;
  --menubar: #F8F5ECCC;
  --menubar-solid: #F8F5EC;
  --surface: #FBF9F4;
  --surface-sunken: #F3EFE5;
  --surface-raised: #FFFFFF;
  --titlebar: #F4F0E7;
  --titlebar-inactive: #F7F4ED;
  --hairline: #0F3B2E1F;
  --hairline-strong: #0F3B2E33;
  --text: #15231C;
  --text-2: #4D5951;
  --text-3: #858B83;
  --accent: #0F3B2E;
  --accent-hover: #17503E;
  --accent-ink: #F8F5EC;
  --accent-soft: #0F3B2E12;
  --focus-ring: #0F3B2E55;
  --decode: #1F5A45;
  --prefill: #B5522E;
  --good: #2E7A4C;
  --good-soft: #2E7A4C1C;
  --bad: #B5522E;
  --bad-soft: #B5522E1C;
  --warn: #8A6400;
  --warn-soft: #F6D47866;
  --rule: #E9BE45;
  --page: #FFFDF8;
  --page-ink: #2B2A22;
  --code-bg: #FCFBF7;
  --tok-comment: #8B918A;
  --tok-string: #2F7A4A;
  --tok-keyword: #A1411C;
  --tok-number: #8A6400;
  --logo-ink: #0F3B2E;
  --logo-paper: #F8F5EC;
  --shadow-window: 0 0 0 .5px #0F2A2033, 0 22px 48px -18px #1B2E2466, 0 6px 16px -6px #1B2E241F;
  --shadow-float: 0 0 0 .5px #0F2A2026, 0 12px 32px -10px #1B2E244D;
  color-scheme: light;
}

/* ---------------------------------------------------------------- dark */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A1612;
    --bg-contour: #A3B18A12;
    --menubar: #0F1E18CC;
    --menubar-solid: #0F1E18;
    --surface: #13221C;
    --surface-sunken: #0F1C17;
    --surface-raised: #1A2B24;
    --titlebar: #1A2A23;
    --titlebar-inactive: #16241E;
    --hairline: #E8EFE51A;
    --hairline-strong: #E8EFE52E;
    --text: #EEF0E8;
    --text-2: #B3BCB2;
    --text-3: #7D887F;
    --accent: #A3B18A;
    --accent-hover: #B5C29E;
    --accent-ink: #0F1F18;
    --accent-soft: #A3B18A1F;
    --focus-ring: #A3B18A66;
    --decode: #A3B18A;
    --prefill: #D98A68;
    --good: #93CFA0;
    --good-soft: #93CFA01F;
    --bad: #E8977A;
    --bad-soft: #E8977A1F;
    --warn: #F6D478;
    --warn-soft: #F6D47826;
    --rule: #F6D478;
    --page: #16261F;
    --page-ink: #E6E4D8;
    --code-bg: #0F1B16;
    --tok-comment: #6F7B72;
    --tok-string: #A6CE9C;
    --tok-keyword: #E8977A;
    --tok-number: #F6D478;
    --logo-ink: #A3B18A;
    --logo-paper: #0F1E18;
    --shadow-window: 0 0 0 .5px #00000099, 0 24px 56px -16px #000000B3, 0 6px 18px -6px #00000066;
    --shadow-float: 0 0 0 .5px #00000080, 0 14px 36px -10px #00000099;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0A1612;
  --bg-contour: #A3B18A12;
  --menubar: #0F1E18CC;
  --menubar-solid: #0F1E18;
  --surface: #13221C;
  --surface-sunken: #0F1C17;
  --surface-raised: #1A2B24;
  --titlebar: #1A2A23;
  --titlebar-inactive: #16241E;
  --hairline: #E8EFE51A;
  --hairline-strong: #E8EFE52E;
  --text: #EEF0E8;
  --text-2: #B3BCB2;
  --text-3: #7D887F;
  --accent: #A3B18A;
  --accent-hover: #B5C29E;
  --accent-ink: #0F1F18;
  --accent-soft: #A3B18A1F;
  --focus-ring: #A3B18A66;
  --decode: #A3B18A;
  --prefill: #D98A68;
  --good: #93CFA0;
  --good-soft: #93CFA01F;
  --bad: #E8977A;
  --bad-soft: #E8977A1F;
  --warn: #F6D478;
  --warn-soft: #F6D47826;
  --rule: #F6D478;
  --page: #16261F;
  --page-ink: #E6E4D8;
  --code-bg: #0F1B16;
  --tok-comment: #6F7B72;
  --tok-string: #A6CE9C;
  --tok-keyword: #E8977A;
  --tok-number: #F6D478;
  --logo-ink: #A3B18A;
  --logo-paper: #0F1E18;
  --shadow-window: 0 0 0 .5px #00000099, 0 24px 56px -16px #000000B3, 0 6px 18px -6px #00000066;
  --shadow-float: 0 0 0 .5px #00000080, 0 14px 36px -10px #00000099;
  color-scheme: dark;
}
