/* VetoInbox design tokens: "On the Record". Shared by the site and the app.
   Source of truth: site/public/assets/brand/. The app copy is written by scripts/sync_brand.sh.
   Font paths are relative to this file. No blue in this palette. */

@font-face { font-family: "Newsreader"; src: url(fonts/newsreader-600.woff2) format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
  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: "Newsreader"; src: url(fonts/newsreader-400i.woff2) format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
  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"; src: url(fonts/plexmono-500.woff2) format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
  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; }

:root {
  color-scheme: light dark;

  /* Light palette */
  --paper: #F6F3EC;
  --surface: #FFFDF8;
  --surface-2: #EEE9DD;
  --ink: #1C1B19;
  --ink-2: #5C574F;
  --rule: #DDD6C8;
  --line: #8A8377;
  --accent: #B07812;
  --accent-ink: #8A5A00;
  --focus: #1C1B19;
  --btn-bg: #1C1B19;
  --btn-text: #FFFDF8;
  --stamp: #1C1B19;
  --ok: #2F6B45;
  --ok-bg: #E3EEE5;
  --wait: #7A5300;
  --wait-bg: #F6EACB;
  --neutral-bg: #EAE5DB;
  --danger: #A3362A;
  --danger-text: #FFFDF8;
  --danger-bg: #F7E4DF;
  --shadow-sheet: 0 1px 2px rgba(28,27,25,.06), 0 12px 32px -16px rgba(28,27,25,.22);
  --mark-strike: #D9A23A; /* ochre bar on the logo tile (brighter than --accent, for the ink tile) */

  /* Type */
  --font-display: "Newsreader", "Iowan Old Style", "Charter", "Georgia", "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9rem;
  --fs-base: 1rem;
  --fs-md: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: clamp(1.75rem, 1.2rem + 2vw, 2.4rem);
  --fs-3xl: clamp(2.5rem, 1.5rem + 4.2vw, 4.25rem);
  --fs-stat: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem);

  /* Space, radius, layout */
  --sp-1: .25rem; --sp-2: .5rem; --sp-3: .75rem; --sp-4: 1rem; --sp-5: 1.5rem;
  --sp-6: 2rem; --sp-7: 3rem; --sp-8: 4rem; --sp-9: 6rem;
  --r-1: 3px; --r-2: 6px; --r-3: 10px; --r-pill: 999px;
  --max-site: 72rem; --max-app: 60rem; --measure: 40rem;

  /* Motion */
  --dur-1: 120ms; --dur-2: 180ms; --dur-3: 220ms;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #151412;
    --surface: #1E1C19;
    --surface-2: #27241F;
    --ink: #EEE8DC;
    --ink-2: #ABA394;
    --rule: #34302A;
    --line: #7D7669;
    --accent: #E3B04B;
    --accent-ink: #E9BE62;
    --focus: #F2D27A;
    --btn-bg: #EEE8DC;
    --btn-text: #151412;
    --stamp: #EEE8DC;
    --ok: #86C79B;
    --ok-bg: #17301F;
    --wait: #E9BE62;
    --wait-bg: #30271A;
    --neutral-bg: #2B2823;
    --danger: #F2998B;
    --danger-text: #1B0B09;
    --danger-bg: #3A1C17;
    --shadow-sheet: none;
    --mark-strike: #B07812; /* dark mode: the tile is light, so the bar is the darker ochre */
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
