vivac 0.6.5

Provenance tree for work: every node knows which node it was born from
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
/* `WEB.md` ยง5: one binary, no build step. This is embedded with `include_str!`
   and inlined into a <style>, because the CSP admits `style-src 'unsafe-inline'`
   and no external stylesheet at all. It lives in its own file rather than in a
   `format!` because nobody maintains two hundred lines of CSS inside a string
   literal.

   Nothing here is the only thing carrying a meaning. The DX pillar says meaning
   is never encoded in colour alone, so every state that matters is also a word
   and a position: colour repeats what the text already said, and a reader with
   no colour at all loses nothing. */

:root {
  --ink: #16181d;
  --ink-soft: #5c626e;
  --ink-faint: #878d99;
  --ground: #fbfaf8;
  --panel: #ffffff;
  --rule: #e2e0db;
  --rule-soft: #eeece8;
  --accent: #2f5d50;
  --warn: #8a4b1f;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "JetBrains Mono", Menlo,
    Consolas, monospace;
  --prose: ui-sans-serif, system-ui, "Segoe UI", Inter, Helvetica, Arial,
    sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e6e5e1;
    --ink-soft: #a2a7b2;
    --ink-faint: #767c88;
    --ground: #14161a;
    --panel: #1b1e23;
    --rule: #2c3037;
    --rule-soft: #23272d;
    --accent: #7fbfa9;
    --warn: #d79a63;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 2.5rem 1.5rem 5rem;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--prose);
  font-size: 15px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

.page {
  max-width: 54rem;
  margin: 0 auto;
}

/* ---- masthead ------------------------------------------------------- */

header {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1.1rem;
  margin-bottom: 2.2rem;
}

header h1 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

header .promise {
  margin: 0.3rem 0 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

/* ---- sections ------------------------------------------------------- */

section {
  margin-bottom: 2.6rem;
}

section > h2 {
  margin: 0 0 0.2rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink-soft);
}

section > .since {
  margin: 0 0 1rem;
  color: var(--ink-faint);
  font-size: 0.85rem;
}

section > h3 {
  margin: 1.4rem 0 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.empty {
  margin: 0;
  color: var(--ink-soft);
  font-style: italic;
}

/* ---- node lists ----------------------------------------------------- */

ul.nodes {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule-soft);
}

ul.nodes > li {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0 0.9rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--rule-soft);
}

.alias {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--ink-soft);
  padding-top: 0.13rem;
}

.title {
  margin: 0;
}

.note {
  margin: 0.2rem 0 0;
  grid-column: 2;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

/* The word does the work; the rule beside it is a second cue, not the
   first one. */
.note.forced,
.note.flag {
  border-left: 2px solid var(--warn);
  padding-left: 0.55rem;
}

.word {
  font-family: var(--mono);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}

/* ---- the stack ------------------------------------------------------ */

ol.stack {
  list-style: none;
  margin: 0;
  padding: 0;
}

ol.stack > li {
  padding: 0.3rem 0 0.3rem 0;
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0 0.9rem;
}

ol.stack > li .title {
  border-left: 1px solid var(--rule);
  padding-left: 0.9rem;
}

ol.stack > li.here .title {
  border-left: 2px solid var(--accent);
  font-weight: 600;
}

ol.stack > li.here .here-mark {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-left: 0.5rem;
}

/* ---- the index of projects ------------------------------------------ */

ul.projects {
  list-style: none;
  margin: 0;
  padding: 0;
}

ul.projects > li {
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--rule-soft);
}

a {
  color: var(--accent);
  text-underline-offset: 0.15em;
}

a:focus-visible,
a:hover {
  text-decoration-thickness: 2px;
}

/* ---- footer --------------------------------------------------------- */

footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  color: var(--ink-faint);
  font-size: 0.82rem;
}

footer code {
  font-family: var(--mono);
}

/* ---- the spine (WEB.md 3.2) ----------------------------------------- */

/* The lineage is drawn with a border and a knot, not with SVG: seven rows
   do not need a drawing surface, the text stays selectable and copyable,
   and nothing has to be measured in JS. `d187`. */

header .crumb {
  margin: 0 0 0.4rem;
  font-size: 0.85rem;
}

