Elffuss BraidHub

utopia-ia/elffuss-braid public

bceec3f3d91e · 28.2 KiBRawPermalink
1/* SPDX-License-Identifier: Apache-2.0
2 Copyright (c) 2026 UtopiaIA
3 Elffuss Braid · braid.elffuss.com
4 Static: no web fonts, no external requests. Dark by default, as on
5 elffuss.com; light when the system asks for it. Terminals stay dark in
6 both. */
7
8:root {
9 --ground: #090a11;
10 --surface: rgb(22, 23, 38);
11 --surface-soft: rgba(22, 23, 38, .62);
12 --line: rgba(150, 146, 184, .14);
13 --line-strong: rgba(150, 146, 184, .28);
14 --text: #eae8f2;
15 --text-dim: #b3afce;
16 --muted: #7f7ca0;
17 /* --muted is for strokes, dots and dashed borders; text that should look
18 quieter than --text-dim uses this, which keeps 4.5:1 even where the
19 aurora lightens the ground */
20 --muted-text: #8e8bb0;
21 /* strand colours: text and graphics are the same in the dark */
22 --brass: #c8a06a;
23 --teal: #54dcc6;
24 --indigo: #8272ff;
25 --magenta: #e779cf;
26 --g-brass: #c8a06a;
27 --g-teal: #54dcc6;
28 --g-indigo: #8272ff;
29 --g-magenta: #e779cf;
30 --btn-bg: linear-gradient(135deg, #e6c294, #c8a06a);
31 --btn-ink: #140f08;
32 --focus: #c8a06a;
33 --tint-x: rgba(231, 121, 207, .07);
34 --tint-x-line: rgba(231, 121, 207, .38);
35 --aurora-teal: rgba(84, 220, 198, .13);
36 --aurora-indigo: rgba(130, 114, 255, .16);
37 --aurora-brass: rgba(200, 160, 106, .08);
38 /* terminals: the same in both themes */
39 --term-bg: #0e0f18;
40 --term-line: rgba(150, 146, 184, .2);
41 --term-text: #eae8f2;
42 --term-dim: #b3afce;
43 --term-muted: #7f7ca0;
44 --term-a: #c8a06a;
45 --term-b: #54dcc6;
46 --term-c: #8272ff;
47 --term-x: #e779cf;
48 --serif: "Iowan Old Style", Georgia, "Palatino Linotype", Palatino, serif;
49 --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
50 --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
51 --r: 16px;
52 --r-sm: 10px;
53 color-scheme: dark;
54}
55
56@media (prefers-color-scheme: light) {
57 :root {
58 --ground: #f6f4ee;
59 --surface: #fff;
60 --surface-soft: rgba(255, 255, 255, .72);
61 --line: rgba(21, 20, 31, .12);
62 --line-strong: rgba(21, 20, 31, .22);
63 --text: #15141f;
64 --text-dim: #3f3c57;
65 --muted: #5f5b7d;
66 --muted-text: #5f5b7d;
67 --brass: #7d5a1f;
68 --teal: #0b6f61;
69 --indigo: #4b3bd1;
70 --magenta: #a2307f;
71 --g-brass: #a77a3a;
72 --g-teal: #13917f;
73 --g-indigo: #5b4ae6;
74 --g-magenta: #a2307f;
75 --btn-bg: #7d5a1f;
76 --btn-ink: #fff;
77 --focus: #7d5a1f;
78 --tint-x: rgba(162, 48, 127, .05);
79 --tint-x-line: rgba(162, 48, 127, .34);
80 --aurora-teal: rgba(19, 145, 127, .07);
81 --aurora-indigo: rgba(91, 74, 230, .06);
82 --aurora-brass: rgba(167, 122, 58, .05);
83 color-scheme: light;
84 }
85}
86
87/* ------------------------------------------------------------- language */
88/* Both languages are in the page; the one that does not match html[lang]
89 is not shown. Without JavaScript the page is English. */
90html:not([lang="es"]) [data-l="es"],
91html[lang="es"] [data-l="en"] {
92 display: none !important;
93}
94
95/* ------------------------------------------------------------- base */
96*, *::before, *::after { box-sizing: border-box; }
97html {
98 background: var(--ground);
99 -webkit-text-size-adjust: 100%;
100 text-size-adjust: 100%;
101}
102body {
103 margin: 0;
104 min-height: 100vh;
105 color: var(--text);
106 font-family: var(--sans);
107 font-size: 1.06rem;
108 line-height: 1.65;
109 overflow-wrap: break-word;
110}
111body::before {
112 content: "";
113 position: fixed;
114 inset: 0;
115 z-index: -1;
116 pointer-events: none;
117 background:
118 radial-gradient(40% 44% at 10% 4%, var(--aurora-teal), transparent 70%),
119 radial-gradient(44% 46% at 90% 2%, var(--aurora-indigo), transparent 72%),
120 radial-gradient(56% 50% at 28% 104%, var(--aurora-brass), transparent 76%);
121}
122img, svg { max-width: 100%; }
123p, ul, ol, dl, figure, h1, h2, h3, h4, pre { margin: 0; }
124a { color: inherit; text-decoration-color: var(--muted); text-decoration-thickness: 1px; text-underline-offset: .2em; }
125a:hover { text-decoration-color: currentColor; }
126p a, li a, dd a, td a, figcaption a { color: var(--text); }
127code {
128 font-family: var(--mono);
129 font-size: .86em;
130 padding: .08em .32em;
131 border-radius: 6px;
132 background: var(--surface-soft);
133 border: 1px solid var(--line);
134 white-space: nowrap;
135}
136@media (max-width: 640px) {
137 code { white-space: normal; overflow-wrap: anywhere; }
138}
139:focus-visible {
140 outline: 2px solid var(--focus);
141 outline-offset: 3px;
142 border-radius: 4px;
143}
144main:focus { outline: none; }
145::selection { background: rgba(130, 114, 255, .35); }
146
147.sr-only {
148 position: absolute !important;
149 width: 1px;
150 height: 1px;
151 padding: 0;
152 margin: -1px;
153 overflow: hidden;
154 clip: rect(0 0 0 0);
155 white-space: nowrap;
156 border: 0;
157}
158.skip {
159 position: absolute;
160 left: 16px;
161 top: -60px;
162 z-index: 10;
163 padding: 10px 14px;
164 border-radius: var(--r-sm);
165 background: var(--text);
166 color: var(--ground);
167 font-weight: 600;
168 text-decoration: none;
169}
170.skip:focus { top: 12px; }
171
172.wrap {
173 width: 100%;
174 max-width: 1120px;
175 margin-inline: auto;
176 padding-inline: clamp(16px, 4vw, 40px);
177}
178.narrow > * { max-width: 820px; }
179.narrow-left { max-width: 820px; }
180
181/* ------------------------------------------------------------- header */
182.site-head { border-bottom: 1px solid var(--line); }
183.head-row {
184 display: flex;
185 flex-wrap: wrap;
186 align-items: center;
187 gap: 8px 18px;
188 padding-block: 12px;
189}
190.brand {
191 display: inline-flex;
192 align-items: center;
193 gap: 10px;
194 color: var(--text);
195 text-decoration: none;
196 font-family: var(--serif);
197 font-weight: 600;
198 font-size: 1.14rem;
199 letter-spacing: .01em;
200}
201.brand .mark { width: 60px; height: auto; display: block; }
202.mark .sa, .logo .sa { stroke: var(--g-brass); }
203.mark .sb, .logo .sb { stroke: var(--g-teal); }
204.mark .sc, .logo .sc { stroke: var(--g-indigo); }
205.nav { order: 3; width: 100%; }
206.nav ul {
207 display: flex;
208 flex-wrap: wrap;
209 gap: 2px 2px;
210 list-style: none;
211 padding: 0;
212 margin: 0 -10px;
213}
214.nav a {
215 display: inline-block;
216 padding: 6px 10px;
217 border-radius: 8px;
218 color: var(--text-dim);
219 text-decoration: none;
220 font-size: .9rem;
221}
222.nav a:hover { color: var(--text); background: var(--surface-soft); }
223/* on a phone the section links keep to two rows in both languages: GitHub
224 is already a button in the hero and a link in the footer */
225@media (max-width: 539px) {
226 .nav li:last-child { display: none; }
227}
228@media (max-width: 479px) {
229 .nav ul { margin-inline: -6px; }
230 .nav a { padding-inline: 6px; }
231}
232.lang {
233 display: inline-flex;
234 gap: 2px;
235 padding: 3px;
236 border: 1px solid var(--line-strong);
237 border-radius: 999px;
238}
239.lang[hidden] { display: none; }
240.head-row > .lang { margin-left: auto; }
241.lang button {
242 min-width: 40px;
243 min-height: 30px;
244 padding: 5px 10px;
245 border: 0;
246 border-radius: 999px;
247 background: transparent;
248 color: var(--text-dim);
249 font: 600 .74rem/1 var(--mono);
250 letter-spacing: .08em;
251 cursor: pointer;
252}
253.lang button:hover { color: var(--text); }
254.lang button[aria-pressed="true"] { background: var(--text); color: var(--ground); }
255@media (forced-colors: active) {
256 .lang button[aria-pressed="true"] { forced-color-adjust: none; background: Highlight; color: HighlightText; }
257}
258
259@media (min-width: 1180px) {
260 .nav { order: 0; width: auto; margin-left: auto; }
261 .nav ul { margin: 0; }
262 .head-row > .lang { margin-left: 0; }
263}
264
265/* ------------------------------------------------------------- hero */
266.hero { padding-top: clamp(28px, 6vw, 72px); }
267.hero-grid {
268 display: grid;
269 gap: 26px;
270 grid-template-columns: minmax(0, 1fr);
271 grid-template-areas: "logo" "copy" "card";
272}
273.hero-logo { grid-area: logo; }
274.hero-copy { grid-area: copy; }
275.hero-card { grid-area: card; }
276.hero-logo .logo { display: block; width: 100%; max-width: 320px; height: auto; }
277@media (min-width: 900px) {
278 .hero-grid {
279 grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
280 grid-template-areas: "copy logo" "copy card";
281 grid-template-rows: auto 1fr;
282 column-gap: clamp(32px, 5vw, 64px);
283 row-gap: 22px;
284 align-items: start;
285 }
286 .hero-logo .logo { max-width: 460px; margin-inline: auto; }
287 .hero-copy { padding-top: 8px; }
288}
289.eyebrow {
290 font-family: var(--mono);
291 font-size: .74rem;
292 letter-spacing: .2em;
293 text-transform: uppercase;
294 color: var(--brass);
295}
296h1 {
297 margin-top: 14px;
298 font-family: var(--serif);
299 font-weight: 600;
300 font-size: clamp(2.2rem, 6vw, 4rem);
301 line-height: 1.04;
302 letter-spacing: -.01em;
303 text-wrap: balance;
304}
305.nw { white-space: nowrap; }
306.pitch {
307 margin-top: 22px;
308 max-width: 34ch;
309 font-size: clamp(1.18rem, 2.2vw, 1.36rem);
310 line-height: 1.45;
311}
312.sub { margin-top: 14px; max-width: 58ch; color: var(--text-dim); }
313.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
314.btn {
315 display: inline-flex;
316 align-items: center;
317 min-height: 44px;
318 padding: 10px 18px;
319 border: 1px solid var(--line-strong);
320 border-radius: var(--r-sm);
321 background: var(--surface-soft);
322 color: var(--text);
323 font-weight: 600;
324 font-size: .96rem;
325 text-decoration: none;
326}
327.btn:hover { border-color: var(--text-dim); }
328.btn-primary { background: var(--btn-bg); color: var(--btn-ink); border-color: transparent; }
329.btn-primary:hover { border-color: transparent; filter: brightness(1.06); }
330.fine { margin-top: 18px; font-size: .9rem; color: var(--text-dim); }
331.hero-card figcaption {
332 margin-top: 10px;
333 max-width: 60ch;
334 font-size: .9rem;
335 line-height: 1.55;
336 color: var(--text-dim);
337}
338
339/* the strands of the hero logo draw in, once */
340.logo .sa, .logo .sb, .logo .sc { stroke-dasharray: 1 2; stroke-dashoffset: 0; }
341@media (prefers-reduced-motion: no-preference) {
342 .logo .sa, .logo .sb, .logo .sc { animation: draw 1.5s cubic-bezier(.22, .61, .36, 1) both; }
343 .logo .sb { animation-delay: .16s; }
344 .logo .sc { animation-delay: .32s; }
345}
346@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
347
348/* ------------------------------------------------------------- terminals */
349.term {
350 --agent: var(--term-line);
351 position: relative;
352 margin-block: 18px 22px;
353 border: 1px solid var(--term-line);
354 border-left: 3px solid var(--agent);
355 border-radius: 12px;
356 background: var(--term-bg);
357 color: var(--term-dim);
358 overflow: hidden;
359 font-family: var(--mono);
360}
361.term.t-a { --agent: var(--term-a); }
362.term.t-b { --agent: var(--term-b); }
363.term.t-c { --agent: var(--term-c); }
364.term.t-n { --agent: var(--term-muted); }
365.term-hero {
366 margin: 0;
367 border-left-width: 1px;
368 box-shadow: inset 2px 0 0 var(--term-a), inset 4px 0 0 var(--term-b), inset 6px 0 0 var(--term-c);
369}
370.term-bar {
371 display: flex;
372 justify-content: space-between;
373 align-items: center;
374 gap: 12px;
375 min-height: 34px;
376 padding: 6px 14px;
377 border-bottom: 1px solid var(--term-line);
378 color: var(--term-dim);
379 font-size: .76rem;
380 letter-spacing: .02em;
381}
382.term-bar > span:first-child { white-space: nowrap; }
383.term-bar .bar-note { color: var(--term-dim); font-style: italic; text-align: right; text-wrap: balance; }
384.term pre, .code pre {
385 padding: 14px 16px;
386 overflow-x: auto;
387 font-family: var(--mono);
388 font-size: .82rem;
389 line-height: 1.62;
390 white-space: pre;
391 tab-size: 4;
392}
393.term code, .code code, .task code {
394 padding: 0;
395 border: 0;
396 border-radius: 0;
397 background: none;
398 font-size: inherit;
399 white-space: inherit;
400 overflow-wrap: inherit;
401}
402.term-hero pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .8rem; padding: 16px 18px 16px 22px; }
403.term .pr { color: var(--term-muted); }
404.term .cmd { color: var(--term-text); }
405.term .id { color: var(--term-muted); }
406.term .el { color: var(--term-muted); }
407.term .ag-a { color: var(--term-a); }
408.term .ag-b { color: var(--term-b); }
409.term .ag-c { color: var(--term-c); }
410.term .x, .term .x .id { color: var(--term-x); }
411.term .ln-a, .term .ln-a .id { color: var(--term-a); }
412.term .ln-b, .term .ln-b .id { color: var(--term-b); }
413.term .ln-c, .term .ln-c .id { color: var(--term-c); }
414.exit {
415 display: inline-block;
416 padding: 1px 8px;
417 border: 1px solid var(--term-x);
418 border-radius: 999px;
419 color: var(--term-x);
420 font-family: var(--mono);
421 font-size: .72rem;
422 line-height: 1.5;
423 letter-spacing: .04em;
424 white-space: nowrap;
425 vertical-align: 1px;
426}
427.story .term pre { white-space: pre-wrap; overflow-wrap: anywhere; }
428/* blame is columns: it keeps its lines, like the copyable blocks below.
429 On a phone it leaves the ids out, and its bar note says so, and on the
430 narrowest its type is a little smaller, so that every line fits whole */
431.story .term-cols pre { white-space: pre; overflow-wrap: normal; }
432.bn-ids { display: none; }
433@media (max-width: 480px) {
434 .term-blame .bl-id { display: none; }
435 .term-blame .bn-ids { display: inline; }
436}
437@media (max-width: 359px) {
438 .story .term-blame pre { padding-inline: 12px; font-size: .76rem; }
439}
440/* the op log wraps an entry that does not fit under itself, past its
441 number, so what each landing did stays in view. Its lines are inline
442 blocks, not blocks, so its text reads and copies as braid prints it */
443.term-oplog .ol { display: inline-block; width: 100%; padding-left: 4ch; text-indent: -4ch; }
444
445/* copyable blocks and column transcripts keep their exact text and scroll
446 in their own box; site.js marks one that is wider than its box, and the
447 text fades at the edge that has more, so a phone shows that it scrolls */
448.code pre.more-right, .term-cols pre.more-right {
449 -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent);
450 mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent);
451}
452.code pre.more-left, .term-cols pre.more-left {
453 -webkit-mask-image: linear-gradient(to right, transparent, #000 40px);
454 mask-image: linear-gradient(to right, transparent, #000 40px);
455}
456.code pre.more-left.more-right, .term-cols pre.more-left.more-right {
457 -webkit-mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 56px), transparent);
458 mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 56px), transparent);
459}
460.code pre:focus-visible, .term-cols pre:focus-visible { outline-offset: -2px; border-radius: 0 0 11px 11px; }
461@supports selector(:has(*)) {
462 .code:has(> pre:focus-visible), .term-cols:has(> pre:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
463 .code > pre:focus-visible, .term-cols > pre:focus-visible { outline: none; }
464}
465.code {
466 margin-block: 14px 22px;
467 border: 1px solid var(--term-line);
468 border-radius: 12px;
469 background: var(--term-bg);
470 color: var(--term-text);
471 overflow: hidden;
472}
473.code-bar {
474 display: flex;
475 justify-content: space-between;
476 align-items: center;
477 min-height: 38px;
478 padding: 4px 6px 4px 14px;
479 border-bottom: 1px solid var(--term-line);
480 color: var(--term-muted);
481 font: .74rem/1 var(--mono);
482 letter-spacing: .06em;
483}
484.copy {
485 min-height: 30px;
486 padding: 4px 12px;
487 border: 1px solid var(--term-line);
488 border-radius: 8px;
489 background: transparent;
490 color: var(--term-dim);
491 font: 600 .74rem/1 var(--sans);
492 cursor: pointer;
493}
494.copy:hover { color: var(--term-text); border-color: var(--term-dim); }
495.copy:focus-visible { outline-color: #c8a06a; }
496.copy .c-done { display: none; }
497.copy.copied .c-idle { display: none; }
498.copy.copied .c-done { display: inline; }
499.copy.copied { color: var(--term-b); border-color: var(--term-b); }
500
501/* ------------------------------------------------------------- sections */
502.sec { padding-top: clamp(64px, 9vw, 112px); }
503.sec-head { margin-bottom: 22px; }
504.sec-head .eyebrow { margin-bottom: 10px; }
505h2 {
506 font-family: var(--serif);
507 font-weight: 600;
508 font-size: clamp(1.75rem, 3.6vw, 2.5rem);
509 line-height: 1.15;
510 letter-spacing: -.005em;
511 text-wrap: balance;
512}
513h3 {
514 font-family: var(--serif);
515 font-weight: 600;
516 font-size: clamp(1.3rem, 2.4vw, 1.6rem);
517 line-height: 1.25;
518 text-wrap: balance;
519}
520.sec p + p, .sec p + .code, .sec .code + p { margin-top: 14px; }
521.lead { max-width: 66ch; color: var(--text-dim); }
522.note, .after, .licence, .run-note { color: var(--text-dim); font-size: .94rem; }
523
524/* ------------------------------------------------------------- story */
525.chapter {
526 display: grid;
527 grid-template-columns: minmax(0, 1fr);
528 margin-top: clamp(36px, 5vw, 56px);
529}
530.ch-num {
531 font-family: var(--serif);
532 font-weight: 600;
533 font-size: 1.15rem;
534 line-height: 1;
535 color: var(--brass);
536 letter-spacing: .04em;
537 margin-bottom: 8px;
538}
539.ch-main { min-width: 0; max-width: 820px; }
540.ch-main > p { max-width: 66ch; }
541.ch-main > h3 + p { margin-top: 12px; }
542.ch-main > p + p { margin-top: 14px; }
543@media (min-width: 960px) {
544 .chapter { grid-template-columns: 96px minmax(0, 1fr); }
545 .ch-num { font-size: 2.6rem; margin: 0; padding-top: 2px; text-align: left; }
546}
547.ch-x {
548 padding: clamp(18px, 3vw, 30px) clamp(16px, 3vw, 30px) clamp(10px, 2vw, 20px);
549 margin-inline: calc(-1 * clamp(16px, 3vw, 30px));
550 border: 1px solid var(--tint-x-line);
551 border-radius: var(--r);
552 background: var(--tint-x);
553}
554@media (max-width: 640px) {
555 .ch-x { margin-inline: -8px; padding-inline: 8px; }
556}
557.tasks {
558 display: grid;
559 grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
560 gap: 10px;
561 margin-top: 18px;
562 padding: 0;
563 list-style: none;
564}
565.task {
566 border: 1px solid var(--term-line);
567 border-top: 3px solid var(--agent);
568 border-radius: 10px;
569 background: var(--term-bg);
570 color: var(--term-dim);
571 font-family: var(--mono);
572 font-size: .8rem;
573}
574.task.t-a { --agent: var(--term-a); }
575.task.t-b { --agent: var(--term-b); }
576.task.t-c { --agent: var(--term-c); }
577.task-who {
578 display: block;
579 padding: 7px 12px;
580 border-bottom: 1px solid var(--term-line);
581 color: var(--agent);
582 font-size: .74rem;
583}
584.task pre { padding: 10px 12px; font-size: .8rem; line-height: 1.6; white-space: pre-wrap; }
585.task .del, .task .ctx { color: var(--term-muted); }
586.task .add { color: var(--agent); }
587.loop-row { display: grid; gap: 12px; align-items: center; margin-top: 14px; }
588.loop-row p + p { margin-top: 0; }
589.loop-fig { max-width: 420px; justify-self: center; width: 100%; }
590/* equal halves, so the figure keeps room for its labels next to the text */
591@media (min-width: 1000px) {
592 .loop-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
593}
594.gitloop { display: block; width: 100%; height: auto; }
595.gitloop .gl-path { fill: none; stroke: var(--text-dim); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }
596.gitloop .gl-dot { fill: var(--text-dim); }
597.gitloop .gl-dot-x { fill: var(--g-magenta); }
598.gitloop .gl-t { fill: var(--text-dim); font: 17px var(--mono); }
599.gitloop .gl-x { fill: var(--magenta); font: 600 17px var(--mono); }
600.gitloop .gl-ar { fill: var(--text-dim); }
601details.run {
602 margin-top: 24px;
603 border: 1px solid var(--line-strong);
604 border-radius: 12px;
605 background: var(--surface-soft);
606}
607details.run > summary {
608 cursor: pointer;
609 padding: 12px 16px;
610 font-weight: 600;
611 list-style-position: inside;
612}
613details.run[open] > summary { border-bottom: 1px solid var(--line); }
614details.run .code { margin: 12px; }
615
616/* ------------------------------------------------------------- autosync */
617.as-band {
618 padding: clamp(20px, 4vw, 36px);
619 border: 1.5px dashed var(--muted);
620 border-radius: var(--r);
621 background: var(--surface-soft);
622}
623.as-band h2 { margin-top: 12px; font-size: clamp(1.45rem, 3vw, 2rem); }
624.as-band p:not(.pill) { margin-top: 14px; max-width: 66ch; color: var(--text-dim); }
625.pill {
626 display: inline-block;
627 padding: 3px 10px;
628 border: 1px solid var(--line-strong);
629 border-radius: 999px;
630 color: var(--text-dim);
631 font: .72rem/1.5 var(--mono);
632 letter-spacing: .12em;
633 text-transform: uppercase;
634}
635
636/* ------------------------------------------------------------- diagram */
637.diagram {
638 margin-top: 6px;
639 padding: clamp(10px, 2vw, 22px);
640 border: 1px solid var(--line);
641 border-radius: var(--r);
642 background: var(--surface-soft);
643}
644.dgm { display: block; width: 100%; height: auto; }
645.dgm-tall { display: none; max-width: 460px; margin-inline: auto; }
646@media (max-width: 999px) {
647 .dgm-wide { display: none; }
648 .dgm-tall { display: block; }
649}
650@media (max-width: 479px) {
651 .diagram { padding: 6px; }
652}
653.dgm .band { fill: var(--surface-soft); stroke: var(--line-strong); }
654.dgm .card { fill: var(--surface); stroke: var(--line-strong); }
655.dgm .acc-a { fill: var(--g-brass); }
656.dgm .acc-b { fill: var(--g-teal); }
657.dgm .acc-c { fill: var(--g-indigo); }
658.dgm .lb { font-family: var(--sans); }
659.dgm .mono { font-family: var(--mono); }
660.dgm .hi { fill: var(--text); }
661.dgm .dim { fill: var(--text-dim); }
662.dgm .muted { fill: var(--muted-text); }
663.dgm .strong { font-weight: 600; }
664.dgm .t-a { fill: var(--brass); }
665.dgm .t-b { fill: var(--teal); }
666.dgm .t-c { fill: var(--indigo); }
667.dgm .t-x { fill: var(--magenta); }
668.dgm .strand { fill: none; stroke-linecap: round; stroke-linejoin: round; }
669.dgm .st-a { stroke: var(--g-brass); }
670.dgm .st-b { stroke: var(--g-teal); }
671.dgm .st-c { stroke: var(--g-indigo); }
672.dgm .post { fill: var(--muted); }
673.dgm .knot { fill: none; stroke: var(--g-magenta); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; }
674.dgm .loop { fill: none; stroke: var(--g-teal); stroke-width: 2; stroke-dasharray: 5 5; stroke-linecap: round; }
675.dgm .ar { fill: var(--text-dim); }
676.dgm .ar-b { fill: var(--g-teal); }
677.dgm .flow { fill: none; stroke: var(--text-dim); stroke-width: 2; }
678.dgm .box { fill: var(--surface); stroke: var(--line-strong); }
679.dgm .ghost { fill: none; stroke: var(--muted); stroke-dasharray: 6 6; }
680.points {
681 display: grid;
682 gap: 14px;
683 margin-top: 28px;
684 padding-left: 1.4em;
685 max-width: 78ch;
686}
687.points li::marker { color: var(--brass); font-family: var(--serif); font-weight: 600; }
688.points strong { font-weight: 650; }
689.credit { margin-top: 24px; max-width: 72ch; color: var(--text-dim); font-size: .95rem; }
690
691/* ------------------------------------------------------------- agents */
692.grid-title { margin-top: 34px; }
693.contract {
694 display: grid;
695 grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
696 gap: 12px;
697 margin-top: 16px;
698 padding: 0;
699 list-style: none;
700}
701.contract > li {
702 min-width: 0;
703 padding: 16px 18px;
704 border: 1px solid var(--line);
705 border-radius: 12px;
706 background: var(--surface-soft);
707}
708.contract > li.wide { grid-column: 1 / -1; }
709.contract h4 {
710 margin-bottom: 6px;
711 font-family: var(--mono);
712 font-size: .76rem;
713 font-weight: 600;
714 letter-spacing: .12em;
715 text-transform: uppercase;
716 color: var(--brass);
717}
718.contract p { font-size: .95rem; line-height: 1.55; color: var(--text-dim); }
719.contract p code { color: var(--text); }
720.contract .code { margin: 12px 0 2px; }
721
722/* ------------------------------------------------------------- git */
723.rows { margin-top: 22px; border-top: 1px solid var(--line); }
724.row {
725 display: grid;
726 gap: 6px 28px;
727 padding-block: 18px;
728 border-bottom: 1px solid var(--line);
729}
730@media (min-width: 760px) {
731 .row { grid-template-columns: 200px minmax(0, 1fr); }
732}
733.row dt { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; }
734.row dt code { display: block; width: max-content; margin-top: 6px; font-size: .74rem; color: var(--text-dim); }
735.row dd { margin: 0; max-width: 70ch; }
736.row dd ul { padding-left: 1.1em; display: grid; gap: 6px; }
737.licence { margin-top: 6px; max-width: 72ch; }
738.next-link { margin-top: 14px; }
739.next-link a { color: var(--text); font-weight: 600; }
740
741/* ------------------------------------------------------------- measured */
742.method { display: grid; gap: 6px; max-width: 76ch; padding-left: 1.1em; color: var(--text-dim); }
743.ratios-run { margin-top: 26px; }
744.ratios-run > p { max-width: 72ch; }
745.table-wrap { margin-block: 16px 18px; overflow-x: auto; }
746.table-wrap:focus-visible { outline-offset: 2px; }
747table { width: 100%; border-collapse: collapse; font-size: .92rem; line-height: 1.5; }
748th, td { padding: 11px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
749thead th {
750 border-bottom: 1px solid var(--line-strong);
751 color: var(--text-dim);
752 font-family: var(--mono);
753 font-size: .72rem;
754 font-weight: 600;
755 letter-spacing: .1em;
756 text-transform: uppercase;
757}
758tbody tr:hover { background: var(--surface-soft); }
759.ratios td:nth-child(2) {
760 font-family: var(--mono);
761 font-size: 1.05rem;
762 font-weight: 600;
763 white-space: nowrap;
764 min-width: 140px;
765}
766.ratios td:nth-child(3) code { white-space: nowrap; }
767/* long commands in the first column break between tokens; flags stay whole */
768.ratios td:first-child code { white-space: normal; }
769.mk { display: block; position: relative; height: 10px; width: 120px; margin-top: 8px; }
770.mk::before { content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 2px; border-radius: 2px; background: var(--line-strong); }
771.mk-one { position: absolute; top: -1px; width: 2px; height: 12px; margin-left: -1px; background: var(--text-dim); }
772.mk-bar { position: absolute; top: 3px; height: 4px; border-radius: 2px; background: var(--text-dim); opacity: .55; }
773.mk-dot { position: absolute; top: 0; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--text); }
774.mk-legend { margin-top: 22px; font-size: .88rem; color: var(--text-dim); max-width: 72ch; }
775
776.checks td:first-child { width: 42%; color: var(--text); }
777.checks td:last-child { color: var(--text-dim); }
778
779@media (max-width: 860px) {
780 table, thead, tbody, tr, th, td { display: block; }
781 thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
782 tbody tr {
783 margin-bottom: 10px;
784 padding: 12px 14px;
785 border: 1px solid var(--line);
786 border-radius: 12px;
787 background: var(--surface-soft);
788 }
789 tbody tr:hover { background: var(--surface-soft); }
790 td { padding: 3px 0; border: 0; }
791 .checks td:first-child { width: auto; font-weight: 600; }
792 .ratios td:nth-child(2) { padding-top: 8px; }
793 .ratios td:nth-child(3) code { white-space: normal; }
794 html:not([lang="es"]) .ratios td:nth-child(2)::before { content: "braid / git "; }
795 html[lang="es"] .ratios td:nth-child(2)::before { content: "braid / git "; }
796 .ratios td:nth-child(2)::before { font-size: .72rem; font-weight: 400; letter-spacing: .08em; color: var(--text-dim); }
797 html:not([lang="es"]) .ratios td:nth-child(3)::before { content: "Reproduce: "; }
798 html[lang="es"] .ratios td:nth-child(3)::before { content: "Para repetirlo: "; }
799 html:not([lang="es"]) .checks td:last-child::before { content: "How it is checked: "; }
800 html[lang="es"] .checks td:last-child::before { content: "Cómo se comprueba: "; }
801 .ratios td:nth-child(3)::before, .checks td:last-child::before { color: var(--muted-text); font-size: .86rem; }
802}
803
804/* ------------------------------------------------------------- honest */
805.honest { display: grid; gap: 8px; max-width: 78ch; padding-left: 1.1em; }
806.honest li::marker { color: var(--brass); }
807.scion, .credits { margin-top: 18px; max-width: 76ch; color: var(--text-dim); font-size: .95rem; }
808
809/* ------------------------------------------------------------- elffuss */
810.family {
811 display: grid;
812 grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
813 gap: 12px;
814 margin-top: 20px;
815 padding: 0;
816 list-style: none;
817}
818.family a {
819 display: flex;
820 flex-direction: column;
821 gap: 4px;
822 height: 100%;
823 padding: 16px 18px;
824 border: 1px solid var(--line);
825 border-radius: 12px;
826 background: var(--surface-soft);
827 text-decoration: none;
828}
829.family a:hover { border-color: var(--line-strong); }
830.f-name { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; color: var(--text); }
831.f-desc { font-size: .94rem; color: var(--text-dim); line-height: 1.5; }
832.repos-title { margin-top: 30px; font-size: 1.15rem; }
833.repos { display: grid; gap: 8px; margin-top: 12px; padding: 0; list-style: none; color: var(--text-dim); font-size: .95rem; }
834/* underlined like every other link, so the chip alone does not have to say it */
835.repos a { margin-right: 6px; }
836.repos a code { color: var(--text); text-decoration: inherit; text-decoration-color: var(--muted); text-underline-offset: .2em; }
837.repos a:hover code { border-color: var(--line-strong); text-decoration-color: currentColor; }
838
839/* ------------------------------------------------------------- footer */
840.site-foot {
841 margin-top: clamp(72px, 10vw, 120px);
842 padding-block: 28px 40px;
843 border-top: 1px solid var(--line);
844 color: var(--text-dim);
845 font-size: .92rem;
846}
847.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
848.foot-row a { color: var(--text); }
849.foot-row .dot { color: var(--muted); }
850/* the toggle is a control, not one more item: it keeps to the right, and
851 it is what wraps first */
852.foot-row .lang-foot { margin-left: auto; }
853@media (max-width: 539px) {
854 .foot-row { gap: 8px 18px; }
855 .foot-row .dot { display: none; }
856}
857.foot-note { margin-top: 14px; max-width: 76ch; font-size: .86rem; }