/* Path2Global — Design Tokens
   Palette: Deep Blue + Coral Orange + Warm Cream (logo-aligned)
   Typography: Fraunces (display serif w/ italic accent) + Manrope (body)
*/

:root,
[data-theme='light'] {
  /* Surfaces — Warm cream */
  --color-bg: #fbf6ee;
  --color-surface: #fdf9f2;
  --color-surface-2: #ffffff;
  --color-surface-offset: #f5edde;
  --color-surface-offset-2: #ebe0cd;
  --color-surface-dynamic: #e8dec9;
  --color-divider: #e2d5be;
  --color-border: #d6c8ac;

  /* Text — Deep ink */
  --color-text: #1f2937;
  --color-text-soft: #4b5563;
  --color-text-muted: #6b7280;
  --color-text-faint: #9ca3af;
  --color-text-inverse: #fbf6ee;

  /* Primary — Coral accent (CTA + emphasis) */
  --color-primary: #e85d2f;
  --color-primary-hover: #cf4a1f;
  --color-primary-active: #b8421c;
  --color-primary-highlight: #f7b598;

  /* Secondary — Deep Blue */
  --color-accent: #1e4a7a;
  --color-accent-hover: #163958;
  --color-accent-mid: #3b6fa8;
  --color-accent-soft: #dce6f2;

  /* Semantic */
  --color-success: #437a22;
  --color-warning: #b8721c;
  --color-error: #a12c3d;

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

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

  /* Shadows (tone-matched to warm surfaces) */
  --shadow-sm: 0 1px 2px rgba(31, 41, 55, 0.06);
  --shadow-md: 0 8px 24px rgba(31, 41, 55, 0.08);
  --shadow-lg: 0 20px 48px rgba(31, 41, 55, 0.12);

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

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

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

  /* Font families */
  --font-display: 'Fraunces', 'Georgia', 'Times New Roman', serif;
  --font-body: 'Manrope', 'Inter', -apple-system, 'Segoe UI', sans-serif;
}

/* DARK MODE — muted deep navy + warm coral remains */
[data-theme='dark'] {
  --color-bg: #141b26;
  --color-surface: #1a2331;
  --color-surface-2: #1f2a3c;
  --color-surface-offset: #253143;
  --color-surface-offset-2: #2c3a4f;
  --color-surface-dynamic: #364559;
  --color-divider: #2a3648;
  --color-border: #3a4759;

  --color-text: #f0e8d8;
  --color-text-soft: #cfc8ba;
  --color-text-muted: #9ba397;
  --color-text-faint: #6b7280;
  --color-text-inverse: #141b26;

  --color-primary: #f27a4d;
  --color-primary-hover: #ff9269;
  --color-primary-active: #ffa47f;
  --color-primary-highlight: #4a2818;

  --color-accent: #7fa3d1;
  --color-accent-hover: #a3bfe0;
  --color-accent-mid: #5989c1;
  --color-accent-soft: #2c3a4f;

  --color-success: #7ec258;
  --color-warning: #e4a05a;
  --color-error: #d95f77;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.55);
}
