/* curl2k6: the api-dead-ends system (calm structure, color only for meaning, a light poster, self-hosted type) on a yellow paper ground. */

@font-face { font-family: "General Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/general-sans-400.woff2") format("woff2"); }
@font-face { font-family: "General Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/general-sans-500.woff2") format("woff2"); }
@font-face { font-family: "General Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/general-sans-700.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 800; font-style: normal; font-display: swap; src: url("../fonts/bricolage-grotesque-800-latin.woff2") format("woff2"); }

:root {
  --font: "General Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Bricolage Grotesque", "General Sans", ui-sans-serif, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* neutrals, light */
  --f-hero: #fbfbfc; --f-hero-ink: #14131a; --f-hero-muted: #55535c;
  --f-paper: #f6f6f4; --f-mist: #ebeef0; --f-stone: #eceef0;
  --bg: var(--f-paper); --surface: #e4e5e3; --surface-2: #d9dbd9;
  --ink: #14131a; --muted: #4a4950;
  --accent: #b11226; --accent-ink: #ffffff; --bad-text: #a3101f;
  --code-bg: #e7e8e6;
  --f-crimson: #b11226;
  /* meaning: the four finding groups (field, strong text, dot) */
  --g-err: #fbe2df;   --g-err-s: #a3101f;   --g-err-d: #d6303f;
  --g-drift: #fbecc6; --g-drift-s: #714900; --g-drift-d: #b07a00;
  --g-ci: #dff0dc;    --g-ci-s: #25622a;    --g-ci-d: #3a8f3f;

  --step-small: 0.9375rem;
  --step-body: 1.125rem;
  --step-lead: clamp(1.25rem, 1.1rem + 0.4vw, 1.375rem);
  --step-h2: clamp(2rem, 1.1rem + 3vw, 3.5rem);
  --step-h1: clamp(2.5rem, 0.9rem + 5.2vw, 6rem);

  --pad: clamp(16px, 3vw, 40px);
  --sec: clamp(48px, 4.6vw, 72px);
  --r: 10px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --tone: var(--accent);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --f-hero: #1c0a0e; --f-hero-ink: #f4efef; --f-hero-muted: #cbbfc1;
    --f-paper: #0e0e10; --f-mist: #131619; --f-stone: #161513;
    --bg: var(--f-paper); --surface: #1b1b1e; --surface-2: #242428;
    --ink: #ededed; --muted: #b3b3b3; --bad-text: #ff8a94; --code-bg: #0b0b0d;
    --f-crimson: #7e0c1b; --key: #ff6b78;
    --g-err: #2b1215; --g-err-s: #ff9aa2; --g-err-d: #ff6b78;
    --g-drift: #2a2210; --g-drift-s: #f4c862; --g-drift-d: #e8b13a;
    --g-ci: #13230f; --g-ci-s: #9ee08f; --g-ci-d: #5cbf55;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --f-hero: #1c0a0e; --f-hero-ink: #f4efef; --f-hero-muted: #cbbfc1;
  --f-paper: #0e0e10; --f-mist: #131619; --f-stone: #161513;
  --bg: var(--f-paper); --surface: #1b1b1e; --surface-2: #242428;
  --ink: #ededed; --muted: #b3b3b3; --bad-text: #ff8a94; --code-bg: #0b0b0d;
  --f-crimson: #7e0c1b; --key: #ff6b78;
  --g-err: #2b1215; --g-err-s: #ff9aa2; --g-err-d: #ff6b78;
  --g-drift: #2a2210; --g-drift-s: #f4c862; --g-drift-d: #e8b13a;
  --g-ci: #13230f; --g-ci-s: #9ee08f; --g-ci-d: #5cbf55;
  color-scheme: dark;
}

/* base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: var(--step-body); line-height: 1.6; }
h1, h2, h3, p, ul, ol, figure, pre { margin: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: text-decoration-color 200ms ease, color 200ms ease; }
a:hover { text-decoration-thickness: 2px; }
button { font: inherit; color: inherit; }
code, pre { font-family: var(--mono); font-size: 0.9em; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; }
img { display: inline-block; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
details > summary:focus-visible { outline-offset: -5px; }
::selection { background: var(--accent); color: var(--accent-ink); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; z-index: 20; border-radius: var(--r); }
.skip:focus { top: 12px; }

/* buttons: one filled primary, everything else a text button */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border: 0; border-radius: var(--r); background: var(--accent); color: var(--accent-ink); font-weight: 500; text-decoration: none; cursor: pointer; transition: background-color 200ms ease; }
.btn:hover { background: #c4162c; }
.btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.textbtn { background: none; border: 0; min-height: 44px; padding: 0 4px; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; font-weight: 500; }
.textbtn:hover { text-decoration-thickness: 2px; }
html:not(.js) .textbtn[data-copy], html:not(.js) .living__btn, html:not(.js) .theme, html:not(.js) .btn[data-copy] { display: none; }

/* sticky bar, same color as the hero: no seam */
.topbar { position: sticky; top: 0; z-index: 10; background: var(--f-hero); color: var(--f-hero-ink); }
.topbar__in { max-width: 1240px; margin: 0 auto; padding: 10px var(--pad); display: flex; align-items: center; gap: 24px; }
.topbar__mark { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: var(--step-lead); letter-spacing: -0.02em; text-decoration: none; }
.topbar__where { margin-right: auto; font-size: var(--step-small); color: var(--f-hero-muted); }
.topbar__nav { display: flex; gap: 22px; font-size: var(--step-small); }
.topbar__nav a { text-decoration: none; padding: 10px 0; color: var(--f-hero-muted); }
.topbar__nav a:hover, .topbar__nav a[aria-current] { color: var(--f-hero-ink); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.topbar__nav a[aria-current] { text-decoration-color: var(--nav-tone, var(--accent)); }
.theme { display: flex; gap: 2px; background: rgba(127, 127, 127, 0.14); border-radius: var(--r); padding: 2px; }
.theme button { border: 0; background: none; min-height: 36px; min-width: 44px; padding: 0 10px; border-radius: 8px; font-size: var(--step-small); cursor: pointer; color: var(--f-hero-muted); }
.theme button[aria-pressed="true"] { background: var(--f-hero-ink); color: var(--f-hero); }
.theme button:focus-visible { outline-offset: 1px; }
@media (max-height: 500px) { .topbar { position: static; } }

/* frame */
.sec { padding-block: var(--sec); }
.one, .two { max-width: 1240px; margin: 0 auto; padding-inline: var(--pad); }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.two__text { display: grid; gap: 16px; }
.two__text > p, .answer, .list, .ticks { max-width: 68ch; }
h1, h2, .foot__name { font-family: var(--display); font-weight: 800; letter-spacing: -0.03em; }
h1 { font-size: var(--step-h1); line-height: 0.95; max-width: 19ch; }
h2 { font-size: var(--step-h2); line-height: 0.98; }
h3 { font-size: var(--step-lead); font-weight: 600; line-height: 1.25; margin-top: 8px; }
.lead { font-size: var(--step-lead); line-height: 1.5; }
.answer { margin-top: 12px; }
.small { font-size: var(--step-small); color: var(--muted); max-width: 80ch; overflow-wrap: anywhere; }
.small a { color: var(--ink); }
.one > .small, .two__frag > .small { margin-top: 20px; }
figcaption { margin-top: 10px; font-size: var(--step-small); color: var(--muted); }
.label { font-size: var(--step-small); color: var(--muted); margin: 20px 0 8px; }

.tone-paper { background: var(--f-paper); --tone: var(--ink); }
.tone-mist  { background: var(--f-mist);  --tone: var(--ink); }
.tone-stone { background: var(--f-stone); --tone: var(--ink); }

/* the light poster */
.hero { background: var(--f-hero); color: var(--f-hero-ink); padding-top: clamp(40px, 5vw, 80px); padding-bottom: clamp(56px, 6vw, 96px); --tone: var(--accent); }
.hero .key { color: var(--key, var(--accent)); }
.hero__row { margin-top: clamp(28px, 3vw, 48px); }
.hero .lead { color: var(--f-hero-ink); }
.hero .small, .hero figcaption { color: var(--f-hero-muted); }
.hero .small a { color: var(--f-hero-ink); }
.cmd { display: flex; align-items: center; gap: 12px; background: var(--surface); border-radius: var(--r); padding: 6px 8px 6px 18px; max-width: 520px; }
.cmd code { flex: 1; font-size: var(--step-body); }
.hero .cmd { background: rgba(20, 19, 26, 0.06); }
.cmd--big { max-width: none; }

.legend { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: var(--step-small); }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.legend li::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--d); flex: 0 0 auto; }
.legend--small { display: grid; gap: 2px; padding: 6px 0 2px; }
.g-err { --d: var(--g-err-d); } .g-drift { --d: var(--g-drift-d); } .g-ci { --d: var(--g-ci-d); }

