/* ------------------------------------------------------------------ fonts */
/* All three are SIL OFL 1.1 and served from this origin — see fonts/NOTICE. */

@font-face {
    font-family: 'Instrument Serif';
    src: url('fonts/instrument-serif-latin-400-normal.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Instrument Serif';
    src: url('fonts/instrument-serif-latin-400-italic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Instrument Sans';
    src: url('fonts/instrument-sans-latin-wght-normal.woff2') format('woff2-variations');
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'JetBrains Mono';
    src: url('fonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2-variations');
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}

/* ----------------------------------------------------------------- tokens */

:root {
    color-scheme: light dark;

    --paper: #fbfaf7;
    --surface: #ffffff;
    --band: #f5f3ee;
    --ink: #14161b;
    --ink-2: #3b414d;
    --muted: #6a7180;
    --rule: #e5e1d8;
    --rule-soft: #eeebe4;
    --grid: #e0dcd2;

    --accent: #cf4526;
    --accent-hover: #b23a1e;
    --accent-ink: #ffffff;
    --accent-soft: #fbeee9;

    /* Code and terminal panels are dark in both themes — they read as "output", not as page. */
    --panel: #14171e;
    --panel-cap: #1b1f28;
    --panel-rule: #272c37;
    --panel-ink: #d6dae3;
    --panel-dim: #79808f;

    --t-cmt: #6d7585;
    --t-str: #9fc08a;
    --t-kw: #ff8a6b;
    --t-typ: #e8c88c;
    --t-num: #d8a657;
    --t-attr: #7fb2e5;
    --t-key: #7fb2e5;
    --t-flag: #e8c88c;
    --t-cmd: #9fc08a;
    --t-punc: #79808f;

    --l-add: #6fbf87;
    --l-chg: #79aedd;
    --l-del: #e0736f;
    --l-hint: #d8b26a;

    --wrap: 1120px;
    --radius: 10px;

    --sans: 'Instrument Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
    --serif: 'Instrument Serif', ui-serif, Georgia, 'Times New Roman', serif;
    --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, 'Cascadia Mono', Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
    :root {
        --paper: #0e1014;
        --surface: #14171d;
        --band: #12141a;
        --ink: #ecebe6;
        --ink-2: #c2c7d1;
        --muted: #8d94a3;
        --rule: #242832;
        --rule-soft: #1d212a;
        --grid: #1d212a;

        --accent: #ff7550;
        --accent-hover: #ff8e6f;
        --accent-ink: #17110e;
        --accent-soft: #23150f;

        --panel: #171a21;
        --panel-cap: #1d222b;
        --panel-rule: #2a2f3a;
    }
}

/* ------------------------------------------------------------------ reset */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1.0625rem;
    line-height: 1.65;
    font-synthesis-weight: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; line-height: 1.2; font-weight: 600; }
p { margin: 0; }
img, svg { max-width: 100%; }

a { color: inherit; text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

::selection { background: var(--accent); color: var(--accent-ink); }

.skip {
    position: absolute; left: -9999px; top: 0; z-index: 100;
    background: var(--accent); color: var(--accent-ink);
    padding: .6rem 1rem; border-radius: 0 0 var(--radius) 0; text-decoration: none;
}
.skip:focus { left: 0; }

/* ----------------------------------------------------------------- shared */

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 1.5rem; }

@media (max-width: 640px) { .wrap { padding-inline: 1.15rem; } }

.mono { font-family: var(--mono); font-size: .875em; font-feature-settings: 'liga' 0; }

.nowrap { white-space: nowrap; }

.display {
    font-family: var(--serif);
    font-weight: 400;
    letter-spacing: -.015em;
    line-height: 1.02;
}

.display em { font-style: italic; color: var(--ink-2); }

.eyebrow {
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 1rem;
}

.lede { font-size: 1.1875rem; line-height: 1.6; color: var(--ink-2); max-width: 58ch; }

.muted { color: var(--muted); }

/* Inline code inside prose: quiet, no heavy chip. */
p > code.mono, li > code.mono, td > code.mono, th > code.mono, h3 > code.mono {
    background: var(--accent-soft);
    color: color-mix(in srgb, var(--ink) 82%, var(--accent));
    padding: .1em .34em;
    border-radius: 4px;
    white-space: nowrap;
}

.btn {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .68rem 1.25rem;
    border-radius: var(--radius);
    border: 1px solid transparent;
    font-size: .9375rem; font-weight: 600;
    text-decoration: none;
    transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }

.btn-quiet { border-color: var(--rule); color: var(--ink); background: var(--surface); }
.btn-quiet:hover { border-color: var(--muted); }

/* ----------------------------------------------------------------- header */

.site-head {
    position: sticky; top: 0; z-index: 50;
    background: color-mix(in srgb, var(--paper) 88%, transparent);
    backdrop-filter: saturate(1.6) blur(10px);
    border-bottom: 1px solid var(--rule-soft);
}

.head-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 60px; }

