/* Quiet library tokens from design/prototypes/A, plus focus and code-syntax colors. */
:root {
  color-scheme: light;
  --font-sans: Inter, system-ui, sans-serif;
  --font-display: "Inter Tight", Inter, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --weight-regular: 400;
  --weight-strong: 600;
  --text-micro: 0.75rem;
  --text-small: 0.875rem;
  --text-body: 1.125rem;
  --text-heading: 1.5rem;
  --text-title: 2.25rem;
  --text-display: 3rem;
  --leading-body: 1.65;
  --leading-title: 1.08;
  --space-xs: 0.25rem;
  --space-s: 0.5rem;
  --space-m: 1.25rem;
  --space-l: 2.75rem;
  --space-xl: 4.5rem;
  --radius: 2px;
  --focus-width: 3px;
  --focus: var(--accent);
  --measure: 65ch;
  --sidenote: 13rem;
  --gutter: 1.5rem;
  --paper: #f3eee4;
  --ink: #2c241c;
  --muted: #5c5348;
  --accent: #6e2433;
  --code-bg: #e9e2d4;
  --code-ink: #2c241c;
  --chat-nj: #f6e6e4;
  --code-keyword: #6e2433;
  --code-string: #1d4e38;
  --code-number: #3a3f8c;
  --code-comment: #5c5348;
}

:root[data-theme="light"] {
  color-scheme: light;
  --paper: #f3eee4;
  --ink: #2c241c;
  --muted: #5c5348;
  --accent: #6e2433;
  --code-bg: #e9e2d4;
  --code-ink: #2c241c;
  --chat-nj: #f6e6e4;
  --code-keyword: #6e2433;
  --code-string: #1d4e38;
  --code-number: #3a3f8c;
  --code-comment: #5c5348;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
  --paper: #1a1614;
  --ink: #f3eee4;
  --muted: #cbbba8;
  --accent: #e7b7b4;
  --code-bg: #2a2420;
  --code-ink: #f3eee4;
  --chat-nj: #3a2c2e;
  --code-keyword: #e7b7b4;
  --code-string: #b7d7c4;
  --code-number: #c9c6ef;
  --code-comment: #cbbba8;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #1a1614;
  --ink: #f3eee4;
  --muted: #cbbba8;
  --accent: #e7b7b4;
  --code-bg: #2a2420;
  --code-ink: #f3eee4;
  --chat-nj: #3a2c2e;
  --code-keyword: #e7b7b4;
  --code-string: #b7d7c4;
  --code-number: #c9c6ef;
  --code-comment: #cbbba8;
}
