:root {
  color-scheme: light;

  /* Modern-clean core palette */
  --color-night: #14211d;
  --color-night-2: #1d2d28;
  --color-panel: #243630;
  --color-panel-high: #e8f3ef;
  --color-line-dark: #49665d;
  --color-light: #ffffff;
  --color-muted-dark: #c8d2ce;
  --color-paper: #f7f8f6;
  --color-surface: #ffffff;
  --color-surface-soft: #eef3f0;
  --color-ink: #14211d;
  --color-ink-soft: #5b6762;
  --color-rule: #dce3df;
  --color-cyan: #b9e8da;
  --color-cyan-deep: #166b5a;
  --color-mint: #c7f36b;
  --color-violet: #6674e8;
  --color-orange: #f0b36a;
  --color-orange-deep: #98500c;
  --color-red: #b42318;
  --color-red-soft: #ff9b94;

  /* Strong boundaries for controls; decorative rules may use the softer line tokens. */
  --color-border-strong-dark: #8fa49d;
  --color-border-strong-light: #6f7c77;

  /* Semantic colour aliases */
  --color-bg: var(--color-paper);
  --color-bg-inverse: var(--color-night);
  --color-bg-subtle: var(--color-surface-soft);
  --color-text: var(--color-ink);
  --color-text-muted: var(--color-ink-soft);
  --color-text-inverse: var(--color-light);
  --color-text-inverse-muted: var(--color-muted-dark);
  --color-action: var(--color-cyan-deep);
  --color-action-hover: #0e5144;
  --color-action-soft: #e3f3ee;
  --color-action-on: var(--color-surface);
  --color-good: var(--color-cyan-deep);
  --color-good-inverse: var(--color-cyan);
  --color-caution: var(--color-orange-deep);
  --color-caution-inverse: var(--color-orange);
  --color-error: var(--color-red);
  --color-error-inverse: var(--color-red-soft);
  --color-focus-on-dark: var(--color-mint);
  --color-focus-on-light: var(--color-cyan-deep);

  /* System-first typography: fast, private and deliberately unfussy. */
  --font-sans: "Segoe UI Variable", "Inter Variable", Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --font-weight-regular: 400;
  --font-weight-medium: 600;
  --font-weight-bold: 700;
  --font-weight-heavy: 800;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-body: 1rem;
  --text-lead: clamp(1.04rem, 1.5vw, 1.23rem);
  --text-card-title: 1.125rem;
  --text-price: clamp(2.15rem, 4vw, 2.8rem);
  --text-section: clamp(2.35rem, 4.5vw, 4.25rem);
  --text-display: clamp(3.25rem, 5vw, 4.8rem);
  --leading-tight: 0.98;
  --leading-heading: 1.08;
  --leading-body: 1.55;
  --measure-copy: 68ch;

  /* Four-pixel spacing rhythm */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  --radius-sm: 0.625rem;
  --radius-control: 0.75rem;
  --radius-card: 1.25rem;
  --radius-pill: 999px;
  --shadow-card: 0 1px 2px rgb(20 33 29 / 0.04), 0 18px 45px -30px rgb(20 33 29 / 0.28);
  --shadow-panel-dark: 0 24px 60px -32px rgb(20 33 29 / 0.4);

  --page-max: 75rem;
  --page-gutter: clamp(0.875rem, 3vw, 1.25rem);
  --control-min-height: 2.75rem;
  --control-height: 3rem;

  --duration-fast: 120ms;
  --duration-standard: 180ms;
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --duration-fast: 1ms;
    --duration-standard: 1ms;
  }
}