.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); }
.brand-name { font-family: var(--serif); font-size: 1.5rem; letter-spacing: -.01em; }
.mark { display: block; flex: none; }

.chip {
    font-size: .625rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    padding: .15rem .4rem; border-radius: 4px;
}
.chip-dev { background: var(--accent); color: var(--accent-ink); }

.head-nav { display: flex; align-items: center; gap: 1.5rem; }
.nav-link { font-size: .9375rem; color: var(--ink-2); text-decoration: none; }
.nav-link:hover { color: var(--ink); }
.nav-cta {
    border: 1px solid var(--rule); border-radius: var(--radius);
    padding: .38rem .8rem; color: var(--ink); font-weight: 600;
}
.nav-cta:hover { border-color: var(--muted); }

@media (max-width: 860px) { .nav-wide { display: none; } }

/* ------------------------------------------------------------------- hero */

.hero { position: relative; padding-top: 5.5rem; overflow: hidden; }

/* A faint drafting grid, faded out before it reaches the content it sits behind. */
.hero::before {
    content: "";
    position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(to right, var(--grid) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
    background-size: 72px 72px;
    -webkit-mask-image: radial-gradient(ellipse 75% 55% at 50% 0%, #000 0%, transparent 72%);
    mask-image: radial-gradient(ellipse 75% 55% at 50% 0%, #000 0%, transparent 72%);
    opacity: .8;
}

.hero-inner { position: relative; text-align: center; }

.hero-title { font-size: clamp(2.9rem, 8.2vw, 5.25rem); margin-bottom: 1.5rem; }

.hero-lede { margin-inline: auto; font-size: 1.25rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 2rem; }

.install {
    display: inline-block;
    margin-top: 2rem;
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    padding: .6rem 1rem;
    max-width: 100%;
    overflow-x: auto;
}
.install code { white-space: nowrap; font-size: .8125rem; color: var(--ink-2); }
.install-prompt { color: var(--muted); margin-right: .5rem; user-select: none; }

.hero-fine { margin-top: 1.5rem; font-size: .8125rem; color: var(--muted); }

.warn-dot {
    display: inline-block; width: .45rem; height: .45rem; border-radius: 50%;
    background: var(--accent); margin-right: .4rem; vertical-align: .05rem;
}

.hero-code { position: relative; margin-top: 3.5rem; padding-bottom: 1rem; }

/* ------------------------------------------------------------------ bands */

.band { padding-block: 6.5rem; }
.band-alt { background: var(--band); border-block: 1px solid var(--rule-soft); }

@media (max-width: 640px) { .band { padding-block: 4.5rem; } }

.sec-head { margin-bottom: 3rem; max-width: 62ch; }
.sec-head h2 { font-size: clamp(2rem, 4.6vw, 3.15rem); }
.sec-head .lede { margin-top: 1.25rem; }

/* --------------------------------------------------------- what's generated */

.gen-grid { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }

@media (min-width: 820px) { .gen-grid { grid-template-columns: 1fr 1fr; } }

.gen { background: var(--surface); padding: 2rem; }
.gen h3 { font-size: 1.0625rem; margin-bottom: .7rem; letter-spacing: -.005em; }
.gen p { color: var(--ink-2); font-size: .96875rem; }

/* --------------------------------------------------------------- terminals */

.term-pair { display: grid; gap: 1.25rem; align-items: start; }

@media (min-width: 1000px) { .term-pair { grid-template-columns: 1.35fr 1fr; } }

.facts {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem 1.5rem;
    margin-top: 3.5rem; padding-top: 3rem; border-top: 1px solid var(--rule);
}

@media (min-width: 900px) { .facts { grid-template-columns: repeat(4, 1fr); } }

.fact-n { font-family: var(--serif); font-size: 3rem; line-height: 1; color: var(--accent); }
.fact-l { margin-top: .6rem; font-size: .875rem; color: var(--muted); line-height: 1.5; }

.aside {
    margin-top: 2.5rem; padding-left: 1.15rem; border-left: 2px solid var(--accent);
    font-size: .9375rem; color: var(--muted); max-width: 68ch;
}

.note {
    margin-top: 2.5rem; padding: 1.75rem 2rem;
    background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius);
    max-width: 72ch;
}
.note h3 { font-size: 1.0625rem; margin-bottom: .7rem; }
.note p { font-size: .96875rem; color: var(--ink-2); }
.note em { font-style: italic; color: var(--ink); }

/* ------------------------------------------------------------------ tables */

.table-scroll { overflow-x: auto; }

.cap, .cmp { width: 100%; border-collapse: collapse; font-size: .9375rem; min-width: 640px; }

.cap th, .cap td, .cmp th, .cmp td { text-align: left; padding: 1rem 1.25rem 1rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }

.cap thead th, .cmp thead th {
    font-size: .6875rem; font-weight: 600; letter-spacing: .11em; text-transform: uppercase;
    color: var(--muted); padding-bottom: .7rem; border-bottom-color: var(--ink);
}

.cap tbody th, .cmp tbody th { font-weight: 600; color: var(--ink); width: 22%; padding-right: 2rem; }

.cap td, .cmp td { color: var(--ink-2); }

.cmp tbody td:first-of-type { color: var(--muted); }
.cmp tbody td { width: 39%; }

.cap tbody tr:last-child th, .cap tbody tr:last-child td,
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: none; }

/* ------------------------------------------------------------------- steps */

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }

