Elffuss BraidHub

utopia-ia/elffuss-braid public

main · 30.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/* sign up: a compact primary button next to the language toggle, from 480px
259 up; narrower, the brand and the toggle fill the row, and the hero's button
260 comes first under the header, with what it does */
261.head-row > .btn-head {
262 min-height: 34px;
263 margin-left: auto;
264 padding: 5px 14px;
265 font-size: .86rem;
266 white-space: nowrap;
267}
268@media (min-width: 480px) {
269 .head-row > .lang { margin-left: 0; }
270}
271@media (max-width: 479px) {
272 .head-row > .btn-head { display: none; }
273}
274/* the narrowest phones keep the brand and the toggle on one row */
275@media (max-width: 359px) {
276 .head-row { column-gap: 12px; }
277 .brand .mark { width: 50px; }
278}
279
280/* from 1180px the header is one row: the brand, the section links, the
281 sign-up button and the toggle. The links are closer together there, so
282 that the row holds them in Spanish too */
283@media (min-width: 1180px) {
284 .head-row { column-gap: 12px; }
285 .nav { order: 0; width: auto; margin-left: auto; }
286 .nav ul { margin: 0; }
287 .nav a { padding-inline: 5px; font-size: .86rem; }
288 .head-row > .btn-head { margin-left: 0; }
289 .head-row > .lang { margin-left: 0; }
290}
291
292/* ------------------------------------------------------------- hero */
293.hero { padding-top: clamp(28px, 6vw, 72px); }
294.hero-grid {
295 display: grid;
296 gap: 26px;
297 grid-template-columns: minmax(0, 1fr);
298 grid-template-areas: "logo" "copy" "card";
299}
300.hero-logo { grid-area: logo; }
301.hero-copy { grid-area: copy; }
302.hero-card { grid-area: card; }
303.hero-logo .logo { display: block; width: 100%; max-width: 320px; height: auto; }
304@media (min-width: 900px) {
305 .hero-grid {
306 grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
307 grid-template-areas: "copy logo" "copy card";
308 grid-template-rows: auto 1fr;
309 column-gap: clamp(32px, 5vw, 64px);
310 row-gap: 22px;
311 align-items: start;
312 }
313 .hero-logo .logo { max-width: 460px; margin-inline: auto; }
314 .hero-copy { padding-top: 8px; }
315}
316.eyebrow {
317 font-family: var(--mono);
318 font-size: .74rem;
319 letter-spacing: .2em;
320 text-transform: uppercase;
321 color: var(--brass);
322}
323h1 {
324 margin-top: 14px;
325 font-family: var(--serif);
326 font-weight: 600;
327 font-size: clamp(2.2rem, 6vw, 4rem);
328 line-height: 1.04;
329 letter-spacing: -.01em;
330 text-wrap: balance;
331}
332.nw { white-space: nowrap; }
333.pitch {
334 margin-top: 22px;
335 max-width: 34ch;
336 font-size: clamp(1.18rem, 2.2vw, 1.36rem);
337 line-height: 1.45;
338}
339.sub { margin-top: 14px; max-width: 58ch; color: var(--text-dim); }
340.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
341.btn {
342 display: inline-flex;
343 align-items: center;
344 min-height: 44px;
345 padding: 10px 18px;
346 border: 1px solid var(--line-strong);
347 border-radius: var(--r-sm);
348 background: var(--surface-soft);
349 color: var(--text);
350 font-weight: 600;
351 font-size: .96rem;
352 text-decoration: none;
353}
354.btn:hover { border-color: var(--text-dim); }
355.btn-primary { background: var(--btn-bg); color: var(--btn-ink); border-color: transparent; }
356.btn-primary:hover { border-color: transparent; filter: brightness(1.06); }
357/* the hero's sign-up button, with one line under it that says what happens */
358.signup { margin-top: 26px; }
359.signup-note { margin-top: 10px; max-width: 48ch; font-size: .9rem; line-height: 1.55; color: var(--text-dim); }
360.signup + .cta { margin-top: 18px; }
361.fine { margin-top: 18px; font-size: .9rem; color: var(--text-dim); }
362.hero-card figcaption {
363 margin-top: 10px;
364 max-width: 60ch;
365 font-size: .9rem;
366 line-height: 1.55;
367 color: var(--text-dim);
368}
369
370/* the strands of the hero logo draw in, once */
371.logo .sa, .logo .sb, .logo .sc { stroke-dasharray: 1 2; stroke-dashoffset: 0; }
372@media (prefers-reduced-motion: no-preference) {
373 .logo .sa, .logo .sb, .logo .sc { animation: draw 1.5s cubic-bezier(.22, .61, .36, 1) both; }
374 .logo .sb { animation-delay: .16s; }
375 .logo .sc { animation-delay: .32s; }
376}
377@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
378
379/* ------------------------------------------------------------- terminals */
380.term {
381 --agent: var(--term-line);
382 position: relative;
383 margin-block: 18px 22px;
384 border: 1px solid var(--term-line);
385 border-left: 3px solid var(--agent);
386 border-radius: 12px;
387 background: var(--term-bg);
388 color: var(--term-dim);
389 overflow: hidden;
390 font-family: var(--mono);
391}
392.term.t-a { --agent: var(--term-a); }
393.term.t-b { --agent: var(--term-b); }
394.term.t-c { --agent: var(--term-c); }
395.term.t-n { --agent: var(--term-muted); }
396.term-hero {
397 margin: 0;
398 border-left-width: 1px;
399 box-shadow: inset 2px 0 0 var(--term-a), inset 4px 0 0 var(--term-b), inset 6px 0 0 var(--term-c);
400}
401.term-bar {
402 display: flex;
403 justify-content: space-between;
404 align-items: center;
405 gap: 12px;
406 min-height: 34px;
407 padding: 6px 14px;
408 border-bottom: 1px solid var(--term-line);
409 color: var(--term-dim);
410 font-size: .76rem;
411 letter-spacing: .02em;
412}
413.term-bar > span:first-child { white-space: nowrap; }
414.term-bar .bar-note { color: var(--term-dim); font-style: italic; text-align: right; text-wrap: balance; }
415.term pre, .code pre {
416 padding: 14px 16px;
417 overflow-x: auto;
418 font-family: var(--mono);
419 font-size: .82rem;
420 line-height: 1.62;
421 white-space: pre;
422 tab-size: 4;
423}
424.term code, .code code, .task code {
425 padding: 0;
426 border: 0;
427 border-radius: 0;
428 background: none;
429 font-size: inherit;
430 white-space: inherit;
431 overflow-wrap: inherit;
432}
433.term-hero pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .8rem; padding: 16px 18px 16px 22px; }
434.term .pr { color: var(--term-muted); }
435.term .cmd { color: var(--term-text); }
436.term .id { color: var(--term-muted); }
437.term .el { color: var(--term-muted); }
438.term .ag-a { color: var(--term-a); }
439.term .ag-b { color: var(--term-b); }
440.term .ag-c { color: var(--term-c); }
441.term .x, .term .x .id { color: var(--term-x); }
442.term .ln-a, .term .ln-a .id { color: var(--term-a); }
443.term .ln-b, .term .ln-b .id { color: var(--term-b); }
444.term .ln-c, .term .ln-c .id { color: var(--term-c); }
445.exit {
446 display: inline-block;
447 padding: 1px 8px;
448 border: 1px solid var(--term-x);
449 border-radius: 999px;
450 color: var(--term-x);
451 font-family: var(--mono);
452 font-size: .72rem;
453 line-height: 1.5;
454 letter-spacing: .04em;
455 white-space: nowrap;
456 vertical-align: 1px;
457}
458.story .term pre { white-space: pre-wrap; overflow-wrap: anywhere; }
459/* blame is columns: it keeps its lines, like the copyable blocks below.
460 On a phone it leaves the ids out, and its bar note says so, and on the
461 narrowest its type is a little smaller, so that every line fits whole */
462.story .term-cols pre { white-space: pre; overflow-wrap: normal; }
463.bn-ids { display: none; }
464@media (max-width: 480px) {
465 .term-blame .bl-id { display: none; }
466 .term-blame .bn-ids { display: inline; }
467}
468@media (max-width: 359px) {
469 .story .term-blame pre { padding-inline: 12px; font-size: .76rem; }
470}
471/* the op log wraps an entry that does not fit under itself, past its
472 number, so what each landing did stays in view. Its lines are inline
473 blocks, not blocks, so its text reads and copies as braid prints it */
474.term-oplog .ol { display: inline-block; width: 100%; padding-left: 4ch; text-indent: -4ch; }
475
476/* copyable blocks and column transcripts keep their exact text and scroll
477 in their own box; site.js marks one that is wider than its box, and the
478 text fades at the edge that has more, so a phone shows that it scrolls */
479.code pre.more-right, .term-cols pre.more-right {
480 -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent);
481 mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent);
482}
483.code pre.more-left, .term-cols pre.more-left {
484 -webkit-mask-image: linear-gradient(to right, transparent, #000 40px);
485 mask-image: linear-gradient(to right, transparent, #000 40px);
486}
487.code pre.more-left.more-right, .term-cols pre.more-left.more-right {
488 -webkit-mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 56px), transparent);
489 mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 56px), transparent);
490}
491.code pre:focus-visible, .term-cols pre:focus-visible { outline-offset: -2px; border-radius: 0 0 11px 11px; }
492@supports selector(:has(*)) {
493 .code:has(> pre:focus-visible), .term-cols:has(> pre:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
494 .code > pre:focus-visible, .term-cols > pre:focus-visible { outline: none; }
495}
496.code {
497 margin-block: 14px 22px;
498 border: 1px solid var(--term-line);
499 border-radius: 12px;
500 background: var(--term-bg);
501 color: var(--term-text);
502 overflow: hidden;
503}
504/* the prompt under "Ask your agent" is a sentence, not a command: it wraps,
505 so that a phone shows all of it */
506.code.prompt pre { white-space: pre-wrap; overflow-wrap: anywhere; }
507.code-bar {
508 display: flex;
509 justify-content: space-between;
510 align-items: center;
511 min-height: 38px;
512 padding: 4px 6px 4px 14px;
513 border-bottom: 1px solid var(--term-line);
514 color: var(--term-muted);
515 font: .74rem/1 var(--mono);
516 letter-spacing: .06em;
517}
518.copy {
519 min-height: 30px;
520 padding: 4px 12px;
521 border: 1px solid var(--term-line);
522 border-radius: 8px;
523 background: transparent;
524 color: var(--term-dim);
525 font: 600 .74rem/1 var(--sans);
526 cursor: pointer;
527}
528.copy:hover { color: var(--term-text); border-color: var(--term-dim); }
529.copy:focus-visible { outline-color: #c8a06a; }
530.copy .c-done { display: none; }
531.copy.copied .c-idle { display: none; }
532.copy.copied .c-done { display: inline; }
533.copy.copied { color: var(--term-b); border-color: var(--term-b); }
534
535/* ------------------------------------------------------------- sections */
536.sec { padding-top: clamp(64px, 9vw, 112px); }
537.sec-head { margin-bottom: 22px; }
538.sec-head .eyebrow { margin-bottom: 10px; }
539h2 {
540 font-family: var(--serif);
541 font-weight: 600;
542 font-size: clamp(1.75rem, 3.6vw, 2.5rem);
543 line-height: 1.15;
544 letter-spacing: -.005em;
545 text-wrap: balance;
546}
547h3 {
548 font-family: var(--serif);
549 font-weight: 600;
550 font-size: clamp(1.3rem, 2.4vw, 1.6rem);
551 line-height: 1.25;
552 text-wrap: balance;
553}
554.sec p + p, .sec p + .code, .sec .code + p { margin-top: 14px; }
555.lead { max-width: 66ch; color: var(--text-dim); }
556.note, .after, .licence, .run-note { color: var(--text-dim); font-size: .94rem; }
557
558/* ------------------------------------------------------------- story */
559.chapter {
560 display: grid;
561 grid-template-columns: minmax(0, 1fr);
562 margin-top: clamp(36px, 5vw, 56px);
563}
564.ch-num {
565 font-family: var(--serif);
566 font-weight: 600;
567 font-size: 1.15rem;
568 line-height: 1;
569 color: var(--brass);
570 letter-spacing: .04em;
571 margin-bottom: 8px;
572}
573.ch-main { min-width: 0; max-width: 820px; }
574.ch-main > p { max-width: 66ch; }
575.ch-main > h3 + p { margin-top: 12px; }
576.ch-main > p + p { margin-top: 14px; }
577@media (min-width: 960px) {
578 .chapter { grid-template-columns: 96px minmax(0, 1fr); }
579 .ch-num { font-size: 2.6rem; margin: 0; padding-top: 2px; text-align: left; }
580}
581.ch-x {
582 padding: clamp(18px, 3vw, 30px) clamp(16px, 3vw, 30px) clamp(10px, 2vw, 20px);
583 margin-inline: calc(-1 * clamp(16px, 3vw, 30px));
584 border: 1px solid var(--tint-x-line);
585 border-radius: var(--r);
586 background: var(--tint-x);
587}
588@media (max-width: 640px) {
589 .ch-x { margin-inline: -8px; padding-inline: 8px; }
590}
591.tasks {
592 display: grid;
593 grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
594 gap: 10px;
595 margin-top: 18px;
596 padding: 0;
597 list-style: none;
598}
599.task {
600 border: 1px solid var(--term-line);
601 border-top: 3px solid var(--agent);
602 border-radius: 10px;
603 background: var(--term-bg);
604 color: var(--term-dim);
605 font-family: var(--mono);
606 font-size: .8rem;
607}
608.task.t-a { --agent: var(--term-a); }
609.task.t-b { --agent: var(--term-b); }
610.task.t-c { --agent: var(--term-c); }
611.task-who {
612 display: block;
613 padding: 7px 12px;
614 border-bottom: 1px solid var(--term-line);
615 color: var(--agent);
616 font-size: .74rem;
617}
618.task pre { padding: 10px 12px; font-size: .8rem; line-height: 1.6; white-space: pre-wrap; }
619.task .del, .task .ctx { color: var(--term-muted); }
620.task .add { color: var(--agent); }
621.loop-row { display: grid; gap: 12px; align-items: center; margin-top: 14px; }
622.loop-row p + p { margin-top: 0; }
623.loop-fig { max-width: 420px; justify-self: center; width: 100%; }
624/* equal halves, so the figure keeps room for its labels next to the text */
625@media (min-width: 1000px) {
626 .loop-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
627}
628.gitloop { display: block; width: 100%; height: auto; }
629.gitloop .gl-path { fill: none; stroke: var(--text-dim); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }
630.gitloop .gl-dot { fill: var(--text-dim); }
631.gitloop .gl-dot-x { fill: var(--g-magenta); }
632.gitloop .gl-t { fill: var(--text-dim); font: 17px var(--mono); }
633.gitloop .gl-x { fill: var(--magenta); font: 600 17px var(--mono); }
634.gitloop .gl-ar { fill: var(--text-dim); }
635details.run {
636 margin-top: 24px;
637 border: 1px solid var(--line-strong);
638 border-radius: 12px;
639 background: var(--surface-soft);
640}
641details.run > summary {
642 cursor: pointer;
643 padding: 12px 16px;
644 font-weight: 600;
645 list-style-position: inside;
646}
647details.run[open] > summary { border-bottom: 1px solid var(--line); }
648details.run .code { margin: 12px; }
649
650/* ------------------------------------------------------------- autosync */
651.as-band {
652 padding: clamp(20px, 4vw, 36px);
653 border: 1.5px dashed var(--muted);
654 border-radius: var(--r);
655 background: var(--surface-soft);
656}
657.as-band h2 { margin-top: 12px; font-size: clamp(1.45rem, 3vw, 2rem); }
658.as-band p:not(.pill) { margin-top: 14px; max-width: 66ch; color: var(--text-dim); }
659.pill {
660 display: inline-block;
661 padding: 3px 10px;
662 border: 1px solid var(--line-strong);
663 border-radius: 999px;
664 color: var(--text-dim);
665 font: .72rem/1.5 var(--mono);
666 letter-spacing: .12em;
667 text-transform: uppercase;
668}
669
670/* ------------------------------------------------------------- diagram */
671.diagram {
672 margin-top: 6px;
673 padding: clamp(10px, 2vw, 22px);
674 border: 1px solid var(--line);
675 border-radius: var(--r);
676 background: var(--surface-soft);
677}
678.dgm { display: block; width: 100%; height: auto; }
679.dgm-tall { display: none; max-width: 460px; margin-inline: auto; }
680@media (max-width: 999px) {
681 .dgm-wide { display: none; }
682 .dgm-tall { display: block; }
683}
684@media (max-width: 479px) {
685 .diagram { padding: 6px; }
686}
687.dgm .band { fill: var(--surface-soft); stroke: var(--line-strong); }
688.dgm .card { fill: var(--surface); stroke: var(--line-strong); }
689.dgm .acc-a { fill: var(--g-brass); }
690.dgm .acc-b { fill: var(--g-teal); }
691.dgm .acc-c { fill: var(--g-indigo); }
692.dgm .lb { font-family: var(--sans); }
693.dgm .mono { font-family: var(--mono); }
694.dgm .hi { fill: var(--text); }
695.dgm .dim { fill: var(--text-dim); }
696.dgm .muted { fill: var(--muted-text); }
697.dgm .strong { font-weight: 600; }
698.dgm .t-a { fill: var(--brass); }
699.dgm .t-b { fill: var(--teal); }
700.dgm .t-c { fill: var(--indigo); }
701.dgm .t-x { fill: var(--magenta); }
702.dgm .strand { fill: none; stroke-linecap: round; stroke-linejoin: round; }
703.dgm .st-a { stroke: var(--g-brass); }
704.dgm .st-b { stroke: var(--g-teal); }
705.dgm .st-c { stroke: var(--g-indigo); }
706.dgm .post { fill: var(--muted); }
707.dgm .knot { fill: none; stroke: var(--g-magenta); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; }
708.dgm .loop { fill: none; stroke: var(--g-teal); stroke-width: 2; stroke-dasharray: 5 5; stroke-linecap: round; }
709.dgm .ar { fill: var(--text-dim); }
710.dgm .ar-b { fill: var(--g-teal); }
711.dgm .flow { fill: none; stroke: var(--text-dim); stroke-width: 2; }
712.dgm .box { fill: var(--surface); stroke: var(--line-strong); }
713.dgm .ghost { fill: none; stroke: var(--muted); stroke-dasharray: 6 6; }
714.points {
715 display: grid;
716 gap: 14px;
717 margin-top: 28px;
718 padding-left: 1.4em;
719 max-width: 78ch;
720}
721.points li::marker { color: var(--brass); font-family: var(--serif); font-weight: 600; }
722.points strong { font-weight: 650; }
723.credit { margin-top: 24px; max-width: 72ch; color: var(--text-dim); font-size: .95rem; }
724/* the heading over the Scion credit in #how sits close to it, in both languages */
725.grid-title + .credit, .grid-title + .credit + .credit { margin-top: 8px; }
726
727/* ------------------------------------------------------------- agents */
728.grid-title { margin-top: 34px; }
729.contract {
730 display: grid;
731 grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
732 gap: 12px;
733 margin-top: 16px;
734 padding: 0;
735 list-style: none;
736}
737.contract > li {
738 min-width: 0;
739 padding: 16px 18px;
740 border: 1px solid var(--line);
741 border-radius: 12px;
742 background: var(--surface-soft);
743}
744.contract > li.wide { grid-column: 1 / -1; }
745.contract h4 {
746 margin-bottom: 6px;
747 font-family: var(--mono);
748 font-size: .76rem;
749 font-weight: 600;
750 letter-spacing: .12em;
751 text-transform: uppercase;
752 color: var(--brass);
753}
754.contract p { font-size: .95rem; line-height: 1.55; color: var(--text-dim); }
755.contract p code { color: var(--text); }
756.contract .code { margin: 12px 0 2px; }
757
758/* ------------------------------------------------------------- git */
759.rows { margin-top: 22px; border-top: 1px solid var(--line); }
760.row {
761 display: grid;
762 gap: 6px 28px;
763 padding-block: 18px;
764 border-bottom: 1px solid var(--line);
765}
766@media (min-width: 760px) {
767 .row { grid-template-columns: 200px minmax(0, 1fr); }
768}
769.row dt { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; }
770.row dt code { display: block; width: max-content; margin-top: 6px; font-size: .74rem; color: var(--text-dim); }
771.row dd { margin: 0; max-width: 70ch; }
772.row dd ul { padding-left: 1.1em; display: grid; gap: 6px; }
773.licence { margin-top: 6px; max-width: 72ch; }
774.next-link { margin-top: 14px; }
775.next-link a { color: var(--text); font-weight: 600; }
776/* BraidHub: the sign-up button, and the link to the hub beside it */
777.hub-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 22px; }
778.hub-cta .next-link { margin-top: 0; }
779
780/* ------------------------------------------------------------- measured */
781.method { display: grid; gap: 6px; max-width: 76ch; padding-left: 1.1em; color: var(--text-dim); }
782.ratios-run { margin-top: 26px; }
783.ratios-run > p { max-width: 72ch; }
784.table-wrap { margin-block: 16px 18px; overflow-x: auto; }
785.table-wrap:focus-visible { outline-offset: 2px; }
786table { width: 100%; border-collapse: collapse; font-size: .92rem; line-height: 1.5; }
787th, td { padding: 11px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
788thead th {
789 border-bottom: 1px solid var(--line-strong);
790 color: var(--text-dim);
791 font-family: var(--mono);
792 font-size: .72rem;
793 font-weight: 600;
794 letter-spacing: .1em;
795 text-transform: uppercase;
796}
797tbody tr:hover { background: var(--surface-soft); }
798.ratios td:nth-child(2) {
799 font-family: var(--mono);
800 font-size: 1.05rem;
801 font-weight: 600;
802 white-space: nowrap;
803 min-width: 140px;
804}
805.ratios td:nth-child(3) code { white-space: nowrap; }
806/* long commands in the first column break between tokens; flags stay whole */
807.ratios td:first-child code { white-space: normal; }
808.mk { display: block; position: relative; height: 10px; width: 120px; margin-top: 8px; }
809.mk::before { content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 2px; border-radius: 2px; background: var(--line-strong); }
810.mk-one { position: absolute; top: -1px; width: 2px; height: 12px; margin-left: -1px; background: var(--text-dim); }
811.mk-bar { position: absolute; top: 3px; height: 4px; border-radius: 2px; background: var(--text-dim); opacity: .55; }
812.mk-dot { position: absolute; top: 0; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--text); }
813.mk-legend { margin-top: 22px; font-size: .88rem; color: var(--text-dim); max-width: 72ch; }
814
815.checks td:first-child { width: 42%; color: var(--text); }
816.checks td:last-child { color: var(--text-dim); }
817
818@media (max-width: 860px) {
819 table, thead, tbody, tr, th, td { display: block; }
820 thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
821 tbody tr {
822 margin-bottom: 10px;
823 padding: 12px 14px;
824 border: 1px solid var(--line);
825 border-radius: 12px;
826 background: var(--surface-soft);
827 }
828 tbody tr:hover { background: var(--surface-soft); }
829 td { padding: 3px 0; border: 0; }
830 .checks td:first-child { width: auto; font-weight: 600; }
831 .ratios td:nth-child(2) { padding-top: 8px; }
832 .ratios td:nth-child(3) code { white-space: normal; }
833 html:not([lang="es"]) .ratios td:nth-child(2)::before { content: "braid / git "; }
834 html[lang="es"] .ratios td:nth-child(2)::before { content: "braid / git "; }
835 .ratios td:nth-child(2)::before { font-size: .72rem; font-weight: 400; letter-spacing: .08em; color: var(--text-dim); }
836 html:not([lang="es"]) .ratios td:nth-child(3)::before { content: "Reproduce: "; }
837 html[lang="es"] .ratios td:nth-child(3)::before { content: "Para repetirlo: "; }
838 html:not([lang="es"]) .checks td:last-child::before { content: "How it is checked: "; }
839 html[lang="es"] .checks td:last-child::before { content: "Cómo se comprueba: "; }
840 .ratios td:nth-child(3)::before, .checks td:last-child::before { color: var(--muted-text); font-size: .86rem; }
841}
842
843/* ------------------------------------------------------------- honest */
844.honest { display: grid; gap: 8px; max-width: 78ch; padding-left: 1.1em; }
845.honest li::marker { color: var(--brass); }
846.scion, .credits { margin-top: 18px; max-width: 76ch; color: var(--text-dim); font-size: .95rem; }
847
848/* ------------------------------------------------------------- elffuss */
849.family {
850 display: grid;
851 grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
852 gap: 12px;
853 margin-top: 20px;
854 padding: 0;
855 list-style: none;
856}
857.family a {
858 display: flex;
859 flex-direction: column;
860 gap: 4px;
861 height: 100%;
862 padding: 16px 18px;
863 border: 1px solid var(--line);
864 border-radius: 12px;
865 background: var(--surface-soft);
866 text-decoration: none;
867}
868.family a:hover { border-color: var(--line-strong); }
869.f-name { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; color: var(--text); }
870.f-desc { font-size: .94rem; color: var(--text-dim); line-height: 1.5; }
871.repos-title { margin-top: 30px; font-size: 1.15rem; }
872.repos { display: grid; gap: 8px; margin-top: 12px; padding: 0; list-style: none; color: var(--text-dim); font-size: .95rem; }
873/* underlined like every other link, so the chip alone does not have to say it */
874.repos a { margin-right: 6px; }
875.repos a code { color: var(--text); text-decoration: inherit; text-decoration-color: var(--muted); text-underline-offset: .2em; }
876.repos a:hover code { border-color: var(--line-strong); text-decoration-color: currentColor; }
877
878/* ------------------------------------------------------------- footer */
879.site-foot {
880 margin-top: clamp(72px, 10vw, 120px);
881 padding-block: 28px 40px;
882 border-top: 1px solid var(--line);
883 color: var(--text-dim);
884 font-size: .92rem;
885}
886.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
887.foot-row a { color: var(--text); }
888.foot-row .dot { color: var(--muted); }
889/* the toggle is a control, not one more item: it keeps to the right, and
890 it is what wraps first */
891.foot-row .lang-foot { margin-left: auto; }
892@media (max-width: 539px) {
893 .foot-row { gap: 8px 18px; }
894 .foot-row .dot { display: none; }
895}
896.foot-note { margin-top: 14px; max-width: 76ch; font-size: .86rem; }
897
898/* ------------------------------------------------------------- scion.html */
899/* the prior art list, after its lead paragraph */
900.honest.prior { margin-top: 18px; }
901/* the questions: each language is one block of headings and answers */
902.qa h3 { margin-top: 30px; font-size: clamp(1.15rem, 2vw, 1.32rem); }
903.qa h3:first-child { margin-top: 0; }
904.qa h3 + p { margin-top: 8px; }
905.qa p { max-width: 72ch; color: var(--text-dim); }