/* ==========================================================================
   Edu Img Editor — Design Tokens
   Signature accent: Edu Orange. Used sparingly (active states, focus, CTA).
   ========================================================================== */

:root{
  /* Edu Orange family */
  --accent-h: 22;
  --accent: hsl(var(--accent-h) 92% 54%);
  --accent-strong: hsl(var(--accent-h) 92% 46%);
  --accent-soft: hsl(var(--accent-h) 92% 54% / .14);
  --accent-ring: hsl(var(--accent-h) 92% 54% / .35);

  --danger: hsl(4 78% 52%);
  --danger-soft: hsl(4 78% 52% / .12);
  --success: hsl(152 62% 38%);
  --success-soft: hsl(152 62% 38% / .12);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;

  --shadow-sm: 0 1px 2px hsl(220 20% 10% / .06);
  --shadow-md: 0 6px 20px -6px hsl(220 25% 10% / .18);
  --shadow-lg: 0 20px 48px -12px hsl(220 30% 8% / .28);

  --font-display: -apple-system, "Segoe UI", "Inter", system-ui, sans-serif;
  --font-ui: -apple-system, "Segoe UI", "Inter", system-ui, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Consolas", monospace;

  --ease: cubic-bezier(.16,.8,.24,1);
  --dur-fast: 120ms;
  --dur-med: 220ms;

  --checker-a: hsl(220 14% 92%);
  --checker-b: hsl(220 14% 84%);
}

/* ---------- Light theme (default) ---------- */
:root,
[data-theme="light"]{
  --bg-primary: hsl(30 20% 98%);
  --bg-secondary: hsl(28 24% 95%);
  --surface: hsl(0 0% 100%);
  --surface-raised: hsl(0 0% 100%);
  --text-primary: hsl(220 22% 12%);
  --text-secondary: hsl(220 12% 40%);
  --text-tertiary: hsl(220 10% 58%);
  --border: hsl(220 14% 88%);
  --border-strong: hsl(220 14% 78%);
  --overlay: hsl(220 30% 8% / .5);
  --scrim: hsl(30 20% 98% / .82);
}

/* ---------- Dark theme ---------- */
[data-theme="dark"]{
  --bg-primary: hsl(224 24% 8%);
  --bg-secondary: hsl(224 22% 11%);
  --surface: hsl(222 20% 13%);
  --surface-raised: hsl(222 18% 16%);
  --text-primary: hsl(30 20% 96%);
  --text-secondary: hsl(220 10% 70%);
  --text-tertiary: hsl(220 8% 52%);
  --border: hsl(222 16% 22%);
  --border-strong: hsl(222 16% 30%);
  --overlay: hsl(224 30% 4% / .6);
  --scrim: hsl(224 24% 8% / .82);

  --checker-a: hsl(222 16% 20%);
  --checker-b: hsl(222 16% 15%);
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
