:root {
  color-scheme: light;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-heading: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --background: #f4f6fc;
  --foreground: #14243b;
  --card: #ffffff;
  --card-foreground: #14243b;
  --popover: #ffffff;
  --popover-foreground: #14243b;
  --primary: #075bd7;
  --primary-foreground: #ffffff;
  --secondary: #e3edff;
  --secondary-foreground: #174d98;
  --muted: #eaf0f8;
  --muted-foreground: #51627c;
  --accent: #e3edff;
  --accent-foreground: #153e77;
  --brand-accent: #d84f08;
  --brand-accent-foreground: #ffffff;
  --destructive: #b4232c;
  --destructive-foreground: #ffffff;
  --success: #087849;
  --warning: #945600;
  --border: #d4dfed;
  --input: #c2d0e3;
  --ring: #075bd7;
  --radius: 0.75rem;
  --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-12: 3rem;
  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1.125rem;
  --shadow-card: 0 8px 30px rgb(20 36 59 / 5%);
}

:root[data-theme='dark'],
:root.dark {
  color-scheme: dark;
  --background: #0c1424;
  --foreground: #edf3ff;
  --card: #131f33;
  --card-foreground: #edf3ff;
  --popover: #17253c;
  --popover-foreground: #edf3ff;
  --primary: #80b5ff;
  --primary-foreground: #092244;
  --secondary: #203b63;
  --secondary-foreground: #b9d5ff;
  --muted: #1b2b44;
  --muted-foreground: #a5b7d1;
  --accent: #243c60;
  --accent-foreground: #e1edff;
  --brand-accent: #ff9c57;
  --brand-accent-foreground: #371606;
  --destructive: #ff9195;
  --destructive-foreground: #380c14;
  --success: #70dbab;
  --warning: #ffd17c;
  --border: #30425f;
  --input: #425775;
  --ring: #80b5ff;
  --shadow-card: 0 8px 30px rgb(0 0 0 / 14%);
}

/* Public-site adapters and Tailwind consume the same semantic palette. */
:root {
  --color-bg: var(--background);
  --color-surface: var(--card);
  --color-surface-muted: var(--muted);
  --color-text: var(--foreground);
  --color-text-muted: var(--muted-foreground);
  --color-primary: var(--primary);
  --color-primary-soft: var(--secondary);
  --color-border: var(--border);
  --color-accent: var(--brand-accent);
}
