/* nico · Chart — tokens compiled from the design system's tokens.json (two themes, light first). Hand-compiled for the demo on 2026-11-08; the artifact page generates its own copy. */

@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("fonts/AtkinsonHyperlegibleNext-latin.woff2") format("woff2"); font-weight: 200 800; 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: "Atkinson Hyperlegible Next"; src: url("fonts/AtkinsonHyperlegibleNext-latin-ext.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Atkinson Hyperlegible Mono"; src: url("fonts/AtkinsonHyperlegibleMono-latin.woff2") format("woff2"); font-weight: 200 800; 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: "Atkinson Hyperlegible Mono"; src: url("fonts/AtkinsonHyperlegibleMono-latin-ext.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* light, the first theme: every color token gets its first definition here */
:root {
  --surface: #f7faf9;
  --surface-raised: #ffffff;
  --surface-sunken: #f0f5f3;
  --scrim: #0f1f1c99;
  --line: #dae4e1;
  --ink: #0f1f1c;
  --ink-muted: #425955;
  --ink-faint: #5b706c;
  --line-control: var(--ink-faint);
  --accent: #0f766e;
  --accent-strong: #115e59;
  --accent-soft: #e3f4f1;
  --on-accent: #ffffff;
  --actor-agent: var(--accent);
  --actor-human: var(--surface-sunken);
  --actor-system: var(--ink-faint);
  --state-open: var(--ink-muted);
  --state-working: #1d4ed8;
  --state-working-soft: #dbeafe;
  --state-waiting: var(--ink-muted);
  --state-waiting-soft: var(--surface-sunken);
  --state-needs-you: #b45309;
  --state-needs-you-soft: #fef3c7;
  --state-done: var(--ink-muted);
  --state-failed: #b91c1c;
  --state-failed-soft: #fee2e2;
  --provenance-verified: #15803d;
  --provenance-verified-soft: #dcfce7;
  --provenance-extracted: #1d4ed8;
  --provenance-inferred: var(--ink-muted);
  --focus: var(--accent);
  --shadow-sm: 0 1px 2px #0f1f1c0f, 0 1px 3px #0f1f1c14;
  --shadow-md: 0 1px 2px #0f1f1c0f, 0 4px 12px -4px #0f1f1c1a;
  --focus-ring: 0 0 0 2px #f7faf9, 0 0 0 4px #0f766e;
}

/* dark, when the system prefers it and no explicit light choice was made */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --surface: #0e1817;
    --surface-raised: #141f1e;
    --surface-sunken: #1b2826;
    --scrim: #000000b3;
    --line: #273734;
    --ink: #e9f1ef;
    --ink-muted: #a3b6b2;
    --ink-faint: #839995;
    --accent: #4fd1c2;
    --accent-strong: #7fe0d4;
    --accent-soft: #15302d;
    --on-accent: #06201d;
    --state-working: #7fb4ff;
    --state-working-soft: #172a47;
    --state-needs-you: #fbbf24;
    --state-needs-you-soft: #3a2a0a;
    --state-failed: #ff8a8a;
    --state-failed-soft: #3b1212;
    --provenance-verified: #5be38f;
    --provenance-verified-soft: #0f2e1c;
    --provenance-extracted: #7fb4ff;
    --shadow-sm: 0 1px 2px #0000004d;
    --shadow-md: 0 1px 2px #0000004d, 0 8px 20px -8px #00000080;
    --focus-ring: 0 0 0 2px #0e1817, 0 0 0 4px #4fd1c2;
    color-scheme: dark;
  }
}

/* dark, chosen explicitly: the same values, so the toggle wins both ways */
:root[data-theme="dark"] {
  --surface: #0e1817;
  --surface-raised: #141f1e;
  --surface-sunken: #1b2826;
  --scrim: #000000b3;
  --line: #273734;
  --ink: #e9f1ef;
  --ink-muted: #a3b6b2;
  --ink-faint: #839995;
  --accent: #4fd1c2;
  --accent-strong: #7fe0d4;
  --accent-soft: #15302d;
  --on-accent: #06201d;
  --state-working: #7fb4ff;
  --state-working-soft: #172a47;
  --state-needs-you: #fbbf24;
  --state-needs-you-soft: #3a2a0a;
  --state-failed: #ff8a8a;
  --state-failed-soft: #3b1212;
  --provenance-verified: #5be38f;
  --provenance-verified-soft: #0f2e1c;
  --provenance-extracted: #7fb4ff;
  --shadow-sm: 0 1px 2px #0000004d;
  --shadow-md: 0 1px 2px #0000004d, 0 8px 20px -8px #00000080;
  --focus-ring: 0 0 0 2px #0e1817, 0 0 0 4px #4fd1c2;
  color-scheme: dark;
}

/* spacing, radius, sizes and families: the same in both themes */
:root {
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 20px; --space-6: 24px; --space-8: 32px; --space-12: 48px;
  --radius-sm: 6px; --radius-md: 8px; --radius-lg: 12px; --radius-full: 9999px;
  --row: 38px; --control: 32px; --avatar: 28px; --icon: 14px; --pane-list: 252px; --pane-inspector: 372px; --measure: 66ch;
  --font-sans: "Atkinson Hyperlegible Next", -apple-system, "Segoe UI", system-ui, Roboto, sans-serif;
  --font-mono: "Atkinson Hyperlegible Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* type styles, as the design system's page compiles them */
.display { font-size: 28px; line-height: 34px; font-weight: 600; letter-spacing: -0.015em; }
.title { font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -0.01em; }
.issue-title { font-size: 16px; line-height: 22px; font-weight: 600; letter-spacing: -0.01em; }
.heading { font-size: 14px; line-height: 20px; font-weight: 600; }
.body { font-size: 14px; line-height: 20px; font-weight: 400; }
.meta { font-size: 13px; line-height: 18px; font-weight: 400; }
.field-label { font-size: 11px; line-height: 14px; font-weight: 400; }
.label { font-size: 11px; line-height: 16px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; }
.badge { font-size: 11px; line-height: 18px; font-weight: 600; letter-spacing: 0.01em; }
.code { font-family: var(--font-mono); font-size: 13px; line-height: 18px; font-weight: 400; }
.code-small { font-family: var(--font-mono); font-size: 12px; line-height: 16px; font-weight: 400; }
