/* tackroom tokens, theme "Graphite" (docs/brand/THEMES.md), the site's current theme.
   docs/site/tokens.css is a copy of docs/brand/tokens-graphite.css; same --tr-* names. Light is the default; dark follows the OS
   unless data-theme="light" is set on <html>, and data-theme="dark" forces it.
   Fonts: Public Sans and IBM Plex Mono, SIL OFL 1.1. Contrast: docs/brand/BRAND.md. */
:root {
  color-scheme: light dark;
  --tr-bg: #fafafa;
  --tr-surface: #ffffff;
  --tr-raised: #f0f0f1;
  --tr-line: #e3e3e6;
  --tr-line-strong: #86868c;
  --tr-text: #111113;
  --tr-muted: #4d4d53;
  --tr-faint: #68686e;
  --tr-accent: #111113;
  --tr-accent-ink: #ffffff;
  --tr-accent-text: #111113;
  --tr-rail: #111113;
  --tr-ok: #17784c;
  --tr-ok-bg: #e6f3ec;
  --tr-warn: #9c5200;
  --tr-warn-bg: #fcf0e1;
  --tr-bad: #c21f3a;
  --tr-bad-bg: #fce8eb;
  --tr-pin: #0b5cad;
  --tr-pin-bg: #e7eff9;
  --tr-focus: #111113;
  --tr-tile: #111113;
  --tr-hook: #a8a8ae;
  --tr-logo-rail: #ffffff;
  --tr-mark-bg: #aeb1b8; /* silver tile behind vendor marks, same in both themes */
  --tr-mark-line: #86868c;
  --tr-code-bg: #f2f2f3;
  --tr-code-text: #111113;
  --tr-code-dim: #55555b;
  --tr-code-ok: #17784c;
  --tr-code-warn: #8f4b00;
  --tr-code-bad: #b51c36;
  --tr-code-pin: #0b5cad;
  --tr-font-display: "Public Sans", ui-sans-serif, system-ui, sans-serif;
  --tr-font-body: "Public Sans", ui-sans-serif, system-ui, sans-serif;
  --tr-font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --tr-radius-card: 8px;
  --tr-radius-plate: 4px;
  --tr-radius-control: 8px;
  --tr-radius-chip: 4px;
  --tr-display-weight: 700;
  --tr-display-tracking: -0.02em;
  --tr-rail-width: 3px;
  --tr-fs-caption: 14px;
  --tr-fs-ui: 14px;
  --tr-fs-body: 16px;
  --tr-fs-lead: 18px;
  --tr-fs-h3: 21px;
  --tr-fs-h2: 28px;
  --tr-fs-h1: 38px;
  --tr-fs-display: 50px;
  --tr-lh-body: 1.55;
  --tr-lh-tight: 1.1;
  --tr-space-1: 4px;
  --tr-space-2: 8px;
  --tr-space-3: 12px;
  --tr-space-4: 16px;
  --tr-space-5: 24px;
  --tr-space-6: 32px;
  --tr-space-7: 48px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --tr-bg: #141416;
    --tr-surface: #1c1c1f;
    --tr-raised: #26262a;
    --tr-line: #303035;
    --tr-line-strong: #707077;
    --tr-text: #f2f2f3;
    --tr-muted: #b3b3b8;
    --tr-faint: #9a9aa0;
    --tr-accent: #f2f2f3;
    --tr-accent-ink: #111113;
    --tr-accent-text: #f2f2f3;
    --tr-rail: #d9d9dc;
    --tr-ok: #55c38f;
    --tr-ok-bg: #15271f;
    --tr-warn: #f0a54a;
    --tr-warn-bg: #2c2113;
    --tr-bad: #ff7086;
    --tr-bad-bg: #2e171c;
    --tr-pin: #6aaef0;
    --tr-pin-bg: #14243a;
    --tr-focus: #f2f2f3;
    --tr-tile: #f2f2f3;
    --tr-hook: #707077;
    --tr-logo-rail: #111113;
    --tr-mark-line: #707077;
    --tr-code-bg: #101012;
    --tr-code-text: #e8e8ea;
    --tr-code-dim: #9d9da3;
    --tr-code-ok: #55c38f;
    --tr-code-warn: #f0a54a;
    --tr-code-bad: #ff7086;
    --tr-code-pin: #6aaef0;
  }
}
:root[data-theme="dark"] {
  --tr-bg: #141416;
  --tr-surface: #1c1c1f;
  --tr-raised: #26262a;
  --tr-line: #303035;
  --tr-line-strong: #707077;
  --tr-text: #f2f2f3;
  --tr-muted: #b3b3b8;
  --tr-faint: #9a9aa0;
  --tr-accent: #f2f2f3;
  --tr-accent-ink: #111113;
  --tr-accent-text: #f2f2f3;
  --tr-rail: #d9d9dc;
  --tr-ok: #55c38f;
  --tr-ok-bg: #15271f;
  --tr-warn: #f0a54a;
  --tr-warn-bg: #2c2113;
  --tr-bad: #ff7086;
  --tr-bad-bg: #2e171c;
  --tr-pin: #6aaef0;
  --tr-pin-bg: #14243a;
  --tr-focus: #f2f2f3;
  --tr-tile: #f2f2f3;
  --tr-hook: #707077;
  --tr-logo-rail: #111113;
  --tr-mark-line: #707077;
  --tr-code-bg: #101012;
  --tr-code-text: #e8e8ea;
  --tr-code-dim: #9d9da3;
  --tr-code-ok: #55c38f;
  --tr-code-warn: #f0a54a;
  --tr-code-bad: #ff7086;
  --tr-code-pin: #6aaef0;
}
