/* =============================================
   HOPE & HEALING THERAPY — Design Tokens
   Warm, calm, literary palette
   ============================================= */

:root,
[data-theme='light'] {
  /* Surfaces — warm ivory / parchment */
  --color-bg: #f8f5f0;
  --color-surface: #faf8f4;
  --color-surface-2: #fcfbf8;
  --color-surface-offset: #f2ede6;
  --color-surface-offset-2: #ece7de;
  --color-surface-dynamic: #e5dfd5;
  --color-divider: #ddd7cd;
  --color-border: #d5cec3;

  /* Text — warm charcoal */
  --color-text: #2c2620;
  --color-text-muted: #7d7168;
  --color-text-faint: #b8b0a6;
  --color-text-inverse: #faf8f4;

  /* Primary accent — muted dusty rose / mauve */
  --color-primary: #8c5c6e;
  --color-primary-hover: #6e4556;
  --color-primary-active: #523040;
  --color-primary-highlight: #e8d7dc;

  /* Secondary — sage green */
  --color-secondary: #5c7a6b;
  --color-secondary-hover: #456059;
  --color-secondary-highlight: #d4e4dc;

  /* Warm gold accent for subtle touches */
  --color-gold: #a07840;
  --color-gold-highlight: #ecdfc8;

  /* States */
  --color-success: #4a7a52;
  --color-error: #8c3b3b;

  /* Shadows — warm-tinted */
  --shadow-sm: 0 1px 3px oklch(0.22 0.02 50 / 0.07);
  --shadow-md: 0 4px 16px oklch(0.22 0.02 50 / 0.09);
  --shadow-lg: 0 12px 40px oklch(0.22 0.02 50 / 0.13);

  /* Spacing (4px base) */
  --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;

  /* 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, 1rem + 5.5vw, 6rem);

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition: 200ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;

  /* Fonts */
  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'Jost', 'Helvetica Neue', sans-serif;
}

[data-theme='dark'],
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #1a1612;
    --color-surface: #1f1b16;
    --color-surface-2: #241f19;
    --color-surface-offset: #221d17;
    --color-surface-offset-2: #27211b;
    --color-surface-dynamic: #2e2820;
    --color-divider: #2e2820;
    --color-border: #3a342c;
    --color-text: #d8d0c8;
    --color-text-muted: #8c8278;
    --color-text-faint: #5e5750;
    --color-text-inverse: #2c2620;
    --color-primary: #c48fa2;
    --color-primary-hover: #d9aab9;
    --color-primary-active: #e8c5d0;
    --color-primary-highlight: #3d2830;
    --color-secondary: #88b09c;
    --color-secondary-hover: #6a9882;
    --color-secondary-highlight: #243830;
    --color-gold: #c09858;
    --color-gold-highlight: #3a2f1a;
    --shadow-sm: 0 1px 3px oklch(0 0 0 / 0.2);
    --shadow-md: 0 4px 16px oklch(0 0 0 / 0.32);
    --shadow-lg: 0 12px 40px oklch(0 0 0 / 0.44);
  }
}

[data-theme='dark'] {
  --color-bg: #1a1612;
  --color-surface: #1f1b16;
  --color-surface-2: #241f19;
  --color-surface-offset: #221d17;
  --color-surface-offset-2: #27211b;
  --color-surface-dynamic: #2e2820;
  --color-divider: #2e2820;
  --color-border: #3a342c;
  --color-text: #d8d0c8;
  --color-text-muted: #8c8278;
  --color-text-faint: #5e5750;
  --color-text-inverse: #2c2620;
  --color-primary: #c48fa2;
  --color-primary-hover: #d9aab9;
  --color-primary-active: #e8c5d0;
  --color-primary-highlight: #3d2830;
  --color-secondary: #88b09c;
  --color-secondary-hover: #6a9882;
  --color-secondary-highlight: #243830;
  --color-gold: #c09858;
  --color-gold-highlight: #3a2f1a;
  --shadow-sm: 0 1px 3px oklch(0 0 0 / 0.2);
  --shadow-md: 0 4px 16px oklch(0 0 0 / 0.32);
  --shadow-lg: 0 12px 40px oklch(0 0 0 / 0.44);
}
