/* Luxor design system tokens v1.6 (2026-11-01).
   HOUSE DEFAULT is Vitality design v1 (design-tokens.css + design.css), palette "vitality"
   (the old name "luxor" is the same palette).
   Light/dark: data-theme="light|dark", or no data-theme for the system theme.
   data-mode="light|dark" is the same switch for older pages.
   Colour themes: data-palette="volt|stroom|hartslag" (Vitality #57). They only redefine
   colour roles, in light, explicit dark and system dark. Zones keep their own ramp.
   Older pages may still write data-theme="volt|stroom|hartslag" with data-mode; that
   resolves to the same values. Contrast: tests/test_contrast.py. */
:root {
  color-scheme: light;
  /* type — system UI, no webfont. Body 16px/1.5 (design.css wins over the older 15px). */
  --font: system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: var(--font);
  --font-display: var(--font);
  --font-mono: ui-monospace, "IBM Plex Mono", monospace;
  --type-body: 16px; --type-secondary: 14px; --type-small: 12px;
  --type-h1: 28px; --type-h2: 20px; --type-h3: 16px;
  --leading-body: 1.5; --leading-h1: 1.25; --leading-h2: 1.35; --leading-h3: 1.4;
  /* spacing (4px grid) */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px; --space-6: 32px; --space-7: 48px;
  /* shape, size, motion */
  --radius-s: 6px; --radius-m: 8px; --radius: 12px; --radius-pill: 999px;
  --shadow-1: 0 1px 2px rgb(0 0 0 / .06); --shadow-2: 0 4px 16px rgb(0 0 0 / .10);
  --shadow-menu: 0 6px 20px rgb(0 0 0 / .12);
  --control: 44px; --target-min: 24px; --content: 1200px; --measure: 75ch;
  --motion: 150ms ease; --focus-ring-width: 3px; --focus-ring-offset: 3px;
  /* status lights: fills for white text (>=4.5:1). --on-status is that text. */
  --light-ok: var(--status-ok); --light-warn: var(--status-warn); --light-bad: var(--status-bad); --light-neutral: var(--secondary);
  --status-ok: #137c65; --status-warn: #815400; --status-bad: #a32632; --status-neutral: #48606a;
  --on-status: #ffffff;
  /* Vitality light */
  --page: #f4f6f5; --surface: #ffffff; --ink: #172b35; --secondary: #48606a; --ink-2: var(--secondary);
  --muted: #586d76;
  --line: #748b96; --subtle: #e9f0ee; --action: #006b5b; --on-action: #ffffff; --focus: #175bc4;
  --warning: #815400; --warning-bg: #fff4d9; --error: #a32632; --error-bg: #fff0f1;
  --ring: rgb(11 11 11 / .10); --wash: rgb(11 11 11 / .04);
  --mark-1: #1d9e75; --mark-2: #ef9f27; --mark-3: #d85a30; --mark-p: #185fa5;
  --z1: #536b7b; --z2: #126ead; --z3: #137c65; --z4: #966100; --z5: #9a418e; --z6: #b33e34; --z7: #5146a8;
}
/* House dark. Colour themes below override the colour roles with higher specificity. */
@media (prefers-color-scheme: dark) {
  :root:not([data-mode="light"]):not([data-theme="light"]) {
    color-scheme: dark;
    --page: #101b22; --surface: #182932; --ink: #eff5f5; --secondary: #b5c8cd;
    --muted: #97a5a9;
    --line: #607982; --subtle: #223c44; --action: #73d9bd; --on-action: #102c27; --focus: #8cbaff;
    --warning: #ffd087; --warning-bg: #3e321d; --error: #ffb2ba; --error-bg: #43272e;
    --ring: rgb(255 255 255 / .10); --wash: rgb(255 255 255 / .05);
    --mark-1: #5dcaa5; --mark-2: #fac775; --mark-3: #f0997b; --mark-p: #ffffff;
    --z1: #adbfcb; --z2: #77bff0; --z3: #66d6b2; --z4: #e8b963; --z5: #e79cdb; --z6: #ffaaa0; --z7: #b9b2ff;
    --shadow-1: none; --shadow-2: 0 4px 16px rgb(0 0 0 / .4);
    --light-ok: #34c759; --light-warn: #ffb020; --light-bad: #ff453a;
  }
}
:root[data-mode="dark"],
:root[data-theme="dark"] {
  color-scheme: dark;
  --shadow-1: none; --shadow-2: 0 4px 16px rgb(0 0 0 / .4); --light-ok: #34c759; --light-warn: #ffb020; --light-bad: #ff453a;
  --page: #101b22; --surface: #182932; --ink: #eff5f5; --secondary: #b5c8cd;
  --muted: #97a5a9;
  --line: #607982; --subtle: #223c44; --action: #73d9bd; --on-action: #102c27; --focus: #8cbaff;
  --warning: #ffd087; --warning-bg: #3e321d; --error: #ffb2ba; --error-bg: #43272e;
  --ring: rgb(255 255 255 / .10); --wash: rgb(255 255 255 / .05);
  --mark-1: #5dcaa5; --mark-2: #fac775; --mark-3: #f0997b; --mark-p: #ffffff;
  --z1: #adbfcb; --z2: #77bff0; --z3: #66d6b2; --z4: #e8b963; --z5: #e79cdb; --z6: #ffaaa0; --z7: #b9b2ff;
}
/* Colour themes (Vitality #57). Values are Vitality design-tokens.css, 31-10-2026. */
/* Volt (from RunSynergy, AA-tuned in Vitality #57). */
:root[data-palette="volt"],
:root[data-theme="volt"] {
  color-scheme: light;
  --page: #f2f4f8; --surface: #ffffff; --ink: #0b1026; --secondary: #5b6478; --line: #7a8296; --subtle: #e9ecf3; --action: #3d4fd6; --on-action: #ffffff; --focus: #3d4fd6; --warning: #8a5100; --warning-bg: #fff4d9; --error: #b3261e; --error-bg: #fff0f1; --muted: #5b6478; --z1: #536b7b; --z2: #126ead; --z3: #137c65; --z4: #966100; --z5: #9a418e; --z6: #b33e34; --z7: #5146a8;
}
:root[data-palette="volt"][data-theme="dark"],
:root[data-palette="volt"][data-mode="dark"],
:root[data-theme="volt"][data-mode="dark"] {
  color-scheme: dark;
  --page: #0b1026; --surface: #161d3c; --ink: #eef1f8; --secondary: #aeb6cc; --line: #6b7499; --subtle: #1f2750; --action: #c8f53c; --on-action: #0b1026; --focus: #c8f53c; --warning: #f0b35a; --warning-bg: #3e321d; --error: #ff8a80; --error-bg: #43272e; --muted: #aeb6cc; --z1: #adbfcb; --z2: #77bff0; --z3: #66d6b2; --z4: #e8b963; --z5: #e79cdb; --z6: #ffaaa0; --z7: #b9b2ff;
}
@media (prefers-color-scheme: dark) {
  :root[data-palette="volt"]:not([data-theme="light"]):not([data-mode="light"]),
  :root[data-theme="volt"]:not([data-mode="light"]) {
    color-scheme: dark;
    --page: #0b1026; --surface: #161d3c; --ink: #eef1f8; --secondary: #aeb6cc; --line: #6b7499; --subtle: #1f2750; --action: #c8f53c; --on-action: #0b1026; --focus: #c8f53c; --warning: #f0b35a; --warning-bg: #3e321d; --error: #ff8a80; --error-bg: #43272e; --muted: #aeb6cc; --z1: #adbfcb; --z2: #77bff0; --z3: #66d6b2; --z4: #e8b963; --z5: #e79cdb; --z6: #ffaaa0; --z7: #b9b2ff;
  }
}
/* Stroom (from RunSynergy, AA-tuned in Vitality #57). */
:root[data-palette="stroom"],
:root[data-theme="stroom"] {
  color-scheme: light;
  --page: #f1f4f9; --surface: #ffffff; --ink: #070d1c; --secondary: #56627a; --line: #76829a; --subtle: #e6ecf4; --action: #0e7490; --on-action: #ffffff; --focus: #0e7490; --warning: #8a5100; --warning-bg: #fff4d9; --error: #b3261e; --error-bg: #fff0f1; --muted: #56627a; --z1: #536b7b; --z2: #126ead; --z3: #137c65; --z4: #966100; --z5: #9a418e; --z6: #b33e34; --z7: #5146a8;
}
:root[data-palette="stroom"][data-theme="dark"],
:root[data-palette="stroom"][data-mode="dark"],
:root[data-theme="stroom"][data-mode="dark"] {
  color-scheme: dark;
  --page: #070d1c; --surface: #121b30; --ink: #eaf0f8; --secondary: #a7b3c9; --line: #5f6e8e; --subtle: #1a2540; --action: #2de2e6; --on-action: #070d1c; --focus: #2de2e6; --warning: #f0b35a; --warning-bg: #3e321d; --error: #ff8a80; --error-bg: #43272e; --muted: #a7b3c9; --z1: #adbfcb; --z2: #77bff0; --z3: #66d6b2; --z4: #e8b963; --z5: #e79cdb; --z6: #ffaaa0; --z7: #b9b2ff;
}
@media (prefers-color-scheme: dark) {
  :root[data-palette="stroom"]:not([data-theme="light"]):not([data-mode="light"]),
  :root[data-theme="stroom"]:not([data-mode="light"]) {
    color-scheme: dark;
    --page: #070d1c; --surface: #121b30; --ink: #eaf0f8; --secondary: #a7b3c9; --line: #5f6e8e; --subtle: #1a2540; --action: #2de2e6; --on-action: #070d1c; --focus: #2de2e6; --warning: #f0b35a; --warning-bg: #3e321d; --error: #ff8a80; --error-bg: #43272e; --muted: #a7b3c9; --z1: #adbfcb; --z2: #77bff0; --z3: #66d6b2; --z4: #e8b963; --z5: #e79cdb; --z6: #ffaaa0; --z7: #b9b2ff;
  }
}
/* Hartslag (from RunSynergy, AA-tuned in Vitality #57). */
:root[data-palette="hartslag"],
:root[data-theme="hartslag"] {
  color-scheme: light;
  --page: #f6f3f7; --surface: #ffffff; --ink: #120d1a; --secondary: #6a5f74; --line: #8a7f94; --subtle: #eee8f0; --action: #c8102e; --on-action: #ffffff; --focus: #c8102e; --warning: #8a5100; --warning-bg: #fff4d9; --error: #9f1d14; --error-bg: #fff0f1; --muted: #6a5f74; --z1: #536b7b; --z2: #126ead; --z3: #137c65; --z4: #966100; --z5: #9a418e; --z6: #b33e34; --z7: #5146a8;
}
:root[data-palette="hartslag"][data-theme="dark"],
:root[data-palette="hartslag"][data-mode="dark"],
:root[data-theme="hartslag"][data-mode="dark"] {
  color-scheme: dark;
  --page: #120d1a; --surface: #201829; --ink: #f3eef6; --secondary: #bbafc6; --line: #76688a; --subtle: #2b2135; --action: #ff7a86; --on-action: #120d1a; --focus: #ffc53d; --warning: #ffc53d; --warning-bg: #3e321d; --error: #ff8a80; --error-bg: #43272e; --muted: #bbafc6; --z1: #adbfcb; --z2: #77bff0; --z3: #66d6b2; --z4: #e8b963; --z5: #e79cdb; --z6: #ffaaa0; --z7: #b9b2ff;
}
@media (prefers-color-scheme: dark) {
  :root[data-palette="hartslag"]:not([data-theme="light"]):not([data-mode="light"]),
  :root[data-theme="hartslag"]:not([data-mode="light"]) {
    color-scheme: dark;
    --page: #120d1a; --surface: #201829; --ink: #f3eef6; --secondary: #bbafc6; --line: #76688a; --subtle: #2b2135; --action: #ff7a86; --on-action: #120d1a; --focus: #ffc53d; --warning: #ffc53d; --warning-bg: #3e321d; --error: #ff8a80; --error-bg: #43272e; --muted: #bbafc6; --z1: #adbfcb; --z2: #77bff0; --z3: #66d6b2; --z4: #e8b963; --z5: #e79cdb; --z6: #ffaaa0; --z7: #b9b2ff;
  }
}
