/* =========================================================================
   Base — reset, element defaults, typography
   ========================================================================= */

*, *::before, *::after { box-sizing: border-box; }

html {
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-medium);
  line-height: var(--lh-normal);
  text-wrap: pretty;
}

img { display: block; max-width: 100%; }

/* ── Headings ── */

h1 {
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  font-size: clamp(var(--fs-hero), 4.6vw, var(--fs-hero-lg));
  letter-spacing: var(--tr-hero);
  line-height: var(--lh-tight);
  color: var(--electric-blue);
  margin: 0 0 var(--space-4);
  text-wrap: balance;
  text-transform: uppercase;
}

h2 {
  font-family: var(--font-section);
  font-weight: var(--fw-bold);
  font-size: clamp(var(--fs-section), 3.2vw, var(--fs-section-lg));
  letter-spacing: var(--tr-section);
  line-height: var(--lh-tight);
  color: var(--charcoal);
  margin: 0 0 var(--space-4);
  text-wrap: balance;
}

h3 {
  font-family: var(--font-sub);
  font-weight: var(--fw-semibold);
  font-size: clamp(var(--fs-sub), 2.2vw, var(--fs-sub-lg));
  letter-spacing: var(--tr-tight);
  line-height: var(--lh-snug);
  color: var(--charcoal);
  margin: 0 0 var(--space-3);
}

h4 {
  font-family: var(--font-sub);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-body-lg);
  color: var(--charcoal);
  margin: 0 0 var(--space-3);
}

h5 {
  font-family: var(--font-body);
  font-weight: var(--fw-bold);
  font-size: var(--fs-body);
  color: var(--charcoal);
  margin: 0 0 var(--space-2);
}

h6 {
  font-family: var(--font-body);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-meta);
  text-transform: uppercase;
  letter-spacing: var(--tr-eyebrow);
  color: var(--fg-3);
  margin: 0 0 var(--space-2);
}

/* ── Body text ── */

p {
  font-family: var(--font-body);
  font-weight: var(--fw-medium);
  font-size: var(--fs-body);
  line-height: var(--lh-relaxed);
  color: var(--fg-2);
  margin: 0 0 var(--space-4);
}

/* Typography utility — NOT to be used as a section element class */
.lead {
  font-size: var(--fs-body-lg);
  font-weight: var(--fw-medium);
  color: var(--fg-2);
  line-height: var(--lh-relaxed);
}

.caption,
small {
  font-family: var(--font-body);
  font-weight: var(--fw-regular);
  font-size: var(--fs-caption);
  color: var(--fg-3);
}

/* ── Eyebrow label ── */

.eyebrow,
[data-eyebrow] {
  display: inline-block;
  font-family: var(--font-section);
  font-weight: var(--fw-bold);
  font-size: 12px;
  letter-spacing: var(--tr-eyebrow);
  text-transform: uppercase;
  color: var(--electric-blue);
  margin-bottom: var(--space-3);
}

/* ── Links ── */

a {
  color: var(--electric-blue-600);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}
a:hover { color: var(--electric-blue-700); text-decoration: underline; }

/* ── Code ── */

code, kbd, samp, pre {
  font-family: var(--font-mono);
  font-size: 0.92em;
}

.tabular, .num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
}

/* ── Selection + focus ── */

::selection {
  background: var(--electric-blue-100);
  color: var(--electric-blue-900);
}

:focus-visible {
  outline: 2px solid var(--electric-blue);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}
