:root {
  --ink: #102117;
  --cream: #f3f6ef;
  --mist: #c5d5c8;
  --leaf: #c6f26d;
  --sand: #f0d78c;
  --line: rgba(197, 213, 200, 0.16);
  --header: 72px;
  --serif: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  color-scheme: dark;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

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

.skip {
  position: absolute;
  left: 16px;
  top: -40px;
  background: var(--leaf);
  color: var(--ink);
  padding: 8px 12px;
  z-index: 20;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--header);
  display: flex;
  align-items: center;
  background: #102117;
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-right: auto;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.brand span {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 560;
  letter-spacing: -0.03em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav a {
  text-decoration: none;
  color: var(--mist);
  font-size: 15px;
}

.nav a:hover {
  color: var(--cream);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  color: var(--cream);
  border: 1px solid var(--line);
  border-radius: 999px;
  min-height: 40px;
  padding: 0 14px;
  font: inherit;
  font-size: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  background: var(--leaf);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  border: 0;
}

.button:hover {
  color: var(--ink);
  background: #d5f98a;
}

.hero {
  padding: 64px 0 24px;
}

.kicker {
  margin: 0 0 16px;
  color: var(--leaf);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 560;
  letter-spacing: -0.035em;
}

h1 {
  margin: 0;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
}

.lede {
  max-width: 42em;
  margin: 18px 0 0;
  color: var(--mist);
  font-size: 19px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.fine {
  margin: 14px 0 0;
  color: var(--sand);
  font-size: 14px;
}

#how,
#monthly {
  scroll-margin-top: 88px;
}

.section {
  padding: 36px 0;
}

.section h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.1;
}

.section > p {
  max-width: 42em;
  color: var(--mist);
}

.steps {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.steps li::before {
  content: counter(step) ". ";
  color: var(--leaf);
  font-weight: 600;
}

.steps h3 {
  display: inline;
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}

.steps h3::after {
  content: ".";
}

.steps p {
  display: inline;
  margin: 0;
  color: var(--mist);
}

.steps p::before {
  content: " ";
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  color: var(--mist);
  font-size: 14px;
}

.site-footer nav {
  display: flex;
  gap: 16px;
}

.site-footer a {
  color: var(--mist);
  text-decoration: none;
}

.legal {
  width: min(720px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0 80px;
}

.legal h1 {
  font-size: clamp(40px, 5vw, 64px);
}

.legal h2 {
  margin: 32px 0 8px;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 560;
  letter-spacing: -0.03em;
}

.legal p,
.legal li {
  color: var(--mist);
}

.legal ul {
  padding-left: 1.2em;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: var(--header);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 16px;
    background: #102117;
    border-bottom: 1px solid var(--line);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a,
  .nav .button {
    padding: 12px 0;
  }

  .site-footer .wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}

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