Sign in

Search issue titles and bodies, change requests and comments. Private repositories you cannot read are not included.

vole
Site
Clone

Read only, no credentials:

https://rodent.software/vole.git

Write over SSH with a registered key:

git clone ssh://git@rodent.software/vole.git

Self-hosted forge that lives in your Git repo.

Rebuild the docs as a MkDocs site

1f8afe73515d58c14774878f30f33bfe318d0c3b · Keenan Nemetz · 21d ago · parent 7c02af12

Rebuild the docs as a MkDocs site

Replace the mdBook configuration with MkDocs and a local theme that uses
Vole's Everforest dark/medium palette. Move the contents order into nav,
make docs/index.md the homepage, and carry the install, quickstart,
deployment, and reference pages into the new tree.

Add the docs build to verify, with pinned requirements and python3-venv in
the image, so a broken nav entry or theme asset fails before a pages
deploy.

docs-theme/assets/docs.css +776

@@ -0,0 +1,776 @@
1 /* Vole documentation theme.
2
3 The tokens are the forge's Everforest dark/medium palette from
4 server/web/static/everforest.css and the layout tokens from
5 server/web/static/vole.css. The site is deliberately dark only: it uses
6 Vole's dark/medium variant directly, rather than carrying a light half that
7 only the docs use.
8
9 Sections, in file order: tokens and fonts, base type, top bar, page layout,
10 sidebar, content, tables and code, page footer, search palette, responsive. */
11
12 /* ---------- tokens and fonts ---------- */
13
14 :root {
15 color-scheme: dark;
16
17 /* surfaces */
18 --bg: #2d353b;
19 --bg-panel: #343f44;
20 --bg-raised: #3d484d;
21 --bg-hover: #475258;
22 --bg-active: #4f585e;
23 --border: #4f585e;
24 --border-strong: #56635f;
25
26 /* text */
27 --fg: #d3c6aa;
28 --fg-muted: #9da9a0;
29 --fg-faint: #859289;
30
31 /* accent and status */
32 --accent: #a7c080;
33 --accent-fg: #2d353b;
34 --accent-soft: color-mix(in srgb, var(--accent) 16%, transparent);
35 --running: #7fbbb3;
36 --good: #a7c080;
37 --bad: #e67e80;
38 --warn: #dbbc7f;
39 --merged: #d699b6;
40
41 /* shape, type, and measure */
42 --radius: 6px;
43 --radius-lg: 8px;
44 --page-gutter: 24px;
45 --topbar-h: 46px;
46 --sidebar-w: 16rem;
47 --toc-w: 14rem;
48 --content-max: 48rem;
49 --layout-gap: 40px;
50 /* The docs grid, not the whole page, is the measure the header and footer
51 follow. Keeping the three columns plus their gutters in one token is what
52 makes the brand line up with the sidebar at every width. */
53 --layout-max: calc(
54 var(--sidebar-w) + var(--content-max) + var(--toc-w) +
55 2 * var(--layout-gap) + 2 * var(--page-gutter)
56 );
57 --font: "Lexend", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Liberation Sans", Arial, sans-serif;
58 --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
59 --fs: 15.4px;
60 --lh: 1.55;
61
62 /* The head mark is drawn in the text colour, as on the forge's dark theme. */
63 --mark-fill: currentColor;
64 --mark-outline: transparent;
65 }
66
67 @font-face {
68 font-family: "Lexend";
69 font-style: normal;
70 font-weight: 100 900;
71 font-display: swap;
72 src: url("fonts/lexend-latin-ext.woff2") format("woff2");
73 unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
74 }
75 @font-face {
76 font-family: "Lexend";
77 font-style: normal;
78 font-weight: 100 900;
79 font-display: swap;
80 src: url("fonts/lexend-latin.woff2") format("woff2");
81 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;
82 }
83 @font-face {
84 font-family: "JetBrains Mono";
85 font-style: normal;
86 font-weight: 100 800;
87 font-display: swap;
88 src: url("fonts/jetbrains-mono-latin-ext.woff2") format("woff2");
89 unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
90 }
91 @font-face {
92 font-family: "JetBrains Mono";
93 font-style: normal;
94 font-weight: 100 800;
95 font-display: swap;
96 src: url("fonts/jetbrains-mono-latin.woff2") format("woff2");
97 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;
98 }
99 @font-face {
100 font-family: "JetBrains Mono";
101 font-style: italic;
102 font-weight: 100 800;
103 font-display: swap;
104 src: url("fonts/jetbrains-mono-italic-latin-ext.woff2") format("woff2");
105 unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
106 }
107 @font-face {
108 font-family: "JetBrains Mono";
109 font-style: italic;
110 font-weight: 100 800;
111 font-display: swap;
112 src: url("fonts/jetbrains-mono-italic-latin.woff2") format("woff2");
113 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;
114 }
115
116 /* ---------- base type ---------- */
117
118 * { box-sizing: border-box; }
119 * { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
120 ::-webkit-scrollbar { width: 10px; height: 10px; }
121 ::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 5px; }
122 ::-webkit-scrollbar-track { background: transparent; }
123
124 html {
125 scroll-behavior: smooth;
126 scroll-padding-top: calc(var(--topbar-h) + 24px);
127 }
128
129 body {
130 margin: 0;
131 background: var(--bg);
132 color: var(--fg);
133 font-family: var(--font);
134 font-size: var(--fs);
135 line-height: var(--lh);
136 -webkit-font-smoothing: auto;
137 font-kerning: normal;
138 }
139
140 a { color: var(--accent); text-decoration: none; }
141 a:hover { text-decoration: underline; }
142
143 h1, h2, h3, h4, h5, h6 {
144 margin: 0;
145 font-weight: 600;
146 letter-spacing: -0.01em;
147 line-height: 1.35;
148 }
149
150 p { margin: 0 0 10px; }
151 ul, ol { margin: 0 0 10px; padding-left: 22px; }
152 li > p { margin: 0; }
153 hr { border: 0; border-top: 1px solid var(--border); margin: 24px 0; }
154 img { max-width: 100%; }
155 kbd {
156 font-family: var(--mono);
157 font-size: 0.8em;
158 padding: 0 4px;
159 border: 1px solid var(--border);
160 border-radius: 4px;
161 background: var(--bg-panel);
162 color: var(--fg-muted);
163 }
164 .icon { width: 14px; height: 14px; flex: none; }
165
166 :focus-visible {
167 outline: 2px solid var(--accent);
168 outline-offset: 2px;
169 border-radius: 3px;
170 }
171
172 .skip-link {
173 position: fixed;
174 top: 8px;
175 left: 8px;
176 z-index: 100;
177 transform: translateY(-200%);
178 padding: 6px 10px;
179 border-radius: var(--radius);
180 background: var(--accent);
181 color: var(--accent-fg);
182 font-weight: 500;
183 }
184 .skip-link:focus { transform: none; text-decoration: none; }
185
186 .muted { color: var(--fg-muted); }
187
188 /* ---------- top bar ---------- */
189
190 .topbar {
191 position: sticky;
192 top: 0;
193 z-index: 20;
194 display: flex;
195 align-items: center;
196 gap: 20px;
197 height: var(--topbar-h);
198 padding-block: 0;
199 padding-inline: max(var(--page-gutter), calc((100% - var(--layout-max)) / 2 + var(--page-gutter)));
200 background: color-mix(in srgb, var(--bg-panel) 92%, transparent);
201 border-bottom: 1px solid var(--border);
202 backdrop-filter: blur(8px);
203 }
204
205 .brand {
206 display: inline-flex;
207 align-items: center;
208 gap: 8px;
209 color: var(--fg);
210 white-space: nowrap;
211 }
212 .brand:hover { text-decoration: none; }
213 .brand .mark {
214 display: block;
215 position: relative;
216 flex: none;
217 width: 30px;
218 height: 30px;
219 }
220 .brand .mark::before,
221 .brand .mark::after {
222 content: "";
223 position: absolute;
224 inset: 0;
225 -webkit-mask-position: center;
226 -webkit-mask-size: contain;
227 -webkit-mask-repeat: no-repeat;
228 mask-position: center;
229 mask-size: contain;
230 mask-repeat: no-repeat;
231 }
232 .brand .mark::before {
233 background-color: var(--mark-outline);
234 -webkit-mask-image: url("vole-head-solid.png");
235 mask-image: url("vole-head-solid.png");
236 }
237 .brand .mark::after {
238 background-color: var(--mark-fill);
239 -webkit-mask-image: url("vole-head.png");
240 mask-image: url("vole-head.png");
241 }
242 .brand-name {
243 font-size: calc(15.4px * 1);
244 font-weight: 600;
245 letter-spacing: -0.01em;
246 }
247 .brand-note {
248 padding: 0 5px;
249 border: 1px solid var(--border);
250 border-radius: 4px;
251 color: var(--fg-faint);
252 font-size: calc(11.55px * 1);
253 font-weight: 500;
254 letter-spacing: 0.06em;
255 text-transform: uppercase;
256 }
257
258 .nav-toggle {
259 display: none;
260 align-items: center;
261 justify-content: center;
262 padding: 6px;
263 border: 0;
264 border-radius: var(--radius);
265 background: none;
266 color: var(--fg-muted);
267 cursor: pointer;
268 }
269 .nav-toggle:hover { background: var(--bg-hover); color: var(--fg); }
270
271 .topsearch {
272 flex: 1 1 auto;
273 min-width: 8rem;
274 max-width: 18rem;
275 margin-left: auto;
276 }
277 .topsearch-box {
278 display: flex;
279 align-items: center;
280 gap: 8px;
281 width: 100%;
282 min-width: 0;
283 min-height: 30px;
284 padding: 5px 8px;
285 border: 1px solid var(--border-strong);
286 border-radius: var(--radius);
287 background: var(--bg);
288 color: var(--fg-muted);
289 font: inherit;
290 font-size: calc(13.75px * 1);
291 text-align: left;
292 cursor: pointer;
293 }
294 .topsearch-box:hover {
295 border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
296 color: var(--fg);
297 }
298 .topsearch-box .icon { width: 13px; height: 13px; color: var(--fg-faint); }
299 .topsearch-label {
300 flex: 1 1 auto;
301 min-width: 0;
302 overflow: hidden;
303 text-overflow: ellipsis;
304 white-space: nowrap;
305 }
306 .topsearch-key {
307 flex: 0 0 auto;
308 padding: 0 4px;
309 border: 1px solid var(--border);
310 border-radius: 4px;
311 background: var(--bg-panel);
312 color: var(--fg-faint);
313 font-family: var(--mono);
314 font-size: calc(11.55px * 1);
315 }
316
317 /* ---------- page layout ---------- */
318
319 .layout {
320 display: grid;
321 grid-template-columns: var(--sidebar-w) minmax(0, var(--content-max)) var(--toc-w);
322 justify-content: center;
323 align-items: start;
324 gap: var(--layout-gap);
325 width: min(100%, var(--layout-max));
326 margin: 0 auto;
327 padding: 28px var(--page-gutter) 80px;
328 }
329
330 /* ---------- sidebar ---------- */
331
332 .sidebar {
333 position: sticky;
334 top: calc(var(--topbar-h) + 24px);
335 max-height: calc(100vh - var(--topbar-h) - 48px);
336 overflow-y: auto;
337 padding-right: 4px;
338 }
339
340 .nav-list { list-style: none; margin: 0; padding: 0; }
341 .nav-root > .nav-item { margin-bottom: 12px; }
342 .nav-section { margin: 20px 0 0; }
343 .nav-section:first-child { margin-top: 0; }
344 .nav-section-title {
345 margin: 0 0 6px;
346 padding: 0 10px;
347 color: var(--fg-faint);
348 font-size: calc(11.55px * 1);
349 font-weight: 600;
350 letter-spacing: 0.08em;
351 text-transform: uppercase;
352 }
353 .nav-link {
354 display: block;
355 padding: 5px 10px;
356 border: 1px solid transparent;
357 border-radius: var(--radius);
358 color: var(--fg-muted);
359 font-size: calc(13.75px * 1);
360 }
361 .nav-link:hover {
362 background: var(--bg-hover);
363 color: var(--fg);
364 text-decoration: none;
365 }
366 .nav-link.active {
367 background: var(--accent-soft);
368 border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
369 color: var(--accent);
370 font-weight: 500;
371 }
372
373 /* ---------- content ---------- */
374
375 .content {
376 min-width: 0;
377 max-width: var(--content-max);
378 }
379
380 .content > :first-child { margin-top: 0; }
381 .content > :last-child { margin-bottom: 0; }
382
383 .content h1 { margin: 0 0 14px; font-size: calc(22px * 1); }
384 .content h2 { margin: 32px 0 10px; font-size: calc(17.6px * 1); }
385 .content h3 { margin: 24px 0 8px; font-size: calc(15.4px * 1); }
386 .content h4 { margin: 20px 0 8px; font-size: calc(14.3px * 1); }
387 .content h5,
388 .content h6 { margin: 18px 0 6px; color: var(--fg-muted); font-size: calc(13.75px * 1); }
389
390 .content p { margin: 10px 0; }
391 .content ul,
392 .content ol { margin: 10px 0; padding-left: 24px; }
393 .content li { margin: 3px 0; }
394 .content li::marker { color: var(--fg-faint); }
395
396 .content blockquote {
397 margin: 14px 0;
398 padding: 2px 0 2px 14px;
399 border-left: 3px solid var(--border-strong);
400 color: var(--fg-muted);
401 }
402 .content blockquote > :first-child { margin-top: 0; }
403 .content blockquote > :last-child { margin-bottom: 0; }
404
405 /* A heading permalink is quiet until the reader is near it. The link is still
406 in the tab order, so keyboard users can copy the fragment without a mouse. */
407 .headerlink {
408 margin-left: 0.35em;
409 color: var(--fg-faint);
410 font-weight: 400;
411 opacity: 0;
412 }
413 h1:hover .headerlink,
414 h2:hover .headerlink,
415 h3:hover .headerlink,
416 h4:hover .headerlink,
417 h5:hover .headerlink,
418 h6:hover .headerlink,
419 .headerlink:focus-visible { opacity: 1; }
420 .headerlink:hover { color: var(--accent); text-decoration: none; }
421
422 /* ---------- tables and code ---------- */
423
424 .content table {
425 display: block;
426 width: 100%;
427 max-width: 100%;
428 overflow-x: auto;
429 margin: 16px 0;
430 border: 1px solid var(--border);
431 border-radius: var(--radius-lg);
432 border-collapse: collapse;
433 background: var(--bg-panel);
434 font-size: calc(13.75px * 1);
435 }
436 .content th,
437 .content td {
438 padding: 8px 12px;
439 border-bottom: 1px solid var(--border);
440 text-align: left;
441 vertical-align: top;
442 }
443 .content tr:last-child > td { border-bottom: 0; }
444 .content th {
445 background: var(--bg-raised);
446 color: var(--fg-faint);
447 font-size: calc(12.1px * 1);
448 font-weight: 500;
449 letter-spacing: 0.04em;
450 text-transform: uppercase;
451 padding-top: 7px;
452 padding-bottom: 7px;
453 }
454 .content tbody tr:hover { background: var(--bg-hover); }
455
456 .content code,
457 .content kbd {
458 font-family: var(--mono);
459 }
460 .content code {
461 padding: 1px 5px;
462 border: 1px solid var(--border);
463 border-radius: 4px;
464 background: var(--bg-raised);
465 font-size: 0.82em;
466 }
467 .content pre {
468 margin: 12px 0;
469 padding: 12px 14px;
470 border: 1px solid var(--border);
471 border-radius: var(--radius);
472 background: var(--bg-panel);
473 overflow: auto;
474 font-family: var(--mono);
475 font-size: calc(13.2px * 1);
476 line-height: 1.55;
477 }
478 .content pre code {
479 padding: 0;
480 border: 0;
481 background: none;
482 font-size: inherit;
483 }
484 .content .codehilite {
485 position: relative;
486 margin: 12px 0;
487 }
488 .content .codehilite pre { margin: 0; }
489
490 .copy-code {
491 position: absolute;
492 top: 7px;
493 right: 7px;
494 padding: 3px 7px;
495 border: 1px solid var(--border-strong);
496 border-radius: 4px;
497 background: var(--bg-raised);
498 color: var(--fg-muted);
499 font-family: var(--font);
500 font-size: calc(11.55px * 1);
501 line-height: 1.4;
502 cursor: pointer;
503 opacity: 0;
504 transition: opacity 0.12s ease;
505 }
506 .codehilite:hover .copy-code,
507 .copy-code:focus-visible { opacity: 1; }
508 .copy-code:hover { background: var(--bg-hover); color: var(--fg); }
509
510 /* ---------- pager and footer ---------- */
511
512 .pager {
513 display: grid;
514 grid-template-columns: repeat(2, minmax(0, 1fr));
515 gap: 12px;
516 margin-top: 40px;
517 padding-top: 20px;
518 border-top: 1px solid var(--border);
519 }
520 .pager-link {
521 display: flex;
522 flex-direction: column;
523 gap: 2px;
524 min-width: 0;
525 padding: 10px 12px;
526 border: 1px solid var(--border);
527 border-radius: var(--radius-lg);
528 background: var(--bg-panel);
529 color: var(--fg);
530 }
531 .pager-link:hover {
532 border-color: var(--border-strong);
533 background: var(--bg-raised);
534 text-decoration: none;
535 }
536 .pager-next { text-align: right; }
537 .pager-where {
538 color: var(--fg-faint);
539 font-size: calc(11.55px * 1);
540 font-weight: 500;
541 letter-spacing: 0.06em;
542 text-transform: uppercase;
543 }
544 .pager-title {
545 overflow: hidden;
546 text-overflow: ellipsis;
547 white-space: nowrap;
548 font-size: calc(13.75px * 1);
549 font-weight: 500;
550 }
551 .pager-prev .pager-title { color: var(--fg-muted); }
552 .pager-next .pager-title { color: var(--accent); }
553
554 .site-footer {
555 width: min(100%, var(--layout-max));
556 margin: 0 auto;
557 padding: 18px var(--page-gutter) 40px;
558 border-top: 1px solid var(--border);
559 color: var(--fg-faint);
560 font-size: calc(12.65px * 1);
561 }
562 .site-footer p { margin: 0; }
563 .site-footer p + p { margin-top: 4px; }
564 .site-footer a { color: var(--fg-muted); }
565 .site-footer a:hover { color: var(--accent); }
566
567 /* ---------- on this page ---------- */
568
569 .toc {
570 position: sticky;
571 top: calc(var(--topbar-h) + 24px);
572 max-height: calc(100vh - var(--topbar-h) - 48px);
573 overflow-y: auto;
574 font-size: calc(12.65px * 1);
575 }
576 .toc-title {
577 margin: 0 0 8px;
578 color: var(--fg-faint);
579 font-size: calc(11.55px * 1);
580 font-weight: 600;
581 letter-spacing: 0.08em;
582 text-transform: uppercase;
583 }
584 .toc-list { list-style: none; margin: 0; padding: 0; }
585 .toc-list .toc-list { padding-left: 10px; }
586 .toc-item > a {
587 display: block;
588 padding: 3px 0 3px 10px;
589 border-left: 1px solid var(--border);
590 color: var(--fg-muted);
591 overflow: hidden;
592 text-overflow: ellipsis;
593 white-space: nowrap;
594 }
595 .toc-item > a:hover {
596 border-left-color: var(--border-strong);
597 color: var(--fg);
598 text-decoration: none;
599 }
600 .toc-level-3 > a { padding-left: 18px; color: var(--fg-faint); }
601
602 /* ---------- search palette ---------- */
603
604 .palette {
605 width: min(40rem, calc(100vw - 2 * var(--page-gutter)));
606 max-height: min(80vh, 44rem);
607 margin: 10vh auto auto;
608 padding: 0;
609 border: 1px solid var(--border-strong);
610 border-radius: var(--radius-lg);
611 background: var(--bg-raised);
612 color: var(--fg);
613 box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
614 overflow: hidden;
615 }
616 .palette::backdrop { background: rgba(0, 0, 0, 0.5); }
617 .palette-search {
618 display: flex;
619 align-items: center;
620 gap: 10px;
621 padding: 10px 12px;
622 border-bottom: 1px solid var(--border);
623 }
624 .palette-search .icon { width: 16px; height: 16px; color: var(--fg-muted); }
625 .palette-search input[type="search"] {
626 flex: 1 1 auto;
627 width: auto;
628 min-width: 0;
629 min-height: 0;
630 padding: 2px 0;
631 border: 0;
632 background: transparent;
633 color: var(--fg);
634 font: inherit;
635 font-size: calc(15.4px * 1);
636 }
637 .palette-search input[type="search"]::placeholder { color: var(--fg-faint); }
638 .palette-search input[type="search"]::-webkit-search-cancel-button,
639 .palette-search input[type="search"]::-webkit-search-decoration {
640 -webkit-appearance: none;
641 appearance: none;
642 }
643 .palette-search input[type="search"]:focus-visible { outline: 0; }
644 .palette-close {
645 display: inline-flex;
646 align-items: center;
647 justify-content: center;
648 padding: 4px;
649 border: 0;
650 border-radius: var(--radius);
651 background: none;
652 color: var(--fg-faint);
653 cursor: pointer;
654 }
655 .palette-close:hover { background: var(--bg-hover); color: var(--fg); }
656 .palette-results { max-height: min(60vh, 30rem); overflow-y: auto; padding: 6px; }
657 .palette-row {
658 display: block;
659 padding: 7px 9px;
660 border-radius: var(--radius);
661 color: var(--fg);
662 }
663 .palette-row:hover { background: var(--bg-hover); text-decoration: none; }
664 .palette-row.is-selected { background: var(--accent-soft); }
665 .palette-row-title {
666 display: block;
667 overflow: hidden;
668 text-overflow: ellipsis;
669 white-space: nowrap;
670 font-weight: 500;
671 }
672 .palette-row-where {
673 display: block;
674 overflow: hidden;
675 text-overflow: ellipsis;
676 white-space: nowrap;
677 color: var(--fg-faint);
678 font-size: calc(12.65px * 1);
679 }
680 .palette-empty {
681 margin: 0;
682 padding: 16px 12px;
683 color: var(--fg-muted);
684 font-size: calc(13.75px * 1);
685 }
686 .palette-foot {
687 display: flex;
688 gap: 14px;
689 padding: 7px 12px;
690 border-top: 1px solid var(--border);
691 color: var(--fg-faint);
692 font-size: calc(12.65px * 1);
693 }
694 .palette-foot kbd {
695 padding: 0 4px;
696 background: var(--bg-panel);
697 }
698
699 .nav-scrim { display: none; }
700
701 .not-found {
702 padding: 40px 0;
703 }
704 .not-found-code {
705 margin: 0 0 4px;
706 color: var(--accent);
707 font-family: var(--mono);
708 font-size: calc(13.2px * 1);
709 letter-spacing: 0.12em;
710 }
711
712 /* ---------- responsive ---------- */
713
714 @media (max-width: 1180px) {
715 .layout {
716 grid-template-columns: var(--sidebar-w) minmax(0, var(--content-max));
717 justify-content: start;
718 }
719 .toc { display: none; }
720 }
721
722 @media (max-width: 900px) {
723 .nav-toggle { display: inline-flex; }
724
725 .layout {
726 display: block;
727 padding-top: 20px;
728 }
729 .content { max-width: var(--content-max); }
730
731 .sidebar {
732 position: fixed;
733 top: var(--topbar-h);
734 bottom: 0;
735 left: 0;
736 z-index: 30;
737 width: min(20rem, 85vw);
738 max-height: none;
739 padding: 16px 14px 32px;
740 background: var(--bg-panel);
741 border-right: 1px solid var(--border);
742 transform: translateX(-100%);
743 transition: transform 0.16s ease;
744 }
745 body.nav-open .sidebar { transform: translateX(0); }
746 body.nav-open { overflow: hidden; }
747
748 .nav-scrim {
749 position: fixed;
750 inset: var(--topbar-h) 0 0;
751 z-index: 25;
752 background: rgba(0, 0, 0, 0.5);
753 }
754 body.nav-open .nav-scrim { display: block; }
755 }
756
757 @media (max-width: 640px) {
758 .topbar { gap: 10px; padding-inline: 16px; }
759 .brand-note { display: none; }
760 .topsearch { min-width: 0; max-width: none; }
761 .topsearch-label { display: none; }
762 .topsearch-box { justify-content: flex-end; }
763 .topsearch-key { display: none; }
764 .layout { padding-inline: 16px; }
765 .site-footer { padding-inline: 16px; }
766 .content h1 { font-size: calc(20.9px * 1); }
767 .pager { grid-template-columns: 1fr; }
768 .palette-foot { display: none; }
769 }
770
771 @media (prefers-reduced-motion: reduce) {
772 html { scroll-behavior: auto; }
773 *,
774 *::before,
775 *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
776 }