body { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }
/* Layout: a release catalogue that speaks terminal. Hero with a command builder, the milestone ruler, the version index as an ls-style table, then install, comparison, files and notes under man-page section labels. */
:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --ink: #121722;
  --muted: #5c6578;
  --line: #dfe3ea;
  --accent: #2f6fe4;
  --accent-soft: #e6eefc;
  --str: #2f8a4a;
  --num: #c2581c;
  --hl: #9a6a10;
  --hl-soft: #f7eedb;
  --term: #131823;
  --term-line: #262e3e;
  --term-ink: #d7dce7;
  --term-dim: #7f899c;
  --term-key: #86acff;
  --term-str: #9fd17a;
  --term-num: #ffa36b;
  --sans: "Geist", "Segoe UI", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e121a; --surface: #151b26; --ink: #e3e8f1; --muted: #8f9ab0; --line: #242c3b;
    --accent: #86acff; --accent-soft: #19253b; --str: #9fd17a; --num: #ffa36b; --hl: #e6b65f; --hl-soft: #2a2213;
    --term: #0a0d14; --term-line: #1f2633; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e121a; --surface: #151b26; --ink: #e3e8f1; --muted: #8f9ab0; --line: #242c3b;
  --accent: #86acff; --accent-soft: #19253b; --str: #9fd17a; --num: #ffa36b; --hl: #e6b65f; --hl-soft: #2a2213;
  --term: #0a0d14; --term-line: #1f2633; color-scheme: dark;
}
* { box-sizing: border-box; }
body { background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--sans); }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { text-wrap: balance; line-height: 1.1; margin: 0; letter-spacing: -0.02em; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.label { font: 600 0.75rem/1 var(--mono); letter-spacing: 0.12em; color: var(--hl); }

.notice { background: var(--hl-soft); color: var(--ink); border-bottom: 1px solid color-mix(in srgb, var(--hl) 30%, transparent); font-size: 0.85rem; }
.notice .wrap { padding-block: 9px; display: flex; gap: 10px; align-items: baseline; }
.notice b { font: 600 0.7rem/1 var(--mono); letter-spacing: 0.1em; color: var(--hl); flex: none; }
.notice p { margin: 0; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; padding-block: 12px; }
.brand { font: 600 0.95rem/1 var(--mono); color: var(--ink); text-decoration: none; display: flex; gap: 8px; align-items: center; }
.brand .p { color: var(--str); }
.top nav { display: flex; align-items: center; gap: 20px; margin-left: auto; flex-wrap: wrap; }
.top nav a { color: var(--muted); text-decoration: none; font: 500 0.82rem/1 var(--mono); letter-spacing: 0.04em; }
.top nav a:hover { color: var(--ink); }
.gh { border: 1px solid var(--line); background: var(--surface); padding: 8px 12px; border-radius: 8px; color: var(--ink) !important; letter-spacing: 0 !important; }
@media (max-width: 720px) { .top nav a:not(.gh) { display: none; } }

.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; padding-block: 64px 40px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); font-weight: 700; margin-block: 16px 18px; }
.hero h1 .n { color: var(--num); font-family: var(--mono); font-weight: 600; letter-spacing: -0.04em; }
.lede { font-size: 1.12rem; color: var(--muted); max-width: 34em; margin: 0 0 24px; }
.facts { display: grid; gap: 6px; padding: 0; margin: 0; list-style: none; font: 400 0.88rem var(--mono); color: var(--muted); }
.facts li::before { content: "+ "; color: var(--str); font-weight: 600; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-block: 40px 24px; } }

