:root {
  --bg: #f6f5f1; --ink: #1c1d1b; --muted: #62665f; --line: #e2e1db; --surface: #ffffff; --code: #efeee8;
  --accent: #2f5d50;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #141614; --ink: #ecede9; --muted: #9a9e97; --line: #2f342f; --surface: #1d201d; --code: #252925; --accent: #6fb39c; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}
main { max-width: 680px; margin: 0 auto; padding: 72px 24px 56px; }
a { color: var(--accent); text-underline-offset: 3px; }
header { display: flex; align-items: center; gap: 12px; }
header img { border-radius: 10px; }
h1 { font-size: 24px; letter-spacing: -0.01em; margin: 0; }
h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 0 0 8px; }
.lede { font-size: clamp(26px, 5vw, 34px); line-height: 1.2; letter-spacing: -0.02em; font-weight: 600; margin: 28px 0 32px; text-wrap: balance; }
.how { list-style: none; padding: 0; margin: 0 0 40px; display: grid; gap: 14px; counter-reset: s; }
.how li { counter-increment: s; padding-left: 36px; position: relative; color: var(--muted); }
.how li::before {
  content: counter(s); position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%;
  border: 1.5px solid var(--accent); color: var(--accent); font-size: 13px; font-weight: 600;
  display: grid; place-items: center;
}
.how strong { color: var(--ink); font-weight: 600; }
figure { margin: 0 0 48px; }
figure img { width: 100%; height: auto; display: block; border-radius: 12px; border: 1px solid var(--line); }
section { margin-bottom: 40px; }
section p { margin: 0 0 10px; }
.copy { position: relative; background: var(--code); border-radius: 10px; }
pre { margin: 0; padding: 16px 16px 52px; white-space: pre-wrap; font: 13.5px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; }
.copy button {
  position: absolute; right: 10px; bottom: 10px; font: 600 14px/1 inherit; font-family: inherit;
  padding: 9px 16px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer;
}
.copy button:hover { border-color: var(--accent); }
code { font: 13.5px ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--code); padding: 1px 5px; border-radius: 5px; overflow-wrap: anywhere; }
.fine { font-size: 14px; color: var(--muted); margin-top: 12px; }
.links { margin: 0 0 12px; }
footer { font-size: 14px; color: var(--muted); padding-top: 20px; border-top: 1px solid var(--line); }
