/* qlinter.org — fonts (self-hosted latin subsets, variable weight) */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/BricolageGrotesque.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("/fonts/JetBrainsMono.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* qlinter.org — tokens */
:root {
  --bg: #f5f4ef;
  --surface: #ffffff;
  --surface-2: #eeece5;
  --ink: #15161a;
  --ink-2: #4b4f5c;
  --ink-3: #767a86;
  --line: #e0ddd4;
  --line-strong: #cfcbc0;
  --accent: #e8501c;
  --accent-ink: #b83a0e;
  --accent-soft: #fde6dc;
  --ok: #1d8a4e;
  --control: #2f5bd3;
  --control-soft: #e3eafc;
  --term-bg: #121317;
  --term-ink: #e6e6ea;
  --term-dim: #8b8f9b;
  --shadow: 0 1px 0 rgba(20, 20, 30, 0.04), 0 8px 24px -12px rgba(20, 20, 30, 0.12);
  --radius: 14px;
  --font-display: "Bricolage Grotesque", "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d0e11;
    --surface: #15171c;
    --surface-2: #1c1f26;
    --ink: #ececf0;
    --ink-2: #b3b6c0;
    --ink-3: #868a96;
    --line: #262a32;
    --line-strong: #343944;
    --accent: #ff6a33;
    --accent-ink: #ff8a5c;
    --accent-soft: #3a1c10;
    --ok: #4cc884;
    --control: #7c9cff;
    --control-soft: #1b2340;
    --term-bg: #08090b;
    --shadow: 0 1px 0 rgba(0, 0, 0, 0.3), 0 10px 30px -14px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}

/* base */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }
code, pre { font-family: var(--font-mono); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
:lang(zh-Hant) h1, :lang(zh-Hant) h2, :lang(zh-Hant) h3 { letter-spacing: 0; line-height: 1.3; word-break: keep-all; overflow-wrap: anywhere; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -48px; z-index: 100; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 var(--line), 0 6px 16px -12px rgba(20, 20, 30, 0.18);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.brand-mark { display: block; width: 30px; height: 30px; flex-shrink: 0; }
.site-nav { display: flex; gap: 4px; }
.site-nav a { text-decoration: none; color: var(--ink-2); font-size: 14.5px; font-weight: 500; padding: 6px 12px; border-radius: 999px; }
.site-nav a:hover { color: var(--ink); background: var(--surface-2); }
.header-end { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.lang { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.lang button {
  font: 600 12.5px/1 var(--font-body); color: var(--ink-3); background: none; border: 0; cursor: pointer;
  padding: 6px 10px; border-radius: 999px;
}
.lang button[aria-current="true"] { background: var(--ink); color: var(--bg); }
.gh-link { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.gh-link svg { width: 18px; height: 18px; }
.gh-link:hover { color: var(--ink); }

/* hero */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: center;
  padding: 88px 0 56px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font: 500 13px/1 var(--font-mono); color: var(--ink-2);
  border: 1px solid var(--line); background: var(--surface); padding: 7px 12px; border-radius: 999px;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 22%, transparent); }
.hero h1 { font-size: clamp(34px, 4.3vw, 54px); font-weight: 800; margin: 22px 0 18px; text-wrap: balance; }
.lede { font-size: clamp(17px, 1.6vw, 19px); color: var(--ink-2); max-width: 34em; text-wrap: pretty; }
.snippet-hero { margin-top: 28px; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* hero: "what do you want to do?" */
.paths-title { margin: 30px 0 10px; font: 600 13px/1 var(--font-mono); color: var(--ink-3); letter-spacing: .02em; }
.paths { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-width: 560px; }
.paths a {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 16px; row-gap: 3px;
  padding: 13px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  text-decoration: none; color: var(--ink); transition: border-color .15s ease, transform .15s ease;
}
.paths a:hover { border-color: var(--accent); transform: translateX(2px); }
.path-q { font-weight: 650; font-size: 16.5px; }
.path-t { grid-row: 2; font: 500 12.5px/1.35 var(--font-mono); color: var(--ink-3); }
.path-go { grid-row: 1 / span 2; grid-column: 2; color: var(--accent-ink); font-size: 18px; }

/* keep row labels (Registries / 套件庫 …) on one line on narrow screens */
.compare th[scope="row"] { white-space: nowrap; }

/* which systems a tool runs on */
.platforms { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.platforms span {
  font: 600 12px/1 var(--font-body); color: var(--ink-2); padding: 5px 9px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line);
}
.platforms em { font-style: normal; font-weight: 500; color: var(--ink-3); margin-left: 2px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 10px;
  font: 600 15px/1 var(--font-body); text-decoration: none; border: 1px solid transparent; transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: color-mix(in srgb, var(--ink) 88%, var(--accent)); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--ink-3); }

/* terminal */
.term {
  margin: 0; background: var(--term-bg); color: var(--term-ink); border-radius: 16px; overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(10, 10, 20, .55), 0 0 0 1px rgba(255, 255, 255, .06) inset;
  transform: rotate(0.6deg);
}
.term-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: rgba(255, 255, 255, .04); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.term-dots { display: inline-flex; gap: 6px; }
.term-dots i { width: 11px; height: 11px; border-radius: 50%; background: #3a3d45; }
.term-dots i:first-child { background: #ff5f57; }
.term-dots i:nth-child(2) { background: #febc2e; }
.term-dots i:nth-child(3) { background: #28c840; }
.term-title { font: 500 12.5px/1 var(--font-mono); color: var(--term-dim); }
.term-body { padding: 20px 22px 8px; font: 13.5px/1.85 var(--font-mono); min-height: 300px; }
.term-body p { white-space: pre-wrap; overflow-wrap: anywhere; }
.t-prompt { color: var(--accent); margin-right: 8px; }
.t-ok { color: #6fdc9b; }
.t-warn { color: #ffb86b; }
.t-dim { color: var(--term-dim); }
.term-cap { padding: 10px 22px 18px; font: 500 13px/1.4 var(--font-body); color: var(--term-dim); }
.js .term-body p { opacity: 0; }
.js .term-body p.on { opacity: 1; }
.term-body p.typing::after { content: "▍"; color: var(--accent); animation: blink 1s steps(1) infinite; margin-left: 1px; }
@keyframes blink { 50% { opacity: 0; } }

/* tool index */
.index {
  display: flex; flex-wrap: wrap; gap: 8px; padding: 22px 0 8px; border-top: 1px dashed var(--line-strong);
}
.index a {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font: 500 13.5px/1 var(--font-mono);
  color: var(--ink-2); padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
}
.index a:hover { color: var(--ink); border-color: var(--ink-3); }
.idx-k { color: var(--accent-ink); font-weight: 700; font-size: 11.5px; }

/* sections */
.block { padding: 96px 0 8px; }
.section-head { display: grid; grid-template-columns: 140px minmax(0, 1fr); column-gap: 24px; row-gap: 10px; margin-bottom: 36px; }
.section-num { grid-row: span 2; font: 700 13px/1 var(--font-mono); color: var(--accent-ink); padding-top: 14px; border-top: 2px solid var(--accent); align-self: start; }
.section-head h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 800; }
.section-head > p:last-child { color: var(--ink-2); font-size: 17.5px; max-width: 42em; }

/* pipeline */
.pipeline { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pipeline li {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; background: var(--surface);
  border: 1px solid var(--line); font: 500 14px/1 var(--font-mono);
}
.pipeline li + li { position: relative; margin-left: 26px; }
.pipeline li + li::before { content: "→"; position: absolute; left: -24px; color: var(--ink-3); }
.pipe-ico { color: var(--accent); font-size: 15px; }

/* cards */
.cards { display: grid; gap: 20px; }
.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  position: relative; display: flex; flex-direction: column; gap: 16px; padding: 26px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  min-width: 0;
}
.card > p:not(.links):not(.note):not(.meta) { color: var(--ink-2); }
.card-top { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.card h3 { font-size: 26px; font-weight: 700; }
.card .meta { font: 500 13px/1.4 var(--font-mono); color: var(--ink-3); }
.tag { font: 600 12px/1 var(--font-mono); padding: 6px 9px; border-radius: 6px; letter-spacing: .01em; }
.tag-publish { background: var(--accent-soft); color: var(--accent-ink); }
.tag-control { background: var(--control-soft); color: var(--control); }
.links { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px 18px; padding-top: 4px; }
.links a { font-weight: 600; font-size: 14.5px; text-decoration: none; color: var(--ink); border-bottom: 1.5px solid var(--line-strong); padding-bottom: 1px; }
.links a:hover { border-color: var(--accent); color: var(--accent-ink); }
.note { font-size: 14px; color: var(--ink-3); }
.note a { color: var(--ink-2); }
.note code, .card p code { font-size: .9em; background: var(--surface-2); padding: 1px 5px; border-radius: 5px; }

/* snippets */
.snippet { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface-2); min-width: 0; }
.snippet-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 6px 6px 12px;
  border-bottom: 1px solid var(--line); font: 500 12px/1 var(--font-mono); color: var(--ink-3);
}
.snippet pre { margin: 0; padding: 14px; font-size: 13.5px; line-height: 1.6; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.snippet-hero { background: var(--term-bg); border-color: transparent; }
.snippet-hero .snippet-bar { border-color: rgba(255,255,255,.08); color: var(--term-dim); }
.snippet-hero pre { color: var(--term-ink); font-size: 14.5px; }
.prompt { color: var(--accent); user-select: none; }
.copy {
  font: 600 12px/1 var(--font-body); color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: 7px; padding: 7px 10px; cursor: pointer; flex-shrink: 0;
}
.copy:hover { border-color: var(--ink-3); }
.copy.done { color: var(--ok); border-color: var(--ok); }
.snippet-hero .copy { background: rgba(255,255,255,.08); color: var(--term-ink); border-color: rgba(255,255,255,.12); }
.tabs { display: inline-flex; gap: 2px; min-width: 0; overflow-x: auto; }
.tabs button {
  font: 500 12px/1 var(--font-mono); color: var(--ink-3); background: none; border: 0; cursor: pointer; padding: 7px 8px; border-radius: 6px; white-space: nowrap;
}
.tabs button[aria-selected="true"] { color: var(--ink); background: var(--surface); box-shadow: 0 0 0 1px var(--line-strong); }

/* compare + safety */
.split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; margin-top: 20px; }
.compare, .safety { padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); min-width: 0; }
.compare h3, .safety h3 { font-size: 20px; margin-bottom: 16px; }
.table-wrap { overflow-x: auto; margin: 0 -4px 14px; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { text-align: left; vertical-align: top; padding: 12px 10px; border-bottom: 1px solid var(--line); }
thead th { font: 700 13px/1.2 var(--font-mono); color: var(--accent-ink); border-bottom: 1.5px solid var(--line-strong); }
tbody th { font-weight: 600; color: var(--ink); white-space: nowrap; width: 1%; }
tbody td { color: var(--ink-2); }
tbody tr:last-child > * { border-bottom: 0; }
.safety { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.safety ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; counter-reset: s; }
.safety li { display: grid; gap: 4px; padding-left: 40px; position: relative; counter-increment: s; }
.safety li::before {
  content: counter(s); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font: 700 12.5px/1 var(--font-mono); background: var(--accent); color: #fff;
}
.safety strong { font-size: 15.5px; }
.safety span { font-size: 14px; color: color-mix(in srgb, var(--bg) 72%, var(--ink)); }

/* desk-pilot */
.card-wide { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; padding: 32px; }
.wide-copy { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.wide-copy > p:not(.links) { color: var(--ink-2); }
.trio { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; align-content: center; }
.trio li {
  display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; align-items: center;
  padding: 16px; border-radius: 12px; background: var(--control-soft); border: 1px solid color-mix(in srgb, var(--control) 18%, transparent);
}
.trio svg { grid-row: span 2; width: 40px; height: 40px; padding: 8px; border-radius: 10px; background: var(--surface); stroke: var(--control); stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.trio code { font-weight: 700; font-size: 14px; color: var(--control); }
.trio span { font-size: 14px; color: var(--ink-2); }

/* apps */
.app { gap: 14px; }
.app h3 { font-size: 21px; }
.app-ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; }
.app-ico svg { width: 26px; height: 26px; }
.ico-clawd { background: #f3d9c8; }
.ico-clawd svg { fill: #c96442; }
.ico-clawd .eye { fill: #2b1a12; }
.ico-color { background: linear-gradient(135deg, #ffe0e6, #e0f0ff); }
.ico-color svg circle { fill: none; stroke-width: 2; }
.ico-color svg circle:nth-child(1) { stroke: #e5484d; }
.ico-color svg circle:nth-child(2) { stroke: #2f80ed; }
.ico-color svg circle:nth-child(3) { stroke: #30a46c; }
.ico-sing { background: #dff3e8; }
.ico-sing svg { fill: none; stroke: #1d8a4e; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico-pkg { background: #ece4fb; }
.ico-pkg svg { fill: none; stroke: #6e44d6; stroke-width: 2.2; stroke-linecap: round; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ico-clawd { background: #3a2318; }
  :root:not([data-theme="light"]) .ico-clawd .eye { fill: #f5e6dd; }
  :root:not([data-theme="light"]) .ico-color { background: linear-gradient(135deg, #3a1a22, #14263d); }
  :root:not([data-theme="light"]) .ico-sing { background: #12301f; }
  :root:not([data-theme="light"]) .ico-sing svg { stroke: #4cc884; }
  :root:not([data-theme="light"]) .ico-pkg { background: #241a3d; }
  :root:not([data-theme="light"]) .ico-pkg svg { stroke: #a88bff; }
  :root:not([data-theme="light"]) .safety { background: var(--surface-2); color: var(--ink); border-color: var(--line); }
  :root:not([data-theme="light"]) .safety span { color: var(--ink-2); }
  :root:not([data-theme="light"]) .btn-primary { background: var(--accent); color: #140802; }
  :root:not([data-theme="light"]) .lang button[aria-current="true"] { background: var(--ink); color: var(--bg); }
  :root:not([data-theme="light"]) .site-header { box-shadow: 0 1px 0 var(--line), 0 6px 16px -12px rgba(0, 0, 0, 0.6); }
}
.snippet-sm pre { padding: 11px 12px; font-size: 13px; }
.links a.more { color: var(--accent-ink); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }

/* tool pages */
.ico-publish { background: var(--accent-soft); }
.ico-publish svg, .ico-ship svg { fill: none; stroke: var(--accent-ink); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ico-ship { background: var(--surface-2); }
.ico-desk { background: var(--control-soft); }
.ico-desk svg { fill: none; stroke: var(--control); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tag-app { background: var(--surface-2); color: var(--ink-2); }

.tool-hero {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .8fr); gap: 48px; align-items: start;
  padding: 48px 0 8px;
}
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font: 500 13px/1.4 var(--font-mono); color: var(--ink-3); margin-bottom: 28px; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--accent-ink); }
.tool-id { display: flex; align-items: center; gap: 16px; }
.tool-id .app-ico { width: 64px; height: 64px; border-radius: 16px; flex-shrink: 0; }
.tool-id .app-ico svg { width: 34px; height: 34px; }
.tool-id > div:last-child { display: grid; gap: 8px; justify-items: start; }
.tool-name { font: 700 16px/1 var(--font-mono); }
.tool-hero h1 { font-size: clamp(30px, 3.7vw, 48px); font-weight: 800; margin: 24px 0 16px; text-wrap: balance; }
.tool-hero .lede { max-width: 38em; }
.tool-hero .lede code { font-size: .88em; background: var(--surface-2); padding: 1px 6px; border-radius: 6px; }
.lede a, .callout a, .panel a, .feature a, .note a { color: var(--accent-ink); }
.chips { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font: 500 12.5px/1 var(--font-mono); color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); padding: 8px 11px; border-radius: 999px; }
.callout {
  margin-top: 22px; padding: 14px 16px; border-radius: 10px; font-size: 14.5px; color: var(--ink);
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}
.callout code, .panel code, .feature code, .reqs code, .dl-warn code { font-size: .9em; background: var(--surface-2); padding: 1px 5px; border-radius: 5px; }
.callout code { background: color-mix(in srgb, var(--surface) 70%, transparent); }

.dl-card {
  position: sticky; top: 88px; display: grid; gap: 14px; padding: 26px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.dl-heading { font-size: 20px; }
.btn-dl { justify-content: center; padding: 16px 18px; font-size: 16px; background: var(--accent); color: #fff; }
.btn-dl:hover { background: var(--accent-ink); }
.btn-dl svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.dl-os { display: grid; gap: 8px; }
.btn-dl-alt { background: var(--ink); color: var(--bg); }
.btn-dl-alt:hover { background: color-mix(in srgb, var(--ink) 85%, var(--accent)); }
.dl-meta { font: 500 12.5px/1.5 var(--font-mono); color: var(--ink-2); }
.dl-none { color: var(--ink-3); }
.dl-hash code + code { margin-top: 6px; }
.panel-mac { grid-column: 1 / -1; }
.dl-file code { font-size: 12.5px; color: var(--ink-3); overflow-wrap: anywhere; }
.dl-warn { font-size: 13px; line-height: 1.5; color: var(--ink-3); padding-top: 12px; border-top: 1px dashed var(--line-strong); }
.dl-warn strong { color: var(--ink-2); }
.dl-hash summary { cursor: pointer; font: 500 12.5px/1.4 var(--font-mono); color: var(--ink-3); }
.dl-hash code { display: block; margin-top: 8px; font-size: 11.5px; line-height: 1.5; color: var(--ink-2); overflow-wrap: anywhere; background: var(--surface-2); padding: 8px 10px; border-radius: 8px; }
.dl-card .links { padding-top: 0; }

.shot { margin: 56px auto 0; padding: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #111; max-width: 920px; }
.shot img { display: block; width: 100%; height: auto; }

.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.panel { display: grid; gap: 14px; align-content: start; padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.panel h3 { font-size: 19px; }
.panel-alt { background: transparent; border-style: dashed; border-color: var(--line-strong); }
.alt { display: grid; gap: 6px; }
.alt h3 { font: 600 12.5px/1 var(--font-mono); color: var(--ink-3); }
.alt p { color: var(--ink-2); font-size: 14.5px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: s; }
.steps li { position: relative; padding-left: 40px; counter-increment: s; color: var(--ink-2); }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font: 700 12.5px/1 var(--font-mono); background: var(--accent); color: #fff;
}
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature { display: grid; gap: 8px; align-content: start; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
.feature h3 { font-size: 17.5px; font-weight: 700; }
.feature h3 code { font-size: .92em; color: var(--control); background: none; padding: 0; }
.feature p { color: var(--ink-2); font-size: 14.5px; }
.feature-grid + .note { margin-top: 16px; }
.reqs { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.reqs li { position: relative; padding-left: 30px; color: var(--ink-2); }
.reqs li::before { content: "✓"; position: absolute; left: 2px; top: 0; color: var(--ok); font-weight: 700; }
.index-tools { margin-top: 88px; }
.index a[aria-current="page"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.index a[aria-current="page"] .idx-k { color: var(--accent); }
.site-nav a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.index a.idx-more { color: var(--accent-ink); border-style: dashed; border-color: color-mix(in srgb, var(--accent) 45%, transparent); }

/* more tools */
.more-band {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  margin-top: 72px; padding: 28px 32px; border-radius: var(--radius); background: var(--surface); border: 1px dashed var(--line-strong);
}
.more-band h2 { font-size: clamp(24px, 2.6vw, 30px); font-weight: 800; }
.more-band p { color: var(--ink-2); margin-top: 6px; }
.more-hero { padding: 48px 0 0; }
.more-hero h1 { font-size: clamp(34px, 4.3vw, 54px); font-weight: 800; margin: 4px 0 16px; }
.more-tools-bar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 28px; }
.filter input {
  width: min(420px, 100%); font: 15px/1.4 var(--font-body); color: var(--ink); background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: 10px; padding: 11px 14px;
}
.filter { flex: 0 1 420px; min-width: 0; }
.filter input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.filter-count { font: 500 13px/1 var(--font-mono); color: var(--ink-3); }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.jump a { font: 500 13px/1 var(--font-mono); color: var(--ink-2); text-decoration: none; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }
.jump a:hover { color: var(--ink); border-color: var(--ink-3); }
.more-group { padding-top: 72px; }
.more-group .section-head > p:last-child code { font-size: .9em; background: var(--surface-2); padding: 1px 5px; border-radius: 5px; }
.mini-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.mini { display: flex; flex-direction: column; gap: 12px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
.mini[hidden], .more-group[hidden] { display: none; }
.mini header { display: grid; gap: 8px; }
.mini h3 { font: 700 15.5px/1.3 var(--font-mono); letter-spacing: 0; overflow-wrap: anywhere; }
.mini > p:not(.links) { color: var(--ink-2); font-size: 14.5px; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { font: 600 11px/1 var(--font-mono); padding: 5px 7px; border-radius: 5px; background: var(--surface-2); color: var(--ink-3); }
.mini-install { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 10px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); min-width: 0; }
.mini-install code { flex: 1; min-width: 0; font-size: 12.5px; overflow-wrap: anywhere; }
.mini-none { font-size: 13px !important; color: var(--ink-3) !important; }
.mini .links { margin-top: auto; }
.more-empty { margin-top: 48px; color: var(--ink-3); }
@media (max-width: 1020px) { .mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .mini-grid { grid-template-columns: 1fr; } .more-band { padding: 22px 20px; } }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn-dl { color: #140802; }
  :root:not([data-theme="light"]) .btn-dl:hover { background: var(--accent-ink); }
  :root:not([data-theme="light"]) .callout code { background: rgba(0, 0, 0, .25); }
}

/* footer */
.site-footer { margin-top: 120px; border-top: 1px solid var(--line); padding: 40px 0 48px; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.fine { margin-top: 14px; max-width: 52em; font-size: 13.5px; color: var(--ink-3); }

/* reveal */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* responsive */
@media (max-width: 1020px) {
  .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .card-wide { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 56px; }
  .term { transform: none; }
  .tool-hero { grid-template-columns: 1fr; gap: 32px; }
  .dl-card { position: static; max-width: 520px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .site-nav { display: none; }
  .gh-link span { display: none; }
  .cards-2, .cards-4 { grid-template-columns: 1fr; }
  .section-head { grid-template-columns: 1fr; }
  .section-num { grid-row: auto; justify-self: start; padding-top: 10px; }
  .block { padding-top: 72px; }
  .card, .compare, .safety, .card-wide { padding: 20px; }
  .term-body { font-size: 12.5px; min-height: 0; padding: 16px 16px 6px; }
  .term-cap { padding: 8px 16px 14px; }
  tbody th { white-space: normal; }
  .two-col, .feature-grid { grid-template-columns: 1fr; }
  .tool-hero { padding-top: 32px; }
  .panel, .dl-card { padding: 20px; }
  .shot { margin-top: 40px; }
}