.term { background: var(--term); color: var(--term-ink); border: 1px solid var(--term-line); border-radius: 14px; overflow: hidden; box-shadow: 0 20px 40px -24px rgba(10, 13, 20, 0.6); font-family: var(--mono); }
.term-top { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--term-line); color: var(--term-dim); font-size: 0.78rem; }
.term-top i { width: 10px; height: 10px; border-radius: 50%; background: var(--term-line); display: inline-block; }
.term-top span { margin-left: 6px; }
.term-body { padding: 16px 18px 18px; display: grid; gap: 14px; }
.opts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 14px; align-items: center; font-size: 0.82rem; }
.opts > span { color: var(--term-dim); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font: 500 0.8rem var(--mono); background: transparent; color: var(--term-ink); border: 1px solid var(--term-line); border-radius: 6px; padding: 4px 10px; cursor: pointer; }
.chip[aria-pressed="true"] { border-color: var(--term-key); color: var(--term-key); background: color-mix(in srgb, var(--term-key) 12%, transparent); }
.term select { font: 500 0.8rem var(--mono); background: var(--term); color: var(--term-ink); border: 1px solid var(--term-line); border-radius: 6px; padding: 5px 8px; max-width: 100%; }
.code { background: var(--term); color: var(--term-ink); border: 1px solid var(--term-line); border-radius: 10px; overflow: hidden; font-family: var(--mono); min-width: 0; }
.term .code { background: color-mix(in srgb, var(--term-ink) 5%, var(--term)); }
.code-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 8px 6px 14px; border-bottom: 1px solid var(--term-line); font-size: 0.7rem; letter-spacing: 0.06em; color: var(--term-dim); }
.code pre { margin: 0; padding: 12px 14px; overflow-x: auto; font: 400 0.8rem/1.7 var(--mono); white-space: pre; }
.pr { color: var(--term-str); user-select: none; }
.tk { color: var(--term-key); } .ts { color: var(--term-str); } .tn { color: var(--term-num); } .td { color: var(--term-dim); }
.copy { font: 500 0.7rem var(--mono); background: color-mix(in srgb, var(--term-ink) 12%, transparent); color: var(--term-ink); border: 0; border-radius: 5px; padding: 3px 9px; cursor: pointer; flex: none; }
.copy:hover { background: color-mix(in srgb, var(--term-ink) 20%, transparent); }
.dlrow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.dlrow a { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 8px; text-decoration: none; font: 500 0.82rem var(--mono); border: 1px solid var(--term-line); color: var(--term-ink); }
.dlrow a small { color: var(--term-num); font-size: 0.78rem; }
.dlrow a:hover { border-color: var(--term-key); }
.dlrow a .k { display: flex; align-items: center; gap: 8px; }
.dlrow img { width: 20px; height: 20px; }
.out { color: var(--term-dim); font-size: 0.76rem; white-space: pre; overflow-x: auto; }
.cursor { display: inline-block; width: 0.55em; height: 1.05em; background: var(--term-ink); vertical-align: -0.18em; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (max-width: 480px) { .dlrow { grid-template-columns: minmax(0, 1fr); } }

.ruler { padding-block: 8px 48px; }
.ruler-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.ruler-head p { margin: 0; color: var(--muted); font: 400 0.8rem var(--mono); }
.scale { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.ticks { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(13px, 1fr); align-items: end; min-width: 1000px; height: 168px; padding: 14px 14px 34px; }
.tick { appearance: none; border: 0; background: transparent; padding: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; cursor: pointer; position: relative; }
.tick i { display: block; width: 3px; border-radius: 2px; background: var(--line); transition: background 0.15s; }
.tick span { font: 400 0.62rem/1 var(--mono); color: var(--muted); height: 22px; }
.tick.major i { background: color-mix(in srgb, var(--muted) 55%, transparent); }
.tick.beta i { background: var(--hl); }
.tick:hover i { background: var(--accent); }
.tick[aria-current="true"] i { background: var(--num); width: 5px; }
.tick[aria-current="true"] span { color: var(--num); font-weight: 600; }
.tick > span:not(.guide) { position: relative; z-index: 1; background: var(--surface); padding-inline: 2px; }
.guide { position: absolute; top: -8px; bottom: -22px; width: 0; border-left: 1px dashed; pointer-events: none; z-index: 0; }
.guide.year { border-color: color-mix(in srgb, var(--ink) 28%, transparent); }
.guide b { position: absolute; bottom: 0; left: 5px; transform: translateY(40%); white-space: nowrap; font: 500 0.66rem/1 var(--mono); }
.guide.end b { left: auto; right: 5px; }
.guide.year b { color: var(--ink); }
.legend { display: flex; gap: 16px; flex-wrap: wrap; }
.legend span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; vertical-align: 0; }
.legend .l-year::before { width: 0; height: 10px; border-radius: 0; border-left: 1px dashed var(--ink); vertical-align: -1px; }


section.block { padding-block: 56px; border-top: 1px solid var(--line); }
.block-head { display: grid; gap: 10px; margin-bottom: 26px; max-width: 46em; }
.block-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 700; }
.block-head p { margin: 0; color: var(--muted); }