/* the one dark object: a static terminal that doubles as the color key */
.term { background: #0b0b0e; color: #ededed; border-radius: var(--r); padding: 0 0 18px; box-shadow: 12px 12px 0 var(--accent); }
.term pre { padding: 14px 20px 0; color: #ededed; font-size: 0.8125rem; line-height: 1.65; }
.term__bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: #1b1b20; border-radius: var(--r) var(--r) 0 0; font-size: var(--step-small); color: #b9b9b9; }
.term__bar span { width: 11px; height: 11px; border-radius: 50%; background: #3a3a42; }
.term__bar b { font-weight: 500; margin-left: 10px; }
.t-prompt, .t-dim { color: #9a9a9a; }
.term .t-dim, .frag .t-dim, .code .t-dim { color: var(--muted); }
.term .t-prompt { color: #9a9a9a; }
.t-cmd { font-weight: 600; }
.t-bad { color: #ff8a94; font-weight: 700; }
.t-drift { color: #f2c45a; font-weight: 700; }
.hero figcaption { margin-top: 22px; }

/* fragments */
.frag { background: var(--code-bg); border-radius: var(--r); padding: 20px; }
.code { background: var(--code-bg); border-radius: var(--r); padding: 16px 18px; font-size: 0.875rem; line-height: 1.6; color: var(--ink); }
.tbl { width: 100%; border-collapse: collapse; font-size: var(--step-small); font-variant-numeric: tabular-nums; }
.tbl caption { text-align: left; color: var(--muted); padding-bottom: 10px; }
.tbl th { text-align: left; font-weight: 500; color: var(--muted); padding: 4px 12px 8px 0; }
.tbl td { padding: 8px 12px 8px 0; }
.tbl tbody tr:nth-child(odd) td { background: var(--surface); }
.tbl td:first-child, .tbl th:first-child { padding-left: 10px; }
.num { text-align: right; }
.bad { color: var(--bad-text); font-weight: 600; }

/* In short */
.ticks { display: grid; gap: 8px; padding: 0; list-style: none; }
.ticks li { padding-left: 22px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); }
.map { background: var(--f-paper); border-radius: var(--r); padding: 24px 28px; }
.map__title { font-family: var(--display); font-weight: 800; font-size: var(--step-lead); letter-spacing: -0.01em; }
.map ol { margin-top: 10px; padding-left: 1.4em; display: grid; gap: 6px; }
.map li > span { color: var(--muted); font-size: var(--step-small); margin-left: 6px; }

/* accordions: one pattern, one height */
.groups, .acc { display: grid; gap: 6px; margin-top: 24px; }
.acc--inner { margin-top: 10px; }
details > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px; min-height: 56px; padding: 10px 52px 10px 20px; position: relative; background: var(--surface); border-radius: var(--r); font-weight: 500; transition: background-color 200ms ease; }
details > summary::-webkit-details-marker { display: none; }
details > summary::before, details > summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 14px; height: 2px; margin-top: -1px; background: currentColor; }
details > summary::after { transform: rotate(90deg); }
details[open] > summary::after { transform: none; }
details > summary:hover { background: var(--surface-2); }
details > summary span { color: var(--muted); font-weight: 400; font-size: var(--step-small); }
details > :not(summary) { margin-left: 20px; margin-right: 20px; }
details > p, details > pre { margin-top: 14px; max-width: 72ch; }
details > .textbtn { margin: 4px 16px 10px; }
.acc details[open] > :last-child:not(.textbtn) { margin-bottom: 18px; }
.acc details { border-radius: var(--r); }
.tone-mist .acc details[open], .tone-paper .acc details[open] { background: var(--surface); }

/* the four groups: color only here, in the tags and in the dots */
.group--err   { --gf: var(--g-err);   --gs: var(--g-err-s);   --gd: var(--g-err-d); }
.group--drift { --gf: var(--g-drift); --gs: var(--g-drift-s); --gd: var(--g-drift-d); }
.group--ci    { --gf: var(--g-ci);    --gs: var(--g-ci-s);    --gd: var(--g-ci-d); }
.group { border-radius: var(--r); background: var(--surface); border-left: 6px solid var(--gd); }
.group > summary { background: transparent; border-radius: 0 var(--r) var(--r) 0; min-height: 56px; }
.group > summary:hover { background: var(--gf); }
.group[open] { background: var(--gf); }
.group .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--gd); flex: 0 0 auto; }
.group__name { font-family: var(--display); font-weight: 800; font-size: clamp(1.25rem, 1.05rem + 0.7vw, 1.625rem); letter-spacing: -0.015em; color: var(--ink) !important; }
.group__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 48px; padding: 20px 0 28px; align-items: start; }
.group__body > p { grid-column: 1 / -1; max-width: 68ch; }
.group .frag, .group .code { background: var(--f-paper); }
.group .tbl tbody tr:nth-child(odd) td { background: transparent; }
.group .tbl tbody td:first-child { border-left: 4px solid var(--gd); padding-left: 10px; }
.group .bad, .group .list b { color: var(--gs); }
.list { display: grid; gap: 10px; padding: 0; list-style: none; }

.steps { display: grid; gap: 14px; padding-left: 1.4em; max-width: 68ch; }
.steps code { overflow-wrap: anywhere; }
.why { list-style: none; padding: 0; margin-top: 24px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.why b { display: block; font-size: var(--step-lead); font-weight: 600; margin-bottom: 6px; }
.more { margin-top: 20px; }
.more > summary { font-size: var(--step-body); }

/* living pictures: the final state is the default; Play replays it */
.living { position: relative; }
.living__title { font-size: var(--step-small); margin-bottom: 10px; }
.living__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; font-size: var(--step-small); color: var(--muted); flex-wrap: wrap; }
.living__btn { color: var(--ink); min-height: 40px; }
.spark { display: block; width: 100%; height: auto; }
.spark rect { fill: var(--muted); opacity: 0.8; transform-box: fill-box; transform-origin: bottom; }
.spark rect.hot { fill: var(--g-err-d); opacity: 1; }
.spark__rule { stroke: var(--g-err-s); stroke-width: 1.5; stroke-dasharray: 4 4; }
.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: var(--step-small); font-weight: 500; background: var(--surface); white-space: nowrap; }
.tag--err { background: var(--g-err); color: var(--g-err-s); }
.tag--drift { background: var(--g-drift); color: var(--g-drift-s); }
.mcpx { font-size: 0.8125rem; line-height: 1.7; color: var(--ink); }
@keyframes rise { from { transform: scaleY(0.04); } to { transform: none; } }
@keyframes show { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  .living.is-playing .spark rect.base { animation: rise 600ms var(--ease) both; animation-delay: calc(var(--i) * 40ms); }
  .living.is-playing .spark rect.hot, .living.is-playing .spark__rule { animation: show 450ms var(--ease) both; animation-delay: 2080ms; }
  .living.is-playing .spark rect.hot { animation-name: rise; }
  .living.is-playing [data-step] { animation: show 450ms var(--ease) both; animation-delay: calc(var(--i) * 450ms); }
}
@media (prefers-reduced-motion: reduce) { .living__btn { display: none; } }

