@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-md);
  line-height: var(--leading-normal);
  color: var(--color-light);
  background: var(--color-navy);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--color-accent);
}

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

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

h1 { font-size: var(--text-hero); font-weight: 700; }
h2 { font-size: var(--text-2xl); font-weight: 700; }
h3 { font-size: var(--text-lg); font-weight: 600; }
h4 { font-size: var(--text-md); font-weight: 600; }

p {
  margin: 0 0 var(--space-sm);
  text-wrap: pretty;
}

ul, ol {
  margin: 0 0 var(--space-sm);
  padding-left: 1.25rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: var(--space-sm);
  z-index: 1000;
  padding: var(--space-xs) var(--space-sm);
  background: var(--color-white);
  color: var(--color-navy);
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  left: var(--space-sm);
}

.container {
  width: min(100% - 2rem, var(--section-width));
  margin-inline: auto;
}

.container--narrow {
  width: min(100% - 2rem, var(--content-width));
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: var(--space-xl);
  background: var(--tone-navy);
}

.section > .container,
.section > .container--narrow {
  position: relative;
  z-index: 1;
}

.section__lead {
  font-size: var(--text-md);
  color: color-mix(in srgb, var(--color-light) 85%, transparent);
  max-width: 38rem;
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.section__header .section__lead {
  margin-inline: auto;
}

main {
  min-height: calc(100vh - var(--header-height) - 12rem);
}
