:root {
  /* Colors — primary palette */
  --color-primary: #7c2d12;
  --color-primary-light: #9a3c1a;
  --color-primary-dark: #5e220d;
  --color-primary-deep: #3d1a0a;
  --color-heading-brand: #7c2d12;
  --color-accent: #c44e0a;
  --color-accent-text: #c44e0a;
  --color-accent-light: #ea580c;
  --color-accent-dark: #9a3c08;

  /* Backgrounds & surfaces */
  --color-bg: #fffbeb;
  --color-surface: #fffff7;
  --color-surface-alt: #fef3e2;
  --color-hero-overlay: rgba(44, 18, 6, 0.55);

  /* Text */
  --color-text: #1c1b18;
  --color-text-muted: #55524c;
  --color-text-inverse: #fffbeb;
  --color-link: #9a3c1a;
  --color-link-hover: #7c2d12;

  /* Borders & dividers */
  --color-border: #e7e0d4;
  --color-border-strong: #c9bfb0;

  /* Status */
  --color-success: #166534;
  --color-error: #991b1b;

  /* Inverse tints (for use on dark/primary backgrounds) */
  --tint-inverse-85: rgba(255, 251, 235, 0.85);
  --tint-inverse-70: rgba(255, 251, 235, 0.7);
  --tint-inverse-65: rgba(255, 251, 235, 0.65);
  --tint-inverse-60: rgba(255, 251, 235, 0.6);
  --tint-inverse-40: rgba(255, 251, 235, 0.4);
  --tint-inverse-20: rgba(255, 251, 235, 0.2);
  --tint-white-12: rgba(255, 255, 255, 0.12);
  --tint-white-10: rgba(255, 255, 255, 0.1);
  --tint-white-08: rgba(255, 255, 255, 0.08);

  /* Focus ring */
  --ring-accent: rgba(234, 88, 12, 0.15);

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4rem;
  --space-8: 6rem;

  /* Typography */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;

  /* Layout */
  --max-width: 1080px;
  --header-height: 4.5rem;

  /* Border radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(28, 27, 24, 0.06);
  --shadow-md: 0 4px 12px rgba(28, 27, 24, 0.08);
  --shadow-lg: 0 8px 30px rgba(28, 27, 24, 0.1);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #191917;
    --color-surface: #21211f;
    --color-surface-alt: #2a2926;
    --color-text: #f2f1ec;
    --color-text-muted: #b8b5ac;
    --color-border: #3a3935;
    --color-border-strong: #4a4843;
    --color-primary-light: #b54520;
    --color-heading-brand: #e9a178;
    --color-accent: #c44e0a;
    --color-accent-text: #f97316;
    --color-accent-light: #f97316;
    --color-success: #4ade80;
    --color-link: #e9a178;
    --color-link-hover: #f2bb90;
    --tint-inverse-85: rgba(255, 251, 235, 0.85);
    --tint-inverse-70: rgba(255, 251, 235, 0.7);
    --tint-inverse-65: rgba(255, 251, 235, 0.65);
    --tint-inverse-60: rgba(255, 251, 235, 0.6);
    --tint-inverse-40: rgba(255, 251, 235, 0.4);
    --tint-inverse-20: rgba(255, 251, 235, 0.2);
    --tint-white-12: rgba(255, 255, 255, 0.12);
    --tint-white-10: rgba(255, 255, 255, 0.1);
    --tint-white-08: rgba(255, 255, 255, 0.08);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.3);
  }
}