.steps > li {
    counter-increment: step;
    display: grid; gap: 1.5rem;
    padding-block: 2.5rem;
    border-top: 1px solid var(--rule);
}
.steps > li:last-child { border-bottom: 1px solid var(--rule); }

@media (min-width: 900px) { .steps > li { grid-template-columns: 1fr 1.15fr; gap: 3rem; align-items: start; } }

.step-text h3 { font-size: 1.25rem; margin-bottom: .6rem; display: flex; gap: .75rem; align-items: baseline; }
.step-text h3::before {
    content: counter(step);
    font-family: var(--mono); font-size: .8125rem; font-weight: 700;
    color: var(--accent);
}
.step-text p { color: var(--ink-2); font-size: .96875rem; }

.cta { margin-top: 5rem; text-align: center; }
.cta h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 1rem; }
.cta .lede { margin-inline: auto; }
.cta .hero-actions { margin-top: 1.75rem; }

/* ------------------------------------------------------- code + terminal panels */

.code, .term { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--panel); border: 1px solid var(--panel-rule); }

.code figcaption, .term figcaption {
    display: flex; align-items: center; gap: .6rem;
    background: var(--panel-cap);
    border-bottom: 1px solid var(--panel-rule);
    padding: .6rem 1rem;
    font-family: var(--mono); font-size: .75rem; color: var(--panel-dim);
}

.term-dots { display: inline-flex; gap: .3rem; }
.term-dots i { width: .5rem; height: .5rem; border-radius: 50%; background: var(--panel-rule); }

.code pre, .term pre { margin: 0; padding: 1.15rem 1.25rem; overflow-x: auto; }

.code code, .term code {
    font-family: var(--mono);
    font-size: .8125rem;
    line-height: 1.75;
    color: var(--panel-ink);
    white-space: pre;
}

