/* tokens.css — LUAIN design system: cream, near-black, antique gold */

:root {
  /* Type scale */
  --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-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);
  --text-hero: clamp(2.75rem, 0.8rem + 6vw, 6.5rem);

  /* Spacing */
  --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;

  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-full: 9999px;

  --transition-interactive: 220ms cubic-bezier(0.16, 1, 0.3, 1);

  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1240px;
  --content-full: 100%;

  --font-display: 'Cormorant', 'Times New Roman', serif;
  --font-body: 'Switzer', 'Helvetica Neue', sans-serif;
}

/* LIGHT MODE (default) — warm cream surfaces, near-black text, antique gold accent */
:root,
[data-theme='light'] {
  --color-bg: #f7f1e4;
  --color-surface: #fbf6ea;
  --color-surface-2: #fdfaf1;
  --color-surface-offset: #efe6d2;
  --color-surface-offset-2: #e6dabf;
  --color-divider: #ddcfaf;
  --color-border: #cdbb90;

  --color-text: #1a1712;
  --color-text-muted: #6b6355;
  --color-text-faint: #a89e8a;
  --color-text-inverse: #f7f1e4;

  --color-primary: #96742f;
  --color-primary-hover: #7a5d24;
  --color-primary-active: #5f481b;
  --color-primary-highlight: #ecdfbe;

  --color-ink: #0e0c09;

  --shadow-sm: 0 1px 3px rgba(20, 16, 8, 0.08);
  --shadow-md: 0 8px 24px rgba(20, 16, 8, 0.1);
  --shadow-lg: 0 20px 48px rgba(20, 16, 8, 0.16);
}

/* DARK MODE — near-black surfaces, cream text, glowing gold accent */
[data-theme='dark'] {
  --color-bg: #0d0b08;
  --color-surface: #141210;
  --color-surface-2: #1a1714;
  --color-surface-offset: #1c1915;
  --color-surface-offset-2: #24201a;
  --color-divider: #2c2721;
  --color-border: #3a332a;

  --color-text: #f1e9d8;
  --color-text-muted: #a89b83;
  --color-text-faint: #6f6552;
  --color-text-inverse: #0d0b08;

  --color-primary: #d4af5a;
  --color-primary-hover: #e6c579;
  --color-primary-active: #b8933f;
  --color-primary-highlight: #33291a;

  --color-ink: #f1e9d8;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.6);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #0d0b08;
    --color-surface: #141210;
    --color-surface-2: #1a1714;
    --color-surface-offset: #1c1915;
    --color-surface-offset-2: #24201a;
    --color-divider: #2c2721;
    --color-border: #3a332a;
    --color-text: #f1e9d8;
    --color-text-muted: #a89b83;
    --color-text-faint: #6f6552;
    --color-text-inverse: #0d0b08;
    --color-primary: #d4af5a;
    --color-primary-hover: #e6c579;
    --color-primary-active: #b8933f;
    --color-primary-highlight: #33291a;
    --color-ink: #f1e9d8;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.6);
  }
}
