:root {
  --bg: #0c0e10;
  --bg-raised: #111417;
  --text: #e7e9ea;
  --text-dim: #9aa1a9;
  --text-faint: #5c636b;
  --accent: #34d399;
  --hairline: #23282d;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.frame {
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 24px;
}

header.frame {
  padding-top: 28px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.wordmark {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.14em;
  color: var(--text);
  text-transform: uppercase;
}
.status {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-faint);
}

main { flex: 1; }

.hero {
  padding-top: 88px;
  padding-bottom: 72px;
}
h1 {
  font-size: clamp(2.4rem, 6.5vw, 4.2rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  font-weight: 650;
  max-width: 16ch;
}
h1 .quiet { color: var(--text-dim); }
.cut {
  height: 2px;
  width: min(340px, 60%);
  margin: 34px 0 30px;
  background: linear-gradient(90deg, var(--accent), rgba(52, 211, 153, 0.25) 70%, transparent);
  transform-origin: left center;
}
@media (prefers-reduced-motion: no-preference) {
  .cut { animation: engrave 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both; }
  @keyframes engrave { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}
.sub {
  color: var(--text-dim);
  font-size: 1.125rem;
  max-width: 44ch;
}
.sub strong { color: var(--text); font-weight: 550; }

.qa {
  border-top: 1px solid var(--hairline);
  padding-top: 56px;
  padding-bottom: 80px;
}
.qa h2 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 36px;
  color: var(--text-dim);
}
.qa dl { max-width: 62ch; }
.qa dt {
  font-weight: 600;
  font-size: 1.05rem;
  margin-top: 34px;
}
.qa dt:first-of-type { margin-top: 0; }
.qa dd {
  color: var(--text-dim);
  margin-top: 10px;
}
.qa dd strong { color: var(--text); font-weight: 550; }

.features {
  border-top: 1px solid var(--hairline);
  padding-top: 56px;
  padding-bottom: 88px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 44px 64px;
}
.feature h2 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.feature h2 .tick {
  color: var(--accent);
  font-family: var(--mono);
  margin-right: 10px;
}
.feature p {
  color: var(--text-dim);
  font-size: 0.95rem;
  max-width: 46ch;
}

footer {
  border-top: 1px solid var(--hairline);
}
footer .frame {
  padding-top: 22px;
  padding-bottom: 28px;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-faint);
}
footer a { color: var(--text-faint); text-decoration: none; }
footer a:hover { color: var(--text-dim); }

@media (max-width: 720px) {
  .hero { padding-top: 56px; padding-bottom: 56px; }
  .features { grid-template-columns: 1fr; gap: 36px; padding-bottom: 64px; }
}

/* ---- shared page furniture (help, and anything after it) ---- */

.wordmark a { color: inherit; text-decoration: none; }
header.frame nav {
  font-family: var(--mono);
  font-size: 12px;
  display: flex;
  gap: 20px;
}
header.frame nav a { color: var(--text-faint); text-decoration: none; }
header.frame nav a:hover,
header.frame nav a[aria-current="page"] { color: var(--text); }

/* Install block — the three commands people actually need. */
.install {
  border-top: 1px solid var(--hairline);
  padding-top: 48px;
  padding-bottom: 72px;
}
.install h2 { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; }
.install p { color: var(--text-dim); max-width: 56ch; }
.install pre { max-width: 56ch; }
pre {
  background: var(--bg-raised);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 16px 18px;
  margin: 18px 0;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--text);
}
pre .c { color: var(--text-faint); }
code {
  font-family: var(--mono);
  font-size: 0.88em;
  color: var(--text);
  background: var(--bg-raised);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  padding: 1px 5px;
}
pre code { background: none; border: 0; padding: 0; font-size: inherit; }
kbd {
  font-family: var(--mono);
  font-size: 0.82em;
  background: var(--bg-raised);
  border: 1px solid var(--hairline);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 2px 6px;
  color: var(--text);
  white-space: nowrap;
}

/* ---- help page ---- */

.help { padding-top: 56px; padding-bottom: 40px; }
.help h1 { font-size: clamp(2rem, 5vw, 2.8rem); max-width: 20ch; }
.help > p.sub { margin-top: 18px; }

.toc {
  border-top: 1px solid var(--hairline);
  margin-top: 44px;
  padding-top: 28px;
  columns: 2;
  column-gap: 48px;
  max-width: 64ch;
}
.toc a {
  display: block;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 3px 0;
  break-inside: avoid;
}
.toc a:hover { color: var(--accent); }

section.doc {
  border-top: 1px solid var(--hairline);
  padding-top: 44px;
  padding-bottom: 44px;
}
/* The reading column belongs on the content, not on the section. A max-width
   on an element that also centres itself narrows the page instead of the
   text, and the section then no longer lines up with the header above it. */
section.doc .frame > * { max-width: 68ch; }
section.doc h2 {
  font-size: 1.4rem;
  font-weight: 620;
  letter-spacing: -0.01em;
  scroll-margin-top: 24px;
}
section.doc h3 {
  font-size: 1.02rem;
  font-weight: 600;
  margin-top: 30px;
}
section.doc p { color: var(--text-dim); margin-top: 12px; }
section.doc p strong { color: var(--text); font-weight: 550; }
section.doc ul { color: var(--text-dim); margin: 12px 0 0 20px; }
section.doc li { margin-top: 8px; }
section.doc li strong { color: var(--text); font-weight: 550; }
.note {
  border-left: 2px solid var(--accent);
  padding: 2px 0 2px 16px;
  margin-top: 18px;
  color: var(--text-dim);
}
.note strong { color: var(--text); }

@media (max-width: 720px) {
  .toc { columns: 1; }
  header.frame { flex-wrap: wrap; gap: 8px; }
}

/* Links inside prose. The site had none until the About page, which is mostly
   links — unstyled they were indistinguishable from bold text. */
section.doc a { color: var(--accent); text-decoration: none; }
section.doc a:hover { text-decoration: underline; }

.install .alt { margin-top: 14px; font-size: 0.95rem; }
.install .alt a { color: var(--accent); text-decoration: none; }
.install .alt a:hover { text-decoration: underline; }
.install .more { margin-top: 20px; }
.install .more a { color: var(--accent); text-decoration: none; }
