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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  font-family: var(--font);
  line-height: 1.5;
  color: var(--text);
  background: var(--white);
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 20rem;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
}

body,
button {
  font-family: inherit;
}

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

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

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

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--navy);
}

h1,
h2,
h3,
p,
ul,
ol {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--navy);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

h1 {
  margin-bottom: 1.5rem;
  font-size: var(--step-4);
}

h2 {
  margin-bottom: 1.2rem;
  font-size: var(--step-3);
}

h3 {
  margin-bottom: 0.65rem;
  font-size: var(--step-1);
  letter-spacing: -0.02em;
}

p {
  margin-bottom: 1rem;
}

ul,
ol {
  padding: 0;
}

small {
  font-size: var(--step--1);
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  color: var(--white);
  background: var(--navy);
  border-radius: var(--radius-sm);
  transform: translateY(-200%);
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
