:root {
  --bg: #f6f6f7; --ink: #111113; --ink-2: #4f4f56; --ink-3: #8b8b92;
  --line: rgba(0,0,0,.1); --fill: rgba(0,0,0,.05); --accent: #111113; --on-accent: #fff;
  --blue: #0a84ff; --head: rgba(246,246,247,.72); --ease: cubic-bezier(.2,.7,.1,1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #08080a; --ink: #f4f4f5; --ink-2: #b0b0b8; --ink-3: #6f6f77;
    --line: rgba(255,255,255,.12); --fill: rgba(255,255,255,.07); --accent: #f4f4f5; --on-accent: #0b0b0c;
    --head: rgba(8,8,10,.7);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--ink); overflow-x: clip;
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Header, shared with the home page */
.top { position: sticky; top: 0; z-index: 20; transition: background .3s, box-shadow .3s; }
.top.scrolled { background: var(--head); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px); box-shadow: 0 1px 0 var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 18px; text-decoration: none; margin-right: auto; }
.mark { width: 28px; height: 28px; border-radius: 8px; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; }
.top nav { display: flex; gap: 22px; font-size: 15px; }
.top nav a { text-decoration: none; color: var(--ink-2); transition: color .2s; }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--ink); }
.top nav a[aria-current="page"] { font-weight: 600; }
.progress { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--ink); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

/* Page head */
.head { padding: 72px 0 8px; }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
h1 { margin: 12px 0 0; font-size: clamp(44px, 7vw, 84px); line-height: 1; letter-spacing: -.04em; font-weight: 750; }
.meta { margin-top: 18px; color: var(--ink-3); font-size: 15px; }
.lead { margin: 40px 0 0; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.3; letter-spacing: -.015em; font-weight: 600; max-width: 26em; color: var(--ink); text-wrap: pretty; }
.points { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; border-top: 1px solid var(--line); padding-top: 24px; }
.points li { color: var(--ink-2); font-size: 16px; }
.points b { display: block; color: var(--ink); font-size: 17px; margin-bottom: 4px; }

/* Body with an optional contents rail */
.layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 72px; padding: 56px 0 96px; }
.layout.single { grid-template-columns: minmax(0, 1fr); max-width: 820px; }
.toc { position: sticky; top: 96px; align-self: start; font-size: 14px; }
.toc p { margin: 0 0 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 16px; margin-left: -1px; border-left: 2px solid transparent; color: var(--ink-3); text-decoration: none; transition: color .2s, border-color .2s; }
.toc a:hover { color: var(--ink); }
.toc a.on { color: var(--ink); border-left-color: var(--ink); font-weight: 600; }
article { max-width: 720px; }
article section { padding-top: 8px; }
article section + section { margin-top: 48px; padding-top: 48px; border-top: 1px solid var(--line); }
h2 { margin: 0 0 14px; font-size: clamp(24px, 2.6vw, 30px); letter-spacing: -.02em; line-height: 1.2; }
h2 .n { color: var(--ink-3); font-variant-numeric: tabular-nums; margin-right: 10px; font-weight: 600; }
h3 { margin: 28px 0 6px; font-size: 18px; }
p, li { color: var(--ink-2); }
p { margin: 12px 0; text-wrap: pretty; }
ul, ol { padding-left: 1.2em; }
li { margin: 8px 0; }
strong, b { color: var(--ink); }
code { font: 14px ui-monospace, "SF Mono", Menlo, Consolas, monospace; background: var(--fill); border-radius: 6px; padding: 2px 6px; overflow-wrap: anywhere; }

/* Definition rows instead of boxed tables */
.rows { margin: 18px 0 0; border-top: 1px solid var(--line); }
.rows div { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.rows dt { color: var(--ink); font-weight: 600; }
.rows dd { margin: 0; color: var(--ink-2); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 18px; }
.split h3 { margin-top: 0; font-size: 15px; letter-spacing: .02em; color: var(--ink-3); text-transform: uppercase; }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 600; text-decoration: none; transition: transform .2s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; text-decoration: none; color: var(--ink); }
.link::after { content: "→"; transition: transform .2s var(--ease); }
.link:hover::after { transform: translateX(4px); }
.actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; }

/* Accordion on hairlines */
.faq { margin-top: 8px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; font-size: 20px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 11px; height: 11px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg) translate(-3px, -3px); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(225deg); }
.faq details > p { margin: 0; padding: 0 40px 24px 0; }
.faq details[open] > p { animation: rise .4s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

.steps { list-style: none; padding: 0; margin: 8px 0 0; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 16px 0 16px 52px; border-top: 1px solid var(--line); margin: 0; }
.steps li:first-child { border-top: 0; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 14px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--fill); color: var(--ink); font-size: 14px; font-weight: 650; }

footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--ink-3); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; }
footer nav { display: flex; gap: 20px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }

/* Only hidden when the script is running, so content never depends on JavaScript to appear. */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.js .head .reveal { transition-duration: .6s; }

@media (max-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 40px; }
  .toc { display: none; }
  .points { grid-template-columns: 1fr; gap: 16px; }
  .head { padding-top: 48px; }
}
@media (max-width: 600px) {
  .top nav { gap: 16px; }
  .rows div, .split { grid-template-columns: 1fr; gap: 4px; }
  .split { gap: 20px; }
  .faq details > p { padding-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .reveal.in { opacity: 1; transform: none; transition: none; }
  .btn, .faq details[open] > p { transition: none; animation: none; }
}
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
