/* ==========================================================================
   TOKENS — design system custom properties
   ========================================================================== */

:root {
  /* ---- Color: surfaces ---- */
  --background: #FAF9F6;
  --background-alt: #F3F1EC;
  --surface: #FFFFFF;
  --surface-soft: #F5F3EF;
  --surface-raised: #FFFFFF;

  /* ---- Color: text ---- */
  --text-primary: #171717;
  --text-secondary: #666666;
  --text-muted: #929292;
  --text-inverse: #FAF9F6;
  --text-inverse-muted: rgba(250, 249, 246, 0.62);

  /* ---- Color: structure ---- */
  --border: rgba(23, 23, 23, 0.10);
  --border-strong: rgba(23, 23, 23, 0.16);
  --border-hairline: rgba(23, 23, 23, 0.07);

  /* ---- Color: accent ---- */
  --accent: #E8752E;
  --accent-dark: #C95D1E;
  --accent-soft: rgba(232, 117, 46, 0.10);
  --accent-soft-strong: rgba(232, 117, 46, 0.16);
  --accent-contrast: #FFFFFF;

  /* ---- Color: gold ---- */
  --gold: #B88A44;
  --gold-soft: #D6B67A;
  --gold-hairline: rgba(184, 138, 68, 0.28);

  /* ---- Color: navy (dark section) ---- */
  --navy: #111827;
  --navy-raised: #161F2E;
  --navy-border: rgba(255, 255, 255, 0.09);

  /* ---- Color: semantic ---- */
  --success: #2E8B57;
  --success-soft: rgba(46, 139, 87, 0.10);
  --warning: #C08A1E;
  --warning-soft: rgba(192, 138, 30, 0.10);
  --error: #C4402C;
  --error-soft: rgba(196, 64, 44, 0.10);
  --info: #2E6FA7;
  --info-soft: rgba(46, 111, 167, 0.10);

  /* ---- Typography ---- */
  --font-sans: "Plus Jakarta Sans", "Manrope", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Manrope", "Plus Jakarta Sans", -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --fs-display-xl: clamp(2.75rem, 4.6vw + 1rem, 6.25rem);
  --fs-display-lg: clamp(2.25rem, 3.4vw + 1rem, 4.25rem);
  --fs-display-md: clamp(1.8rem, 2.2vw + 1rem, 3rem);
  --fs-h1: clamp(2.25rem, 3vw + 1rem, 3.75rem);
  --fs-h2: clamp(1.75rem, 1.8vw + 1rem, 2.75rem);
  --fs-h3: clamp(1.375rem, 1vw + 1rem, 1.875rem);
  --fs-h4: clamp(1.125rem, 0.5vw + 1rem, 1.375rem);
  --fs-body-lg: clamp(1.0625rem, 0.3vw + 1rem, 1.25rem);
  --fs-body: 1rem;
  --fs-body-sm: 0.9375rem;
  --fs-label: 0.8125rem;
  --fs-micro: 0.6875rem;

  --lh-tight: 1.05;
  --lh-snug: 1.2;
  --lh-normal: 1.5;
  --lh-relaxed: 1.7;

  --tracking-tight: -0.03em;
  --tracking-snug: -0.015em;
  --tracking-normal: 0;
  --tracking-wide: 0.04em;
  --tracking-wider: 0.12em;
  --tracking-widest: 0.18em;

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extrabold: 800;

  /* ---- Spacing scale ---- */
  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4.5rem;
  --space-3xl: 6.5rem;
  --space-4xl: 9rem;

  --section-pad-y: clamp(4.5rem, 7vw, 9rem);
  --container-pad-x: clamp(1.25rem, 5vw, 4rem);
  --container-max: 1360px;
  --container-narrow: 800px;

  /* ---- Radius ---- */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  /* ---- Shadow (extremely subtle) ---- */
  --shadow-xs: 0 1px 2px rgba(23, 23, 23, 0.04);
  --shadow-sm: 0 4px 12px rgba(23, 23, 23, 0.05);
  --shadow-md: 0 12px 32px rgba(23, 23, 23, 0.07);
  --shadow-lg: 0 24px 64px rgba(23, 23, 23, 0.10);
  --shadow-accent: 0 12px 28px rgba(232, 117, 46, 0.22);
  --shadow-navy: 0 24px 60px rgba(0, 0, 0, 0.35);

  /* ---- Motion ---- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 180ms;
  --dur-base: 320ms;
  --dur-slow: 560ms;
  --dur-slower: 900ms;

  /* ---- Layout ---- */
  --navbar-h: 78px;
  --navbar-h-scrolled: 64px;
  --z-cursor: 2147483647;
  --z-transition: 9000;
  --z-modal: 8000;
  --z-toast: 7500;
  --z-navbar: 6000;
  --z-dropdown: 5000;
  --z-elevated: 10;
}

@media (max-width: 720px) {
  :root {
    --navbar-h: 68px;
    --navbar-h-scrolled: 60px;
  }
}