@media (max-width: 640px) {
    .code code, .term code { font-size: .75rem; }
}

/* syntax */
.t-cmt { color: var(--t-cmt); font-style: italic; }
.t-str { color: var(--t-str); }
.t-kw { color: var(--t-kw); }
.t-typ { color: var(--t-typ); }
.t-num { color: var(--t-num); }
.t-attr { color: var(--t-attr); }
.t-key { color: var(--t-key); }
.t-flag { color: var(--t-flag); }
.t-cmd { color: var(--t-cmd); }
.t-punc { color: var(--t-punc); }

/* plan / apply output */
.l-cmd { color: #eceff4; font-weight: 700; }
.l-prompt { color: #5e6675; user-select: none; }
.l-head { color: var(--panel-ink); }
.l-add { color: var(--l-add); }
.l-chg { color: var(--l-chg); }
.l-del { color: var(--l-del); }
.l-hint { color: var(--l-hint); }
.l-ok { color: var(--l-add); }
.l-wait { color: var(--panel-dim); }
.l-dim { color: var(--panel-dim); }

/* ------------------------------------------------------------------ footer */

.site-foot { border-top: 1px solid var(--rule); background: var(--band); padding-top: 4rem; }

.foot-grid { display: grid; gap: 2.5rem; }

@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 3rem; } }

.foot-blurb { margin-top: 1rem; font-size: .9375rem; color: var(--muted); max-width: 34ch; }

.foot-col h3 { font-size: .6875rem; font-weight: 600; letter-spacing: .11em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.foot-col a { display: block; font-size: .9375rem; color: var(--ink-2); text-decoration: none; padding-block: .3rem; }
.foot-col a:hover { color: var(--accent); }
.foot-note { font-size: .875rem; color: var(--muted); line-height: 1.6; }
.foot-note em { font-style: normal; color: var(--ink-2); }

.foot-bar {
    margin-top: 3.5rem; padding-block: 1.5rem; border-top: 1px solid var(--rule);
    display: flex; flex-wrap: wrap; gap: .75rem 2rem; justify-content: space-between;
    font-size: .8125rem; color: var(--muted);
}
.foot-build .mono { color: var(--ink-2); }

/* ------------------------------------------------------------- stub pages */

.stub { padding-block: 8rem 10rem; max-width: 62ch; }
.stub h1 { font-size: clamp(2.2rem, 6vw, 3.5rem); margin-bottom: 1.25rem; }
.stub .lede { margin-bottom: 2rem; }
.stub .btn { margin-top: .5rem; }

/* ================================================================= docs =========== */

.docs-shell { display: grid; gap: 2.5rem; padding-block: 3rem 6rem; align-items: start; }

@media (min-width: 940px) {
    .docs-shell { grid-template-columns: 200px minmax(0, 1fr); gap: 4rem; }
    .docs-nav { position: sticky; top: 84px; }
}

.docs-nav { display: flex; flex-direction: column; gap: .15rem; }
.docs-nav-title {
    font-size: .6875rem; font-weight: 600; letter-spacing: .11em; text-transform: uppercase;
    color: var(--muted); margin-bottom: .6rem;
}
.docs-nav a {
    font-size: .9375rem; color: var(--ink-2); text-decoration: none;
    padding: .35rem .7rem; border-radius: 6px; border-left: 2px solid transparent;
}
.docs-nav a:hover { color: var(--ink); background: var(--band); }
.docs-nav a.active { color: var(--accent); border-left-color: var(--accent); background: var(--accent-soft); font-weight: 600; }

.docs-main { min-width: 0; }

.doc-head { margin-bottom: 3rem; }
.doc-head h1 { font-size: clamp(2.1rem, 5vw, 3.1rem); margin-bottom: 1.1rem; }

.doc-cards { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; margin-bottom: 3.5rem; }
@media (min-width: 700px) { .doc-cards { grid-template-columns: 1fr 1fr; } }
.doc-card { background: var(--surface); padding: 1.5rem; text-decoration: none; display: block; }
.doc-card:hover { background: var(--accent-soft); }
.doc-card h2 { font-size: 1.0625rem; margin-bottom: .4rem; }
.doc-card p { font-size: .9375rem; color: var(--muted); }

.doc-section { margin-bottom: 4rem; }
.doc-section > h2 {
    font-family: var(--serif); font-weight: 400; font-size: 1.75rem; letter-spacing: -.01em;
    padding-bottom: .6rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--rule);
}
.doc-section > p { color: var(--ink-2); margin-bottom: 1rem; max-width: 72ch; }

