/* ============================================
   THE EMPATHY EFFECT INC — Design Tokens
   Palette: Deep Plum + Champagne
   ============================================ */

:root, [data-theme="light"] {

  /* ── 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(3rem,     0.5rem  + 7vw,    8rem);

  /* ── 4px 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;

  /* ── Plum + Champagne Palette (Light) ── */

  /* Surfaces — warm champagne / ivory */
  --color-bg:               #f9f5ef;
  --color-surface:          #faf7f2;
  --color-surface-2:        #fdfbf8;
  --color-surface-offset:   #f2ece2;
  --color-surface-offset-2: #ece3d5;
  --color-surface-dynamic:  #e4d8c7;
  --color-divider:          #ddd0bc;
  --color-border:           #d4c4a8;

  /* Text */
  --color-text:         #1e1520;
  --color-text-muted:   #6b5f6e;
  --color-text-faint:   #b8a8bc;
  --color-text-inverse: #fdf9f4;

  /* Primary — Deep Plum */
  --color-primary:           #5c2d6e;
  --color-primary-hover:     #491f5a;
  --color-primary-active:    #361245;
  --color-primary-highlight: #e8d8f0;

  /* Accent — Warm Champagne Gold */
  --color-accent:           #c4993a;
  --color-accent-hover:     #a87d28;
  --color-accent-active:    #8c6416;
  --color-accent-highlight: #f5e9cc;

  /* Secondary — Soft Mauve (mid-tone between plum and champagne) */
  --color-secondary:         #9b6aac;
  --color-secondary-hover:   #865594;
  --color-secondary-active:  #6e3f7c;
  --color-secondary-highlight: #f0e0f8;

  /* Status */
  --color-success:  #3a7a42;
  --color-error:    #a12c2c;
  --color-warning:  #c4993a;

  /* ── Layout ── */
  --content-narrow:  640px;
  --content-default: 960px;
  --content-wide:    1200px;

  /* ── Radius ── */
  --radius-sm:   0.375rem;
  --radius-md:   0.5rem;
  --radius-lg:   0.75rem;
  --radius-xl:   1rem;
  --radius-2xl:  1.5rem;
  --radius-full: 9999px;

  /* ── Shadows ── */
  --shadow-sm: 0 1px 3px oklch(0.15 0.05 310 / 0.08);
  --shadow-md: 0 4px 16px oklch(0.15 0.05 310 / 0.12);
  --shadow-lg: 0 12px 40px oklch(0.15 0.05 310 / 0.18);
  --shadow-xl: 0 24px 64px oklch(0.15 0.05 310 / 0.22);

  /* ── Transitions ── */
  --transition-fast:        120ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow:        320ms cubic-bezier(0.16, 1, 0.3, 1);

  /* ── Typography ── */
  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body:    'Work Sans', 'Helvetica Neue', sans-serif;
  --font-ui:      'Work Sans', 'Helvetica Neue', sans-serif;
}

/* ── Dark Mode ── */
[data-theme="dark"] {
  --color-bg:               #120d15;
  --color-surface:          #18121c;
  --color-surface-2:        #1e1622;
  --color-surface-offset:   #1c1420;
  --color-surface-offset-2: #221a27;
  --color-surface-dynamic:  #2e2434;
  --color-divider:          #342840;
  --color-border:           #4a3858;

  --color-text:         #f0e8f5;
  --color-text-muted:   #a08aaa;
  --color-text-faint:   #6a5472;
  --color-text-inverse: #18121c;

  --color-primary:           #b87fd4;
  --color-primary-hover:     #c994e0;
  --color-primary-active:    #daabec;
  --color-primary-highlight: #2d1f38;

  --color-accent:           #e8b84b;
  --color-accent-hover:     #f0c85e;
  --color-accent-active:    #f8d878;
  --color-accent-highlight: #3a2c10;

  --color-secondary:         #c49ad6;
  --color-secondary-hover:   #d4aee8;
  --color-secondary-active:  #e4c2f8;
  --color-secondary-highlight: #2a1e34;

  --shadow-sm: 0 1px 3px oklch(0 0 0 / 0.25);
  --shadow-md: 0 4px 16px oklch(0 0 0 / 0.35);
  --shadow-lg: 0 12px 40px oklch(0 0 0 / 0.45);
  --shadow-xl: 0 24px 64px oklch(0 0 0 / 0.55);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg:               #120d15;
    --color-surface:          #18121c;
    --color-surface-2:        #1e1622;
    --color-surface-offset:   #1c1420;
    --color-surface-offset-2: #221a27;
    --color-surface-dynamic:  #2e2434;
    --color-divider:          #342840;
    --color-border:           #4a3858;
    --color-text:         #f0e8f5;
    --color-text-muted:   #a08aaa;
    --color-text-faint:   #6a5472;
    --color-text-inverse: #18121c;
    --color-primary:           #b87fd4;
    --color-primary-hover:     #c994e0;
    --color-primary-active:    #daabec;
    --color-primary-highlight: #2d1f38;
    --color-accent:           #e8b84b;
    --color-accent-hover:     #f0c85e;
    --color-accent-active:    #f8d878;
    --color-accent-highlight: #3a2c10;
    --color-secondary:         #c49ad6;
    --shadow-sm: 0 1px 3px oklch(0 0 0 / 0.25);
    --shadow-md: 0 4px 16px oklch(0 0 0 / 0.35);
    --shadow-lg: 0 12px 40px oklch(0 0 0 / 0.45);
  }
}
