/* =========================================================
   CHANGE COLORS, FONTS, AND SIZES HERE
   This file controls the whole site look.
   ========================================================= */

:root,
[data-theme='light'] {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-hero: clamp(2.75rem, 1.2rem + 4.6vw, 4.5rem);

  --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-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Brand gold — change this to recolor buttons and accents */
  --color-primary: #c7ad4f;
  --color-primary-hover: #a8923a;
  --color-primary-active: #8a762c;
  --color-primary-highlight: #efe4bf;

  --color-bg: #f3eee4;
  --color-surface: #f8f4ec;
  --color-surface-2: #fffdf8;
  --color-surface-offset: #ebe4d6;
  --color-divider: #ddd4c3;
  --color-border: #d4c9b4;
  --color-text: #151515;
  --color-text-muted: #6b6558;
  --color-text-faint: #9a9384;
  --color-text-inverse: #f8f4ec;
  --color-ink: #0e1116;
  --color-ink-soft: #1a1e26;
  --color-error: #a12c7b;
  --color-success: #437a22;

  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1.125rem;
  --radius-full: 9999px;

  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-sm: 0 1px 2px oklch(0.2 0.03 85 / 0.06);
  --shadow-md: 0 8px 24px oklch(0.2 0.03 85 / 0.1);
  --shadow-lg: 0 18px 40px oklch(0.18 0.03 85 / 0.16);

  --content-wide: 1180px;
  --font-display: 'Instrument Serif', 'Times New Roman', serif;
  --font-body: 'Satoshi', 'Helvetica Neue', sans-serif;
  --header-h: 4.75rem;
}

[data-theme='dark'] {
  --color-bg: #12141a;
  --color-surface: #181b22;
  --color-surface-2: #1e222b;
  --color-surface-offset: #1a1d24;
  --color-divider: #2a2e37;
  --color-border: #3a3e48;
  --color-text: #ece6d8;
  --color-text-muted: #9a9486;
  --color-text-faint: #6d685c;
  --color-text-inverse: #12141a;
  --color-primary: #d4bc63;
  --color-primary-hover: #e0cc7a;
  --color-primary-active: #c7ad4f;
  --color-primary-highlight: #3a3420;
  --color-ink: #0a0c10;
  --color-ink-soft: #14171d;
  --color-error: #d163a7;
  --color-success: #6daa45;
  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.25);
  --shadow-md: 0 8px 24px oklch(0 0 0 / 0.35);
  --shadow-lg: 0 18px 40px oklch(0 0 0 / 0.45);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #12141a;
    --color-surface: #181b22;
    --color-surface-2: #1e222b;
    --color-surface-offset: #1a1d24;
    --color-divider: #2a2e37;
    --color-border: #3a3e48;
    --color-text: #ece6d8;
    --color-text-muted: #9a9486;
    --color-text-faint: #6d685c;
    --color-text-inverse: #12141a;
    --color-primary: #d4bc63;
    --color-primary-hover: #e0cc7a;
    --color-primary-active: #c7ad4f;
    --color-primary-highlight: #3a3420;
    --color-ink: #0a0c10;
    --color-ink-soft: #14171d;
  }
}
