:root {
  --bg: #fbfaf7;
  --ink: #141414;
  --muted: #5b5a56;
  --faint: #8a8883;
  --rule: #e4e1d9;
  --accent: #4b3fd6;
  --accent-ink: #4136c4;
  --code-bg: #f3f1ec;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "Charter", "Bitstream Charter", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131312;
    --ink: #eeece6;
    --muted: #a6a39c;
    --faint: #7a7873;
    --rule: #2a2925;
    --accent: #8f87f2;
    --accent-ink: #aaa4f6;
    --code-bg: #1c1c1a;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-ink); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
section p a, section dd a, details p a, .hero p.note a { color: var(--accent-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }

header.top { display: flex; align-items: center; justify-content: space-between; padding: 28px 0 0; }
.brand { display: inline-flex; white-space: nowrap; align-items: center; gap: 10px; font-family: var(--serif); font-size: 21px; letter-spacing: -0.01em; }
.brand img { width: 26px; height: 26px; display: block; }
nav.links { display: flex; gap: 22px; font-size: 14.5px; color: var(--muted); }

.hero { padding: 96px 0 56px; }
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 6.4vw, 66px);
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin: 0 0 24px;
}
.hero h1 em { font-style: italic; color: var(--accent-ink); }
.hero p.lead { font-size: 19px; color: var(--muted); max-width: 600px; margin: 0 0 36px; }
.hero p.note { font-size: 14px; color: var(--faint); margin: 14px 0 0; }

.tabset { border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; }
.tabset .tabs { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--rule); background: var(--code-bg); }
.tabset input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.tabset label { padding: 9px 16px; font-size: 13.5px; color: var(--muted); cursor: pointer; border-right: 1px solid var(--rule); }
.tabset label:hover { color: var(--ink); }
.tabset:has(input:focus-visible) .tabs { outline: 2px solid var(--accent); outline-offset: -2px; }
.tabset .panel { display: none; }
.tabset .code { position: relative; }
.tabset pre { margin: 0; padding: 18px 64px 18px 18px; font-family: var(--mono); font-size: 14px; line-height: 1.55; overflow-x: auto; white-space: pre; }
.tabset.install pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.tabset .nb { white-space: nowrap; }
.tabset .copy { position: absolute; top: 10px; right: 10px; border: 1px solid var(--rule); background: var(--bg); color: var(--muted); font: 12.5px var(--sans); padding: 5px 9px; border-radius: 4px; cursor: pointer; }
.tabset .copy:hover { color: var(--ink); }
#i-cc:checked ~ .tabs label[for="i-cc"], #i-any:checked ~ .tabs label[for="i-any"], #i-src:checked ~ .tabs label[for="i-src"],
#c-cc:checked ~ .tabs label[for="c-cc"], #c-desk:checked ~ .tabs label[for="c-desk"], #c-vsc:checked ~ .tabs label[for="c-vsc"], #c-codex:checked ~ .tabs label[for="c-codex"] { color: var(--ink); background: var(--bg); }
#i-cc:checked ~ .p-i-cc, #i-any:checked ~ .p-i-any, #i-src:checked ~ .p-i-src,
#c-cc:checked ~ .p-c-cc, #c-desk:checked ~ .p-c-desk, #c-vsc:checked ~ .p-c-vsc, #c-codex:checked ~ .p-c-codex { display: block; }
.tabset .panel p.where { margin: 0; padding: 14px 18px 0; font-size: 14px; color: var(--faint); max-width: none; }
.tabset + p { margin-top: 18px; }

section { padding: 56px 0; border-top: 1px solid var(--rule); }
.eyebrow { display: block; font-family: var(--sans); font-weight: 400; font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin: 0 0 14px; }
section p { max-width: 620px; margin: 0 0 16px; color: var(--muted); }
section p strong { color: var(--ink); font-weight: 600; }

ol.steps { list-style: none; padding: 0; margin: 0 0 8px; counter-reset: step; }
ol.steps li { position: relative; padding: 0 0 22px 44px; counter-increment: step; max-width: 620px; }
ol.steps li::before { content: counter(step); position: absolute; left: 0; top: 2px; width: 26px; height: 26px; border: 1px solid var(--rule); border-radius: 50%; text-align: center; line-height: 24px; font-size: 13px; color: var(--muted); font-family: var(--serif); }
ol.steps li b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 4px; }
ol.steps li span { color: var(--muted); }

ul.ask { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 40px; }
ul.ask li { break-inside: avoid; font-family: var(--serif); font-style: italic; font-size: 20px; line-height: 1.35; color: var(--ink); padding: 0 0 18px; }
ul.ask li::before { content: "\201C"; color: var(--accent); }
ul.ask li::after { content: "\201D"; color: var(--accent); }

dl.features { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 26px 40px; }
dl.features dt { font-weight: 600; margin-bottom: 6px; }
dl.features dd { margin: 0; color: var(--muted); font-size: 16px; }
dl.features code, section code, ol.steps code, details code, td code { font-family: var(--mono); font-size: 0.86em; background: var(--code-bg); padding: 1px 5px; border-radius: 3px; }

.table-scroll { overflow-x: auto; margin: 0 0 18px; }
table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
th, td { text-align: left; vertical-align: top; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--rule); }
th { font-weight: 600; color: var(--ink); }
td { color: var(--muted); }
td:first-child, th:first-child { color: var(--ink); width: 34%; }
td:first-child code { white-space: nowrap; }

ul.plain { padding-left: 18px; margin: 0; color: var(--muted); max-width: 620px; }
ul.plain li { margin-bottom: 8px; }

details { border-top: 1px solid var(--rule); padding: 14px 0; max-width: 680px; }
details:last-of-type { border-bottom: 1px solid var(--rule); }
summary { cursor: pointer; font-weight: 500; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--faint); font-family: var(--serif); font-size: 20px; }
details[open] summary::after { content: "\2212"; }
details p { margin: 10px 0 0; }

footer { border-top: 1px solid var(--rule); padding: 32px 0 56px; font-size: 14px; color: var(--faint); display: flex; flex-wrap: wrap; gap: 8px 24px; }
footer a { color: var(--muted); }

@media (max-width: 640px) {
  .hero { padding: 64px 0 40px; }
  .tabset pre { font-size: 13px; padding: 16px 18px 48px; }
  .tabset .copy { top: auto; bottom: 10px; right: 10px; }
  ul.ask { columns: 1; }
  dl.features { grid-template-columns: 1fr; }
  .brand { font-size: 19px; gap: 8px; }
  .brand img { width: 22px; height: 22px; }
  nav.links { gap: 12px; font-size: 14px; }
  td:first-child, th:first-child { width: 42%; }
}
