:root {
  --bg: #0e1110;
  --ink: #ece7db;
  --muted: #b7b1a3;
  --line: #2a312d;
  --accent: #3fa56a;
  --accent-ink: #062114;
  --panel: #161a18;
  --pass: #9fe7b8;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 20px/1.5 "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  text-rendering: optimizeLegibility;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.5rem 0.8rem;
}
.skip:focus { left: 1rem; top: 1rem; z-index: 2; }

.hero, main, footer {
  width: min(740px, calc(100% - 2.5rem));
  margin-left: auto;
  margin-right: auto;
}

.hero {
  padding: 5.5rem 0 3.5rem;
  border-bottom: 1px solid var(--line);
}

.mark {
  margin: 0 0 1.6rem;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

h1 {
  margin: 0 0 1.1rem;
  font-size: clamp(2.3rem, 6vw, 3.4rem);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.sub { margin: 0; color: var(--muted); max-width: 38rem; }
.actions { margin: 2rem 0 0; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  padding: 0.75rem 1.1rem;
  border-radius: 2px;
}
.btn:hover { filter: brightness(1.08); }
.btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

section { padding: 3rem 0; border-bottom: 1px solid var(--line); }

h2 {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

ol {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  counter-reset: step;
  border: 1px solid var(--line);
  background: var(--panel);
}
ol li {
  counter-increment: step;
  padding: 0.65rem 1rem 0.65rem 3.4rem;
  border-top: 1px solid var(--line);
  position: relative;
}
ol li:first-child { border-top: 0; }
ol li::before {
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: 0.7rem;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.75rem;
  color: var(--accent);
}

.table-wrap { overflow-x: auto; margin: 0 0 1.25rem; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: var(--panel);
}
th, td {
  text-align: left;
  padding: 0.65rem 0.8rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
thead th {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
tbody th { font-weight: 500; }
td {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color: var(--pass);
  white-space: nowrap;
}
tr.full th, tr.full td { border-bottom: 0; font-weight: 600; }

.badge-wrap { margin-top: 1.5rem; overflow-x: auto; }
.badge-wrap img { display: block; height: 22px; width: auto; max-width: none; }

pre {
  margin: 0 0 1rem;
  padding: 1rem;
  background: var(--panel);
  border: 1px solid var(--line);
  overflow-x: auto;
}
code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.88em;
}
p code { background: var(--panel); padding: 0.1em 0.35em; }

a { color: var(--ink); }
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

footer {
  padding: 2.5rem 0 4rem;
  color: var(--muted);
  font-size: 0.95rem;
}
footer p { margin: 0; }
footer a { color: var(--muted); }
footer a:hover { color: var(--accent); }

@media (max-width: 640px) {
  body { font-size: 18px; }
  .hero { padding-top: 3.5rem; }
}

.hero-proof {
  margin: 1.25rem 0 0;
  color: var(--muted);
  max-width: 38rem;
}

.section-lead {
  font-family: inherit;
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--ink);
  margin: 0 0 1.1rem;
}

#proof .mark { margin-bottom: 0.85rem; }

.mark a { color: inherit; text-decoration: none; }
.mark a:hover { color: var(--accent); }
