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

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

@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 {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--color-page-background);
  background-image: var(--gradient-page-background);
  color: var(--color-text-body);
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  font-weight: 400;
  line-height: var(--line-height-base);
}

h1,
h2,
h3,
h4 {
  color: var(--color-text-heading);
  line-height: var(--line-height-tight);
  margin: 0 0 var(--space-sm);
}

h1 {
  font-size: var(--font-size-display);
}

h2 {
  font-size: var(--font-size-xlarge);
}

h3 {
  font-size: var(--font-size-medium);
}

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

ul,
ol {
  margin: 0;
  padding: 0;
}

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

a {
  color: var(--color-text-link);
}

a:not([class]) {
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.15em;
}

button {
  font-family: inherit;
}

table {
  border-collapse: collapse;
  width: 100%;
}

/*
  One consistent focus style for every interactive element on the site.
  Nothing removes this without replacing it, since that is one of the
  fastest ways to fail an accessibility check.
*/
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 0.2rem solid var(--color-focus-ring);
  outline-offset: 0.2rem;
  border-radius: var(--radius-small);
}

.u-mt-md {
  margin-top: var(--space-md);
}

.u-text-center {
  text-align: center;
}

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

.skip-link {
  position: absolute;
  left: var(--space-md);
  top: -3rem;
  background-color: var(--color-brand-primary-darkest);
  color: var(--color-text-on-dark);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-small);
  z-index: 100;
  transition: top 0.15s ease-in-out;
}

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