/* ==========================================================================
   Design tokens.

   Every colour, size and timing in the app comes from here. Changing the
   brand purple or the corner radius is a one-line edit, and nothing further
   down ever hard-codes a hex value.
   ========================================================================== */

:root {
  /* --- Brand ------------------------------------------------------------ */
  --brand: #9b51e0;
  --brand-bright: #b071ec;
  --brand-dim: #6f39a3;
  --brand-wash: rgba(155, 81, 224, 0.12);

  /* --- Availability ----------------------------------------------------- */
  --ja: #2fb457;
  --ja-wash: rgba(47, 180, 87, 0.14);
  --optie: #e8963c;
  --optie-wash: rgba(232, 150, 60, 0.14);
  --nee: #e2483c;
  --nee-wash: rgba(226, 72, 60, 0.14);
  --open: #4a4a57;

  /* --- Surfaces --------------------------------------------------------- */
  --bg: #0d0d10;
  --surface: #17171c;
  --surface-raised: #1e1e25;
  --surface-hover: #24242d;
  --line: #26262e;
  --line-strong: #34343f;

  /* --- Text ------------------------------------------------------------- */
  --ink: #f2f2f4;
  --ink-muted: #a8a8b3;
  --ink-faint: #71717f;
  --ink-inverse: #14141a;

  /* --- Type ------------------------------------------------------------- */
  --font-display: 'Anton', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --text-xs: 0.75rem;
  --text-sm: 0.8125rem;
  --text-base: 0.9375rem;
  --text-lg: 1.125rem;
  --text-xl: 1.5rem;
  --text-2xl: 2rem;
  --text-3xl: 2.75rem;

  /* --- Space ------------------------------------------------------------ */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;

  /* --- Shape ------------------------------------------------------------ */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);

  /* --- Motion ----------------------------------------------------------- */
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --fast: 120ms;
  --normal: 220ms;

  --nav-height: 58px;
  --page-max: 1240px;

  color-scheme: dark;
}

/* --------------------------------------------------------------------------
   Light theme, chosen on the profile page. The dark values above stay the
   default so nobody gets a white flash before their preference loads.
   -------------------------------------------------------------------------- */

:root[data-theme='light'] {
  --bg: #f6f6f8;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --surface-hover: #f0f0f4;
  --line: #e2e2e8;
  --line-strong: #cdcdd6;

  --ink: #17171c;
  --ink-muted: #5c5c6b;
  --ink-faint: #8a8a99;
  --ink-inverse: #ffffff;

  --open: #c9c9d2;
  --brand-wash: rgba(155, 81, 224, 0.1);

  --shadow-sm: 0 1px 2px rgba(20, 20, 30, 0.08);
  --shadow: 0 4px 16px rgba(20, 20, 30, 0.1);
  --shadow-lg: 0 16px 48px rgba(20, 20, 30, 0.14);

  color-scheme: light;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
