/* Plan Bright Partners — Design Tokens */
/* Palette: warm cream surfaces, deep navy text, forest green accent, amber secondary */

:root,
[data-theme='light'] {
  /* Surfaces */
  --color-bg: #f8f6f1;
  --color-surface: #faf9f5;
  --color-surface-2: #ffffff;
  --color-surface-offset: #f0ede5;
  --color-surface-offset-2: #e8e4db;
  --color-divider: #ddd9d0;
  --color-border: #ccc8bf;

  /* Text */
  --color-text: #1a1a2e;
  --color-text-muted: #5a5a6e;
  --color-text-faint: #a8a8b8;
  --color-text-inverse: #f8f6f1;

  /* Primary — Forest Green (trust, health, growth) */
  --color-primary: #2d6a4f;
  --color-primary-hover: #1b4332;
  --color-primary-active: #081c15;
  --color-primary-highlight: #d8eadf;

  /* Secondary — Deep Navy */
  --color-navy: #1a1a2e;
  --color-navy-mid: #16213e;
  --color-navy-light: #0f3460;

  /* Accent — Warm Amber */
  --color-amber: #e07b39;
  --color-amber-hover: #c4622a;
  --color-amber-highlight: #fce8d8;

  /* Success */
  --color-success: #2d6a4f;
  --color-success-highlight: #d8eadf;

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

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-interactive: 220ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 400ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(26, 26, 46, 0.06);
  --shadow-md: 0 4px 16px rgba(26, 26, 46, 0.09);
  --shadow-lg: 0 12px 40px rgba(26, 26, 46, 0.13);
  --shadow-xl: 0 24px 60px rgba(26, 26, 46, 0.16);

  /* Type scale — fluid */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.82rem + 0.28vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.65vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.3rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 4.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;

  /* Layout */
  --content-narrow: 640px;
  --content-default: 1000px;
  --content-wide: 1240px;

  /* Fonts */
  --font-display: 'Instrument Serif', 'Georgia', serif;
  --font-body: 'General Sans', 'Inter', -apple-system, sans-serif;
}

[data-theme='dark'] {
  --color-bg: #111118;
  --color-surface: #16161e;
  --color-surface-2: #1c1c26;
  --color-surface-offset: #1a1a22;
  --color-surface-offset-2: #212130;
  --color-divider: #252535;
  --color-border: #303045;
  --color-text: #e8e6e0;
  --color-text-muted: #8a8a9a;
  --color-text-faint: #55556a;
  --color-text-inverse: #111118;
  --color-primary: #52b788;
  --color-primary-hover: #40916c;
  --color-primary-active: #2d6a4f;
  --color-primary-highlight: #1b3a2e;
  --color-amber: #f4a261;
  --color-amber-hover: #e07b39;
  --color-amber-highlight: #3a2018;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.45);
  --shadow-xl: 0 24px 60px rgba(0, 0, 0, 0.5);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #111118;
    --color-surface: #16161e;
    --color-surface-2: #1c1c26;
    --color-surface-offset: #1a1a22;
    --color-surface-offset-2: #212130;
    --color-divider: #252535;
    --color-border: #303045;
    --color-text: #e8e6e0;
    --color-text-muted: #8a8a9a;
    --color-text-faint: #55556a;
    --color-text-inverse: #111118;
    --color-primary: #52b788;
    --color-primary-hover: #40916c;
    --color-primary-active: #2d6a4f;
    --color-primary-highlight: #1b3a2e;
    --color-amber: #f4a261;
    --color-amber-hover: #e07b39;
    --color-amber-highlight: #3a2018;
  }
}