/* The way onward, not the way back: it hangs under the promise, so it
   carries its margin on the other side. */
header .onward {
  margin: 0.55rem 0 0;
  font-size: 0.85rem;
}

ol.spine {
  list-style: none;
  margin: 0;
  padding: 0;
}

ol.spine > li {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0 0.9rem;
}

ol.spine > li > .alias {
  padding-top: 0.1rem;
}

ol.spine > li > .what {
  position: relative;
  border-left: 1px solid var(--rule);
  padding: 0 0 1.6rem 1.2rem;
}

/* The line stops at the last step: it is the end of the path, not a
   thread that keeps going. */
ol.spine > li:last-child > .what {
  border-left-color: transparent;
  padding-bottom: 0;
}

/* The knot. A step is a point on the line, and the point is a shape and a
   position before it is a tone. */
ol.spine > li > .what::before {
  content: "";
  position: absolute;
  left: -0.29rem;
  top: 0.42rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--ground);
  border: 1px solid var(--rule);
}

ol.spine > li.here > .what::before {
  background: var(--accent);
  border-color: var(--accent);
  width: 0.62rem;
  height: 0.62rem;
  left: -0.35rem;
}

ol.spine > li.here .title {
  font-weight: 600;
}

ol.spine .title {
  margin: 0;
}

/* The always-visible facts: what this step is, what state it is in, when
   it opened, and how much is still open underneath. Every one of them is a
   word or a number; none of them is only a colour. */
.facts {
  margin: 0.25rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.75rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.facts .when,
.facts .anchor {
  font-family: var(--mono);
  font-size: 0.78rem;
}

.count {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink-faint);
}

/* The weight of a step is its summary, so the click lands where the
   weight is. A step with nothing under it gets no triangle at all. */
ol.spine details {
  margin: 0.3rem 0 0;
}

ol.spine summary {
  cursor: pointer;
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.75rem;
  padding: 0.1rem 0;
  color: var(--ink-soft);
}

ol.spine summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

ol.spine summary .count {
  color: var(--accent);
}

ol.spine .detail {
  padding: 0.2rem 0 0.4rem;
}

ol.spine .detail h3 {
  margin: 0.7rem 0 0.3rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink-faint);
}

ol.spine .detail ul.nodes > li {
  grid-template-columns: 3.6rem 1fr;
  padding: 0.35rem 0;
}

/* ---- the global graph (WEB.md 3.6) ----------------------------------- */

/* A row only exists for a node with at least one child; a leaf is only
   ever a tile, in its parent's comb. Nesting reads as indentation, the
   same idiom the spine above uses for depth. `d194`. */

ol.rows {
  list-style: none;
  margin: 0;
  padding: 0;
}

li.row {
  margin: 0 0 1.1rem;
}

li.row .alias {
  margin-right: 0.6rem;
}

li.row .title {
  display: inline;
  margin: 0;
  color: var(--ink-soft);
}

/* `d196`: each block is a disclosure, open by default -- the idiom `d187`
   already fixed for the lineage, same triangle and all. */
li.row > details {
  margin: 0;
}

li.row > details > summary {
  cursor: pointer;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 0.6rem;
}

li.row > details > summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* The fan-out is always in the markup and only ever hidden by CSS: while
   the block is open the comb already shows it, so `d194` still applies;
   the moment the reader closes it, this is what is left of the shape,
   which is `d187`'s argument for its own counts. */
li.row > details[open] > summary .count {
  display: none;
}

li.row > details > ol.rows {
  margin: 0.7rem 0 0;
  padding-left: 1.2rem;
  border-left: 1px solid var(--rule);
}

/* The comb: one tile per direct child, in tree order. Its width carries
   the fan-out -- nothing here counts it into a number. */
.comb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin: 0.4rem 0 0;
}

.tile {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border: 1px solid var(--rule);
  border-radius: 0.25rem;
  background: var(--panel);
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.76rem;
  text-decoration: none;
}

.tile:hover,
.tile:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

/* Meaning is never colour alone: closed strikes through and parked dashes
   the border and italicises, and both also spell the state as a word in
   `title` (DX pillar). */
.tile.closed {
  text-decoration: line-through;
}

.tile.parked {
  border-style: dashed;
  font-style: italic;
}