*, *::before, *::after {
  box-sizing: border-box;
  border-radius: 0 !important;
}

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--color-bg);
}

html {
  max-width: 100%;
  overflow-x: clip;
  scroll-padding-top: 104px;
}

body {
  background-image: var(--gradient-ambient);
  background-attachment: fixed;
  font-family: var(--font-body);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  max-width: 100%;
  min-width: 0;
  overflow-x: clip;
  hyphens: none;
}

h1, h2, h3 {
  font-family: var(--font-display);
}

h1, h2, h3, p, ul, figure {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

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

a {
  text-decoration: none;
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid #00767A;
  outline-offset: 4px;
}

[tabindex="-1"]:focus {
  outline: none;
}

.skip-link {
  position: fixed;
  z-index: calc(var(--z-nav) + 1);
  top: 8px;
  left: 8px;
  padding: 12px 16px;
  transform: translateY(-160%);
  border-radius: var(--radius-md);
  background: var(--color-offwhite);
  color: var(--color-text);
  font-family: var(--font-mono);
  font-weight: 700;
}

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

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

input, select, textarea {
  font-family: var(--font-body);
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--color-brand);
  color: var(--color-text);
}

@media (max-width: 640px) {
  body {
    background-attachment: scroll;
  }
}

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