.doc-list { margin: 0; padding-left: 1.1rem; color: var(--ink-2); max-width: 72ch; }
.doc-list li { margin-bottom: .6rem; }

a.anchor { text-decoration: none; color: inherit; }
a.anchor:hover { color: var(--accent); }

.callout {
    padding: 1.25rem 1.5rem; margin-bottom: 2.5rem; max-width: 76ch;
    background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
    border-radius: var(--radius);
}
.callout p { font-size: .9375rem; color: var(--ink-2); }

/* one documented type or command */
.api, .cmd { padding-block: 2rem; border-top: 1px solid var(--rule-soft); }
.api:first-of-type, .cmd:first-of-type { border-top: none; padding-top: .5rem; }

.api-head, .cmd-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .6rem; margin-bottom: .7rem; }
.api-head h3, .cmd-head h3 { font-size: 1.0625rem; }
.api-head h3 code, .cmd-head h3 code { font-size: 1em; color: var(--ink); }

.api-kind, .api-applies {
    font-size: .6875rem; letter-spacing: .06em; text-transform: uppercase;
    padding: .15rem .45rem; border-radius: 4px; color: var(--muted); border: 1px solid var(--rule);
}
.api-applies { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }

.api-summary, .cmd-summary { color: var(--ink-2); font-size: .96875rem; margin-bottom: 1rem; max-width: 76ch; }

.api .code, .cmd .code { margin-bottom: 1.25rem; }

.members { width: 100%; border-collapse: collapse; font-size: .9375rem; min-width: 560px; }
.members th, .members td { text-align: left; padding: .7rem 1.25rem .7rem 0; border-bottom: 1px solid var(--rule-soft); vertical-align: top; }
.members tbody th { font-weight: 400; width: 42%; padding-right: 1.5rem; }
.members tbody th code { color: var(--ink); font-size: .8125rem; white-space: normal; background: none; padding: 0; }
.members td { color: var(--ink-2); }
.members tr:last-child th, .members tr:last-child td { border-bottom: none; }

.member-default, .key-type {
    display: inline-block; margin-left: .5rem; font-size: .75rem; color: var(--muted);
}
.key-type {
    margin-left: 0; margin-right: .6rem; padding: .05rem .35rem; border-radius: 4px;
    border: 1px solid var(--rule); text-transform: lowercase;
}

.cmd-exit, .cmd-notes { font-size: .9375rem; color: var(--muted); margin-top: 1rem; max-width: 76ch; }
.cmd-exit .label { font-weight: 600; color: var(--ink-2); margin-right: .4rem; }

.resolution {
    display: inline-block; padding: .55rem .9rem; border-radius: var(--radius);
    background: var(--surface); border: 1px dashed var(--rule); font-size: .8125rem; color: var(--ink-2);
    max-width: 100%; overflow-x: auto; white-space: nowrap;
}

.rules { width: 100%; border-collapse: collapse; font-size: .9375rem; min-width: 620px; }
.rules th, .rules td { text-align: left; padding: .7rem 1.25rem .7rem 0; border-bottom: 1px solid var(--rule-soft); vertical-align: top; }
.rules thead th {
    font-size: .6875rem; font-weight: 600; letter-spacing: .11em; text-transform: uppercase;
    color: var(--muted); border-bottom-color: var(--ink);
}
.rules tbody th { font-weight: 600; white-space: nowrap; width: 7rem; }
.rules td { color: var(--ink-2); }
.rules tbody tr:target { background: var(--accent-soft); }

