:root {
  --ink: #241f1b;
  --muted: #6f675f;
  --paper: #efeae2;
  --card: #fffdf9;
  --line: #e3dcd0;
  --teal: #1b6b60;
  --header: #231f1b;
  --shadow: 0 1px 2px rgba(40, 30, 20, 0.06);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.5 "Segoe UI", system-ui, sans-serif;
}

a { color: var(--teal); }

img { max-width: 100%; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }

.top {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--header);
  color: #f6f1ea;
}

.top-row {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 64px;
}

.brand {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  margin-right: auto;
}

.top nav { display: flex; gap: 16px; font-size: 15px; }
.top nav a { color: #d9d2c8; text-decoration: none; }
.top nav a:hover { color: #fff; }

.btn {
  display: inline-block;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--teal);
  color: #fff;
  text-decoration: none;
  padding: 0.55rem 0.95rem;
  line-height: 1.2;
}

.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn.small { padding: 0.4rem 0.75rem; font-size: 15px; }
.top .btn { color: #fff; }
.top .btn.ghost { color: var(--ink); }

h1 {
  margin: 0 0 14px;
  font-size: 40px;
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 650;
}

h2 {
  margin: 0 0 12px;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 650;
}

h3 { margin: 0 0 8px; font-size: 18px; }

p { margin: 0 0 12px; }

.lead { font-size: 18px; max-width: 40em; }
.muted { color: var(--muted); }
.kicker {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.kicker a { color: inherit; }

.hero { padding: 56px 0 28px; }
.hero h1 { max-width: 16em; }
.next { margin-top: 16px; }

section { padding: 28px 0 36px; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.split, .three, .proof {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.split { grid-template-columns: 1fr 1fr; }
.three { grid-template-columns: 1fr 1fr 1fr; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 16px 18px;
}

.card ul { margin: 0; padding-left: 18px; }
.card li { margin: 0 0 6px; }
.card p:last-child { margin-bottom: 0; }

code {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.92em;
}

.config pre {
  margin: 0 0 10px;
  padding: 12px;
  overflow: auto;
  background: #f6f1ea;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.45;
}

.proof {
  grid-template-columns: 1fr 1.15fr;
  align-items: center;
  margin-top: 28px;
}

.proof.stack { grid-template-columns: 1fr; }
.proof.stack figure { max-width: 860px; }

figure {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

figure img { display: block; width: 100%; height: auto; }

.split .config { grid-column: 1 / -1; }
figure.narrow { max-width: 320px; justify-self: end; }

.help { padding: 36px 0 20px; }
.help ol { margin: 8px 0 16px; padding-left: 22px; }
.help li { margin: 0 0 10px; }
.note {
  background: #fff6d8;
  border-radius: 10px;
  padding: 12px 14px;
}
.more { color: var(--muted); }

footer {
  padding: 8px 0 40px;
  color: var(--muted);
  font-size: 14px;
}

.foot nav { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 8px; }
.foot a { color: inherit; }

@media (max-width: 800px) {
  h1 { font-size: 32px; }
  h2 { font-size: 26px; }
  .split, .three, .proof, .proof.flip { grid-template-columns: 1fr; }
  .proof.flip figure { order: 0; }
  figure.narrow { max-width: none; justify-self: stretch; }
  .top nav { display: none; }
  figure.clip, figure.clip img { max-height: none; height: auto; }
}
