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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: var(--step-sm);
  line-height: 1.55;
  transition: background-color 0.15s ease, color 0.15s ease;
}

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

a {
  color: var(--blue);
}

a:hover {
  color: var(--blue-mid);
}

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

h1,
h2,
h3 {
  font-family: var(--font-heading);
  color: var(--navy);
  line-height: 1.15;
  margin: 0;
}

h1 {
  font-size: var(--step-xxl);
  font-weight: 600;
}

h2 {
  font-size: var(--step-lg);
  font-weight: 600;
}

h3 {
  font-size: var(--step-md);
  font-weight: 600;
}

p {
  margin: 0 0 var(--space-3);
}

p:last-child {
  margin-bottom: 0;
}

.skip-link {
  position: absolute;
  left: var(--space-3);
  top: -3rem;
  background: var(--blue);
  color: var(--paper);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius);
  z-index: 100;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: var(--space-3);
}

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

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