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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.7;
  font-optical-sizing: auto;
  font-variant-numeric: oldstyle-nums;
  text-rendering: optimizeLegibility;
}

body.lock { overflow: hidden; }

img, svg { max-width: 100%; height: auto; }

button, input, select, textarea { font: inherit; color: inherit; }

button, [role="button"], summary, label { cursor: pointer; }

button, input, select, textarea { min-height: 44px; }
input[type="checkbox"], input[type="radio"] { min-height: 1.1rem; width: 1.1rem; height: 1.1rem; }

h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  font-weight: 560;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--heading);
  font-optical-sizing: auto;
  margin: 0 0 var(--space-2);
}

h1 { font-size: clamp(2.6rem, 6vw, var(--step-5)); }
h2 { font-size: clamp(1.8rem, 3vw, var(--step-3)); }
h3 { font-size: var(--step-2); line-height: 1.2; }
h4 { font-size: var(--step-1); }

p { margin: 0 0 var(--space-2); }
p:last-child { margin-bottom: 0; }

a {
  color: var(--accent-2-text);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover { color: var(--heading); }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: var(--space-2);
  top: -80px;
  z-index: 100;
  background: var(--accent-fill);
  color: var(--on-accent);
  padding: 12px 16px;
  text-decoration: none;
  font-family: var(--font-ui);
}
.skip-link:focus { top: var(--space-1); }

.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;
}

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}
.wrap-wide { width: min(1240px, calc(100% - 32px)); margin-inline: auto; }

.measure { max-width: var(--measure); }

.eyebrow {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin: 0 0 var(--space-2);
}

.lede {
  font-size: 1.2rem;
  line-height: 1.65;
  color: var(--text);
  max-width: var(--measure);
}

.section {
  padding-block: var(--space-10);
}
@media (min-width: 960px) {
  .section { padding-block: var(--space-14); }
}

.section-head {
  display: grid;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
  max-width: 40rem;
}

hr.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

.prose > * + * { margin-top: 0; }
.prose p + p { margin-top: 0; }
.prose h2, .prose h3 { margin-top: var(--space-5); }

ul.clean, ol.clean { margin: 0 0 var(--space-2); padding-left: 1.2rem; }
ul.clean li, ol.clean li { margin: 0.35rem 0; }

::selection {
  background: var(--accent-fill);
  color: var(--on-accent);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media (max-width: 360px) {
  .wrap, .wrap-wide { width: calc(100% - 24px); }
}
