/* ============================================================
   ABSOLUTE CORE — DESIGN TOKENS (Layer 2 locked values)
   Single source of truth for the Revora storefront + all demos.
   Spec: ~/workspace/system/ABSOLUTE-CORE-SYSTEM-2026-11-20.md
   Every demo links this file FIRST. Never redefine these values
   locally — industry accents layer on top via --accent only.
   ============================================================ */

:root {
  /* — Primary palette (never deviate) — */
  --base: #07090f;          /* Level 0: page background */
  --gold: #e6b34d;          /* primary accent: borders, CTAs, highlights */
  --gold-bright: #f2c264;   /* gold brightened ~8% — hover states */
  --cream: #f4efe4;         /* the ONLY text color on dark — never pure white */
  --cyan: #49c2ff;          /* secondary accent: data, focus, 1 CTA/page max */

  /* — Surface hierarchy: each level only 1–2% lighter, never jump — */
  --surface-1: #0c0f15;     /* Level 1: large section backgrounds */
  --surface: #11151c;       /* Level 2: cards and browser frames */
  --surface-card: #11151c;
  --surface-3: #161b23;     /* Level 3: elevated interactive elements */

  /* — Extended system (mandatory) — */
  --gold-soft: rgba(230, 179, 77, 0.15);   /* glows (10–18% band) */
  --gold-faint: rgba(230, 179, 77, 0.12);
  --gold-border: rgba(230, 179, 77, 0.20); /* card borders */
  --gold-deep: #c4922f;                    /* pressed states, shadows */
  --cream-muted: #d4cfc4;                  /* secondary text */
  --cream-30: rgba(244, 239, 228, 0.30);   /* resting form borders */
  --danger: #c45c5c;                       /* form errors ONLY */
  --success: #5cb88a;                      /* confirmation states ONLY */

  /* — Industry accent overlays (strictly secondary, on top of core) —
     Set data-accent on <body> or the demo root; --accent-wash is the
     overlay color already mixed at its locked percentage. */
  --accent: var(--gold);
  --accent-wash: transparent;
}
[data-accent="apex"], [data-accent="tommy"]     { --accent: #8fa3b8; --accent-wash: rgba(143, 163, 184, 0.06); }
[data-accent="proofwash"], [data-accent="shinebright"] { --accent: #1a3c2e; --accent-wash: rgba(26, 60, 46, 0.08); }
[data-accent="bond"], [data-accent="brightnest"] { --accent: #f4efe4; --accent-wash: rgba(244, 239, 228, 0.04); }
[data-accent="scissorhand"] { --accent: #4a1c1c; --accent-wash: rgba(74, 28, 28, 0.07); }
[data-accent="landscaping"] { --accent: #2a3a2a; --accent-wash: rgba(42, 58, 42, 0.06); }

:root {
  /* — Spacing scale — */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;

  /* — Radius — */
  --r-sm: 10px; --r-md: 16px; --r-lg: 24px; --r-pill: 999px;

  /* — Shadows / glow — */
  --glow-hover: 0 0 12px rgba(230, 179, 77, 0.35);  /* hover: 12px soft glow */
  --glow-gold: 0 0 20px rgba(230, 179, 77, 0.15);
  --glow-gold-strong: 0 0 28px rgba(230, 179, 77, 0.28);
  --shadow-card: 0 12px 32px rgba(0, 0, 0, 0.45);
  --shadow-pressed: 0 4px 14px rgba(0, 0, 0, 0.55);

  /* — Motion tokens (Layer 2 locked) — */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-settle: cubic-bezier(0.22, 1, 0.36, 1);
  --duration-fast: 280ms;
  --duration-normal: 520ms;
  --duration-slow: 780ms;
  --dur-fast: var(--duration-fast);
  --dur-med: var(--duration-normal);
  --dur-slow: var(--duration-slow);
  --dur-page: 300ms;
  --stagger: 80ms;

  /* — Type — */
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* — Layout — */
  --maxw: 1200px;
  --z-nav: 50; --z-overlay: 80; --z-modal: 100;
}

/* Reduced motion: the system stills itself, everywhere, for free. */
@media (prefers-reduced-motion: reduce) {
  :root {
    --duration-fast: 1ms; --duration-normal: 1ms; --duration-slow: 1ms;
    --dur-page: 1ms; --stagger: 0ms;
  }
}
