/* ============================================================
   MERIDIAN CLONE — base.css
   Tokens extracted from teardown computed styles.
   Type scale: 10/12/14/16/18/24/42/74 px (per EXTRACTION.md §2)
   Letter-spacing: -0.04em body, -0.02em display.
   Line-height: 1.0 display, 1.2 body.
   Colors: #141414 primary, #fff bg, #E4FE00 accent, #0000EE link.
   ============================================================ */

@import url('https://api.fontshare.com/v2/css?f[]=switzer@400,500,600,700&display=swap');

:root {
  /* Color tokens (Confirmed from typography.json + buttons.json) */
  --text-primary: #141414;
  --text-secondary: #4a4a4a;
  --text-muted: #6e6e6e;
  --text-inverse: #ffffff;
  --bg: #ffffff;
  --bg-soft: #f4f4f6;
  --bg-card: #eef0f5;
  --bg-dark: #141414;
  --bg-darker: #000000;
  --accent: #e4fe00;          /* lemon-yellow CTA */
  --accent-ink: #0000ee;       /* blue text on accent */
  --link: #0000ee;
  --border: rgba(20, 20, 20, 0.08);
  --border-strong: rgba(20, 20, 20, 0.16);
  --border-inverse: rgba(255, 255, 255, 0.12);

  /* Type scale (px) */
  --fs-10: 10px;
  --fs-12: 12px;
  --fs-14: 14px;
  --fs-16: 16px;
  --fs-18: 18px;
  --fs-24: 24px;
  --fs-42: clamp(32px, 4vw, 42px);
  --fs-74: clamp(44px, 6.5vw, 74px);

  /* Spacing (8px grid + clamp section padding 80→160) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --section-y: clamp(80px, 10vw, 160px);
  --container-max: 1280px;
  --container-pad: clamp(20px, 4vw, 64px);

  /* Radii */
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 100px;

  /* Easing */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Switzer', 'Switzer Placeholder', sans-serif;
  font-size: var(--fs-16);
  line-height: 1.2;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss01', 'cv11';
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }

/* ----- Display + headings ----- */
.h-display {
  font-size: var(--fs-74);
  font-weight: 600;
  line-height: 1.0;
  letter-spacing: -0.04em;
}
.h-section {
  font-size: var(--fs-42);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.h-sub {
  font-size: var(--fs-24);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.025em;
}
.h-3 {
  font-size: var(--fs-18);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.body-l { font-size: var(--fs-18); line-height: 1.45; }
.body { font-size: var(--fs-16); line-height: 1.5; }
.body-s { font-size: var(--fs-14); line-height: 1.5; }
.caption { font-size: var(--fs-12); line-height: 1.4; letter-spacing: -0.02em; }
.micro { font-size: var(--fs-10); line-height: 1.2; letter-spacing: 0.04em; text-transform: uppercase; }

/* ----- Container ----- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}
.section {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}
.section--tight { padding-top: clamp(56px, 6vw, 96px); padding-bottom: clamp(56px, 6vw, 96px); }
.section--dark {
  background: var(--bg-dark);
  color: var(--text-inverse);
}
.section--soft { background: var(--bg-soft); }

/* ----- Utility ----- */
.center { text-align: center; }
.muted { color: var(--text-muted); }
.eyebrow {
  font-size: var(--fs-12);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}
.divider { height: 1px; background: var(--border); width: 100%; }
.section--dark .divider { background: var(--border-inverse); }

/* ----- Lenis required scroller styles ----- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }
