/* ==========================================================================
   DESIGN SYSTEM — PHOEBE ALLCOTT
   Single source of truth for color, type, spacing, motion, and shadow.
   Every component file should reference these tokens, not raw values.
   Palette: deep charcoal-black + antique gold — deliberately restrained,
   modelled on premium law-firm marketing (impressive, slightly severe).
   ========================================================================== */

:root {
  /* ---- Color: surfaces ---- */
  --bg: #0a0a0b;
  --bg-elevated: #131315;
  --bg-elevated-2: #1c1c1f;
  --bg-elevated-3: #252528;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);

  /* ---- Color: text ---- */
  --text: #f4f2ee;
  --text-muted: #a3a09a;
  --text-faint: #6b6862;

  /* ---- Color: brand accents ---- */
  --accent: #b9975a;       /* antique gold */
  --accent-2: #d4b273;     /* champagne gold */
  --accent-warm: #7a2e34;  /* deep oxblood, used sparingly for edge/urgency */
  --gradient-primary: linear-gradient(135deg, #cfa864 0%, #8a6f3f 100%);
  --gradient-primary-hover: linear-gradient(135deg, #ddb974 0%, #9c7f4c 100%);
  --gradient-radial-glow: radial-gradient(circle at center, rgba(185, 151, 90, 0.28) 0%, rgba(185, 151, 90, 0) 70%);
  --gradient-text: linear-gradient(135deg, #ecd9ab 0%, #b9975a 50%, #8a6f3f 100%);

  /* ---- Color: semantic ---- */
  --success: #b9975a;
  --on-accent: #0a0a0b;

  /* ---- Typography ---- */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;

  --fs-xs: clamp(0.75rem, 0.72rem + 0.15vw, 0.8125rem);
  --fs-sm: clamp(0.875rem, 0.84rem + 0.15vw, 0.9375rem);
  --fs-base: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --fs-md: clamp(1.125rem, 1.06rem + 0.3vw, 1.25rem);
  --fs-lg: clamp(1.375rem, 1.28rem + 0.45vw, 1.625rem);
  --fs-xl: clamp(1.75rem, 1.55rem + 0.9vw, 2.25rem);
  --fs-2xl: clamp(2.25rem, 1.9rem + 1.6vw, 3.25rem);
  --fs-3xl: clamp(2.75rem, 2.1rem + 2.8vw, 4.5rem);
  --fs-4xl: clamp(3.25rem, 2.3rem + 4vw, 6rem);

  --lh-tight: 1.08;
  --lh-snug: 1.25;
  --lh-normal: 1.55;
  --lh-relaxed: 1.75;

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

  /* ---- Spacing scale (4px base) ---- */
  --sp-1: 0.25rem;   /* 4  */
  --sp-2: 0.5rem;    /* 8  */
  --sp-3: 0.75rem;   /* 12 */
  --sp-4: 1rem;      /* 16 */
  --sp-5: 1.5rem;    /* 24 */
  --sp-6: 2rem;      /* 32 */
  --sp-7: 3rem;      /* 48 */
  --sp-8: 4rem;      /* 64 */
  --sp-9: 6rem;      /* 96 */
  --sp-10: 8rem;     /* 128 */

  --section-pad-y: clamp(4rem, 4rem + 4vw, 8rem);
  --container-max: 1240px;
  --container-pad: clamp(1.25rem, 1rem + 2vw, 3rem);

  /* ---- Radius ---- */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  /* ---- Shadow / elevation ---- */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.45);
  --shadow-glow-accent: 0 0 0 1px rgba(185, 151, 90, 0.3), 0 8px 40px rgba(185, 151, 90, 0.22);
  --shadow-glow-teal: 0 0 0 1px rgba(212, 178, 115, 0.25), 0 8px 40px rgba(212, 178, 115, 0.18);

  /* ---- Motion ---- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 0.2s;
  --dur-base: 0.4s;
  --dur-slow: 0.8s;

  /* ---- Z-index scale ---- */
  --z-nav: 100;
  --z-overlay: 200;
  --z-modal: 300;
}
