/* ============================================================
   IA Humana — Radius, elevation, glass & motion
   The isotype's arc endings are FLAT — corners stay restrained.
   "Glassy" = frosted, low-opacity surfaces with a hairline edge
   and a soft blur, never heavy drop shadows.
   LIGHT-first: :root carries the light elevation; [data-theme="dark"]
   overrides for the dark theme.
   ============================================================ */

:root {
  /* Corner radius */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 26px;
  --radius-2xl: 34px;
  --radius-pill: 999px;
  --radius-tile: 22%;   /* brand tiles (favicon / avatar) */

  /* Elevation — soft, low, neutral. No coloured shadows except glow. */
  --shadow-xs: 0 1px 2px rgba(10, 10, 10, 0.06);
  --shadow-sm: 0 2px 10px rgba(10, 10, 10, 0.08);
  --shadow-md: 0 10px 30px rgba(10, 10, 10, 0.10);
  --shadow-lg: 0 24px 60px rgba(10, 10, 10, 0.14);
  --shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.6);

  /* Glass */
  --glass-blur: 18px;
  --glass-blur-lg: 32px;
  --glass-bg: var(--surface-glass);
  --glass-border: 1px solid var(--border);
  --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.8);  /* @kind shadow */

  /* Accent glow — the only coloured shadow, used sparingly */
  --glow-accent: 0 0 0 1px var(--accent-line), 0 6px 24px rgba(90, 122, 14, 0.16);
  --glow-accent-soft: 0 6px 30px rgba(90, 122, 14, 0.10);

  /* Focus ring */
  --focus-ring: 0 0 0 2px var(--bg-page), 0 0 0 4px var(--accent);

  /* Motion — quick, eased, no bounce. Human = calm, not springy. */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);     /* @kind other */
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);  /* @kind other */
  --dur-fast: 120ms;   /* @kind other */
  --dur-base: 200ms;   /* @kind other */
  --dur-slow: 360ms;   /* @kind other */
}

[data-theme="dark"] {
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.25);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.30);
  --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.38);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.50);
  --shadow-inset: inset 0 1px 0 rgba(240, 240, 240, 0.05);
  --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.07);  /* @kind shadow */
  --glow-accent: 0 0 0 1px var(--accent-line), 0 6px 24px rgba(184, 255, 43, 0.18);
  --glow-accent-soft: 0 6px 30px rgba(184, 255, 43, 0.12);
}
