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

html {
  color: var(--color-ink);
  background: var(--color-paper);
  font-family: var(--font-body);
  line-height: 1.75;
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  min-width: 20rem;
  margin: 0;
}

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

h1,
h2,
h3 {
  color: var(--color-navy);
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.3;
}

h1 {
  font-size: clamp(2.25rem, 6vw, 4.75rem);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

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

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

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

a {
  color: var(--color-blue);
  text-underline-offset: 0.2em;
}

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

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

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

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

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

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

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