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

html {
  background: var(--color-navy);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--header-height);
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--color-navy);
  color: var(--color-text);
  font-family: var(--font);
  font-size: var(--text-md);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1 0 auto;
}

main:focus {
  outline: none;
}

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

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

h1,
h2,
h3 {
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
  text-wrap: balance;
}

h1 {
  font-size: var(--text-3xl);
  letter-spacing: -0.035em;
  line-height: 1.04;
}

h2 {
  font-size: var(--text-2xl);
}

h3 {
  font-size: var(--text-xl);
}

p,
dd {
  max-width: var(--width-text);
  color: var(--color-muted);
  text-wrap: pretty;
}

.lead {
  font-size: var(--text-lg);
  line-height: 1.55;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  z-index: 20;
  top: var(--space-1);
  left: var(--space-1);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius);
  background: var(--color-text);
  color: var(--color-navy);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

.js [data-reveal] {
  transition: opacity var(--duration-slow) var(--ease), transform var(--duration-slow) var(--ease);
}

.js [data-reveal].is-hidden {
  opacity: 0;
  transform: translateY(1.25rem);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media print {
  .js [data-reveal].is-hidden {
    opacity: 1;
    transform: none;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
