/* ==========================================================================
   Feihuang Design System — Tokens
   Source: Brand Playbook Feihuang (palette, typography, 40/50/10 rule)
   Layer 1: primitives (never use directly in components)
   Layer 2: semantic tokens (set per theme: concept-a.css / concept-b.css)
   ========================================================================== */

:root {
  /* ---- Brand primitives (official palette) ---- */
  --navy-950: #040c18;
  --navy-900: #061529;
  --navy-800: #0a2342;   /* Dark Blue — Primary */
  --navy-700: #12335c;
  --navy-600: #1b4677;
  --azure-600: #155a99;
  --azure-500: #1a6ab3;  /* Azure — Primary */
  --azure-400: #3d86c9;
  --azure-300: #6fa8db;
  --pastel-300: #9acfe9; /* Pastel Azure — Primary */
  --pastel-200: #c4e3f3;
  --pastel-100: #e6f3fa;
  --pastel-50:  #f3f9fd;
  --white: #ffffff;      /* White — Secondary (dominant, ±50%) */
  --paper: #fbfaf7;      /* warm white for editorial surfaces */
  --sand-100: #f4f1ea;
  --red-500: #dd1c1a;    /* Red — Accent (±10%, never dominant) */
  --red-600: #b91517;
  --red-100: #fde8e7;
  --gray-700: #3d4a5c;
  --gray-500: #64748b;
  --gray-300: #c9d1dc;
  --gray-200: #e3e8ef;
  --gray-100: #f1f4f8;
  --wa-green: #1fae5b;

  /* ---- Typography (official) ---- */
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;   /* Title / Event theme */
  --font-sans-head: "Montserrat", "Helvetica Neue", Arial, sans-serif;   /* Heading / highlight / CTA */
  --font-sans-body: "Open Sans", "Helvetica Neue", Arial, sans-serif;    /* Body text */

  /* Fluid type scale (min @ 360px → max @ 1440px) */
  --fs-display: clamp(2.6rem, 1.6rem + 4.6vw, 5.75rem);
  --fs-h1: clamp(2.2rem, 1.5rem + 3.2vw, 4.25rem);
  --fs-h2: clamp(1.85rem, 1.35rem + 2.2vw, 3.25rem);
  --fs-h3: clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem);
  --fs-h4: 1.125rem;
  --fs-lead: clamp(1.05rem, 1rem + 0.3vw, 1.25rem);
  --fs-body: 1rem;
  --fs-sm: 0.875rem;
  --fs-xs: 0.75rem;
  --fs-label: 0.72rem;

  /* ---- Spacing (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;
  --sp-20: 80px; --sp-24: 96px; --sp-32: 128px;
  --section-y: clamp(72px, 6vw + 40px, 140px);
  --gutter: clamp(16px, 4vw, 40px);
  --container: 1240px;
  --container-narrow: 860px;

  /* ---- Radius ---- */
  --r-xs: 6px; --r-sm: 10px; --r-md: 16px; --r-lg: 24px; --r-xl: 32px; --r-pill: 999px;

  /* ---- Motion ---- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 160ms; --dur: 280ms; --dur-slow: 700ms;

  /* ---- Elevation (navy-tinted) ---- */
  --shadow-xs: 0 1px 2px rgba(10, 35, 66, 0.06);
  --shadow-sm: 0 4px 14px rgba(10, 35, 66, 0.06);
  --shadow-md: 0 14px 40px rgba(10, 35, 66, 0.10);
  --shadow-lg: 0 30px 80px rgba(10, 35, 66, 0.16);
  --shadow-glow: 0 0 0 1px rgba(154, 207, 233, 0.18), 0 20px 60px rgba(26, 106, 179, 0.35);

  /* ---- Signature gradients ---- */
  --grad-brand: linear-gradient(120deg, var(--navy-800) 0%, var(--azure-500) 60%, var(--pastel-300) 100%);
  --grad-text: linear-gradient(100deg, var(--pastel-300) 0%, var(--azure-400) 55%, var(--white) 100%);
  --grad-bridge: linear-gradient(90deg, var(--red-500) 0 12%, var(--azure-500) 12% 60%, var(--pastel-300) 60% 100%);
}

@media (prefers-reduced-motion: reduce) {
  :root { --dur-fast: 0ms; --dur: 0ms; --dur-slow: 0ms; }
}