.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.filters input { font: 500 0.85rem var(--mono); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; width: 240px; max-width: 100%; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface); }
.seg button { font: 500 0.8rem var(--mono); border: 0; background: transparent; color: var(--muted); padding: 8px 12px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.count { margin-left: auto; color: var(--muted); font: 400 0.8rem var(--mono); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th { text-align: left; font: 500 0.7rem var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 9px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
.vtable { table-layout: fixed; min-width: 880px; }
.vtable td { overflow: hidden; text-overflow: ellipsis; }
.vtable .file { min-width: 8.5rem; justify-content: space-between; }
tbody tr:hover { background: color-mix(in srgb, var(--accent-soft) 60%, transparent); }
.ver { display: flex; align-items: center; gap: 10px; }
.ver img { width: 26px; height: 26px; }
.ver a { font: 500 0.9rem var(--mono); color: var(--ink); text-decoration: none; }
.ver a:hover { color: var(--accent); }
.pill { display: inline-block; font: 500 0.68rem/1 var(--mono); padding: 4px 7px; border-radius: 5px; }
.pill-s { background: var(--accent-soft); color: var(--accent); }
.pill-b { background: var(--hl-soft); color: var(--hl); }
.pill-l { background: var(--num); color: var(--surface); }
td.dt { font: 400 0.82rem var(--mono); color: var(--muted); }
.file { font: 500 0.8rem var(--mono); text-decoration: none; color: var(--ink); display: inline-flex; gap: 8px; align-items: baseline; padding: 4px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); }
.file .k { color: var(--str); }
.file small { color: var(--num); font-size: 0.76rem; }
.file:hover { border-color: var(--accent); }
.sha { font: 500 0.72rem var(--mono); color: var(--muted); background: none; border: 1px dashed var(--line); border-radius: 6px; padding: 4px 7px; cursor: pointer; }
.more { margin-top: 14px; font: 500 0.85rem var(--mono); background: var(--surface); color: var(--accent); border: 1px dashed var(--line); border-radius: 8px; padding: 8px 14px; cursor: pointer; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps li { display: grid; grid-template-rows: subgrid; grid-row: span 3; gap: 10px; counter-increment: s; min-width: 0; }
.steps .code { display: flex; flex-direction: column; }
.steps .code pre { flex: 1; }
.steps h3 { font-size: 1.1rem; font-weight: 600; display: flex; gap: 10px; align-items: baseline; }
.steps h3::before { content: counter(s); font: 600 0.78rem var(--mono); color: var(--num); }
.steps p { margin: 0; color: var(--muted); font-size: 0.93rem; }
@media (max-width: 900px) { .steps { grid-template-columns: minmax(0, 1fr); } .steps li { grid-template-rows: auto; grid-row: auto; } }

.compare td, .compare th { white-space: normal; }
.compare td:first-child { color: var(--muted); font-family: var(--mono); font-size: 0.84rem; }
.yes { color: var(--str); font-weight: 600; }
.no { color: var(--muted); }

.files { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.fcard { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.fcard h3 { font: 600 1rem/1.2 var(--mono); letter-spacing: 0; display: flex; gap: 10px; align-items: center; }
.fcard h3 .ext { font: 600 0.66rem/1 var(--mono); color: var(--str); border: 1px solid color-mix(in srgb, var(--str) 45%, transparent); border-radius: 4px; padding: 3px 5px; }
.fcard p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.fcard a.path { font: 400 0.74rem/1.5 var(--mono); color: var(--accent); overflow-wrap: anywhere; text-decoration: none; border-top: 1px dashed var(--line); padding-top: 10px; }
.fcard a.path:hover { text-decoration: underline; }
@media (max-width: 900px) { .files { grid-template-columns: minmax(0, 1fr); } }
.qa { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; max-width: 64em; }
.qa div { border-top: 1px solid var(--line); padding-block: 18px; }
.qa h3 { font-size: 1.02rem; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 6px; }
.qa p { margin: 0; color: var(--muted); font-size: 0.94rem; }
.qa code { font: 400 0.85em var(--mono); color: var(--ink); background: var(--accent-soft); padding: 1px 5px; border-radius: 4px; }
@media (max-width: 720px) { .qa { grid-template-columns: minmax(0, 1fr); } }

.ticks { touch-action: pan-x; user-select: none; }
.tick.peek i { background: var(--accent); }
.term.previewing .term-body { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--term-key) 35%, transparent); }
#term-title b { color: var(--term-key); font-weight: 500; }

footer { border-top: 1px solid var(--line); padding-block: 28px 48px; color: var(--muted); font: 400 0.8rem var(--mono); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; }
@media (prefers-reduced-motion: reduce) { .cursor { animation: none; } .tick i { transition: none; } }
