:root {
  color-scheme: light dark;
  --background: #f4f1ea;
  --surface: #fffdf8;
  --text: #20231f;
  --muted: #5f655d;
  --accent: #276749;
  --border: #d9d4c9;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #161a17;
    --surface: #1e2420;
    --text: #edf2ed;
    --muted: #b6c0b7;
    --accent: #76d7a5;
    --border: #3a433c;
  }
}

* {
  box-sizing: border-box;
}

html {
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Hiragino Sans", "Yu Gothic UI", sans-serif;
  line-height: 1.75;
  background: var(--background);
  color: var(--text);
}

body {
  margin: 0;
}

main,
footer {
  width: min(760px, calc(100% - 40px));
  margin-inline: auto;
}

main {
  padding-block: 72px 40px;
}

.hero {
  margin-bottom: 56px;
}

.hero.compact {
  margin-top: 36px;
  margin-bottom: 48px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.14em;
}

h1,
h2 {
  line-height: 1.25;
}

h1 {
  margin: 0;
  font-size: clamp(2.35rem, 7vw, 4.5rem);
  letter-spacing: -0.045em;
}

h2 {
  margin: 0 0 16px;
  font-size: 1.35rem;
}

.lead {
  max-width: 42rem;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.1rem;
}

section {
  margin-block: 24px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
}

p,
ul,
ol {
  margin-block: 0 16px;
}

p:last-child,
ul:last-child,
ol:last-child {
  margin-bottom: 0;
}

li + li {
  margin-top: 8px;
}

a {
  color: var(--accent);
  font-weight: 650;
  text-underline-offset: 0.18em;
}

code {
  overflow-wrap: anywhere;
  font-size: 0.9em;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-block: 28px 48px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

footer p {
  margin: 0;
}

@media (max-width: 560px) {
  main {
    padding-top: 48px;
  }

  section {
    padding: 22px;
  }

  footer {
    flex-direction: column;
  }
}
