:root {
  color-scheme: light dark;
  --bg: #f6f4f0;
  --surface: #fff;
  --text: #1f1d22;
  --text2: #66616a;
  --sep: rgb(31 29 34 / 12%);
  --tint: #3f64a6;
  --on-tint: #fff;
  --plan-bg: #e2eaf8;
  --radius: 1.375rem;
  font-family: -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  line-height: 1.6;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121115;
    --surface: #1c1b20;
    --text: #f4f0ea;
    --text2: #a8a2a6;
    --sep: rgb(244 240 234 / 12%);
    --tint: #a9c4f5;
    --on-tint: #10223f;
    --plan-bg: #1f2b42;
  }
}

* { box-sizing: border-box; }

body {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  overflow-wrap: anywhere;
}

a {
  color: var(--tint);
  text-underline-offset: .2em;
}

a:hover { text-decoration-thickness: .125em; }

:focus-visible {
  outline: 2px solid var(--tint);
  outline-offset: 4px;
}

.skip {
  position: absolute;
  z-index: 1;
  inset: .75rem auto auto 1rem;
  padding: .625rem 1rem;
  border-radius: 1rem;
  background: var(--surface);
  transform: translateY(-150%);
}

.skip:focus { transform: none; }

.wrap {
  width: min(100% - 2rem, 41rem);
  margin-inline: auto;
}

.header,
.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 1.5rem;
}

.header { border-bottom: 1px solid var(--sep); }

.wordmark,
.footer a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  padding-block: .625rem;
}

.wordmark {
  color: var(--text);
  font: 750 1.375rem/1.2 ui-rounded, system-ui, sans-serif;
  text-decoration: none;
}

.wordmark:hover { text-decoration: underline; }

.footer {
  margin-block-start: auto;
  padding-block: .75rem 1.25rem;
  border-top: 1px solid var(--sep);
  color: var(--text2);
  font-size: .9375rem;
}

h1, h2, p, ul, ol { margin-block: 0; }

h1, h2 { line-height: 1.17; }

h1 {
  font-size: clamp(2.125rem, 1.6rem + 2.75vw, 3.25rem);
  font-weight: 750;
}

h2 {
  font-size: 1.3125rem;
  font-weight: 700;
}

p + p, h1 + p, h2 + :is(p, ul, ol), :is(ul, ol) + p, p + ul { margin-top: .75rem; }

ul, ol { padding-inline-start: 1.375em; }

li + li { margin-block-start: .55rem; }

.home {
  flex: 1;
  display: grid;
  align-content: center;
  gap: 1rem;
  padding-block: clamp(3rem, 9vh, 6rem);
}

.home-intro {
  padding: clamp(1.5rem, 6vw, 3.5rem);
  border-radius: var(--radius);
  background: var(--surface);
}

.home-intro img {
  display: block;
  width: min(100%, 17.5rem);
  height: auto;
  margin-inline-start: -.2rem;
}

.home-intro p {
  max-width: 28ch;
  margin-block-start: .5rem;
  font-size: clamp(1.25rem, 1rem + 1.2vw, 1.75rem);
  line-height: 1.42;
}

.home-intro .home-more {
  max-width: 40ch;
  margin-block-start: 1rem;
  color: var(--text2);
  font-size: 1.0625rem;
  line-height: 1.6;
}

@media (prefers-reduced-motion: no-preference) {
  .home-intro { animation: appear 320ms ease-out both; }
  @keyframes appear {
    from { transform: translateY(.35rem); opacity: 0; }
  }
}

.page-links {
  padding: .1875rem 1rem;
  border: 1px solid var(--sep);
  border-radius: var(--radius);
  list-style: none;
}

.page-links li + li {
  margin: 0;
  border-top: 1px solid var(--sep);
}

.page-links a {
  display: flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding-block: .5rem;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.page-links a:hover {
  color: var(--tint);
  text-decoration: underline;
}

.page-links span { color: var(--tint); }

.page {
  padding-block: clamp(2rem, 6vw, 4.5rem);
}

.page-intro p,
.state p {
  max-width: 52ch;
  color: var(--text2);
  font-size: 1.0625rem;
}

.page section {
  margin-top: 1.875rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--sep);
}

.page .callout {
  padding: clamp(1rem, 4vw, 1.5rem);
  border: 0;
  border-radius: var(--radius);
  background: var(--plan-bg);
}

.button {
  display: inline-flex;
  min-height: 2.75rem;
  max-width: 100%;
  align-items: center;
  margin-top: 1rem;
  padding: .5rem 1rem;
  border-radius: 2rem;
  background: var(--tint);
  color: var(--on-tint);
  font-weight: 650;
  text-decoration: none;
}

.button:hover { text-decoration: underline; }

.contact { margin-block-start: .625rem; }

.state p { margin-block-start: .875rem; }

.state .help { margin-block-start: 1.25rem; }