.sev {
    font-size: .6875rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
    padding: .1rem .4rem; border-radius: 4px; white-space: nowrap;
}
.sev-error { background: color-mix(in srgb, var(--l-del) 20%, transparent); color: color-mix(in srgb, var(--l-del) 75%, var(--ink)); }
.sev-warning { background: color-mix(in srgb, var(--l-hint) 22%, transparent); color: color-mix(in srgb, var(--l-hint) 70%, var(--ink)); }
.sev-info, .sev-hidden { background: var(--band); color: var(--muted); }

/* ---------------------------------------------------------- guides (markdown) */

.docs-nav-gap { margin-top: 1.5rem; }

.index-h {
    font-family: var(--serif); font-weight: 400; font-size: 1.5rem;
    margin-bottom: 1.25rem;
}
.doc-cards + .index-h { margin-top: 3.5rem; }

.toc {
    margin-bottom: 3rem; padding: 1.25rem 1.5rem;
    background: var(--band); border: 1px solid var(--rule-soft); border-radius: var(--radius);
}
.toc-title {
    font-size: .6875rem; font-weight: 600; letter-spacing: .11em; text-transform: uppercase;
    color: var(--muted); margin-bottom: .75rem;
}
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li { margin-bottom: .3rem; }
.toc li.toc-3 { padding-left: 1.1rem; }
.toc a { font-size: .9375rem; color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--accent); }

/* Rendered markdown. Deliberately narrow: long-form prose is unreadable at full width. */
.prose { max-width: 78ch; }

.prose > * + * { margin-top: 1.15rem; }

.prose h1, .prose h2, .prose h3, .prose h4 {
    font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; line-height: 1.15;
}
.prose h1 { font-size: 2.1rem; margin-top: 3.5rem; }
.prose h2 {
    font-size: 1.7rem; margin-top: 3.25rem;
    padding-bottom: .5rem; border-bottom: 1px solid var(--rule);
}
.prose h3 { font-size: 1.25rem; margin-top: 2.25rem; }
.prose h4 { font-size: 1.0625rem; margin-top: 1.75rem; font-family: var(--sans); font-weight: 600; }

.prose p, .prose li { color: var(--ink-2); }

.prose ul, .prose ol { padding-left: 1.35rem; }
.prose li { margin-bottom: .45rem; }
.prose li > ul, .prose li > ol { margin-top: .45rem; }

.prose a { color: var(--accent); text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent); }

.prose strong { color: var(--ink); font-weight: 600; }

/* Inline code in prose — same treatment as the landing page. */
.prose code {
    font-family: var(--mono); font-size: .84em;
    background: var(--accent-soft);
    color: color-mix(in srgb, var(--ink) 82%, var(--accent));
    padding: .1em .34em; border-radius: 4px;
}
/* ...but not inside a highlighted block, which has its own palette. */
.prose pre code { background: none; color: var(--panel-ink); padding: 0; font-size: .8125rem; }

.prose blockquote {
    margin-inline: 0; padding: .1rem 0 .1rem 1.15rem;
    border-left: 2px solid var(--accent); color: var(--muted);
}
.prose blockquote > * + * { margin-top: .75rem; }

.prose table {
    width: 100%; border-collapse: collapse; font-size: .9375rem; display: block; overflow-x: auto;
}
.prose th, .prose td {
    text-align: left; padding: .65rem 1.15rem .65rem 0;
    border-bottom: 1px solid var(--rule-soft); vertical-align: top;
}
.prose thead th {
    font-size: .6875rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
    color: var(--muted); border-bottom-color: var(--ink); white-space: nowrap;
}
.prose td { color: var(--ink-2); }

.prose hr { border: none; border-top: 1px solid var(--rule); margin-block: 2.5rem; }

.prose img { border-radius: var(--radius); }

/* Anchor targets sit under the 60px sticky header without this — the jump looks like it failed. */
.prose h1, .prose h2, .prose h3, .prose h4,
.doc-section, .api, .cmd, .rules tbody tr { scroll-margin-top: 5.5rem; }
