Elffuss BraidHub

utopia-ia/elffuss-braid public

2dd40509e7e2 · 28.4 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/* the prompt under "Ask your agent" is a sentence, not a command: it wraps,
474 so that a phone shows all of it */
475.code.prompt pre { white-space: pre-wrap; overflow-wrap: anywhere; }
476.code-bar {
477 display: flex;
478 justify-content: space-between;
479 align-items: center;
480 min-height: 38px;
481 padding: 4px 6px 4px 14px;
482 border-bottom: 1px solid var(--term-line);
483 color: var(--term-muted);
484 font: .74rem/1 var(--mono);
485 letter-spacing: .06em;
486}
487.copy {
488 min-height: 30px;
489 padding: 4px 12px;
490 border: 1px solid var(--term-line);
491 border-radius: 8px;
492 background: transparent;
493 color: var(--term-dim);
494 font: 600 .74rem/1 var(--sans);
495 cursor: pointer;
496}
497.copy:hover { color: var(--term-text); border-color: var(--term-dim); }
498.copy:focus-visible { outline-color: #c8a06a; }
499.copy .c-done { display: none; }
500.copy.copied .c-idle { display: none; }
501.copy.copied .c-done { display: inline; }
502.copy.copied { color: var(--term-b); border-color: var(--term-b); }
503
504/* ------------------------------------------------------------- sections */
505.sec { padding-top: clamp(64px, 9vw, 112px); }
506.sec-head { margin-bottom: 22px; }
507.sec-head .eyebrow { margin-bottom: 10px; }
508h2 {
509 font-family: var(--serif);
510 font-weight: 600;
511 font-size: clamp(1.75rem, 3.6vw, 2.5rem);
512 line-height: 1.15;
513 letter-spacing: -.005em;
514 text-wrap: balance;
515}
516h3 {
517 font-family: var(--serif);
518 font-weight: 600;
519 font-size: clamp(1.3rem, 2.4vw, 1.6rem);
520 line-height: 1.25;
521 text-wrap: balance;
522}
523.sec p + p, .sec p + .code, .sec .code + p { margin-top: 14px; }
524.lead { max-width: 66ch; color: var(--text-dim); }
525.note, .after, .licence, .run-note { color: var(--text-dim); font-size: .94rem; }
526
527/* ------------------------------------------------------------- story */
528.chapter {
529 display: grid;
530 grid-template-columns: minmax(0, 1fr);
531 margin-top: clamp(36px, 5vw, 56px);
532}
533.ch-num {
534 font-family: var(--serif);
535 font-weight: 600;
536 font-size: 1.15rem;
537 line-height: 1;
538 color: var(--brass);
539 letter-spacing: .04em;
540 margin-bottom: 8px;
541}
542.ch-main { min-width: 0; max-width: 820px; }
543.ch-main > p { max-width: 66ch; }
544.ch-main > h3 + p { margin-top: 12px; }
545.ch-main > p + p { margin-top: 14px; }
546@media (min-width: 960px) {
547 .chapter { grid-template-columns: 96px minmax(0, 1fr); }
548 .ch-num { font-size: 2.6rem; margin: 0; padding-top: 2px; text-align: left; }
549}
550.ch-x {
551 padding: clamp(18px, 3vw, 30px) clamp(16px, 3vw, 30px) clamp(10px, 2vw, 20px);
552 margin-inline: calc(-1 * clamp(16px, 3vw, 30px));
553 border: 1px solid var(--tint-x-line);
554 border-radius: var(--r);
555 background: var(--tint-x);
556}
557@media (max-width: 640px) {
558 .ch-x { margin-inline: -8px; padding-inline: 8px; }
559}
560.tasks {
561 display: grid;
562 grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
563 gap: 10px;
564 margin-top: 18px;
565 padding: 0;
566 list-style: none;
567}
568.task {
569 border: 1px solid var(--term-line);
570 border-top: 3px solid var(--agent);
571 border-radius: 10px;
572 background: var(--term-bg);
573 color: var(--term-dim);
574 font-family: var(--mono);
575 font-size: .8rem;
576}
577.task.t-a { --agent: var(--term-a); }
578.task.t-b { --agent: var(--term-b); }
579.task.t-c { --agent: var(--term-c); }
580.task-who {
581 display: block;
582 padding: 7px 12px;
583 border-bottom: 1px solid var(--term-line);
584 color: var(--agent);
585 font-size: .74rem;
586}
587.task pre { padding: 10px 12px; font-size: .8rem; line-height: 1.6; white-space: pre-wrap; }
588.task .del, .task .ctx { color: var(--term-muted); }
589.task .add { color: var(--agent); }
590.loop-row { display: grid; gap: 12px; align-items: center; margin-top: 14px; }
591.loop-row p + p { margin-top: 0; }
592.loop-fig { max-width: 420px; justify-self: center; width: 100%; }
593/* equal halves, so the figure keeps room for its labels next to the text */
594@media (min-width: 1000px) {
595 .loop-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
596}
597.gitloop { display: block; width: 100%; height: auto; }
598.gitloop .gl-path { fill: none; stroke: var(--text-dim); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }
599.gitloop .gl-dot { fill: var(--text-dim); }
600.gitloop .gl-dot-x { fill: var(--g-magenta); }
601.gitloop .gl-t { fill: var(--text-dim); font: 17px var(--mono); }
602.gitloop .gl-x { fill: var(--magenta); font: 600 17px var(--mono); }
603.gitloop .gl-ar { fill: var(--text-dim); }
604details.run {
605 margin-top: 24px;
606 border: 1px solid var(--line-strong);
607 border-radius: 12px;
608 background: var(--surface-soft);
609}
610details.run > summary {
611 cursor: pointer;
612 padding: 12px 16px;
613 font-weight: 600;
614 list-style-position: inside;
615}
616details.run[open] > summary { border-bottom: 1px solid var(--line); }
617details.run .code { margin: 12px; }
618
619/* ------------------------------------------------------------- autosync */
620.as-band {
621 padding: clamp(20px, 4vw, 36px);
622 border: 1.5px dashed var(--muted);
623 border-radius: var(--r);
624 background: var(--surface-soft);
625}
626.as-band h2 { margin-top: 12px; font-size: clamp(1.45rem, 3vw, 2rem); }
627.as-band p:not(.pill) { margin-top: 14px; max-width: 66ch; color: var(--text-dim); }
628.pill {
629 display: inline-block;
630 padding: 3px 10px;
631 border: 1px solid var(--line-strong);
632 border-radius: 999px;
633 color: var(--text-dim);
634 font: .72rem/1.5 var(--mono);
635 letter-spacing: .12em;
636 text-transform: uppercase;
637}
638
639/* ------------------------------------------------------------- diagram */
640.diagram {
641 margin-top: 6px;
642 padding: clamp(10px, 2vw, 22px);
643 border: 1px solid var(--line);
644 border-radius: var(--r);
645 background: var(--surface-soft);
646}
647.dgm { display: block; width: 100%; height: auto; }
648.dgm-tall { display: none; max-width: 460px; margin-inline: auto; }
649@media (max-width: 999px) {
650 .dgm-wide { display: none; }
651 .dgm-tall { display: block; }
652}
653@media (max-width: 479px) {
654 .diagram { padding: 6px; }
655}
656.dgm .band { fill: var(--surface-soft); stroke: var(--line-strong); }
657.dgm .card { fill: var(--surface); stroke: var(--line-strong); }
658.dgm .acc-a { fill: var(--g-brass); }
659.dgm .acc-b { fill: var(--g-teal); }
660.dgm .acc-c { fill: var(--g-indigo); }
661.dgm .lb { font-family: var(--sans); }
662.dgm .mono { font-family: var(--mono); }
663.dgm .hi { fill: var(--text); }
664.dgm .dim { fill: var(--text-dim); }
665.dgm .muted { fill: var(--muted-text); }
666.dgm .strong { font-weight: 600; }
667.dgm .t-a { fill: var(--brass); }
668.dgm .t-b { fill: var(--teal); }
669.dgm .t-c { fill: var(--indigo); }
670.dgm .t-x { fill: var(--magenta); }
671.dgm .strand { fill: none; stroke-linecap: round; stroke-linejoin: round; }
672.dgm .st-a { stroke: var(--g-brass); }
673.dgm .st-b { stroke: var(--g-teal); }
674.dgm .st-c { stroke: var(--g-indigo); }
675.dgm .post { fill: var(--muted); }
676.dgm .knot { fill: none; stroke: var(--g-magenta); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; }
677.dgm .loop { fill: none; stroke: var(--g-teal); stroke-width: 2; stroke-dasharray: 5 5; stroke-linecap: round; }
678.dgm .ar { fill: var(--text-dim); }
679.dgm .ar-b { fill: var(--g-teal); }
680.dgm .flow { fill: none; stroke: var(--text-dim); stroke-width: 2; }
681.dgm .box { fill: var(--surface); stroke: var(--line-strong); }
682.dgm .ghost { fill: none; stroke: var(--muted); stroke-dasharray: 6 6; }
683.points {
684 display: grid;
685 gap: 14px;
686 margin-top: 28px;
687 padding-left: 1.4em;
688 max-width: 78ch;
689}
690.points li::marker { color: var(--brass); font-family: var(--serif); font-weight: 600; }
691.points strong { font-weight: 650; }
692.credit { margin-top: 24px; max-width: 72ch; color: var(--text-dim); font-size: .95rem; }
693
694/* ------------------------------------------------------------- agents */
695.grid-title { margin-top: 34px; }
696.contract {
697 display: grid;
698 grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
699 gap: 12px;
700 margin-top: 16px;
701 padding: 0;
702 list-style: none;
703}
704.contract > li {
705 min-width: 0;
706 padding: 16px 18px;
707 border: 1px solid var(--line);
708 border-radius: 12px;
709 background: var(--surface-soft);
710}
711.contract > li.wide { grid-column: 1 / -1; }
712.contract h4 {
713 margin-bottom: 6px;
714 font-family: var(--mono);
715 font-size: .76rem;
716 font-weight: 600;
717 letter-spacing: .12em;
718 text-transform: uppercase;
719 color: var(--brass);
720}
721.contract p { font-size: .95rem; line-height: 1.55; color: var(--text-dim); }
722.contract p code { color: var(--text); }
723.contract .code { margin: 12px 0 2px; }
724
725/* ------------------------------------------------------------- git */
726.rows { margin-top: 22px; border-top: 1px solid var(--line); }
727.row {
728 display: grid;
729 gap: 6px 28px;
730 padding-block: 18px;
731 border-bottom: 1px solid var(--line);
732}
733@media (min-width: 760px) {
734 .row { grid-template-columns: 200px minmax(0, 1fr); }
735}
736.row dt { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; }
737.row dt code { display: block; width: max-content; margin-top: 6px; font-size: .74rem; color: var(--text-dim); }
738.row dd { margin: 0; max-width: 70ch; }
739.row dd ul { padding-left: 1.1em; display: grid; gap: 6px; }
740.licence { margin-top: 6px; max-width: 72ch; }
741.next-link { margin-top: 14px; }
742.next-link a { color: var(--text); font-weight: 600; }
743
744/* ------------------------------------------------------------- measured */
745.method { display: grid; gap: 6px; max-width: 76ch; padding-left: 1.1em; color: var(--text-dim); }
746.ratios-run { margin-top: 26px; }
747.ratios-run > p { max-width: 72ch; }
748.table-wrap { margin-block: 16px 18px; overflow-x: auto; }
749.table-wrap:focus-visible { outline-offset: 2px; }
750table { width: 100%; border-collapse: collapse; font-size: .92rem; line-height: 1.5; }
751th, td { padding: 11px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
752thead th {
753 border-bottom: 1px solid var(--line-strong);
754 color: var(--text-dim);
755 font-family: var(--mono);
756 font-size: .72rem;
757 font-weight: 600;
758 letter-spacing: .1em;
759 text-transform: uppercase;
760}
761tbody tr:hover { background: var(--surface-soft); }
762.ratios td:nth-child(2) {
763 font-family: var(--mono);
764 font-size: 1.05rem;
765 font-weight: 600;
766 white-space: nowrap;
767 min-width: 140px;
768}
769.ratios td:nth-child(3) code { white-space: nowrap; }
770/* long commands in the first column break between tokens; flags stay whole */
771.ratios td:first-child code { white-space: normal; }
772.mk { display: block; position: relative; height: 10px; width: 120px; margin-top: 8px; }
773.mk::before { content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 2px; border-radius: 2px; background: var(--line-strong); }
774.mk-one { position: absolute; top: -1px; width: 2px; height: 12px; margin-left: -1px; background: var(--text-dim); }
775.mk-bar { position: absolute; top: 3px; height: 4px; border-radius: 2px; background: var(--text-dim); opacity: .55; }
776.mk-dot { position: absolute; top: 0; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--text); }
777.mk-legend { margin-top: 22px; font-size: .88rem; color: var(--text-dim); max-width: 72ch; }
778
779.checks td:first-child { width: 42%; color: var(--text); }
780.checks td:last-child { color: var(--text-dim); }
781
782@media (max-width: 860px) {
783 table, thead, tbody, tr, th, td { display: block; }
784 thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
785 tbody tr {
786 margin-bottom: 10px;
787 padding: 12px 14px;
788 border: 1px solid var(--line);
789 border-radius: 12px;
790 background: var(--surface-soft);
791 }
792 tbody tr:hover { background: var(--surface-soft); }
793 td { padding: 3px 0; border: 0; }
794 .checks td:first-child { width: auto; font-weight: 600; }
795 .ratios td:nth-child(2) { padding-top: 8px; }
796 .ratios td:nth-child(3) code { white-space: normal; }
797 html:not([lang="es"]) .ratios td:nth-child(2)::before { content: "braid / git "; }
798 html[lang="es"] .ratios td:nth-child(2)::before { content: "braid / git "; }
799 .ratios td:nth-child(2)::before { font-size: .72rem; font-weight: 400; letter-spacing: .08em; color: var(--text-dim); }
800 html:not([lang="es"]) .ratios td:nth-child(3)::before { content: "Reproduce: "; }
801 html[lang="es"] .ratios td:nth-child(3)::before { content: "Para repetirlo: "; }
802 html:not([lang="es"]) .checks td:last-child::before { content: "How it is checked: "; }
803 html[lang="es"] .checks td:last-child::before { content: "Cómo se comprueba: "; }
804 .ratios td:nth-child(3)::before, .checks td:last-child::before { color: var(--muted-text); font-size: .86rem; }
805}
806
807/* ------------------------------------------------------------- honest */
808.honest { display: grid; gap: 8px; max-width: 78ch; padding-left: 1.1em; }
809.honest li::marker { color: var(--brass); }
810.scion, .credits { margin-top: 18px; max-width: 76ch; color: var(--text-dim); font-size: .95rem; }
811
812/* ------------------------------------------------------------- elffuss */
813.family {
814 display: grid;
815 grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
816 gap: 12px;
817 margin-top: 20px;
818 padding: 0;
819 list-style: none;
820}
821.family a {
822 display: flex;
823 flex-direction: column;
824 gap: 4px;
825 height: 100%;
826 padding: 16px 18px;
827 border: 1px solid var(--line);
828 border-radius: 12px;
829 background: var(--surface-soft);
830 text-decoration: none;
831}
832.family a:hover { border-color: var(--line-strong); }
833.f-name { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; color: var(--text); }
834.f-desc { font-size: .94rem; color: var(--text-dim); line-height: 1.5; }
835.repos-title { margin-top: 30px; font-size: 1.15rem; }
836.repos { display: grid; gap: 8px; margin-top: 12px; padding: 0; list-style: none; color: var(--text-dim); font-size: .95rem; }
837/* underlined like every other link, so the chip alone does not have to say it */
838.repos a { margin-right: 6px; }
839.repos a code { color: var(--text); text-decoration: inherit; text-decoration-color: var(--muted); text-underline-offset: .2em; }
840.repos a:hover code { border-color: var(--line-strong); text-decoration-color: currentColor; }
841
842/* ------------------------------------------------------------- footer */
843.site-foot {
844 margin-top: clamp(72px, 10vw, 120px);
845 padding-block: 28px 40px;
846 border-top: 1px solid var(--line);
847 color: var(--text-dim);
848 font-size: .92rem;
849}
850.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
851.foot-row a { color: var(--text); }
852.foot-row .dot { color: var(--muted); }
853/* the toggle is a control, not one more item: it keeps to the right, and
854 it is what wraps first */
855.foot-row .lang-foot { margin-left: auto; }
856@media (max-width: 539px) {
857 .foot-row { gap: 8px 18px; }
858 .foot-row .dot { display: none; }
859}
860.foot-note { margin-top: 14px; max-width: 76ch; font-size: .86rem; }