:root {
  color-scheme: light dark;

  --color-accent: #ff4200;
  --color-accent-text: #c43400;
  --color-accent-soft: #ffece5;
  --color-accent-ink: #171717;
  --color-canvas: #eef1f4;
  --color-background: #ffffff;
  --color-surface: #ffffff;
  --color-surface-raised: #f7f9fa;
  --color-foreground: #0f1419;
  --color-muted: #536471;
  --color-border: #eff3f4;
  --color-border-strong: #cfd9de;
  --color-danger: #c81e2b;
  --color-danger-soft: #fdecee;
  --color-success: #0f7a52;
  --color-success-soft: #e8f6f0;
  --color-warning: #8a5208;
  --color-warning-soft: #f6e9cf;
  --color-focus-ring: #ff4200;
  --color-overlay: rgba(15, 20, 25, 0.45);

  --font-display: "Bricolage Grotesque", "Helvetica Neue", Helvetica, sans-serif;
  --font-body: "Atkinson Hyperlegible", "Helvetica Neue", Helvetica, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;
  --text-xs: 12px;
  --text-sm: 14px;
  --text-body: 16px;
  --text-lg: 20px;
  --text-xl: 24px;
  --text-display: 40px;
  --weight-regular: 400;
  --weight-bold: 700;
  --weight-black: 800;
  --leading-tight: 1.15;
  --leading-body: 1.5;
  --display-tracking: -0.02em;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 40px;
  --space-7: 64px;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  --motion-fast: 140ms;
  --motion-base: 220ms;
  --motion-slow: 360ms;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);

  --touch-target: 48px;
  --content-width: 598px;
  --rail-width: 275px;
  --rail-compact-width: 88px;
  --page-max-width: 1280px;
}
@media (prefers-color-scheme: dark) {
  :root:not(.light) {
    color-scheme: light light;

    --color-accent: #ff4200;
    --color-accent-text: #ff8a61;
    --color-accent-soft: #3a160c;
    --color-accent-ink: #171717;
    --color-canvas: #000000;
    --color-background: #0a0c0f;
    --color-surface: #12151a;
    --color-surface-raised: #1a1e25;
    --color-foreground: #e7e9ea;
    --color-muted: #8b98a5;
    --color-border: #2f3336;
    --color-border-strong: #3e444a;
    --color-danger: #ff6b74;
    --color-danger-soft: #3a1215;
    --color-success: #4fd1a5;
    --color-success-soft: #0d2a21;
    --color-warning: #e7b96a;
    --color-warning-soft: #33240c;
    --color-focus-ring: #ff8a61;
    --color-overlay: rgba(0, 0, 0, 0.65);

    --font-display: "Bricolage Grotesque", "Helvetica Neue", Helvetica, sans-serif;
    --font-body: "Atkinson Hyperlegible", "Helvetica Neue", Helvetica, sans-serif;
    --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;
    --text-xs: 12px;
    --text-sm: 14px;
    --text-body: 16px;
    --text-lg: 20px;
    --text-xl: 24px;
    --text-display: 40px;
    --weight-regular: 400;
    --weight-bold: 700;
    --weight-black: 800;
    --leading-tight: 1.15;
    --leading-body: 1.5;
    --display-tracking: -0.02em;

    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 40px;
    --space-7: 64px;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-pill: 999px;

    --motion-fast: 140ms;
    --motion-base: 220ms;
    --motion-slow: 360ms;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);

    --touch-target: 48px;
    --content-width: 598px;
    --rail-width: 275px;
    --rail-compact-width: 88px;
    --page-max-width: 1280px;
  }
}
:root.dark {
  color-scheme: dark;

  --color-accent: #ff4200;
  --color-accent-text: #ff8a61;
  --color-accent-soft: #3a160c;
  --color-accent-ink: #171717;
  --color-canvas: #000000;
  --color-background: #0a0c0f;
  --color-surface: #12151a;
  --color-surface-raised: #1a1e25;
  --color-foreground: #e7e9ea;
  --color-muted: #8b98a5;
  --color-border: #2f3336;
  --color-border-strong: #3e444a;
  --color-danger: #ff6b74;
  --color-danger-soft: #3a1215;
  --color-success: #4fd1a5;
  --color-success-soft: #0d2a21;
  --color-warning: #e7b96a;
  --color-warning-soft: #33240c;
  --color-focus-ring: #ff8a61;
  --color-overlay: rgba(0, 0, 0, 0.65);

  --font-display: "Bricolage Grotesque", "Helvetica Neue", Helvetica, sans-serif;
  --font-body: "Atkinson Hyperlegible", "Helvetica Neue", Helvetica, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;
  --text-xs: 12px;
  --text-sm: 14px;
  --text-body: 16px;
  --text-lg: 20px;
  --text-xl: 24px;
  --text-display: 40px;
  --weight-regular: 400;
  --weight-bold: 700;
  --weight-black: 800;
  --leading-tight: 1.15;
  --leading-body: 1.5;
  --display-tracking: -0.02em;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 40px;
  --space-7: 64px;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  --motion-fast: 140ms;
  --motion-base: 220ms;
  --motion-slow: 360ms;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);

  --touch-target: 48px;
  --content-width: 598px;
  --rail-width: 275px;
  --rail-compact-width: 88px;
  --page-max-width: 1280px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}