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

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

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

body {
  margin: 0;
  font-family: var(--font-family);
  font-weight: var(--weight-regular);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-off-black);
  background: var(--color-white);
}

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

h1,
h2 {
  margin: 0 0 var(--space-s);
  font-weight: var(--weight-black);
  line-height: 1.1;
}

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

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

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--color-off-black);
  outline-offset: 3px;
}

.container {
  width: min(100% - 2 * var(--space-m), var(--container-width));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -4rem;
  left: var(--space-s);
  z-index: 10;
  padding: var(--space-xs) var(--space-s);
  font-weight: var(--weight-bold);
  color: var(--color-white);
  background: var(--color-off-black);
}

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