/* ============================================
   BEAST LAB — Design Tokens
   Material-first design system
   ============================================ */

:root {
  /* ── Surface Colors ── */
  --surface-primary: #FAF8F5;       /* Warm ivory — dominant canvas */
  --surface-secondary: #F0ECE6;     /* Soft stone — section alternation */
  --surface-accent: #E8E2D9;        /* Raw linen — card backgrounds */
  --surface-hero-overlay: rgba(250, 248, 245, 0.15);

  /* ── Material Colors ── */
  --material-concrete: #C4BCAE;     /* Warm concrete — borders, dividers */
  --material-titanium: #8A8578;     /* Brushed metal — tertiary text */
  --material-gunmetal: #4A4640;     /* Dark warm grey — secondary text */

  /* ── Text Colors ── */
  --text-primary: #1A1816;          /* Deep warm black — headlines */
  --text-secondary: #4A4640;        /* Gunmetal — body */
  --text-tertiary: #8A8578;         /* Titanium — captions */
  --text-inverse: #FAF8F5;          /* Ivory — on dark surfaces */

  /* ── Accent ── */
  --accent-brass: #B8965A;          /* Matte brass — THE accent */
  --accent-brass-light: #D4B87A;    /* Light brass — hover */
  --accent-brass-dark: #96783E;     /* Dark brass — active */
  --accent-brass-glow: rgba(184, 150, 90, 0.15);

  /* ── Glass ── */
  --glass-white: rgba(250, 248, 245, 0.72);
  --glass-white-border: rgba(196, 188, 174, 0.3);
  --glass-dark: rgba(26, 24, 22, 0.55);

  /* ── Typography — Families ── */
  --font-display: 'Playfair Display', 'Georgia', 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Consolas', monospace;

  /* ── Typography — Scale (fluid) ── */
  --text-xs: clamp(0.625rem, 0.58rem + 0.18vw, 0.75rem);        /* 10–12 */
  --text-sm: clamp(0.75rem, 0.7rem + 0.2vw, 0.875rem);          /* 12–14 */
  --text-base: clamp(0.875rem, 0.82rem + 0.25vw, 1.0625rem);    /* 14–17 */
  --text-lg: clamp(1.0625rem, 0.95rem + 0.45vw, 1.3125rem);     /* 17–21 */
  --text-xl: clamp(1.25rem, 1.1rem + 0.65vw, 1.625rem);         /* 20–26 */
  --text-2xl: clamp(1.5rem, 1.25rem + 1.1vw, 2.25rem);          /* 24–36 */
  --text-3xl: clamp(2rem, 1.5rem + 2.2vw, 3.25rem);             /* 32–52 */
  --text-4xl: clamp(2.5rem, 1.75rem + 3.2vw, 4.5rem);           /* 40–72 */
  --text-5xl: clamp(3rem, 2rem + 4.5vw, 6rem);                  /* 48–96 */
  --text-hero: clamp(3.5rem, 2.2rem + 5.5vw, 7.5rem);           /* 56–120 */

  /* ── Typography — Line Heights ── */
  --leading-none: 1;
  --leading-tight: 1.25;
  --leading-snug: 1.4;
  --leading-normal: 1.6;
  --leading-relaxed: 1.8;

  /* ── Typography — Letter Spacing ── */
  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.05em;
  --tracking-wider: 0.1em;
  --tracking-widest: 0.2em;
  --tracking-mega: 0.35em;

  /* ── Spacing Scale ── */
  --space-1: 0.25rem;    /* 4 */
  --space-2: 0.5rem;     /* 8 */
  --space-3: 0.75rem;    /* 12 */
  --space-4: 1rem;       /* 16 */
  --space-5: 1.25rem;    /* 20 */
  --space-6: 1.5rem;     /* 24 */
  --space-8: 2rem;       /* 32 */
  --space-10: 2.5rem;    /* 40 */
  --space-12: 3rem;      /* 48 */
  --space-16: 4rem;      /* 64 */
  --space-20: 5rem;      /* 80 */
  --space-24: 6rem;      /* 96 */
  --space-32: 8rem;      /* 128 */
  --space-40: 10rem;     /* 160 */
  --space-48: 12rem;     /* 192 */

  /* ── Section Spacing ── */
  --section-padding: clamp(4rem, 6vw, 8rem);

  /* ── Layout ── */
  --container-max: 1440px;
  --container-wide: 1200px;
  --container-narrow: 960px;
  --container-text: 720px;
  --container-padding: clamp(1.5rem, 4vw, 5rem);
  --nav-height: 5rem;

  /* ── Timing ── */
  --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);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-instant: 100ms;
  --duration-fast: 200ms;
  --duration-base: 400ms;
  --duration-slow: 600ms;
  --duration-reveal: 900ms;
  --duration-dramatic: 1200ms;

  /* ── Borders ── */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --border-thin: 1px solid var(--material-concrete);
  --border-hairline: 1px solid rgba(196, 188, 174, 0.4);

  /* ── Shadows ── */
  --shadow-xs: 0 1px 2px rgba(26, 24, 22, 0.03);
  --shadow-sm: 0 2px 6px rgba(26, 24, 22, 0.04);
  --shadow-md: 0 4px 16px rgba(26, 24, 22, 0.06);
  --shadow-lg: 0 8px 30px rgba(26, 24, 22, 0.08);
  --shadow-xl: 0 16px 50px rgba(26, 24, 22, 0.1);
  --shadow-brass: 0 4px 20px rgba(184, 150, 90, 0.15);

  /* ── Z-Index ── */
  --z-behind: -1;
  --z-base: 1;
  --z-above: 5;
  --z-overlay: 10;
  --z-sticky: 50;
  --z-nav: 100;
  --z-modal: 1000;
}
