:root {
  --font-display: "Sora", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", "Menlo", monospace;

  --color-bg-primary: #f6f8fb;
  --color-bg-secondary: #eef2f7;
  --color-bg-elevated: #ffffff;
  --color-bg-soft: #e7edf4;
  --color-bg-strong: #0e1b2e;
  --color-text-primary: #14202e;
  --color-text-secondary: #3c4a5c;
  --color-text-muted: #6b7a8d;
  --color-text-inverse: #ffffff;
  --color-border-default: #dbe3ec;
  --color-border-strong: #b9c6d6;
  --color-focus: #2563c9;

  --color-accent-primary: #2563c9;
  --color-accent-strong: #1d4fa8;
  --color-accent-soft: #dce8fb;
  --color-accent-text: #ffffff;

  --color-success: #1f9d63;
  --color-success-soft: #d9f0e3;
  --color-warn: #c9821a;
  --color-warn-soft: #f8ecd4;
  --color-risk: #cf4a3c;
  --color-risk-soft: #f7ddd8;
  --color-info: #2f6fe0;
  --color-info-soft: #dce6f8;

  --color-on-accent: #ffffff;
  --color-on-strong: #c6d2df;

  --grid-line: color-mix(in srgb, var(--color-text-primary) 6%, transparent);
  --surface-veil: color-mix(in srgb, var(--color-bg-strong) 45%, transparent);

  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4.5rem;

  --size-content: 84rem;
  --size-button-height: 2.75rem;

  --radius-sm: 0.4rem;
  --radius-md: 0.7rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 999rem;

  --font-size-2xs: 0.7rem;
  --font-size-xs: 0.8125rem;
  --font-size-sm: 0.9375rem;
  --font-size-md: 1.0625rem;
  --font-size-lg: 1.3125rem;
  --font-size-xl: 1.75rem;
  --font-size-2xl: 2.25rem;
  --font-size-3xl: 3rem;

  --line-tight: 1.14;
  --line-snug: 1.3;
  --line-normal: 1.5;
  --line-relaxed: 1.68;

  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  --shadow-xs: 0 1px 2px color-mix(in srgb, var(--color-bg-strong) 8%, transparent);
  --shadow-sm: 0 0.25rem 0.75rem color-mix(in srgb, var(--color-bg-strong) 10%, transparent);
  --shadow-md: 0 0.75rem 2rem color-mix(in srgb, var(--color-bg-strong) 13%, transparent);
  --shadow-lg: 0 1.5rem 3.75rem color-mix(in srgb, var(--color-bg-strong) 18%, transparent);
  --shadow-accent: 0 0.5rem 1.5rem color-mix(in srgb, var(--color-accent-primary) 24%, transparent);

  --motion-fast: 150ms cubic-bezier(0.2, 0.8, 0.2, 1);
  --motion-base: 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
  --motion-slow: 520ms cubic-bezier(0.2, 0.8, 0.2, 1);

  --z-nav: 50;
  --z-float: 80;
  --z-panel: 90;
  --z-modal: 100;
}

[data-theme="dark"] {
  --color-bg-primary: #0b1522;
  --color-bg-secondary: #101d2e;
  --color-bg-elevated: #16263a;
  --color-bg-soft: #1c2f47;
  --color-bg-strong: #050c15;
  --color-text-primary: #e9eff6;
  --color-text-secondary: #aebccd;
  --color-text-muted: #6f8398;
  --color-text-inverse: #0b1522;
  --color-border-default: #223449;
  --color-border-strong: #33485f;
  --color-focus: #5b9bff;

  --color-accent-primary: #5b9bff;
  --color-accent-strong: #7bb0ff;
  --color-accent-soft: #12263f;
  --color-accent-text: #061223;

  --color-success: #46c988;
  --color-success-soft: #10271c;
  --color-warn: #e2a445;
  --color-warn-soft: #2c2413;
  --color-risk: #e5695b;
  --color-risk-soft: #2c1512;
  --color-info: #5b9bff;
  --color-info-soft: #11223a;

  --color-on-accent: #061223;
  --color-on-strong: #c6d2df;

  --shadow-xs: 0 1px 2px color-mix(in srgb, #000000 40%, transparent);
  --shadow-sm: 0 0.25rem 0.75rem color-mix(in srgb, #000000 42%, transparent);
  --shadow-md: 0 0.75rem 2rem color-mix(in srgb, #000000 48%, transparent);
  --shadow-lg: 0 1.5rem 3.75rem color-mix(in srgb, #000000 56%, transparent);
  --shadow-accent: 0 0.5rem 1.5rem color-mix(in srgb, var(--color-accent-primary) 22%, transparent);
}
