:root {
  --paper: #faf8f3;
  --ink: #1d1f24;
  --muted: #5b5f68;
  --rule: #e4dfd4;
  --accent: #1f4e5f;
  --accent-ink: #ffffff;
  --card: #ffffff;
  --max: 760px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #15171b;
    --ink: #ecebe6;
    --muted: #a5a8b0;
    --rule: #2b2f36;
    --accent: #7fb7c8;
    --accent-ink: #0f1a1e;
    --card: #1c1f25;
  }
}
:root[data-theme="dark"] {
  --paper: #15171b;
  --ink: #ecebe6;
  --muted: #a5a8b0;
  --rule: #2b2f36;
  --accent: #7fb7c8;
  --accent-ink: #0f1a1e;
  --card: #1c1f25;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
h1, h2, h3 {
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); margin-top: 0; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--accent); }

.top {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px 16px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
}
.brand .mark { color: var(--accent); }
.top nav { display: flex; gap: 18px; flex-wrap: wrap; }
.top nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.top nav a:hover { color: var(--ink); }

main { max-width: var(--max); margin: 0 auto; padding: 0 16px 48px; }
section { padding: 44px 0; border-top: 1px solid var(--rule); }
section.hero { border-top: 0; padding-top: 56px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 1.2em;
}
.lede { font-size: 1.15rem; max-width: 640px; }
.lede.strong { font-weight: 500; }
.cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 1.6em; }
.note { color: var(--muted); font-size: 0.95rem; }
.sub { color: var(--muted); margin-top: -0.4em; margin-bottom: 1.6em; }

.button {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 8px;
}
.button:hover { filter: brightness(1.08); }

.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 56px;
  margin-bottom: 1.6em;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 2px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.steps p { margin-bottom: 0; }

.trace { border: 1px solid var(--rule); border-radius: 10px; background: var(--card); overflow: hidden; }
.trace .row { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 14px 16px; border-top: 1px solid var(--rule); }
.trace .row:first-child { border-top: 0; }
.trace .who {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  padding-top: 5px;
}
.trace p { margin: 0; font-size: 0.98rem; }
@media (max-width: 520px) {
  .trace .row { grid-template-columns: 1fr; gap: 4px; }
}

.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.cards li { background: var(--card); border: 1px solid var(--rule); border-radius: 10px; padding: 18px 18px 8px; }
.cards h3 { margin-bottom: 0.3em; }
.cards p { font-size: 0.97rem; color: var(--muted); }

.plain { padding-left: 1.2em; margin: 0; }
.plain li { margin-bottom: 0.5em; }

footer { max-width: var(--max); margin: 0 auto; padding: 24px 16px 40px; color: var(--muted); font-size: 0.9rem; border-top: 1px solid var(--rule); }
footer p { margin: 0; }
