:root {
  color-scheme: light;
  --background: #f6faf8;
  --surface: #ffffff;
  --surface-muted: #e7f0ed;
  --ink: #172d36;
  --muted: #49636d;
  --brand: #243f4b;
  --accent: #316d64;
  --peach: #f3cbb5;
  --border: #c8d9d4;
  --focus: #9b4f22;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.6;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #edf5f2 0, var(--background) 28rem);
}

a {
  color: #185e55;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 0.08em;
}

a:hover {
  text-decoration-thickness: 0.14em;
}

a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
  border-radius: 0.2rem;
}

.site-header,
main,
footer {
  width: min(100% - 2rem, 72rem);
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--brand);
  font-size: 1.35rem;
  font-weight: 750;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 2.7rem;
  height: 2.7rem;
}

.text-brand {
  min-height: 2.7rem;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

nav a {
  color: var(--brand);
  font-weight: 650;
}

nav a[aria-current="page"] {
  text-decoration-thickness: 0.14em;
}

main {
  padding-block: clamp(3rem, 9vw, 7rem);
}

.hero {
  max-width: 54rem;
}

.eyebrow {
  margin-bottom: 0.5rem;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1,
h2 {
  color: var(--brand);
  line-height: 1.15;
  overflow-wrap: anywhere;
}

h1 {
  max-width: 18ch;
  margin: 0 0 1.25rem;
  font-size: clamp(2.5rem, 7vw, 5rem);
  letter-spacing: -0.045em;
}

h2 {
  margin-top: 2.4rem;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  letter-spacing: -0.02em;
}

p,
li {
  max-width: 72ch;
}

.lead {
  max-width: 58ch;
  color: var(--muted);
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  display: inline-block;
  padding: 0.75rem 1.1rem;
  border: 2px solid var(--brand);
  border-radius: 0.75rem;
  font-weight: 700;
  text-decoration: none;
}

.button.primary {
  color: #fff;
  background: var(--brand);
}

.button.secondary {
  color: var(--brand);
  background: transparent;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: clamp(3rem, 8vw, 6rem);
}

.feature-grid article,
.notice {
  padding: clamp(1.1rem, 3vw, 1.8rem);
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
}

.feature-grid h2,
.notice h2 {
  margin-top: 0;
}

.notice {
  max-width: 72ch;
  margin-top: 2rem;
  border-left: 0.45rem solid var(--peach);
}

.document {
  max-width: 52rem;
  padding-top: 4rem;
}

.document h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: 2rem 3rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

footer p {
  margin: 0;
}

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

  .feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --background: #10242c;
    --surface: #18323b;
    --surface-muted: #213d45;
    --ink: #f0f7f4;
    --muted: #c0d2cc;
    --brand: #f6faf8;
    --accent: #9dd2c6;
    --border: #45626a;
    --focus: #f3cbb5;
  }

  body {
    background: linear-gradient(180deg, #183640 0, var(--background) 28rem);
  }

  a {
    color: #a9ded2;
  }

  .button.primary {
    color: #17303a;
    background: #f6faf8;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
