explainmyrepo 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,833 @@
1
+ /* ============================================================================
2
+ RUV-EXPLAINER — SHARED DESIGN SYSTEM (base stylesheet)
3
+ ----------------------------------------------------------------------------
4
+ ONE skeleton, distilled from the six bespoke example explainers
5
+ (ruvn · ruqu · photonlayer · rufield · agent-harness-generator · agentic-qe).
6
+
7
+ INVARIANTS (this file — identical every site): the responsive skeleton,
8
+ the spacing + fluid-type scales, accessibility (focus, contrast hooks,
9
+ landmarks, reduced-motion, alt-text slots), and every section ARCHETYPE
10
+ mapped to the comprehension arc (ADR-0005 D6).
11
+
12
+ EXPRESSION (per-repo): override ONLY the custom properties in the
13
+ "EXPRESSION KNOBS" block below (see theme-example.css). Never touch the
14
+ skeleton. A repo's whole art direction is ~12 variables.
15
+
16
+ Mobile-first (390 → 1440), dependency-free, WCAG 2.1 AA.
17
+ Updated: 2026-06-28
18
+ ============================================================================ */
19
+
20
+ /* ============================================================================
21
+ 1 · EXPRESSION KNOBS — the ONLY things a per-repo theme overrides
22
+ ----------------------------------------------------------------------------
23
+ Defaults below are a neutral, premium "graphite + electric indigo" identity
24
+ that is deliberately none of the six examples — a clean starting point.
25
+ ============================================================================ */
26
+ :root {
27
+ /* color-scheme drives native form/scrollbar theming; flip to "light" for a
28
+ warm-paper identity like ruvn. */
29
+ color-scheme: dark;
30
+
31
+ /* --- Substrate (page → raised surfaces → hairlines) --- */
32
+ --bg: #0c0d12; /* page floor */
33
+ --bg-2: #101117; /* raised plane / gradient foot */
34
+ --surface: #15161f; /* card / section body */
35
+ --surface-2: #1b1d28; /* card header / inset / hover */
36
+ --ridge: #2a2d3d; /* hairline edges, embossed seams */
37
+
38
+ /* --- Ink (primary → faint). Keep AA contrast vs --surface. --- */
39
+ --ink: #eef0fb; /* primary text (~16:1 on --bg) */
40
+ --ink-2: #c4c8de; /* secondary / body copy (~9:1) */
41
+ --muted: #8e93ad; /* captions, meta (~4.6:1 → AA) */
42
+ --faint: #61667f; /* decorative labels only (NON-text) */
43
+ --on-accent: #0a0a12; /* text that sits ON an accent fill */
44
+
45
+ /* --- Accents (the saturated identity) --- */
46
+ --accent: #8b7bff; /* primary accent */
47
+ --accent-2: #36d6c3; /* secondary accent */
48
+ --accent-3: #ff7bbd; /* tertiary / micro-labels */
49
+ /* The signature gradient. Override to a metaphor: full spectrum, molten
50
+ metal, magenta→violet, etc. Defaults to accent → accent-2. */
51
+ --spectrum: linear-gradient(96deg, var(--accent), var(--accent-2));
52
+
53
+ /* --- Semantic signal (status only — NOT the theme) --- */
54
+ --ok: #56d4a0;
55
+ --warn: #f0b65a;
56
+ --bad: #ff8a9b;
57
+
58
+ /* --- Type personality (display / body / mono). See pairings in the spec. --- */
59
+ --display: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
60
+ --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
61
+ --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
62
+
63
+ /* Display character knobs (foundry caps vs editorial serif both fit). */
64
+ --display-weight: 700;
65
+ --display-case: none; /* set to `uppercase` for an industrial look */
66
+ --display-tracking: -0.015em; /* set positive for condensed caps */
67
+
68
+ /* --- Shape / motion --- */
69
+ --radius: 16px;
70
+ --radius-s: 10px;
71
+ --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
72
+
73
+ /* --- Hero treatment knob: angle of the gradient headline span --- */
74
+ --hero-grad-angle: 96deg;
75
+ }
76
+
77
+ /* ============================================================================
78
+ 2 · INVARIANTS — derived tokens, scales, skeleton (DO NOT override per-repo)
79
+ ============================================================================ */
80
+ :root {
81
+ /* --- Lines + tinted fills, derived from the accent so themes stay cohesive */
82
+ --line: color-mix(in srgb, var(--accent) 20%, transparent);
83
+ --line-strong: color-mix(in srgb, var(--accent) 36%, transparent);
84
+ --fill: color-mix(in srgb, var(--accent) 10%, transparent);
85
+ --fill-2: color-mix(in srgb, var(--accent-2) 12%, transparent);
86
+ --glass: color-mix(in srgb, var(--surface) 62%, transparent);
87
+
88
+ /* --- Depth: soft shadow + emboss seam + accent glow --- */
89
+ --shadow: 0 22px 50px -28px rgba(0,0,0,0.78);
90
+ --shadow-deep: 0 40px 96px -42px rgba(0,0,0,0.88);
91
+ --emboss: inset 0 1px 0 color-mix(in srgb, var(--ink) 7%, transparent),
92
+ inset 0 -1px 0 rgba(0,0,0,0.40);
93
+ --glow: 0 0 0 1px color-mix(in srgb, var(--accent) 28%, transparent),
94
+ 0 16px 44px -18px color-mix(in srgb, var(--accent) 40%, transparent);
95
+
96
+ /* --- Layout rhythm --- */
97
+ --maxw: 1120px;
98
+ --measure: 68ch; /* max line length for body copy */
99
+ --gutter: clamp(1.25rem, 5vw, 3.5rem); /* page side padding 20 → 56px */
100
+
101
+ /* --- Fluid TYPE scale (390 → 1440). One source of truth. --- */
102
+ --step--2: clamp(0.69rem, 0.67rem + 0.11vw, 0.78rem); /* 11 → 12.5 micro labels */
103
+ --step--1: clamp(0.83rem, 0.79rem + 0.18vw, 0.94rem); /* 13 → 15 captions */
104
+ --step-0: clamp(1rem, 0.97rem + 0.16vw, 1.0625rem); /* 16 → 17 body */
105
+ --step-1: clamp(1.15rem, 1.06rem + 0.40vw, 1.35rem); /* 18 → 21.5 lede */
106
+ --step-2: clamp(1.35rem, 1.15rem + 0.85vw, 1.85rem); /* 21 → 30 h3 */
107
+ --step-3: clamp(1.7rem, 1.32rem + 1.62vw, 2.6rem); /* 27 → 42 h2 */
108
+ --step-4: clamp(2.4rem, 1.66rem + 3.15vw, 4.4rem); /* 38 → 70 h1 */
109
+
110
+ /* --- Fluid SPACE scale (t-shirt). Vertical rhythm + section padding. --- */
111
+ --space-2xs: 0.5rem;
112
+ --space-xs: 0.75rem;
113
+ --space-s: 1rem;
114
+ --space-m: 1.5rem;
115
+ --space-l: 2rem;
116
+ --space-xl: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
117
+ --space-2xl: clamp(3rem, 2rem + 4.4vw, 5rem);
118
+ --space-3xl: clamp(4rem, 2.4rem + 7vw, 7.5rem); /* hero / major section rhythm */
119
+ --section-gap: var(--space-l); /* gap between section cards */
120
+
121
+ /* Sticky-header offset for anchored scrolling. */
122
+ --head-h: 64px;
123
+ }
124
+
125
+ /* ============================================================================
126
+ 3 · RESET / BASE
127
+ ============================================================================ */
128
+ *, *::before, *::after { box-sizing: border-box; }
129
+
130
+ html {
131
+ -webkit-text-size-adjust: 100%;
132
+ scroll-behavior: smooth;
133
+ scroll-padding-top: calc(var(--head-h) + 1rem);
134
+ }
135
+
136
+ body {
137
+ margin: 0;
138
+ background: var(--bg);
139
+ color: var(--ink);
140
+ font-family: var(--sans);
141
+ font-size: var(--step-0);
142
+ line-height: 1.65;
143
+ -webkit-font-smoothing: antialiased;
144
+ text-rendering: optimizeLegibility;
145
+ /* Ambient field: two accent radials over a deep vertical gradient. Subtle —
146
+ it should read as light, not decoration. */
147
+ background-image:
148
+ radial-gradient(1100px 620px at 80% -8%,
149
+ color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%),
150
+ radial-gradient(900px 700px at -10% 6%,
151
+ color-mix(in srgb, var(--accent-2) 10%, transparent), transparent 55%),
152
+ linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
153
+ background-attachment: fixed;
154
+ }
155
+
156
+ img, svg, video { max-width: 100%; height: auto; display: block; }
157
+
158
+ a {
159
+ color: var(--accent);
160
+ text-decoration: none;
161
+ transition: color 0.18s var(--ease);
162
+ }
163
+ a:hover { color: var(--accent-2); }
164
+
165
+ /* Accessible focus — visible 2px ring on every interactive element. */
166
+ a:focus-visible,
167
+ button:focus-visible,
168
+ summary:focus-visible,
169
+ [tabindex]:focus-visible,
170
+ .dropzone:focus-visible {
171
+ outline: 2px solid var(--accent-2);
172
+ outline-offset: 3px;
173
+ border-radius: var(--radius-s);
174
+ }
175
+
176
+ ::selection { background: color-mix(in srgb, var(--accent) 32%, transparent); color: var(--ink); }
177
+
178
+ code, kbd, pre, samp { font-family: var(--mono); }
179
+
180
+ /* Skip link — first focusable element; jumps to <main id="top">. */
181
+ .skip-link {
182
+ position: absolute; left: 0; top: 0; z-index: 100;
183
+ transform: translateY(-120%);
184
+ background: var(--accent); color: var(--on-accent);
185
+ font-family: var(--mono); font-size: var(--step--1); font-weight: 600;
186
+ padding: 10px 16px; border-radius: 0 0 var(--radius-s) 0;
187
+ transition: transform 0.18s var(--ease);
188
+ }
189
+ .skip-link:focus { transform: translateY(0); color: var(--on-accent); }
190
+
191
+ /* ============================================================================
192
+ 4 · LAYOUT SHELL + TYPE SYSTEM
193
+ ============================================================================ */
194
+ .wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
195
+
196
+ h1, h2, h3, h4 {
197
+ font-family: var(--display);
198
+ font-weight: var(--display-weight);
199
+ line-height: 1.04;
200
+ letter-spacing: var(--display-tracking);
201
+ text-transform: var(--display-case);
202
+ margin: 0 0 0.5em;
203
+ color: var(--ink);
204
+ text-wrap: balance;
205
+ }
206
+ h1 { font-size: var(--step-4); line-height: 1.01; letter-spacing: calc(var(--display-tracking) - 0.005em); }
207
+ h2 { font-size: var(--step-3); }
208
+ h3 { font-size: var(--step-2); }
209
+ h4 { font-size: var(--step-1); }
210
+
211
+ p { margin: 0 0 1rem; max-width: var(--measure); color: var(--ink-2); text-wrap: pretty; }
212
+
213
+ .eyebrow {
214
+ display: inline-block;
215
+ font-family: var(--mono); font-size: var(--step--2);
216
+ letter-spacing: 0.28em; text-transform: uppercase;
217
+ color: var(--accent-2); font-weight: 500; margin: 0 0 14px;
218
+ }
219
+ .mono { font-family: var(--mono); }
220
+ .lede { font-size: var(--step-1); color: var(--ink); max-width: 64ch; line-height: 1.5; }
221
+ .muted { color: var(--muted); }
222
+ .center { text-align: center; }
223
+
224
+ ol, ul { margin: 0 0 1rem; padding-left: 1.4em; max-width: var(--measure); color: var(--ink-2); }
225
+ li { margin: 0 0 0.55em; }
226
+ li::marker { color: var(--accent); }
227
+ li strong, p strong { color: var(--ink); }
228
+ em { color: var(--ink); font-style: italic; }
229
+
230
+ /* Gradient headline span — the hero's signature flourish. */
231
+ .grad {
232
+ background: var(--spectrum);
233
+ background-size: 100%;
234
+ -webkit-background-clip: text; background-clip: text;
235
+ color: transparent;
236
+ }
237
+
238
+ /* A prismatic / signal hairline motif (optional divider). */
239
+ .spec-line { height: 2px; width: 100%; border: 0; border-radius: 2px; background: var(--spectrum); opacity: 0.9; }
240
+
241
+ /* Inline command / code chip. `overflow-wrap: anywhere` lets a long unbreakable token (e.g.
242
+ `console.log(chalk.blue('Hello`) wrap instead of forcing its container wider than a 390px
243
+ phone — which otherwise overflows the section and clips the right edge of every line. */
244
+ code, .cmd {
245
+ font-family: var(--mono); font-size: 0.86em; color: var(--accent-2);
246
+ background: var(--fill-2);
247
+ border: 1px solid var(--line-strong); border-radius: 6px;
248
+ padding: 0.1em 0.45em;
249
+ overflow-wrap: anywhere;
250
+ }
251
+
252
+ /* Multi-line command / code well. */
253
+ pre.code-block {
254
+ font-family: var(--mono); font-size: var(--step--1); line-height: 1.62;
255
+ color: var(--ink-2); background: var(--bg);
256
+ border: 1px solid var(--line-strong); border-left: 3px solid var(--accent);
257
+ border-radius: var(--radius-s);
258
+ padding: 16px 18px; margin: 0 0 1rem;
259
+ overflow-x: auto; box-shadow: var(--emboss); max-width: 74ch;
260
+ }
261
+ pre.code-block code {
262
+ background: none; border: 0; box-shadow: none; padding: 0;
263
+ font-size: inherit; color: inherit; white-space: pre;
264
+ }
265
+ pre.code-block .c { color: var(--faint); } /* comment */
266
+ pre.code-block .k { color: var(--accent); font-weight: 500; } /* keyword */
267
+ pre.code-block .s { color: var(--accent-2); } /* string/flag */
268
+
269
+ /* Utilities. */
270
+ .visually-hidden {
271
+ position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
272
+ overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
273
+ }
274
+ .kbd {
275
+ font-family: var(--mono); font-size: 0.85em; color: var(--ink-2);
276
+ background: var(--surface-2); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px;
277
+ }
278
+
279
+ /* ============================================================================
280
+ 5 · PROVENANCE / ATTRIBUTION BAND (recurring credit strip — top of page)
281
+ ============================================================================ */
282
+ .prov-banner {
283
+ border-bottom: 1px solid var(--line);
284
+ background: linear-gradient(180deg, var(--glass), transparent);
285
+ backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
286
+ }
287
+ .prov-banner-inner {
288
+ display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
289
+ gap: 10px 26px; padding-block: 9px;
290
+ }
291
+ .prov-attr { margin: 0; max-width: none; font-size: var(--step--1); line-height: 1.5; color: var(--muted); }
292
+ .prov-attr strong { color: var(--ink-2); font-weight: 600; }
293
+ .prov-attr a { color: var(--accent-2); }
294
+ .prov-live {
295
+ margin: 0; flex: 0 0 auto; white-space: nowrap;
296
+ font-family: var(--mono); font-size: var(--step--2); letter-spacing: 0.04em; color: var(--faint);
297
+ display: inline-flex; align-items: center; gap: 8px;
298
+ }
299
+ .prov-live code { color: var(--accent-2); background: var(--fill); padding: 0.08em 0.4em; border: 0; }
300
+ .prov-dot {
301
+ color: var(--accent); font-size: 9px;
302
+ filter: drop-shadow(0 0 5px color-mix(in srgb, var(--accent) 85%, transparent));
303
+ animation: prov-pulse 2.6s var(--ease) infinite;
304
+ }
305
+ @keyframes prov-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.32; } }
306
+
307
+ /* ============================================================================
308
+ 6 · HEADER / NAV (sticky, translucent)
309
+ ============================================================================ */
310
+ .site-head {
311
+ position: sticky; top: 0; z-index: 40;
312
+ background: color-mix(in srgb, var(--bg) 80%, transparent);
313
+ backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
314
+ border-bottom: 1px solid var(--line);
315
+ }
316
+ .site-head .wrap {
317
+ display: flex; align-items: center; justify-content: space-between;
318
+ height: var(--head-h); gap: 18px;
319
+ }
320
+ .brand {
321
+ display: inline-flex; align-items: center; gap: 12px;
322
+ font-family: var(--display); font-weight: var(--display-weight); font-size: 1.2rem;
323
+ letter-spacing: var(--display-tracking); text-transform: var(--display-case); color: var(--ink);
324
+ }
325
+ .brand .logo, .brand svg { width: 28px; height: 28px; flex: none; }
326
+ .nav-links { display: none; gap: 4px; }
327
+ .nav-links a {
328
+ font-family: var(--mono); font-size: var(--step--2); letter-spacing: 0.04em;
329
+ color: var(--muted); padding: 7px 11px; border-radius: 7px;
330
+ transition: color 0.18s var(--ease), background 0.18s var(--ease);
331
+ }
332
+ .nav-links a:hover { color: var(--ink); background: var(--fill); }
333
+
334
+ /* ============================================================================
335
+ 7 · ARCHETYPE — HERO · arc Q: "What world am I in?"
336
+ ============================================================================ */
337
+ .hero { position: relative; overflow: hidden; padding: var(--space-3xl) 0 var(--space-xl); }
338
+ .hero-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-xl); align-items: center; }
339
+
340
+ .hero h1 { margin: 0 0 0.35em; }
341
+ .hero .lede { margin-top: var(--space-m); }
342
+
343
+ /* Attribution lede — quiet credit block under the headline. */
344
+ .attrib-lede {
345
+ margin: var(--space-m) 0 0; max-width: 60ch;
346
+ font-size: var(--step--1); line-height: 1.55; color: var(--ink-2);
347
+ padding: 12px 16px; border-left: 3px solid var(--accent);
348
+ border-radius: 0 var(--radius-s) var(--radius-s) 0; background: var(--fill);
349
+ }
350
+ .attrib-lede strong { color: var(--ink); }
351
+ .attrib-lede a { color: var(--accent-2); }
352
+
353
+ .meta-row {
354
+ display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: var(--space-l);
355
+ font-family: var(--mono); font-size: var(--step--2); color: var(--faint); letter-spacing: 0.04em;
356
+ }
357
+ .meta-row b { color: var(--accent-2); font-weight: 500; }
358
+
359
+ .cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: var(--space-l); }
360
+ .cta {
361
+ display: inline-flex; align-items: center; gap: 9px;
362
+ font-family: var(--display); font-weight: 600; font-size: 1rem; letter-spacing: 0.01em;
363
+ text-transform: var(--display-case);
364
+ color: var(--on-accent);
365
+ background: var(--spectrum); background-size: 140%;
366
+ padding: 13px 24px; border: 1px solid transparent; border-radius: 12px; cursor: pointer;
367
+ box-shadow: var(--glow);
368
+ transition: transform 0.16s var(--ease), filter 0.16s var(--ease);
369
+ }
370
+ .cta:hover { transform: translateY(-2px); filter: brightness(1.07); color: var(--on-accent); }
371
+ .cta.ghost {
372
+ background: transparent; color: var(--ink);
373
+ border-color: var(--line-strong); box-shadow: none;
374
+ }
375
+ .cta.ghost:hover { color: var(--accent-2); border-color: var(--accent-2); background: var(--fill); }
376
+
377
+ /* Hero artwork (the raster metaphor — highest rung of the image ladder). */
378
+ .hero-art {
379
+ margin: 0; position: relative; border-radius: var(--radius);
380
+ border: 1px solid var(--ridge); overflow: hidden; background: var(--surface);
381
+ box-shadow: var(--shadow-deep);
382
+ }
383
+ .hero-art img { width: 100%; }
384
+ .hero-art figcaption {
385
+ font-family: var(--mono); font-size: var(--step--2); color: var(--muted);
386
+ padding: 8px 12px; border-top: 1px solid var(--ridge); background: var(--surface-2);
387
+ }
388
+
389
+ /* One-plain-sentence band — the bridge from hero into the arc. */
390
+ .plainband {
391
+ margin-top: var(--space-xl); padding: clamp(20px, 4vw, 34px);
392
+ border-radius: var(--radius); border: 1px solid var(--line-strong);
393
+ background: linear-gradient(120deg, var(--fill), var(--fill-2));
394
+ box-shadow: var(--emboss);
395
+ }
396
+ .plainband p { margin: 0; max-width: none; font-size: var(--step-2); line-height: 1.4; color: var(--ink); }
397
+ .plainband .q { color: var(--accent); font-weight: 600; }
398
+
399
+ /* ============================================================================
400
+ 8 · ARCHETYPE — SECTION SHELL (native <details>, used by every arc step)
401
+ ----------------------------------------------------------------------------
402
+ Wraps: The Problem · What It Is · The Insight · How It Works · Use Cases ·
403
+ Get Started · The AI Pack. Each is a collapsible card whose <summary> shows
404
+ the section number, title, and the arc QUESTION it answers (.q).
405
+ ============================================================================ */
406
+ .sections { padding: var(--space-2xl) 0 var(--space-3xl); }
407
+ section { scroll-margin-top: calc(var(--head-h) + 1rem); }
408
+
409
+ .section {
410
+ background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
411
+ border: 1px solid var(--ridge); border-radius: var(--radius);
412
+ box-shadow: var(--shadow), var(--emboss);
413
+ margin: 0 0 var(--section-gap); overflow: hidden;
414
+ }
415
+ .section[open] { box-shadow: var(--shadow-deep), var(--emboss); border-color: var(--line-strong); }
416
+
417
+ .section > summary {
418
+ list-style: none; cursor: pointer; user-select: none;
419
+ display: flex; align-items: baseline; gap: 16px;
420
+ padding: clamp(18px, 3vw, 26px) clamp(18px, 4vw, 34px);
421
+ transition: background 0.2s var(--ease);
422
+ }
423
+ .section > summary::-webkit-details-marker { display: none; }
424
+ .section > summary:hover { background: var(--fill); }
425
+
426
+ .section .num {
427
+ flex: 0 0 auto; padding-top: 0.35em;
428
+ font-family: var(--mono); font-size: var(--step--1); letter-spacing: 0.18em; color: var(--accent);
429
+ font-variant-numeric: tabular-nums;
430
+ }
431
+ .section .head-text { flex: 1 1 auto; min-width: 0; }
432
+ .section .head-text h2 { margin: 0; font-size: clamp(1.3rem, 3vw, 2rem); }
433
+ .section .head-text .q { /* the arc question, in mono */
434
+ display: block; margin-top: 6px;
435
+ font-family: var(--mono); font-size: var(--step--1); letter-spacing: 0.02em; color: var(--muted);
436
+ }
437
+ .section .chev {
438
+ flex: 0 0 auto; align-self: center;
439
+ width: 26px; height: 26px; border-radius: 50%;
440
+ display: grid; place-items: center;
441
+ border: 1px solid var(--line-strong); color: var(--accent);
442
+ font-size: 13px; line-height: 1;
443
+ transition: transform 0.25s var(--ease), background 0.2s var(--ease);
444
+ }
445
+ .section[open] .chev { transform: rotate(90deg); background: var(--fill); }
446
+
447
+ .section .body {
448
+ padding: 4px clamp(18px, 4vw, 34px) clamp(24px, 3vw, 32px);
449
+ border-top: 1px solid var(--line); margin-top: 2px;
450
+ }
451
+ .section .body > *:first-child { margin-top: var(--space-m); }
452
+ .section .body h3 { margin: var(--space-l) 0 var(--space-2xs); }
453
+
454
+ /* Lead-in paragraph that should read brighter than body copy. */
455
+ .lead-in { font-size: var(--step-1); color: var(--ink); }
456
+
457
+ /* ============================================================================
458
+ 9 · CALLOUTS + THE-INSIGHT BAND · arc Q: "Why is it elegant/clever?"
459
+ ============================================================================ */
460
+ .note {
461
+ margin: var(--space-m) 0; padding: 13px 16px; max-width: 74ch;
462
+ border-left: 3px solid var(--accent-2);
463
+ border-radius: 0 var(--radius-s) var(--radius-s) 0;
464
+ background: var(--fill-2); color: var(--ink-2); font-size: var(--step--1);
465
+ }
466
+ .note.warn { border-left-color: var(--warn); background: color-mix(in srgb, var(--warn) 10%, transparent); }
467
+ .note.honest { border-left-color: var(--accent-3); background: color-mix(in srgb, var(--accent-3) 10%, transparent); }
468
+ .note .lab {
469
+ display: block; margin-bottom: 4px;
470
+ font-family: var(--mono); font-size: var(--step--2); font-weight: 600;
471
+ letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-2);
472
+ }
473
+ .note.warn .lab { color: var(--warn); }
474
+ .note.honest .lab { color: var(--accent-3); }
475
+
476
+ /* The "oh — that's clever" takeaway — a highlighted aha line. */
477
+ .oh {
478
+ margin: var(--space-l) 0 var(--space-2xs); padding: 16px 20px; max-width: none;
479
+ border: 1px solid var(--line-strong); border-radius: var(--radius-s);
480
+ background: linear-gradient(96deg, var(--fill), var(--fill-2));
481
+ color: var(--ink); font-size: var(--step-1); line-height: 1.45;
482
+ }
483
+ .oh strong { color: var(--accent); }
484
+
485
+ /* ============================================================================
486
+ 10 · ARCHETYPE — FIGURE / IMAGE LADDER (D7)
487
+ ----------------------------------------------------------------------------
488
+ .figure = single visual slot (raster OR svg). alt-text REQUIRED on <img>.
489
+ .dual = a friendly raster on-ramp beside a technical SVG diagram.
490
+ .tier = label marking a visual as friendly (illustrative) or tech (svg).
491
+ ============================================================================ */
492
+ .figure {
493
+ margin: var(--space-m) 0 var(--space-2xs);
494
+ border: 1px solid var(--ridge); border-radius: var(--radius-s);
495
+ background: var(--surface-2); padding: 14px; box-shadow: var(--emboss);
496
+ }
497
+ .figure > img, .figure > svg { width: 100%; height: auto; display: block; border-radius: 7px; }
498
+ .figure.diagram { background: var(--bg); } /* SVG-on-dark plate */
499
+ /* All diagrams FIT THE COLUMN WIDTH on both mobile and desktop. We previously rendered "dense"
500
+ maps at natural size inside a horizontally-pannable plate on mobile — but a first view (and the
501
+ vision quality grader) never pans, so a panned diagram always reads as horizontally CLIPPED
502
+ (title cut off, right side offscreen → INV-18 fail). Fit-to-width shows the WHOLE diagram, and
503
+ the renderers keep labels legible well past the worst downscale (verified by looking: architecture
504
+ 568px @0.63x and flow 772px @0.46x both fully readable on a 390px screen). Inherits width:100%
505
+ from `.figure > img` above; we only need to neutralise any pan plumbing and the drag hint. */
506
+ .figure.diagram { overflow-x: visible; }
507
+ .figure.diagram > img, .figure.diagram > svg { width: 100%; height: auto; max-width: 100%; min-width: 0; }
508
+ .figure.diagram > figcaption::after { content: ""; }
509
+ .figure figcaption {
510
+ margin-top: 11px; color: var(--muted); font-size: var(--step--1); line-height: 1.5;
511
+ }
512
+ .figure figcaption b { color: var(--ink-2); }
513
+
514
+ .tier {
515
+ display: inline-flex; align-items: center; gap: 7px; margin-bottom: 10px;
516
+ font-family: var(--mono); font-size: var(--step--2); letter-spacing: 0.14em;
517
+ text-transform: uppercase; color: var(--faint);
518
+ }
519
+ .tier::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: currentColor; }
520
+ .tier.friendly { color: var(--accent-3); }
521
+ .tier.friendly::before { border-radius: 50%; }
522
+ .tier.tech { color: var(--accent-2); }
523
+
524
+ .dual { display: grid; grid-template-columns: 1fr; gap: 18px; margin: var(--space-l) 0; }
525
+
526
+ /* ============================================================================
527
+ 11 · COMPARISON TABLE (before/after — supports What It Is / The Insight)
528
+ ============================================================================ */
529
+ .tbl {
530
+ width: 100%; border-collapse: collapse; margin: var(--space-m) 0; font-size: var(--step--1);
531
+ border: 1px solid var(--line); border-radius: var(--radius-s); overflow: hidden;
532
+ }
533
+ .tbl th, .tbl td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
534
+ .tbl thead th {
535
+ font-family: var(--mono); font-size: var(--step--2); letter-spacing: 0.06em;
536
+ text-transform: uppercase; color: var(--muted); background: var(--surface-2);
537
+ }
538
+ .tbl tbody tr:last-child td { border-bottom: 0; }
539
+ .tbl td:first-child { font-weight: 600; color: var(--ink); }
540
+ .tbl .before { color: var(--muted); }
541
+ .tbl .after { color: var(--ink); }
542
+ .tbl .win { color: var(--ok); font-weight: 600; }
543
+
544
+ /* ============================================================================
545
+ 12 · ARCHETYPE — GET STARTED · arc Q: "How do I start?" (numbered steps)
546
+ ============================================================================ */
547
+ .steps { counter-reset: step; list-style: none; padding: 0; margin: var(--space-l) 0; display: grid; gap: 12px; }
548
+ .steps li {
549
+ counter-increment: step; position: relative;
550
+ padding: 14px 16px 14px 58px;
551
+ background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-s);
552
+ min-width: 0; /* grid items default to min-content width; allow the cell to shrink + wrap its code chips */
553
+ }
554
+ .steps li::before {
555
+ content: counter(step); position: absolute; left: 14px; top: 13px;
556
+ width: 30px; height: 30px; border-radius: 9px;
557
+ display: grid; place-items: center;
558
+ font-family: var(--mono); font-weight: 600; font-size: 14px;
559
+ color: var(--on-accent); background: var(--spectrum);
560
+ }
561
+ .steps li strong { color: var(--ink); }
562
+
563
+ /* Install / highlighted CTA block. */
564
+ .install-block {
565
+ margin: var(--space-m) 0; padding: 20px 22px;
566
+ border: 1.5px solid var(--accent); border-radius: var(--radius);
567
+ background: linear-gradient(135deg, var(--fill) 0%, var(--surface) 100%);
568
+ box-shadow: var(--glow), var(--emboss);
569
+ }
570
+
571
+ /* ============================================================================
572
+ 13 · ARCHETYPE — USE-CASE GALLERY · arc Q: "Could I use this?"
573
+ ----------------------------------------------------------------------------
574
+ Each case is its OWN collapsible <details> with its own visual.
575
+ ============================================================================ */
576
+ .gallery { margin: var(--space-m) 0 var(--space-2xs); }
577
+ .gallery .grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
578
+
579
+ .case {
580
+ background: var(--surface-2); border: 1px solid var(--ridge);
581
+ border-radius: var(--radius-s); overflow: hidden; margin: 0 0 14px; box-shadow: var(--emboss);
582
+ }
583
+ .case[open] { border-color: var(--line-strong); box-shadow: var(--glow); }
584
+ .case > summary {
585
+ list-style: none; cursor: pointer; user-select: none;
586
+ display: flex; align-items: center; gap: 14px; padding: 16px 20px;
587
+ transition: background 0.18s var(--ease);
588
+ }
589
+ .case > summary::-webkit-details-marker { display: none; }
590
+ .case > summary:hover { background: var(--fill); }
591
+ .case .uc-num {
592
+ flex: 0 0 auto; width: 28px; height: 28px; border-radius: 8px;
593
+ display: grid; place-items: center;
594
+ font-family: var(--mono); font-size: var(--step--1); font-weight: 700;
595
+ color: var(--on-accent); background: var(--spectrum);
596
+ }
597
+ .case .uc-title { flex: 1 1 auto; font-family: var(--display); font-weight: 600; font-size: var(--step-1); color: var(--ink); }
598
+ .case .uc-tag {
599
+ flex: 0 0 auto; font-family: var(--mono); font-size: var(--step--2);
600
+ letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-2);
601
+ }
602
+ .case .chev {
603
+ flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%;
604
+ display: grid; place-items: center; border: 1px solid var(--line-strong);
605
+ color: var(--accent); font-size: 12px; transition: transform 0.25s var(--ease);
606
+ }
607
+ .case[open] .chev { transform: rotate(90deg); background: var(--fill); }
608
+ .case .uc-body { padding: 2px 20px 22px; border-top: 1px solid var(--line); }
609
+ .case .uc-body > *:first-child { margin-top: var(--space-m); }
610
+ .case .uc-body p, .case pre.code-block { max-width: none; }
611
+ .case dl { margin: var(--space-m) 0 0; }
612
+ .case dt {
613
+ margin-top: 14px; font-family: var(--mono); font-size: var(--step--2);
614
+ letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-2);
615
+ }
616
+ .case dt:first-child { margin-top: 0; }
617
+ .case dd { margin: 5px 0 0; color: var(--ink-2); }
618
+
619
+ /* ============================================================================
620
+ 14 · ARCHETYPE — THE AI PACK / DUAL-OUTPUT · arc Q: "(my AI gets it too)"
621
+ ----------------------------------------------------------------------------
622
+ The downloadable knowledge pack: a file tree + a drag-in dropzone + CTA.
623
+ This is the page-for-humans / KB-for-their-AI dual output.
624
+ ============================================================================ */
625
+ .tree {
626
+ font-family: var(--mono); font-size: var(--step--1); line-height: 1.9;
627
+ background: var(--bg); border: 1px solid var(--ridge); border-radius: var(--radius);
628
+ padding: 18px 20px; margin: var(--space-m) 0; overflow-x: auto; box-shadow: var(--emboss);
629
+ }
630
+ .tree .d { color: var(--accent); } /* directory */
631
+ .tree .f { color: var(--accent-2); } /* file */
632
+ .tree .cmt { color: var(--muted); } /* annotation */
633
+ .tree .heart { color: var(--accent-3); } /* the special "for-humans" half */
634
+
635
+ .dl-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: var(--space-m) 0; }
636
+ .dl-cta .dl-meta { color: var(--muted); font-size: var(--step--1); }
637
+
638
+ .dropzone {
639
+ display: block; margin: var(--space-m) 0 var(--space-2xs); text-align: center; text-decoration: none;
640
+ padding: clamp(26px, 5vw, 46px); cursor: pointer;
641
+ border: 2px dashed var(--line-strong); border-radius: var(--radius);
642
+ background: var(--fill); color: var(--ink);
643
+ transition: border-color 0.2s var(--ease), background 0.2s var(--ease),
644
+ transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
645
+ }
646
+ .dropzone:hover { border-color: var(--accent); background: var(--fill-2); }
647
+ .dropzone.is-dragover { border-color: var(--accent-2); transform: scale(1.01); box-shadow: var(--glow); }
648
+ .dropzone .dz-icon { font-family: var(--display); font-weight: 700; font-size: 2rem; color: var(--accent-2); margin-bottom: 6px; line-height: 1; }
649
+ .dropzone strong { color: var(--ink); font-size: var(--step-0); }
650
+ .dropzone .dz-hint { font-family: var(--mono); font-size: var(--step--2); color: var(--muted); margin-top: 10px; }
651
+ .dropzone .dz-status { font-family: var(--mono); font-size: var(--step--1); color: var(--accent-2); margin-top: 12px; min-height: 1.2em; }
652
+
653
+ /* ============================================================================
654
+ 15 · STUDIO (OPTIONAL / quarantined — INV-03). Re-packed on follow-up.
655
+ ============================================================================ */
656
+ .studio-hero {
657
+ position: relative; overflow: hidden; margin: var(--space-l) 0;
658
+ padding: 26px 26px 22px; border-radius: var(--radius);
659
+ border: 1px solid var(--line-strong);
660
+ background:
661
+ radial-gradient(120% 140% at 8% 0%, var(--fill), transparent 55%),
662
+ radial-gradient(120% 160% at 100% 100%, var(--fill-2), transparent 55%),
663
+ var(--surface);
664
+ box-shadow: var(--shadow);
665
+ }
666
+ .studio-hero::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--spectrum); }
667
+ .studio-hero-kicker { position: relative; margin: 0 0 6px; font-family: var(--mono); font-size: var(--step--2); letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-2); }
668
+ .studio-hero-title { position: relative; margin: 0 0 8px; font-size: var(--step-2); color: var(--ink); }
669
+ .studio-hero-sub { position: relative; margin: 0 0 16px; max-width: 62ch; color: var(--ink-2); }
670
+ .studio-grid { display: grid; gap: 16px; margin: var(--space-m) 0 var(--space-2xs); grid-template-columns: 1fr; }
671
+ .studio-card { margin: 0; padding: 14px; border-radius: var(--radius-s); background: var(--bg-2); border: 1px solid var(--line-strong); box-shadow: var(--emboss); }
672
+ .studio-card video, .studio-card img { width: 100%; display: block; border-radius: 8px; }
673
+
674
+ /* ============================================================================
675
+ 16 · FOOTER
676
+ ============================================================================ */
677
+ footer {
678
+ border-top: 1px solid var(--line); margin-top: var(--space-l);
679
+ padding: var(--space-2xl) 0 var(--space-3xl);
680
+ color: var(--faint); font-family: var(--mono); font-size: var(--step--1); letter-spacing: 0.02em;
681
+ }
682
+ footer a { color: var(--accent-2); }
683
+ footer .credit { font-family: var(--sans); color: var(--muted); line-height: 1.7; max-width: 70ch; }
684
+ footer .credit b { color: var(--ink); }
685
+ footer .fine { margin-top: var(--space-l); padding-top: var(--space-m); border-top: 1px solid var(--line); color: var(--faint); }
686
+ .stack-links {
687
+ display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 22px;
688
+ margin-bottom: var(--space-m); padding-bottom: var(--space-m); border-bottom: 1px solid var(--line);
689
+ }
690
+ .stack-links .stack-lead { color: var(--faint); text-transform: uppercase; letter-spacing: 0.1em; }
691
+
692
+ /* ============================================================================
693
+ 16b · EXPLAINER FOOTER — the REQUIRED credit + CTA strip on EVERY explainer
694
+ ----------------------------------------------------------------------------
695
+ NON-NEGOTIABLE: every page the recipe builds ends with this exact component.
696
+ It is two lines, always, in this order:
697
+
698
+ line 1 "Built by Stuart Kerr at ISOvision.ai"
699
+ — "ISOvision.ai" links to https://isovision.ai
700
+ line 2 CTA "Want an explainer for your own repo? Create one →"
701
+ — links to https://repoexplainer.isovision.ai (placeholder
702
+ landing URL — swap when the real landing page ships)
703
+
704
+ On-brand (pure tokens, no hard-coded colour), accessible (semantic
705
+ <footer role="contentinfo">, real <a> links, underlined credit link, AA
706
+ contrast via --muted/--ink-2/--accent-2, focus ring inherited from §3,
707
+ reduced-motion safe), and responsive (stacks at 390px, splits left/right
708
+ at 48em). The Assembly station (ADR-0005 S6) injects this verbatim.
709
+
710
+ ── REQUIRED MARKUP (drop verbatim at the end of <body> on every explainer) ──
711
+
712
+ <footer class="explainer-footer" role="contentinfo">
713
+ <div class="wrap explainer-footer-inner">
714
+ <p class="ef-credit">
715
+ Built by <strong>Stuart Kerr</strong> at
716
+ <a href="https://isovision.ai" rel="author">ISOvision.ai</a>
717
+ </p>
718
+ <a class="ef-cta" href="https://repoexplainer.isovision.ai">
719
+ <span class="ef-cta-lead">Want an explainer for your own repo?</span>
720
+ <strong>Create one</strong>
721
+ <span class="ef-arrow" aria-hidden="true">&rarr;</span>
722
+ </a>
723
+ </div>
724
+ </footer>
725
+ ============================================================================ */
726
+ .explainer-footer {
727
+ border-top: 1px solid var(--line);
728
+ margin-top: var(--space-3xl);
729
+ padding-block: var(--space-xl);
730
+ background: linear-gradient(180deg, transparent, var(--bg-2));
731
+ }
732
+ .explainer-footer-inner {
733
+ display: flex; flex-direction: column; align-items: flex-start;
734
+ gap: var(--space-m);
735
+ }
736
+
737
+ /* line 1 — the credit */
738
+ .ef-credit {
739
+ margin: 0; max-width: none;
740
+ font-family: var(--sans); font-size: var(--step-0); line-height: 1.6;
741
+ color: var(--muted);
742
+ }
743
+ .ef-credit strong { color: var(--ink-2); font-weight: 600; }
744
+ .ef-credit a {
745
+ color: var(--accent-2); font-weight: 600;
746
+ text-decoration: underline; text-decoration-thickness: 1px;
747
+ text-underline-offset: 3px;
748
+ text-decoration-color: color-mix(in srgb, var(--accent-2) 45%, transparent);
749
+ transition: color 0.18s var(--ease), text-decoration-color 0.18s var(--ease);
750
+ }
751
+ .ef-credit a:hover { color: var(--accent); text-decoration-color: currentColor; }
752
+
753
+ /* line 2 — the "make your own" CTA */
754
+ .ef-cta {
755
+ display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px 9px;
756
+ font-family: var(--display); font-weight: 600; font-size: var(--step-0);
757
+ letter-spacing: 0.005em; text-transform: var(--display-case);
758
+ color: var(--ink);
759
+ padding: 11px 18px; border-radius: 12px;
760
+ border: 1px solid var(--line-strong); background: var(--fill);
761
+ box-shadow: var(--emboss);
762
+ transition: transform 0.16s var(--ease), border-color 0.18s var(--ease),
763
+ background 0.18s var(--ease), box-shadow 0.18s var(--ease);
764
+ }
765
+ .ef-cta .ef-cta-lead { color: var(--muted); font-family: var(--sans); font-weight: 500; }
766
+ .ef-cta strong { color: var(--accent-2); font-weight: 700; }
767
+ .ef-cta .ef-arrow {
768
+ font-family: var(--mono); color: var(--accent);
769
+ transition: transform 0.18s var(--ease);
770
+ }
771
+ .ef-cta:hover {
772
+ transform: translateY(-2px); color: var(--ink);
773
+ border-color: var(--accent-2); background: var(--fill-2); box-shadow: var(--glow);
774
+ }
775
+ .ef-cta:hover strong { color: var(--accent); }
776
+ .ef-cta:hover .ef-arrow { transform: translateX(4px); }
777
+
778
+ @media (min-width: 48em) {
779
+ .explainer-footer-inner {
780
+ flex-direction: row; align-items: center; justify-content: space-between;
781
+ gap: var(--space-l);
782
+ }
783
+ }
784
+ @media (prefers-reduced-motion: reduce) {
785
+ .ef-cta:hover { transform: none; }
786
+ .ef-cta:hover .ef-arrow { transform: none; }
787
+ }
788
+
789
+ /* ============================================================================
790
+ 17 · RESPONSIVE — mobile-first; columns appear at breakpoints
791
+ ----------------------------------------------------------------------------
792
+ Base (≤ 47.99em / 390px target) = single column, nav hidden.
793
+ md 48em (768px) = nav shows · hero 2-col · dual 2-col · steps 3-col
794
+ lg 64em (1024px) = wider hero ratio · gallery 2-col
795
+ ============================================================================ */
796
+ @media (min-width: 48em) {
797
+ .nav-links { display: flex; }
798
+ .hero { padding-top: var(--space-3xl); }
799
+ /* Top-align the two columns: a tall headline must not leave the art-card centered low with a dead
800
+ void above it (the failure on long-headline repos). The art tracks the headline from the top. */
801
+ .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: var(--space-2xl); align-items: start; }
802
+ .hero-art { position: sticky; top: var(--space-l); align-self: start; }
803
+ .dual { grid-template-columns: 1fr 1fr; }
804
+ /* Paragraph-length sequential steps read best at 2 columns: ~60-char lines,
805
+ 4 steps land as a clean 2x2 with no orphaned card, graceful for any count.
806
+ (repeat(3,1fr) forced columns too narrow -> 1-2 words/line + orphaned 4th.) */
807
+ .steps { grid-template-columns: 1fr 1fr; }
808
+ /* Diagrams already fit-to-width from the base rule (see §10); nothing device-specific to add. */
809
+ }
810
+
811
+ @media (min-width: 64em) {
812
+ .hero-grid { grid-template-columns: 1.12fr 0.88fr; }
813
+ .gallery .grid { grid-template-columns: 1fr 1fr; }
814
+ }
815
+
816
+ /* ============================================================================
817
+ 18 · ACCESSIBILITY — reduced motion + forced-colors
818
+ ============================================================================ */
819
+ @media (prefers-reduced-motion: reduce) {
820
+ html { scroll-behavior: auto; }
821
+ *, *::before, *::after {
822
+ animation-duration: 0.001ms !important;
823
+ animation-iteration-count: 1 !important;
824
+ transition-duration: 0.001ms !important;
825
+ scroll-behavior: auto !important;
826
+ }
827
+ .cta:hover, .dropzone.is-dragover { transform: none; }
828
+ }
829
+
830
+ @media (forced-colors: active) {
831
+ .cta, .case[open], .section[open] { border: 1px solid CanvasText; }
832
+ .chev, .section .num { forced-color-adjust: auto; }
833
+ }