*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Clear fixed navbar when jumping to in-page anchors */
  scroll-padding-top: calc(var(--nav-h) + 0.5rem + env(safe-area-inset-top, 0px));
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.7;
  padding-bottom: 0;
}

body.has-mobile-cta {
  padding-bottom: 4.5rem;
}

::selection {
  background: rgba(14, 107, 124, 0.18);
  color: var(--ink);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.25s var(--ease);
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  vertical-align: middle;
}

.material-symbols-outlined.filled {
  font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24;
}

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -100px;
  z-index: 2000;
  background: var(--teal-deep);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.skip-link:focus {
  top: 1rem;
  color: var(--white);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero__media img {
    animation: none;
    transform: none;
  }

  .stage-card:hover,
  .stage-card:focus-visible {
    transform: none;
  }

  .stage-card:hover .stage-image img,
  .stage-card:focus-visible .stage-image img {
    transform: none;
  }

  html.js .reveal {
    opacity: 1;
    transform: none;
  }
}
