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

html {
  scroll-behavior: smooth;
  background: var(--background);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
}

@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;
    scroll-behavior: auto !important;
  }
}

html,
body {
  min-height: 100%;
  min-height: 100dvh;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

body {
  font-family: var(--font);
  background: var(--background);
  color: var(--foreground);
  line-height: 1.5;
  overflow-x: hidden;
}

html.is-locked {
  overflow: hidden;
}

body.is-locked {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

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

img.is-missing {
  visibility: hidden;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
  touch-action: manipulation;
}

ul {
  list-style: none;
}

h1,
h2,
h3 {
  text-wrap: balance;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
}

p {
  text-wrap: pretty;
  overflow-wrap: break-word;
}

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

.skip-link {
  position: absolute;
  inset-inline-start: 16px;
  top: -48px;
  z-index: var(--z-skip);
  padding: 10px 14px;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
}

.skip-link:focus {
  top: calc(12px + var(--safe-top));
}

::selection {
  background: color-mix(in srgb, var(--brand) 28%, white);
  color: var(--navy);
}

@media print {
  .skip-link,
  .site-header,
  .search-overlay,
  .backdrop,
  .mobile-nav,
  .hero-controls,
  .modal,
  .scroll-progress,
  .float-tools {
    display: none !important;
  }

  body {
    overflow: visible;
    color: #000;
    background: #fff;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 11px;
  }
}

.page-shell {
  min-width: 0;
}

.page-content {
  padding-top: var(--header-offset);
}
