/* ============================================================
   Design tokens — light, minimal, culture-neutral (PLAN §4.2).
   Single source of truth for color. Neutral base + ONE accent
   (indigo/blue), used only for CTA · progress · active state.
   Status colors are always paired with an icon/label, never
   color-only. No neon, no glow.
   ============================================================ */
:root {
  color-scheme: light;

  /* Surfaces — neutral light base */
  --bg:            #F6F7F9;   /* page */
  --panel:         #FFFFFF;   /* cards */
  --panel-2:       #F0F2F5;   /* insets, ghost buttons, inputs */
  --border:        #E5E7EB;
  --border-strong: #D6DAE0;

  /* Text hierarchy (WCAG AA on --bg / --panel) */
  --txt:   #16181D;
  --txt-2: #4B5563;
  --txt-3: #737B88;

  /* Single brand accent — indigo/blue */
  --accent:        #2563EB;
  --accent-2:      #1D4ED8;   /* hover / pressed */
  --accent-soft:   rgba(37,99,235,0.10);
  --accent-border: rgba(37,99,235,0.30);
  --accent-ring:   rgba(37,99,235,0.18);

  /* Status — pair with icon/label (never color-only) */
  --ok:      #15803D;
  --ok-soft: rgba(22,163,74,0.10);
  --warn:    #B45309;
  --err:     #DC2626;

  /* Elevation — subtle, light-mode */
  --shadow-sm: 0 1px 2px rgba(16,24,40,0.06), 0 1px 3px rgba(16,24,40,0.04);
  --shadow-md: 0 6px 20px -8px rgba(16,24,40,0.14);
  --shadow-lg: 0 24px 50px -20px rgba(16,24,40,0.22);

  /* Spacing / radius */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px;
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 22px;

  /* Typography */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* Layout */
  --page-max: 1024px;
  --touch: 44px;
}

/* Accessibility: keep focus visible (PLAN §4.2). */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

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