/* the close: one crimson page */
.install { background: var(--f-crimson); color: #fff; }
.install .cmd { background: rgba(255, 255, 255, 0.14); }
.install .cmd code { color: #fff; }
.install .btn { background: #fff; color: var(--f-crimson); }
.install .btn:hover { background: #ffe8ea; }
.install .btn:focus-visible, .install :focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.install .small, .install .small a { color: #fff; }

.foot { background: var(--f-hero); color: var(--f-hero-ink); padding: 56px 0 40px; }
.foot .one { display: grid; gap: 12px; }
.foot__name { display: inline-flex; align-items: center; gap: 14px; font-size: clamp(2.25rem, 1.4rem + 3.5vw, 4.5rem); line-height: 1; }
.foot .small { color: var(--f-hero-muted); }
.foot__links { display: flex; flex-wrap: wrap; gap: 8px 24px; }

@media (max-width: 1000px) {
  .topbar__nav { display: none; }
  .two, .group__body { grid-template-columns: minmax(0, 1fr); }
  .why { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}
@media (min-width: 1001px) { .topbar__where { visibility: hidden; } }
@media (max-width: 640px) {
  .topbar__in { gap: 10px; flex-wrap: wrap; }
  .topbar__mark { font-size: var(--step-body); }
  .topbar__mark img { width: 24px; height: 24px; }
  .topbar__where { order: 5; flex-basis: 100%; margin: 0; }
  .theme button { min-width: 40px; padding: 0 6px; }
  .cmd { flex-wrap: wrap; padding: 10px 14px; }
  .frag { padding: 14px; }
  .term pre { padding: 12px 14px 0; }
  .term .t-x { display: none; }
  .map { padding: 20px; }
  details > :not(summary) { margin-left: 14px; margin-right: 14px; }
  details > summary { flex-wrap: wrap; row-gap: 2px; }
  details > summary span { flex-basis: 100%; }
  .tag { white-space: normal; }
  .tbl { table-layout: fixed; }
  .tbl td, .tbl th { overflow-wrap: anywhere; }
  .tbl th.num { width: 5.2em; }
  .tbl th:last-child:not(.num) { width: 30%; }
  .flow th:last-child { width: 44%; }
  .tbl .tag { overflow-wrap: normal; word-break: normal; }
  .flow th:nth-child(2), .flow td:nth-child(2) { display: none; }
}
@media (max-width: 360px) {
  .tbl .tag { overflow-wrap: anywhere; }
  .flow th:nth-child(2), .flow td:nth-child(2) { display: none; }
}

/* ===================== v8 ===================== */
/* copy icons: top-right of their code block */
.codebox { position: relative; }
.codebox > pre { padding-right: 56px; }
.copy { position: absolute; top: 6px; right: 6px; width: 36px; height: 36px; display: inline-grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--ink); cursor: pointer; transition: background-color 200ms ease; }
.copy:hover { background: rgba(127, 127, 127, 0.18); }
.copy:focus-visible { outline: 2px solid currentColor; outline-offset: 1px; }
.copy svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.copy .i-check { display: none; }
.copy.is-done .i-copy { display: none; }
.copy.is-done .i-check { display: block; }
html:not(.js) .copy { display: none; }
.cmd { position: relative; padding-right: 52px; }
.cmd .copy { top: 50%; transform: translateY(-50%); right: 8px; }
.hero .cmd .copy { color: var(--f-hero-ink); }
.install .cmd .copy { color: #fff; }
.install .cmd .copy:focus-visible { outline-color: #fff; }

/* assistant setup: full width, chips on top, the chosen config below */
.setup-row { margin-top: 32px; }
.more { margin-top: 0; }
.setup { padding: 18px 0 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chips button { border: 0; border-radius: var(--r); background: var(--surface); min-height: 40px; padding: 0 14px; font-size: var(--step-small); cursor: pointer; transition: background-color 200ms ease; }
.chips button:hover { background: var(--surface-2); }
.chips button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.clp { display: grid; gap: 10px; }
.clp + .clp { margin-top: 24px; }
.clp h3 { margin: 0; }
.clp p { max-width: 80ch; }
.clp .code { background: var(--f-paper); }
.js .clp { display: none; }
.js .clp.is-on { display: grid; }
.js .clp + .clp { margin-top: 0; }
.js .clp h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html:not(.js) .chips { display: none; }

/* living pictures: the start state, set by script only when they will play */
@media (prefers-reduced-motion: no-preference) {
  .living.is-start .spark rect.base { transform: scaleY(0.04); }
  .living.is-start .spark rect.hot, .living.is-start .spark__rule { opacity: 0; }
  .living.is-start [data-step] { opacity: 0; }
}
.note { margin-top: 4px; }
.finds-note { margin-top: 16px; }
details > .codebox { margin-top: 14px; }

/* ===== brand palette: dual (lime main + ultraviolet second, high-contrast notes) ===== */
:root { --f-hero: #fbfbfc; --f-hero-ink: #14131a; --f-hero-muted: #55535c; --accent: #9a00ff; --accent-ink: #ffffff; --accent-hover: #8400de; --violet-text: #9a00ff; --lime: #c6f000; --on-lime: #14131a; --key: #b11226; --hc-line: #14131a; --hard: #14131a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --f-hero: #111210; --f-hero-ink: #f1f2ee; --f-hero-muted: #c3c5bf; --accent: #ae64ff; --accent-ink: #14131a; --accent-hover: #b67aff; --violet-text: #ae64ff; --lime: #c6f000; --on-lime: #14131a; --key: #ff6b78; --g-drift-d: #f59a23; --hc-line: #f1f2ee; --hard: #c6f000; } }
:root[data-theme="dark"] { --f-hero: #111210; --f-hero-ink: #f1f2ee; --f-hero-muted: #c3c5bf; --accent: #ae64ff; --accent-ink: #14131a; --accent-hover: #b67aff; --violet-text: #ae64ff; --lime: #c6f000; --on-lime: #14131a; --key: #ff6b78; --g-drift-d: #f59a23; --hc-line: #f1f2ee; --hard: #c6f000; }
.btn { border: 2px solid var(--hc-line); }
.btn:hover { background: var(--accent-hover); }
.btn:focus-visible { outline: 3px solid var(--hc-line); outline-offset: 3px; }
.cmd, .code, .frag, .map { border: 2px solid var(--hc-line); }
.term { box-shadow: 12px 12px 0 var(--hard); }
.hero .hl { background: var(--lime); color: var(--on-lime); padding: 0 .08em; border-radius: 6px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
/* the lime band: ink text, ultraviolet button with white text, separated from the next field by ink */
.install { background: var(--lime); color: var(--on-lime); border-block: 2px solid #14131a; }
.install .cmd { background: #fbfbfc; border-color: #14131a; }
.install .cmd code, .install .cmd .copy { color: #14131a; }
.install .small, .install .small a { color: #14131a; }
.install :focus-visible, .install .cmd .copy:focus-visible { outline-color: #14131a; }
.install .btn { background: #9a00ff; color: #ffffff; border-color: #14131a; }
.install .btn:hover { background: #8400de; }
.install__act { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.more-tools { display: inline-flex; align-items: center; gap: 12px; font-weight: 500; }
.more-tools svg { width: 40px; height: 40px; border-radius: 9px; }

/* ===== electric red (chroma matched to lime and violet), errors only ===== */
:root { --g-err: #ffdfdc; --g-err-s: #cd0522; --g-err-d: #ff022c; --bad-text: #cd0522; --key: #cd0522; --term-red: #ff2c39; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --g-err: #3d090a; --g-err-s: #ff2c39; --g-err-d: #ff022c; --bad-text: #ff2c39; --key: #ff2c39; } }
:root[data-theme="dark"] { --g-err: #3d090a; --g-err-s: #ff2c39; --g-err-d: #ff022c; --bad-text: #ff2c39; --key: #ff2c39; }
.t-bad { color: var(--term-red); }

/* ===== tweaks: white ring on violet-on-lime; signal yellow for focus, selection and badges ===== */
.install .btn { border-color: #ffffff; }
html :focus-visible, html .btn:focus-visible, html .copy:focus-visible, html .theme button:focus-visible, html .chips button:focus-visible, html .textbtn:focus-visible { outline: 3px solid var(--hc-line); outline-offset: 3px; box-shadow: 0 0 0 3px #ffd400; }
html details > summary:focus-visible { outline: 3px solid var(--hc-line); outline-offset: -8px; box-shadow: inset 0 0 0 3px #ffd400; }
html a:focus-visible { outline: none; background: #ffd400; color: #14131a; box-shadow: 0 3px 0 0 #14131a; text-decoration: none; }
html a.btn:focus-visible { background: var(--accent); color: var(--accent-ink); outline: 3px solid var(--hc-line); outline-offset: 3px; box-shadow: 0 0 0 3px #ffd400; }
html .install :focus-visible, html .install .btn:focus-visible, html .install .copy:focus-visible { outline: 3px solid #14131a; outline-offset: 3px; box-shadow: none; }
html .install a:not(.btn):focus-visible { background: none; color: #14131a; }
html .install a.btn:focus-visible { background: #9a00ff; color: #ffffff; }
::selection { background: #ffd400; color: #14131a; }
.badge { display: inline-block; padding: 1px 8px; border-radius: 8px; background: #ffd400; color: #14131a; font-weight: 600; font-size: 13px; line-height: 1.5; vertical-align: 0.1em; }
.more-tools img { width: 40px; height: 40px; border-radius: 9px; }

.tldr .map, .group .frag, .group .code { background: var(--code-bg); }
/* yellow, visible in three places: pill badges, one yellow highlighter on screen 2, the current-section pill */
.badge { font-size: 15px; padding: 3px 12px; border-radius: 999px; }
.hl-y { background: #ffd400; color: #14131a; padding: 0 .15em; border-radius: 4px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.topbar__nav a[aria-current] { background: #ffd400; color: #14131a !important; text-decoration: none !important; border-radius: 999px; padding: 4px 12px; margin-inline: -12px; }
.install__note { margin-top: -6px; }

/* ===================== curl2k6 ===================== */
/* ground D, yellow paper (brand yellow #ffd400, hue about 98-101, kept clearly yellow, never cream): light theme only.
   paper #fff7bf  OKLCH 0.969 0.072 101  ink 17.0:1, muted 8.2:1, violet 5.1:1, finding marks 3.43:1 or more
   deep  #fff0aa  OKLCH 0.951 0.090  98  ink 16.1:1, muted 7.8:1, violet 4.8:1, finding marks 3.25:1 or more
   hover #ffe995  OKLCH 0.934 0.107  95  ink 15.2:1, muted 7.3:1, violet 4.5:1 (hover on white controls only) */
@media (prefers-color-scheme: light) { html:not([data-theme="dark"]):not([data-theme="contrast"]) { --hero-cmd: #ffffff; --f-hero: #fff7bf; --f-paper: #fff7bf; --bg: #fff7bf; --f-mist: #fff0aa; --f-stone: #fff0aa; --surface: #ffffff; --surface-2: #ffe995; --code-bg: #ffffff; } }
html[data-theme="light"] { --hero-cmd: #ffffff; --f-hero: #fff7bf; --f-paper: #fff7bf; --bg: #fff7bf; --f-mist: #fff0aa; --f-stone: #fff0aa; --surface: #ffffff; --surface-2: #ffe995; --code-bg: #ffffff; }

/* contrast theme: talik-ui's contrast values (white fields, black text and edges, darker meaning colors) */
@media (prefers-contrast: more) {
  html:root:not([data-theme]) {
    --f-hero: #ffffff; --f-hero-ink: #000000; --f-hero-muted: #2b2b2b;
    --f-paper: #ffffff; --f-mist: #ffffff; --f-stone: #ffffff; --bg: #ffffff;
    --surface: #ffffff; --surface-2: #f0f0f0; --code-bg: #f2f2f2;
    --ink: #000000; --muted: #2b2b2b; --hc-line: #000000; --hard: #000000;
    --accent: #6a00c2; --accent-hover: #52009a; --accent-ink: #ffffff; --violet-text: #6a00c2; --on-lime: #000000;
    --key: #a8001b; --bad-text: #a8001b;
    --g-err: #ffffff; --g-err-s: #a8001b; --g-err-d: #c00020;
    --g-drift: #ffffff; --g-drift-s: #4f3300; --g-drift-d: #7a5200;
    --g-ci: #ffffff; --g-ci-s: #174419; --g-ci-d: #1f6a24;
    --term-red: #ffa3ab; --line: #000000;
    color-scheme: light;
  }
}
html:root[data-theme="contrast"] {
  --f-hero: #ffffff; --f-hero-ink: #000000; --f-hero-muted: #2b2b2b;
  --f-paper: #ffffff; --f-mist: #ffffff; --f-stone: #ffffff; --bg: #ffffff;
  --surface: #ffffff; --surface-2: #f0f0f0; --code-bg: #f2f2f2;
  --ink: #000000; --muted: #2b2b2b; --hc-line: #000000; --hard: #000000;
  --accent: #6a00c2; --accent-hover: #52009a; --accent-ink: #ffffff; --violet-text: #6a00c2; --on-lime: #000000;
  --key: #a8001b; --bad-text: #a8001b;
  --g-err: #ffffff; --g-err-s: #a8001b; --g-err-d: #c00020;
  --g-drift: #ffffff; --g-drift-s: #4f3300; --g-drift-d: #7a5200;
  --g-ci: #ffffff; --g-ci-s: #174419; --g-ci-d: #1f6a24;
  --term-red: #ffa3ab; --line: #000000;
  color-scheme: light;
}
/* on white-on-white fields the edges carry the structure */
html { --line: transparent; }
details > summary, .chips button, .theme { box-shadow: inset 0 0 0 1.5px var(--line); }

/* meaning, three kinds only: regression (red), not comparable (amber), within limits (green) */
.g-ok { --d: var(--g-ci-d); }
.tag { box-shadow: inset 0 0 0 1.5px var(--tb, transparent); }
.tag--err { --tb: var(--g-err-d); }
.tag--drift { --tb: var(--g-drift-d); }
.tag--ok { background: var(--g-ci); color: var(--g-ci-s); --tb: var(--g-ci-d); }
.group--ok { --gf: var(--g-ci); --gs: var(--g-ci-s); --gd: var(--g-ci-d); }
.t-ok { color: #9ee08f; font-weight: 700; }

/* signal-yellow fills sit on a yellow ground here, so each one gets an ink edge */
.badge { box-shadow: inset 0 0 0 1.5px #14131a; }
.topbar__nav a[aria-current] { box-shadow: inset 0 0 0 2px #14131a; }

/* the p95 picture: two bars per profile, previous run and this release */
.bars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: end; height: 260px; padding: 8px 4px 0; border-bottom: 2px solid var(--ink); }
.bars__grp { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: end; height: 100%; }
.bar { position: relative; height: var(--h); border-radius: 6px 6px 0 0; transform-origin: bottom; }
.bar--prev { background: var(--muted); }
.bar--now { background: var(--g-err-d); }
.bar b { position: absolute; left: 0; right: 0; bottom: 100%; padding-bottom: 4px; text-align: center; font-size: var(--step-small); font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); }
.bars__names { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 8px 4px 0; font-size: var(--step-small); }
.bars__names span { text-align: center; }
.bars__names b { display: block; color: var(--bad-text); }
.key2 { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: var(--step-small); margin-bottom: 14px; }
.key2 li { display: inline-flex; align-items: center; gap: 8px; }
.key2 li::before { content: ""; width: 14px; height: 14px; border-radius: 3px; background: var(--d); }
.key2 .k-prev { --d: var(--muted); } .key2 .k-now { --d: var(--g-err-d); }
@media (prefers-reduced-motion: no-preference) {
  .living.is-start .bar { transform: scaleY(0.04); }
  .living.is-start .bar b, .living.is-start .bars__names b { opacity: 0; }
  .living.is-playing .bar { animation: rise 700ms var(--ease) both; animation-delay: calc(var(--i) * 260ms); }
  .living.is-playing .bar b, .living.is-playing .bars__names b { animation: show 450ms var(--ease) both; animation-delay: calc(var(--i) * 260ms + 500ms); }
}

/* rules: what counts as a regression */
.rules { margin-top: 8px; }
.rules td:first-child { font-weight: 500; }
.verdicts { list-style: none; padding: 0; display: grid; gap: 12px; margin-top: 4px; }
.verdicts li { display: grid; gap: 4px; }
.verdicts .tag { justify-self: start; }

/* stack table: status words carry the meaning, the dot only repeats it */
.stat { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.stat::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--d, var(--muted)); flex: 0 0 auto; }
.stat--yes { --d: var(--g-ci-d); }
.stat--doc { --d: var(--muted); }
.stack td { vertical-align: top; }

/* the session replay */
.mcpx .who { color: var(--muted); }
.mcpx .reg { color: var(--bad-text); font-weight: 600; }
.mcpx .gap { display: block; height: 0.8em; }

.term .t-note { color: #b9b9b9; }
@media (max-width: 640px) {
  .term pre { font-size: 0.75rem; }
  .bars { height: 220px; gap: 10px; }
  .bars__names { gap: 10px; }
  .bars__grp { gap: 4px; }
  .bar b { font-size: 0.8125rem; }
  .stack th:first-child { width: 28%; }
}

/* layout bits */
.why--four { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 48px; }
.verdict__row { margin-top: clamp(32px, 4vw, 56px); }
.cmd--two { max-width: none; align-items: flex-start; padding-top: 12px; padding-bottom: 12px; }
.cmd__pre { flex: 1; font-size: 1rem; line-height: 1.6; }
.install .cmd__pre { color: #14131a; }
@media (max-width: 1000px) { .why--four { grid-template-columns: minmax(0, 1fr); gap: 16px; } }
.hero .cmd { background: var(--hero-cmd, rgba(127, 127, 127, 0.14)); }
.two__text { grid-template-columns: minmax(0, 1fr); }
.answer a { overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .term .t-word { display: none; }
  .rules th:last-child:not(.num) { width: 58%; }
  .stat { white-space: normal; }
  .stack th:last-child:not(.num) { width: 32%; }
}
.topbar__nav { flex-shrink: 0; }
.topbar__nav a { white-space: nowrap; }
@media (max-width: 1180px) { .topbar__nav { display: none; } .topbar__where { visibility: visible; } }
.topbar__nav { align-items: center; }
.term .t-h { color: #b9b9b9; }

/* buttons on lime: yellow on hover, not a darker violet */
.install .btn:hover { background: #ffd400; color: #14131a; border-color: #14131a; }
