/* === DESIGN TOKENS — Esthé Nirvâna ===
   Light-first. Dark toggle via [data-theme="dark"].
   Origineel brand: #8851b6 paars uit WP forget-me-not thema — verwarmd naar aubergine. */

:root,
[data-theme="light"] {
  /* Surfaces — warm crème */
  --color-bg:             #F6F1E9;
  --color-surface:        #FBF7F0;
  --color-surface-2:      #FFFFFF;
  --color-surface-offset: #EEE5D6;
  --color-divider:        #D9CFC0;
  --color-border:         #C9BDAC;

  /* Tekst */
  --color-text:           #2A2130;
  --color-text-muted:     #7A6F84;
  --color-text-faint:     #B9AEBF;
  --color-text-inverse:   #FDF9F1;

  /* Accent — verwarmde aubergine */
  --color-primary:           #7C4B96;
  --color-primary-hover:     #5F3778;
  --color-primary-active:    #442657;
  --color-primary-highlight: #E7D9EE;

  /* Semantic */
  --color-danger:  #B94A3D;

  /* Nav-band bg (met alpha voor blur) */
  --nav-bg-alpha: rgba(251, 247, 240, 0.86);
  --footer-bg:    #241A2A;
}

[data-theme="dark"] {
  --color-bg:             #1B141E;
  --color-surface:        #221A26;
  --color-surface-2:      #28202D;
  --color-surface-offset: #2D2432;
  --color-divider:        #3A2F40;
  --color-border:         #4A3E50;

  --color-text:           #E7DEE9;
  --color-text-muted:     #9B8FA0;
  --color-text-faint:     #5D5265;
  --color-text-inverse:   #1B141E;

  --color-primary:           #B58ED0;
  --color-primary-hover:     #C9A6E0;
  --color-primary-active:    #D9BFE9;
  --color-primary-highlight: #3A2E43;

  --color-danger:  #E27F71;

  --nav-bg-alpha: rgba(34, 26, 38, 0.86);
  --footer-bg:    #150F19;
}

:root {
  /* Type families */
  --font-display: 'Sorts Mill Goudy', 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Satoshi', 'Inter', 'Helvetica Neue', system-ui, sans-serif;

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

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

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

  /* Shadows (light-scoped defaults) */
  --shadow-sm: 0 1px 3px rgba(40, 33, 48, 0.06), 0 1px 2px rgba(40, 33, 48, 0.04);
  --shadow-md: 0 4px 12px rgba(40, 33, 48, 0.08), 0 2px 4px rgba(40, 33, 48, 0.05);
  --shadow-lg: 0 12px 32px rgba(40, 33, 48, 0.12), 0 4px 8px rgba(40, 33, 48, 0.06);

  /* Content widths */
  --content-narrow:  640px;
  --content-default: 1100px;
  --content-wide:    1280px;

  /* Transitions (3.8 tokens — verplicht) */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-reveal:      480ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-nav:         240ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Nav heights */
  --nav-height-desktop: 72px;
  --nav-height-mobile:  56px;
}

[data-theme="dark"] {
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.55);
}
