/* CPersona design tokens, version 1.0.0.
 *
 * The one place the project's shared colours and typeface are set. The dashboard
 * (this package) loads this file before app.css; the documentation site takes it
 * into its build (scripts/docs_tokens.py) and maps the theme's variables onto it;
 * the website carries a copy that its own checks compare with this file. A surface
 * may add tokens of its own, as the dashboard does for its memory network, but does
 * not set one of these. tests/test_design_tokens.py holds every stylesheet to that
 * and checks each text colour against each surface it can sit on.
 *
 * The rules the values serve (decided for the dashboard, and the project's look
 * since 2026-11-30):
 * - Neutral steps: base < recessed < raised, plus one line colour. Hue is barely
 *   mixed in.
 * - The accent marks only what can be acted on or is selected. Warn marks only a
 *   problem, and always with words beside it, never colour alone.
 * - System fonts on purpose: the dashboard must work offline and load nothing.
 *   No surface but the documentation's code blocks uses a monospaced face.
 *
 * The dark values apply when the system asks for dark and the page has not chosen
 * light, and when the page chooses dark: data-theme on any page, or the scheme
 * attribute the documentation's theme puts on <body>.
 *
 * Versioning: major when a name is removed or renamed, minor when one is added,
 * patch when a value changes.
 */
:root,
[data-theme="light"],
[data-md-color-scheme="default"] {
  --base: #f5f6f8; --recessed: #eceef1; --raised: #ffffff; --line: #dfe2e6; --line-soft: #ebedf0;
  --text: #1a1d21; --muted: #59616b; --faint: #646c75; --label: #646c75;
  --accent: #2b67d1; --accent-soft: #e6eefb; --on-accent: #ffffff;
  --warn: #9a5b0b; --warn-soft: #fbf1e3;
  --font-sans: system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "Yu Gothic UI", "Noto Sans JP", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --base: #121417; --recessed: #0d0f11; --raised: #1a1d21; --line: #2b3036; --line-soft: #23272c;
    --text: #e5e8ec; --muted: #a2aab3; --faint: #8a929b; --label: #767d85;
    --accent: #6b9ef2; --accent-soft: #1c2a42; --on-accent: #0d0f11;
    --warn: #e3a857; --warn-soft: #33270f;
    color-scheme: dark;
  }
}
[data-theme="dark"],
[data-md-color-scheme="slate"] {
  --base: #121417; --recessed: #0d0f11; --raised: #1a1d21; --line: #2b3036; --line-soft: #23272c;
  --text: #e5e8ec; --muted: #a2aab3; --faint: #8a929b; --label: #767d85;
  --accent: #6b9ef2; --accent-soft: #1c2a42; --on-accent: #0d0f11;
  --warn: #e3a857; --warn-soft: #33270f;
  color-scheme: dark;
}
