/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--base);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
}
img, svg { display: block; max-width: 100%; }
svg { overflow: visible; }
h1, h2, h3, h4, p, ul, blockquote { margin-top: 0; }
ul { margin-bottom: 0; }
a {
  color: inherit;
  text-underline-offset: 0.18em;
}
:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 3px;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--base);
  font-weight: 700;
}
.skip-link:focus { left: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- 3. Typography ---------- */
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.05; }
h1 { font-size: clamp(3.2rem, 6.8vw, 6.6rem); letter-spacing: -0.05em; }
h2 { font-size: clamp(2.1rem, 4.2vw, 4.2rem); letter-spacing: -0.035em; }
h3 { font-size: clamp(1.35rem, 2.2vw, 2rem); }
h4 { font-size: 1.05rem; font-weight: 700; font-family: var(--sans); letter-spacing: 0.02em; }

/* Page/article h1 (non-hero) — smaller, readable at desktop */
.archive-intro h1 { font-size: clamp(2.2rem, 4vw, 3.5rem); }
.pub-intro__copy h1 { font-size: clamp(2rem, 3.5vw, 3rem); }
.project-hero h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
.update-single__main h1 { font-size: clamp(2rem, 3.5vw, 2.8rem); }
.page-hero h1 { font-size: clamp(2rem, 3.5vw, 3rem); }

.eyebrow, .folio, .meta, .label {
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  line-height: 1.25;
  text-transform: uppercase;
}
.eyebrow { color: var(--teal); }
.eyebrow--light { color: var(--teal-soft); }
.folio { color: var(--terracotta); }
.meta { color: var(--muted); }
.muted { color: var(--muted); }

/* ---------- 4. Layout shell ---------- */
.shell { width: var(--shell); margin-inline: auto; }
