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

/* No scroll-behavior here on purpose.  A global `smooth` also animates the
   scrolling the browser does when focus moves, so keyboard users get a page
   that slides on every Tab.  Fragment links jump instantly instead, landing
   under the sticky header via the scroll-padding-top set further down. */
html {
  color: var(--color-ink);
  background: var(--color-paper);
  font-family: var(--font-body);
  font-size: 100%;
  line-height: 1.8;
  text-size-adjust: 100%;
}

body {
  min-width: 20rem;
  margin: 0;
  background: var(--color-paper);
}

body,
h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
blockquote {
  margin-block-start: 0;
}

h1,
h2,
h3,
h4 {
  color: var(--color-navy);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.35;
}

h1 {
  font-size: clamp(2.25rem, 5.5vw, 4.4rem);
}

h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.7rem);
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
}

h4 {
  font-family: var(--font-body);
  font-size: 1.05rem;
}

p,
li {
  overflow-wrap: anywhere;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--color-teal-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

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

:focus-visible {
  outline: 0.2rem solid var(--color-teal);
  outline-offset: 0.2rem;
  box-shadow: 0 0 0 0.2rem var(--color-paper);
}

.skip-link {
  position: fixed;
  z-index: 1000;
  inset: 0.75rem auto auto 0.75rem;
  padding: 0.65rem 1rem;
  color: var(--color-paper);
  background: var(--color-navy);
  border-radius: var(--radius-small);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(100% - 2rem, var(--content));
  margin-inline: auto;
}

.container--wide {
  width: min(100% - 2rem, var(--content-wide));
  margin-inline: auto;
}

.section {
  padding-block: var(--space-section);
}

.section--compact {
  padding-block: var(--space-section-compact);
}

.section--surface {
  background: var(--color-surface);
}

.section-heading {
  max-width: var(--content-narrow);
  margin-inline: auto;
}

.section-heading > :last-child {
  margin-bottom: 0;
}

.section-heading > p:first-child,
.eyebrow {
  margin-bottom: 0.55rem;
  color: var(--color-teal-dark);
  font-family: var(--font-utility);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

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

.prose > * + * {
  margin-top: 1.25rem;
}

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

/* Human, local editorial foundation ------------------------------------- */

html {
  color: var(--color-ink);
  background: var(--color-cream);
  scroll-padding-top: 7rem;
}

body {
  color: var(--color-ink);
  background: var(--color-cream);
  font-family: var(--font-body);
  line-height: 1.85;
}

h1,
h2,
h3,
h4 {
  color: var(--color-navy-deep);
  letter-spacing: 0.01em;
}

h1,
h2 {
  text-wrap: balance;
}

a {
  color: var(--color-navy-deep);
}

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

:focus-visible {
  outline-color: var(--color-coral);
  box-shadow: 0 0 0 0.2rem var(--color-paper);
}

.container,
.container--wide,
.section,
.section-heading,
.prose {
  min-width: 0;
}

.section {
  position: relative;
  padding-block: var(--space-section);
}

.section--surface {
  background: var(--color-paper);
}

.section-heading {
  margin-bottom: clamp(1.75rem, 4vw, 3rem);
  text-align: center;
}

.section-heading > p:first-child,
.eyebrow {
  color: var(--color-navy);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.section-heading > p:first-child::before,
.section-heading > p:first-child::after {
  display: inline-block;
  width: 1.8rem;
  height: 0.12rem;
  margin: 0 0.6rem 0.22rem;
  content: "";
  vertical-align: middle;
  background: var(--color-navy);
}

.section-heading > p:first-child::after {
  margin-right: 0;
  margin-left: 0.6rem;
}

.section-heading > p:last-child {
  max-width: 42rem;
  margin-inline: auto;
  color: var(--color-muted);
}
