/* ============================================================================
   AnyShift design tokens — Phase 0 foundation.
   SAME brand colors as today (extracted from style.css), now systematized as
   CSS custom properties. Nothing here changes existing visuals; it gives the
   revamp a single source of truth. Loaded BEFORE style.css.
   ========================================================================== */
:root {
  /* --- Brand (AnyShift red — refreshed design system) --- */
  --as-primary: #E8111D;          /* AnyShift red — backgrounds, buttons */
  --as-primary-hover: #C40E18;    /* same hue, darker */
  --as-primary-active: #C40E18;
  --as-primary-weak: #FCE9E9;     /* soft red tint surface */
  /* Red for SMALL TEXT / links only — AA-passing tint ink. Backgrounds and
     buttons keep the vivid brand red. */
  --as-red-text: #B4121B;
  --as-navy: #15151F;             /* dark rail (admin sidebar) */

  /* --- Text / ink --- */
  --as-ink: #1A1A28;
  --as-text: #26262F;
  --as-text-muted: #7A7A85;
  --as-text-subtle: #9A9AA3;
  --as-grey: #7A7A85;
  --as-slate: #7A7A85;

  /* --- Surfaces / borders --- */
  --as-bg: #F7F7F9;
  --as-bg-alt: #FCFCFD;
  --as-surface: #FFFFFF;
  --as-border: #E4E4E9;
  --as-border-strong: #D9D9E0;
  --as-divider: #ECECF0;

  /* --- Status (semantic, badge-only) --- */
  --as-success: #15803D;
  --as-success-2: #15803D;
  --as-success-weak: #DCFCE7;
  --as-info: #1D4ED8;
  --as-info-weak: #DBEAFE;
  --as-warning: #B45309;
  --as-warning-weak: #FEF3C7;
  --as-danger: var(--as-primary);
  --as-danger-weak: var(--as-primary-weak);

  /* --- Typography — Geist body, Bricolage display (no monospace face) --- */
  --as-font: 'Geist', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --as-font-display: 'Bricolage Grotesque', 'Geist', sans-serif;
  --as-font-mono: var(--as-font); /* mono retired: aliases the body font */
  --fs-display: 30px; --fs-h1: 24px; --fs-h2: 19px; --fs-h3: 16px;
  --fs-body: 14px; --fs-sm: 13px; --fs-caption: 12px;
  --lh-tight: 1.2; --lh-normal: 1.5;
  --fw-regular: 400; --fw-medium: 500; --fw-semibold: 600; --fw-bold: 700;

  /* --- Spacing scale (4px base) --- */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 20px;
  --sp-6: 24px; --sp-8: 32px; --sp-10: 40px; --sp-12: 48px; --sp-16: 64px;

  /* --- Radii --- */
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 20px; --r-pill: 999px;

  /* --- Elevation — layered, soft, cool-neutral shadow --- */
  --sh-1: 0 1px 2px rgba(20, 20, 31, .04), 0 1px 3px rgba(20, 20, 31, .06);
  --sh-2: 0 2px 4px rgba(20, 20, 31, .04), 0 8px 20px rgba(20, 20, 31, .07);
  --sh-3: 0 4px 8px rgba(20, 20, 31, .05), 0 18px 42px rgba(20, 20, 31, .13);
  --sh-ring: 0 0 0 1px rgba(20, 20, 31, .04);

  /* --- Signature accents --- */
  --as-accent-grad: linear-gradient(135deg, #F0313C 0%, var(--as-primary) 48%, var(--as-primary-hover) 100%);
  --as-tint-grad: linear-gradient(180deg, #FDEDED 0%, #FCE9E9 100%);

  /* --- Layout --- */
  --container-max: 1200px;
  --content-max: 880px;
  --z-dropdown: 1000; --z-sticky: 1020; --z-drawer: 1040; --z-modal: 1050; --z-toast: 1080;

  /* --- Motion (restrained; honor reduced-motion below) --- */
  --ease: cubic-bezier(.2, 0, 0, 1);
  --dur-fast: 120ms; --dur: 180ms; --dur-slow: 240ms;
}

@media (prefers-reduced-motion: reduce) {
  :root { --dur-fast: 0ms; --dur: 0ms; --dur-slow: 0ms; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
