/* AskRobots design tokens (direction B "Clean / light").
 * Light by default; dark follows the system unless the page or the toggle
 * sets data-theme on <html>. Token names are shared with the admin
 * ("live") theme planned for later, only the values differ.
 * Text/background pairs are WCAG AA (>= 4.5:1), see docs/design/2026-10-07/phase1/. */

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

:root {
  /* surfaces */
  --bg: #faf8f3;
  --surface: #ffffff;
  --surface-2: #f1eee6;
  --line: #e2ddd1;
  --line-strong: #8f897c;   /* form borders: 3:1 against --bg (WCAG 1.4.11) */
  /* text */
  --ink: #1d1c1a;
  --ink-2: #4a4740;
  --ink-3: #635f56;
  --title: #174a6e;
  /* accent + status (status colors always come with a text label) */
  --accent: #1f5f8b;
  --accent-hover: #174a6e;
  --accent-wash: #e7f0f7;
  --on-accent: #ffffff;
  --good: #2f7a3d;
  --good-wash: #e5f2e6;
  --warn: #8a5a00;
  --warn-wash: #fbf1dc;
  --bad: #b3261e;
  --hl: #fdf0b8;            /* matched words in snippets */

  /* type */
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --fs-1: 13px;
  --fs-2: 15px;
  --fs-3: 17px;
  --fs-4: 21px;
  --fs-5: 28px;
  --fs-6: 44px;

  /* spacing */
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 56px;

  --r: 10px;
  --r-pill: 999px;
  --shadow: 0 1px 2px rgba(29, 28, 26, .06), 0 2px 8px rgba(29, 28, 26, .05);
  --content: 680px;
  --wide: 1180px;
  --gutter: 24px;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #171614;
    --surface: #1f1e1b;
    --surface-2: #292723;
    --line: #36332e;
    --line-strong: #77726a;
    --ink: #f2efe8;
    --ink-2: #cbc6bb;
    --ink-3: #a29d92;
    --title: #a9d3f2;
    --accent: #8cc3ea;
    --accent-hover: #b5daf5;
    --accent-wash: #1b2c38;
    --on-accent: #0d1b26;
    --good: #7fcf8c;
    --good-wash: #1c2e1f;
    --warn: #e8b75a;
    --warn-wash: #33290f;
    --bad: #ff8a7f;
    --hl: #4a3f12;
    --shadow: none;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #171614;
  --surface: #1f1e1b;
  --surface-2: #292723;
  --line: #36332e;
  --line-strong: #77726a;
  --ink: #f2efe8;
  --ink-2: #cbc6bb;
  --ink-3: #a29d92;
  --title: #a9d3f2;
  --accent: #8cc3ea;
  --accent-hover: #b5daf5;
  --accent-wash: #1b2c38;
  --on-accent: #0d1b26;
  --good: #7fcf8c;
  --good-wash: #1c2e1f;
  --warn: #e8b75a;
  --warn-wash: #33290f;
  --bad: #ff8a7f;
  --hl: #4a3f12;
  --shadow: none;
  color-scheme: dark;
}

@media (max-width: 600px) {
  :root { --gutter: 16px; }
}
