:root {
  color-scheme: light;

  /* Typography */
  --font-family-sans: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-size-root: 16px;
  --font-size-sm: 0.9375rem;
  --font-size-base: 1rem;
  --font-size-md: 1.0625rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: clamp(1.5rem, 1.1rem + 1.2vw, 2.25rem);
  --font-size-2xl: clamp(2rem, 1.4rem + 1.6vw, 3rem);
  --font-size-3xl: clamp(2.5rem, 1.8rem + 2vw, 3.5rem);
  --line-height-tight: 1.15;
  --line-height-snug: 1.35;
  --line-height-base: 1.6;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Color palette */
  --color-coral-50: #fff4f1;
  --color-coral-100: #ffe4de;
  --color-coral-200: #ffc6bd;
  --color-coral-300: #ffa394;
  --color-coral-400: #ff8a77;
  --color-coral-500: #ff6f61;
  --color-coral-600: #ec5b4f;
  --color-coral-700: #cf4c42;
  --color-coral-800: #a63d36;
  --color-coral-900: #7f302a;

  --color-slate-25: #fcfdff;
  --color-slate-50: #f8fafc;
  --color-slate-100: #eef2f6;
  --color-slate-200: #e2e8f0;
  --color-slate-300: #cbd5e1;
  --color-slate-400: #94a3b8;
  --color-slate-500: #64748b;
  --color-slate-600: #475569;
  --color-slate-700: #334155;
  --color-slate-800: #1e293b;
  --color-slate-900: #0f172a;

  --color-green-500: #0f9d66;
  --color-blue-500: #2563eb;
  --color-amber-500: #d97706;
  --color-rose-100: #ffe4e6;

  /* Semantic colors */
  --color-background: var(--color-slate-50);
  --color-surface: #ffffff;
  --color-surface-muted: #f3f5f8;
  --color-surface-elevated: #ffffff;
  --color-border: rgba(15, 23, 42, 0.1);
  --color-border-strong: rgba(15, 23, 42, 0.18);
  --color-text-primary: var(--color-slate-900);
  --color-text-secondary: var(--color-slate-600);
  --color-text-tertiary: var(--color-slate-500);
  --color-text-on-primary: #ffffff;
  --color-text-on-muted: var(--color-slate-700);
  --brand-500: var(--color-coral-500);
  --brand-600: var(--color-coral-600);
  --brand-700: var(--color-coral-700);
  --color-primary: var(--brand-500);
  --color-primary-strong: var(--brand-600);
  --color-primary-muted: var(--color-coral-100);
  --color-primary-soft: var(--color-coral-50);
  --color-primary-glow: rgba(255, 111, 97, 0.18);
  --color-success: var(--color-green-500);
  --color-info: var(--color-blue-500);
  --color-warning: var(--color-amber-500);
  --color-focus: color-mix(in srgb, var(--color-primary) 60%, white 25%);
  --section-bg-light: color-mix(in srgb, var(--brand-600) 16%, white 84%);
  --section-bg-lighter: color-mix(in srgb, var(--brand-600) 9%, white 91%);
  --section-bg-subtle: var(--section-bg-lighter);

  /* Layout */
  --container-max-width: 72rem;
  --container-padding-inline: clamp(1.25rem, 4vw, 3rem);
  --section-gap: clamp(4rem, 10vw, 7rem);
  --grid-gap: clamp(1.5rem, 4vw, 2.5rem);

  /* Spacing scale */
  --space-0: 0;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-7: 1.75rem;
  --space-8: 2rem;
  --space-9: 2.25rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-14: 3.5rem;
  --space-16: 4rem;
  --space-20: 5rem;

  /* Radii */
  --radius-xs: 0.375rem;
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.08);
  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 12px 28px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 18px 45px rgba(15, 23, 42, 0.16);

  /* Motion */
  --transition-base: 180ms ease;
  --transition-emphasis: 220ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 140ms ease-out;

  /* Focus */
  --focus-ring-width: 3px;
  --focus-ring-offset: 2px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --color-background: #0f141f;
  --color-surface: #161d2b;
  --color-surface-muted: #1e2638;
  --color-surface-elevated: #20293d;
  --color-border: rgba(148, 163, 184, 0.24);
  --color-border-strong: rgba(148, 163, 184, 0.36);
  --color-text-primary: #f8fbff;
  --color-text-secondary: rgba(226, 232, 240, 0.78);
  --color-text-tertiary: rgba(203, 213, 225, 0.7);
  --color-text-on-muted: rgba(226, 232, 240, 0.9);
  --color-primary-glow: rgba(255, 111, 97, 0.28);
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.6);
  --shadow-sm: 0 6px 16px rgba(15, 23, 42, 0.6);
  --shadow-md: 0 18px 32px rgba(15, 23, 42, 0.55);
  --shadow-lg: 0 24px 48px rgba(15, 23, 42, 0.5);
  --color-focus: color-mix(in srgb, var(--color-primary) 70%, white 10%);
  --brand-500: var(--color-coral-500);
  --brand-600: var(--color-coral-600);
  --brand-700: var(--color-coral-700);
}
