:root {
  color-scheme: light dark;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  line-height: 1.65;
  font-weight: 400;
  background: #f6f7f9;
  color: #1a2433;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at top right, rgba(90, 126, 170, 0.12), transparent 32rem),
    #f6f7f9;
}

a {
  color: #245d91;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

.container {
  width: min(780px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid rgba(26, 36, 51, 0.13);
  background: rgba(246, 247, 249, 0.88);
}

.header-inner {
  min-height: 4.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  color: inherit;
  font-weight: 720;
  letter-spacing: -0.015em;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 1.25rem;
}

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

nav a[aria-current="page"] {
  font-weight: 650;
}

main {
  flex: 1;
}

.hero {
  padding: 5rem 0 3.5rem;
}

.page {
  padding: 4.5rem 0;
}

.eyebrow,
.note-meta {
  margin: 0 0 0.5rem;
  color: #587087;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.17;
  letter-spacing: -0.025em;
}

h1 {
  max-width: 700px;
  margin: 0 0 1.25rem;
  font-size: clamp(2.15rem, 7vw, 4rem);
}

h2 {
  margin: 0 0 1rem;
  font-size: 1.6rem;
}

h3 {
  margin: 0.2rem 0 0.6rem;
  font-size: 1.25rem;
}

.lead {
  max-width: 680px;
  color: #46596d;
  font-size: 1.15rem;
}

.note {
  padding: 1.6rem 0;
  border-top: 1px solid rgba(26, 36, 51, 0.13);
}

.note:last-child {
  border-bottom: 1px solid rgba(26, 36, 51, 0.13);
}

.note p:last-child {
  max-width: 650px;
  margin-bottom: 0;
}

.site-footer {
  padding: 2.5rem 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: #607286;
  font-size: 0.88rem;
}

.error-page {
  padding: 5rem 0;
}

.error-code {
  margin: 0;
  color: #607286;
  font-size: 0.9rem;
  font-weight: 750;
  letter-spacing: 0.15em;
}

.button {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.65rem 1rem;
  border: 1px solid rgba(36, 93, 145, 0.35);
  border-radius: 0.45rem;
  text-decoration: none;
}

@media (max-width: 600px) {
  .header-inner,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-inner {
    padding-block: 1rem;
    gap: 0.65rem;
  }

  .hero {
    padding-top: 3.5rem;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    background: #111821;
    color: #e6edf4;
  }

  body {
    background:
      radial-gradient(circle at top right, rgba(75, 115, 158, 0.2), transparent 32rem),
      #111821;
  }

  .site-header {
    border-color: rgba(230, 237, 244, 0.13);
    background: rgba(17, 24, 33, 0.9);
  }

  a {
    color: #8fc7f4;
  }

  .lead,
  .site-footer,
  .eyebrow,
  .note-meta,
  .error-code {
    color: #a9bac9;
  }

  .note {
    border-color: rgba(230, 237, 244, 0.13);
  }
}
