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

html {
  scroll-padding-top: calc(var(--nav-h) + 16px + env(safe-area-inset-top));
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  color: var(--text);
  background: var(--surface);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}

body > main {
  flex: 1 0 auto;
}

body > .footer {
  flex-shrink: 0;
}

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

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1,
.section-title,
.statement {
  text-wrap: wrap;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

::selection {
  background: var(--peach);
  color: var(--ink);
}

:focus {
  outline: none;
}

html {
  -webkit-tap-highlight-color: transparent;
}

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

.skip {
  position: absolute;
  left: 16px;
  top: calc(8px + env(safe-area-inset-top));
  transform: translateY(-160%);
  z-index: 80;
  background: var(--contrast);
  color: var(--on-contrast);
  text-decoration: none;
  border-radius: 980px;
  padding: 10px 16px;
  font-size: 14px;
}

.skip:focus {
  transform: none;
}

#content:focus {
  outline: none;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

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