/* ── Reset ── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-normal);
  color: var(--color-ink);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
picture,
video,
iframe {
  display: block;
  max-width: 100%;
}

a {
  color: var(--color-teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
  transition: color var(--duration) var(--ease-out);
}

a:hover {
  color: var(--color-teal-dark);
}

a:focus-visible {
  outline: 2px solid var(--color-teal);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── Typography Scale ── */
h1, h2, h3 {
  font-family: var(--font-display);
  line-height: var(--lh-tight);
  color: var(--color-ink);
}

h1 {
  font-size: var(--fs-h1);
  font-weight: var(--fw-bold);
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  letter-spacing: -0.01em;
}

h3 {
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
}

p + p {
  margin-top: var(--space-2);
}

.lead {
  font-size: var(--fs-lead);
  color: var(--color-ink-soft);
  line-height: var(--lh-normal);
}

.text-center { text-align: center; }

strong {
  font-weight: var(--fw-bold);
}

/* ── Layout Utilities ── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-3);
}

.container--narrow {
  max-width: var(--container-narrow);
}

/* ── Visually Hidden (a11y) ── */
.underline {
  text-decoration: underline !important;
  text-decoration-thickness: 2px !important;
  text-underline-offset: 0.2em;
  text-decoration-color: var(--color-ink);
}

.lining-nums {
  font-size: 1.15em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
