/* ===================================================================
   Storefront Design Tokens - shared by admin shell, landing page, and
   the auth flow (login / recover / reset / setup / request-access).
   Tenant theme CSS files in storefront-themes/static/themes/* are
   intentionally NOT consumers of this file (per-org territory).

   Scope split:
     - This file: the shared `--space-*`, `--type-*`, `--radius-*`,
       `--transition-*`, `--z-*` vocabularies.
     - scheme.css: the `--sf-*` color roles (schemes).
     - admin.css: admin-shell-only `--admin-*` tokens, aliasing `--sf-*`.
     - auth.css: `--landing-*` aliases of `--sf-*`; storefront_landing.html
       keeps its own inline `--landing-*` copy.
   See docs/interactions/17-css-audit.md observations 17.7 + 17.10.
   SPEC-4.6.38.3
   =================================================================== */

:root {
  /* Spacing scale (4-based) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 48px;

  /* Radius scale */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;

  /* Type scale (modular, 1.2 ratio) */
  --type-2xs: 11px;
  --type-xs: 12px;
  --type-sm: 14px;
  --type-base: 15px;
  --type-md: 17px;
  --type-lg: 20px;
  --type-xl: 26px;
  --type-2xl: 32px;
  --type-3xl: 42px;

  /* Motion */
  --transition-normal: 180ms ease;

  /* Z-index ladder */
  --z-toast: 9000;
  --z-popover: 7000;

  /* Responsive breakpoints. Reference only: a custom property
     cannot be used inside a media query, so these mirror the literals
     the stylesheets write. The set and what collapses at each width is
     documented at the top of admin.css; keep the two in step.
     SPEC-4.6.38.4 */
  --bp-sm: 640px;
  --bp-md: 900px;
  --bp-lg: 1100px;

  /* White tints used as overlays, inner borders, or highlights on top of
     gradient or saturated surfaces. Named by alpha for predictability.
     See docs/interactions/17-css-audit.md observation 17.2. */
  --white-tint-18: rgba(255, 255, 255, 0.18);
  --white-tint-28: rgba(255, 255, 255, 0.28);
  --white-tint-36: rgba(255, 255, 255, 0.36);
}

/* SPEC-4.6.6.3 */
@media (prefers-reduced-motion: reduce) {
  :root {
    --transition-fast: 0ms;
    --transition-normal: 0ms;
    --transition-slow: 0ms;
  }
}
