/* ============================================================
   945 CLUB — SHARED DESIGN TOKENS
   Single source of truth for both the storefront and the admin panel.
   Extracted verbatim from css/main.css so the two surfaces cannot drift.

   The admin panel redefines the *colour* tokens for dark in css/admin.css and
   keeps --admin-* as thin aliases over them, so its 175 existing var(--admin-*)
   references (98 of which live in admin.html inline styles and js/admin.js
   template strings) keep working untouched.

   Theme-invariant tokens -- fonts, radii, spacing, easing -- are NOT overridden;
   sharing them is what makes the two surfaces read as one product.
   ============================================================ */
:root {
  /* --- 1. COLOR TOKENS --- */
  --white: #ffffff;
  --surface-primary: #ffffff;
  --surface-secondary: #f6f6f9;
  --surface-tertiary: #ededf2;
  --surface-plate: #f2f2f5;
  --surface-dark: #111113;
  --grey: #f6f6f9;
  --black: #000000;

  /* Typography Colors */
  --ink: #111113;             /* primary text */
  --ink-primary: #111113;
  --ink2: #6e6e73;            /* secondary text */
  --ink-secondary: #6e6e73;
  --ink-tertiary: #86868b;
  --ink-quaternary: #aeaeb2;
  --ink-inverse: #ffffff;

  /* Borders & Dividers */
  --hair: #e5e5ea;
  --border-subtle: rgba(0, 0, 0, 0.06);
  --border-regular: rgba(0, 0, 0, 0.12);
  --border-strong: rgba(0, 0, 0, 0.22);
  --border-focus: #0071e3;

  /* Accent & Functional */
  --blue: #0071e3;
  --brand-blue: #0071e3;
  --brand-blue-hover: #0077ed;
  --accent: #0a6b4f;          /* deep forest green accent */
  --brand-green: #0a6b4f;
  --brand-red: #ff3b30;
  --brand-amber: #ff9500;

  /* --- 2. TYPOGRAPHY SYSTEM --- */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  --font: var(--font-sans);
  --font-mono: 'SF Mono', SFMono-Regular, ui-monospace, Menlo, Monaco, Consolas, monospace;

  /* --- 3. SPACING SCALE --- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;

  /* Layout dimensions */
  --max: 1240px;
  --max-wide: 1440px;
  --nav: 60px;

  /* --- 4. BORDER RADIUS SYSTEM --- */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-2xl: 36px;
  --radius-full: 9999px;

  /* --- 5. LAYERED AMBIENT SHADOWS --- */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06), 0 2px 6px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 32px 72px rgba(0, 0, 0, 0.12), 0 8px 20px rgba(0, 0, 0, 0.06);
  --shadow-glow: 0 0 24px rgba(0, 113, 227, 0.25);

  /* --- 6. ANIMATION & TIMING RULES --- */
  --ease: cubic-bezier(0.28, 0.11, 0.32, 1);
  --ease-smooth: cubic-bezier(0.28, 0.11, 0.32, 1);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --duration-fast: 0.15s;
  --duration-base: 0.25s;
  --duration-slow: 0.5s;
}
