/* ============================================================
   HEALING YOU LIFE — Design Tokens
   Concept: sacred dusk. Deep indigo-violet night surfaces,
   warm gold ember accent (Agnihotra fire), chakra rainbow used
   only as a rare signature motif (progress dots, chakra ring).
   ============================================================ */

:root,
[data-theme='light'] {
  /* Surfaces — warm parchment / temple stone */
  --color-bg: #faf6f0;
  --color-surface: #fffdfa;
  --color-surface-2: #ffffff;
  --color-surface-offset: #f3ecdf;
  --color-surface-offset-2: #ecdfc9;
  --color-surface-dynamic: #e4d4b8;
  --color-divider: #e6dac2;
  --color-border: #d9c7a2;

  /* Text — deep ember brown / near-black indigo */
  --color-text: #241c2e;
  --color-text-muted: #6b5f6e;
  --color-text-faint: #a89bab;
  --color-text-inverse: #fbf5ea;

  /* Primary Accent — Sacred Gold (Agnihotra flame) */
  --color-primary: #b6791c;
  --color-primary-hover: #935e12;
  --color-primary-active: #74490d;
  --color-primary-highlight: #f0dcb2;

  /* Deep Indigo — night sky / crown chakra */
  --color-indigo: #2c1f47;
  --color-indigo-deep: #16101f;

  /* Chakra rainbow — used sparingly, as accent set only */
  --chakra-root: #c8483a;
  --chakra-sacral: #d9822b;
  --chakra-solar: #d6ac2e;
  --chakra-heart: #5c8a5b;
  --chakra-throat: #3f7ea6;
  --chakra-thirdeye: #4a4f9e;
  --chakra-crown: #7c5ba0;

  --color-warning: #964219;
  --color-warning-hover: #713417;
  --color-warning-highlight: #ddcfc6;
  --color-error: #a12c7b;
  --color-error-hover: #7d1e5e;
  --color-error-highlight: #e0ced7;
  --color-success: #4f7a3f;
  --color-success-hover: #3a5c2d;
  --color-success-highlight: #d4dfcc;

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

  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);

  --shadow-sm: 0 1px 3px oklch(0.2 0.05 300 / 0.1);
  --shadow-md: 0 6px 20px oklch(0.2 0.05 300 / 0.12);
  --shadow-lg: 0 20px 48px oklch(0.2 0.05 300 / 0.18);
  --shadow-glow: 0 0 60px oklch(0.75 0.13 75 / 0.35);

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

  --font-display: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  --font-body: 'General Sans', 'Work Sans', 'Segoe UI', sans-serif;
  --font-devanagari:
    'Noto Sans Devanagari', 'Noto Serif Devanagari', 'Segoe UI', sans-serif;
}

[data-theme='dark'] {
  --color-bg: #150f1f;
  --color-surface: #1b1428;
  --color-surface-2: #20182e;
  --color-surface-offset: #251c34;
  --color-surface-offset-2: #2c2240;
  --color-surface-dynamic: #362a4c;
  --color-divider: #2f2540;
  --color-border: #423458;

  --color-text: #f2e9da;
  --color-text-muted: #b3a5bf;
  --color-text-faint: #766a89;
  --color-text-inverse: #241c2e;

  --color-primary: #e0a838;
  --color-primary-hover: #f0bd52;
  --color-primary-active: #f5cd76;
  --color-primary-highlight: #453320;

  --color-indigo: #241a3d;
  --color-indigo-deep: #0d0916;

  --chakra-root: #e0685a;
  --chakra-sacral: #eb9d4c;
  --chakra-solar: #e9c94e;
  --chakra-heart: #7db27b;
  --chakra-throat: #67a8d4;
  --chakra-thirdeye: #7d82d1;
  --chakra-crown: #a687c9;

  --color-warning: #d98a5e;
  --color-warning-hover: #e6a077;
  --color-warning-highlight: #4a382d;
  --color-error: #d972b0;
  --color-error-hover: #e28dc0;
  --color-error-highlight: #402c3a;
  --color-success: #8bbf78;
  --color-success-hover: #a3d190;
  --color-success-highlight: #2b3a25;

  --shadow-sm: 0 1px 3px oklch(0 0 0 / 0.35);
  --shadow-md: 0 8px 24px oklch(0 0 0 / 0.4);
  --shadow-lg: 0 24px 56px oklch(0 0 0 / 0.55);
  --shadow-glow: 0 0 70px oklch(0.72 0.14 75 / 0.28);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #150f1f;
    --color-surface: #1b1428;
    --color-surface-2: #20182e;
    --color-surface-offset: #251c34;
    --color-surface-offset-2: #2c2240;
    --color-surface-dynamic: #362a4c;
    --color-divider: #2f2540;
    --color-border: #423458;
    --color-text: #f2e9da;
    --color-text-muted: #b3a5bf;
    --color-text-faint: #766a89;
    --color-text-inverse: #241c2e;
    --color-primary: #e0a838;
    --color-primary-hover: #f0bd52;
    --color-primary-active: #f5cd76;
    --color-primary-highlight: #453320;
    --color-indigo: #241a3d;
    --color-indigo-deep: #0d0916;
    --shadow-sm: 0 1px 3px oklch(0 0 0 / 0.35);
    --shadow-md: 0 8px 24px oklch(0 0 0 / 0.4);
    --shadow-lg: 0 24px 56px oklch(0 0 0 / 0.55);
  }
}

:root {
  --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 + 6vw, 6.5rem);

  --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;
}
