:root {
  --bg: #f6f6f3;
  --surface: #ffffff;
  --text: #16170f;
  --muted: #64665a;
  --line: #e3e4dc;
  --accent: #7d9518;
  --accent-strong: #a3c22e;
  --on-accent: #16170f;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0d09;
    --surface: #17180f;
    --text: #f2f3ec;
    --muted: #a4a698;
    --line: #2a2c20;
    --accent: #b8d64a;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, sans-serif;
}
main { max-width: 720px; margin: 0 auto; padding: 32px 20px 80px; }
nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 56px; }
nav a { color: var(--muted); text-decoration: none; margin-left: 18px; font-size: 15px; }
nav a:hover { color: var(--text); }
.brand { color: var(--text); font-weight: 700; margin-left: 0; font-size: 17px; letter-spacing: -0.01em; }
h1 { font-size: clamp(40px, 9vw, 64px); line-height: 1.02; letter-spacing: -0.035em; margin: 0 0 18px; }
h2 { font-size: 26px; letter-spacing: -0.02em; margin: 56px 0 14px; }
h3 { font-size: 18px; margin: 28px 0 6px; }
p, li { color: var(--muted); }
strong { color: var(--text); }
.lede { font-size: 21px; max-width: 34ch; }
a { color: var(--accent); }
.button {
  display: inline-block; padding: 12px 20px; border-radius: 999px;
  background: var(--accent-strong); color: var(--on-accent); font-weight: 600; text-decoration: none;
}
.button.secondary { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin-top: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.card h3 { margin-top: 0; }
.card p { margin: 0; font-size: 15px; }
ol.steps { padding-left: 0; list-style: none; counter-reset: step; }
ol.steps li { counter-increment: step; position: relative; padding-left: 40px; margin: 16px 0; }
ol.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 26px; height: 26px; border-radius: 50%; background: var(--accent-strong); color: var(--on-accent);
  font-weight: 700; font-size: 14px; display: grid; place-items: center;
}
code, pre { font: 14px/1.5 ui-monospace, "SF Mono", Menlo, monospace; }
code { background: var(--surface); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; color: var(--text); }
pre { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; overflow-x: auto; white-space: pre-wrap; color: var(--text); }
footer { margin-top: 72px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
footer a { color: var(--muted); }
.updated { font-size: 14px; }
.copyable { position: relative; }
.copyable pre { padding-right: 76px; }
.copy {
  position: absolute; top: 10px; right: 10px;
  font: 600 13px/1 -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  padding: 7px 11px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--bg); color: var(--text); cursor: pointer;
}
.copy:hover { border-color: var(--muted); }
.copy:active { transform: scale(0.97); }
