/* ==========================================================
   BASE — reset, typography, layout helpers
   ========================================================== */
*, *::before, *::after { box-sizing: border-box; min-width: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 24px; }

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-ink);
  font: var(--fs-body)/1.5 var(--font-sans);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure { margin: 0; }
address { font-style: normal; }
button { font: inherit; }

/* Layout */
.wrap {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Type */
.display {
  font-size: var(--fs-display);
  line-height: .9;
  letter-spacing: -.045em;
  font-weight: 600;
}
.h2 {
  font-size: var(--fs-h2);
  line-height: 1;
  letter-spacing: -.035em;
  font-weight: 600;
  text-wrap: balance;
}
.lead {
  font-size: var(--fs-lead);
  line-height: 1.45;
  color: var(--c-ink-2);
  max-width: 540px;
}
.lead--inv { color: inherit; opacity: .9; }

/* Small label: same family as body, medium weight, sentence case */
.label {
  font-size: var(--fs-label);
  font-weight: 500;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}
.label--muted     { color: var(--c-muted); }
.label--muted-inv { color: var(--c-muted-inv); }
.label--ink       { color: var(--c-ink); }

/* Focus */
:focus-visible { outline: 3px solid var(--c-hot); outline-offset: 3px; }

/* Copy variants for pointer type (e.g. "Hover" vs "Tap") */
.only-touch { display: none; }
@media (hover: none) {
  .only-hover { display: none; }
  .only-touch { display: inline; }
}
