/* ==========================================================================
   Blusstunter: ontwerp-tokens
   Eén bron voor kleur, ruimte, vorm en typografie.
   Zie UI-PLAN.md §3. Gebruik nooit losse hex-waarden in componenten.
   ========================================================================== */

:root {
  /* ---- Merk -------------------------------------------------------------
     Het logo-rood (#FC0000) haalt 4.09:1 op wit en is dus alleen geschikt
     als beeldmerk, niet als tekst- of knopkleur. Voor acties gebruiken we
     een getemperd oranje: wit op --brand = 5.20:1 (WCAG AA).            */
  --brand:        #BF4400;
  --brand-hover:  #9A3412;
  --brand-active: #7C2D12;
  --brand-soft:   #FFF3E0;
  --brand-ink:    #9A3412;   /* 4.9:1 op --brand-soft */
  --brand-ring:   #BF440033;

  /* ---- Semantisch: elke kleur heeft precies één betekenis ---- */
  --ok:        #2E7D32;  --ok-soft:     #E8F5E9;  --ok-ink:     #1B5E20;
  --info:      #1565C0;  --info-soft:   #E3F2FD;  --info-ink:   #0D47A1;
  --warn:      #B45309;  --warn-soft:   #FEF3C7;  --warn-ink:   #92400E;
  --danger:    #B91C1C;  --danger-soft: #FEF2F2;  --danger-ink: #991B1B;

  /* ---- Neutraal ---- */
  --ink:      #111827;   /* koppen, primaire tekst */
  --ink-2:    #374151;   /* lopende tekst */
  --ink-3:    #5D646F;   /* labels, meta: 5.97:1 op wit, 5.42:1 op --canvas */
  --ink-4:    #9CA3AF;   /* alleen placeholders en iconen, nooit lopende tekst */
  --line:     #E5E7EB;
  --line-2:   #D1D5DB;
  --surface:  #FFFFFF;
  --surface-2:#F9FAFB;
  --canvas:   #F3F4F6;

  /* ---- Ruimte: 4px-raster ---- */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px;
  --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;

  /* ---- Vorm ---- */
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-full: 999px;
  --shadow-1: 0 1px 2px rgb(0 0 0 / .06);
  --shadow-2: 0 4px 12px rgb(0 0 0 / .08);
  --shadow-3: 0 12px 32px rgb(0 0 0 / .14);

  /* ---- Typografie: vijf maten, niet acht ---- */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --t-xs: 12px; --t-sm: 14px; --t-md: 16px; --t-lg: 20px; --t-xl: 28px;
  --lh-tight: 1.25; --lh: 1.5;

  /* ---- Maatvoering ---- */
  --tap: 44px;          /* minimale raakvlakhoogte */
  --tap-lg: 48px;       /* met werkhandschoenen */
  --appbar-h: 60px;
  --tabbar-h: 60px;
  --page-max: 1360px;

  --speed: .18s;
  --ease: cubic-bezier(.2, 0, .2, 1);
}

@media (prefers-reduced-motion: reduce) {
  :root { --speed: 0s; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
