Repository navigation
Expand file tree
/
Copy pathblog.css
More file actions
299 lines (277 loc) · 18.2 KB
/
Copy pathblog.css
File metadata and controls
299 lines (277 loc) · 18.2 KB
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
/* Blog component layer — charts, verdict tables, post cards.
Extracted 2026-09-22 from the inline <style> blocks of the first two
blog pages so that every post shares one implementation. Loaded only by
/blog/*, which is why it is not in style.css. */
/* ---- post components: vt tables, vchart, wire, loss, stat-band ---- */
/* page-local: a negative colour the system lacks, both themes */
:root { --z-neg: #8f2427; } /* 8.2:1 on the light page */
html[data-theme='night'] { --z-neg: #e2767c; }
/* vertical comparison chart — same component as the benchmarks hub */
.vchart { margin: var(--sp-6) 0 0; }
.vc-legend { display:flex; flex-wrap:wrap; gap:22px; margin:0 0 var(--sp-8);
font-family:var(--font-data); font-size:var(--fs-11);
letter-spacing:var(--track-label); text-transform:uppercase; }
.vc-legend b { display:inline-flex; align-items:center; gap:8px; font-weight:600; }
.vc-legend b::before { content:''; width:11px; height:11px; border-radius:2px; background:currentColor; }
.vc-legend .bare { color:var(--z-neg); } .vc-legend .native { color:var(--z-cmp); }
.vc-legend .xerj { color:var(--z-accent); }
.vc-groups { display:grid; gap:var(--sp-10) var(--sp-12);
grid-template-columns:repeat(auto-fit, minmax(280px, 1fr)); }
.vc-group { min-width:0; }
.vc-plot { box-sizing:border-box; height:238px; padding:30px var(--sp-2) 0;
display:grid; grid-auto-flow:column; grid-auto-columns:1fr;
gap:var(--sp-6); border-bottom:1px solid var(--z-line); }
.vc-col { display:flex; flex-direction:column; justify-content:flex-end;
align-items:center; height:100%; min-width:0; }
.vc-bar { position:relative; display:block; width:100%; max-width:78px;
min-height:3px; border-radius:2px 2px 0 0; background:currentColor; }
.vc-v { position:absolute; bottom:100%; left:50%; transform:translateX(-50%);
margin-bottom:8px; white-space:nowrap; color:var(--z-ink);
font-family:var(--font-data); font-size:var(--fs-13); font-weight:700; }
.vc-col.bare { color:var(--z-neg); }
.vc-col.native { color:var(--z-cmp); }
.vc-col.xerj { color:var(--z-accent); }
.vc-col.xerj .vc-v { color:var(--z-accent); }
.vc-axis { display:grid; grid-auto-flow:column; grid-auto-columns:1fr; gap:var(--sp-6);
padding:var(--sp-3) var(--sp-2) 0; text-align:center; min-height:46px;
font-family:var(--font-data); font-size:var(--fs-11);
letter-spacing:var(--track-label); text-transform:uppercase; color:var(--z-mute); }
.vc-axis span { min-width:0; }
.vc-axis .sub { display:block; font-style:normal; letter-spacing:.03em;
text-transform:none; margin-top:3px; }
.vc-axis .win { color:var(--z-accent); opacity:1; }
.vc-title { margin-top:var(--sp-4); padding-top:var(--sp-3);
border-top:1px solid var(--z-faint);
font-family:var(--font-data); font-size:var(--fs-11);
letter-spacing:var(--track-label); text-transform:uppercase; color:var(--z-mute); }
.vc-title b { color:var(--z-ink); font-weight:600; }
.vc-note { margin:var(--sp-4) 0 0; max-width:900px;
font-family:var(--font-data); font-size:12px; letter-spacing:.03em; color:var(--z-mute); }
@media (max-width:620px) {
.vc-plot { height:196px; gap:var(--sp-3); padding-top:26px; }
.vc-axis { gap:var(--sp-3); }
.vc-v { font-size:11px; }
}
/* stat band */
.stat-band { display:grid; grid-template-columns:repeat(auto-fit, minmax(220px,1fr));
gap:1px; background:var(--z-line); border:1px solid var(--z-line);
margin:var(--sp-8) 0 0; }
.stat { background:var(--z-bg); padding:20px 22px; }
.stat .v { font-family:var(--font-display); font-weight:800; font-size:var(--fs-32);
color:var(--z-accent); line-height:1.05; }
.stat .v.bad { color:var(--z-neg); }
.stat .k { font-family:var(--font-data); font-size:var(--fs-11); letter-spacing:var(--track-label);
text-transform:uppercase; color:var(--z-mute); margin-top:8px; }
.stat .s { font-size:13px; color:var(--z-mute); margin-top:4px; line-height:1.5; }
.stat .s a { color:var(--z-mute); }
/* verdict table */
.vt-wrap { overflow-x:auto; margin-top:var(--sp-6); }
table.vt { width:100%; border-collapse:collapse; font-family:var(--font-data); font-size:15px; }
.vt th { text-align:left; font-size:11px; letter-spacing:.06em; text-transform:uppercase;
color:var(--z-mute); font-weight:600; padding:9px 12px 9px 0; border-bottom:1px solid var(--z-ink); }
.vt td { padding:10px 12px 10px 0; border-bottom:1px solid var(--z-faint); vertical-align:top; }
.vt td.n { font-variant-numeric:tabular-nums; white-space:nowrap; }
.vt .w { color:var(--z-accent); font-weight:700; }
.vt .t { color:var(--z-mute); font-weight:600; }
.vt .l { color:var(--z-neg); font-weight:700; }
/* Mobile scroll affordance (2026-09-21 fix round). Three of the six tables
have min-content widths of 379 / 405 / 699 px and clip inside .vt-wrap on
phones with nothing saying more columns sit sideways. The shell holds a
right-edge scrim that fades to the page background — a soft cut line, not
a shadow (brand: no shadows) — painted above the scrolled table because
the shell itself does not scroll. Each modifier's gate is the measured
viewport at which THAT table starts to clip (min-content + 2×18px
gutter), so a table that fits never gets a fade over its last column.
Pure CSS, pointer-events none, no JS. */
.vt-shell { position:relative; }
.vt-shell::after { content:''; position:absolute; top:0; right:0; bottom:0; width:26px;
background:linear-gradient(to right, transparent, var(--z-bg));
pointer-events:none; display:none; }
@media (max-width:735px) { .vt-shell--bills::after { display:block; } }
@media (max-width:440px) { .vt-shell--hist::after { display:block; } }
@media (max-width:420px) { .vt-shell--beir::after { display:block; } }
/* wire panels */
.wire { display:grid; gap:var(--sp-4); margin-top:var(--sp-8); }
.wp { border:1px solid var(--z-line); border-left:3px solid var(--z-accent); padding:18px 22px; }
.wp .wh { display:flex; gap:14px; align-items:baseline; flex-wrap:wrap; }
.wp .wn { font-family:var(--font-data); font-size:12px; font-weight:700; letter-spacing:.08em; color:var(--z-accent); }
.wp h3 { margin:0; font-family:var(--font-display); font-weight:800; font-size:var(--fs-20); letter-spacing:.01em; }
.wp .wm { margin-left:auto; font-family:var(--font-data); font-size:12px; color:var(--z-mute); letter-spacing:.04em; }
.wp p { margin:8px 0 0; color:var(--z-mute); font-size:var(--fs-16); line-height:var(--lh-body); max-width:var(--measure); }
.wp p strong { color:var(--z-ink); }
.wp.neg { border-left-color:var(--z-neg); }
.wp.neg .wn { color:var(--z-neg); }
.loss { border:1px solid var(--z-line); border-left:3px solid var(--z-neg); padding:16px 20px;
margin-top:var(--sp-6); font-size:var(--fs-16); color:var(--z-mute); line-height:var(--lh-body); max-width:var(--measure); }
.loss strong { color:var(--z-ink); }
.src { font-family:var(--font-data); font-size:12px; letter-spacing:.03em; color:var(--z-mute); margin-top:var(--sp-4); }
/* terminal blocks */
pre.code { margin:var(--sp-5) 0 0; padding:18px 20px; border:1px solid var(--z-code-line);
overflow-x:auto; font-family:var(--font-data); font-size:var(--fs-13); line-height:1.7;
color:var(--z-mute); background:var(--z-code-bg); }
pre.code .prompt { color:var(--z-accent); font-weight:700; user-select:none; }
pre.code .out { color:var(--z-ink); }
pre.code .cmt { font-style:italic; } /* was opacity:.62 (fell below 4.5:1) */
/* bullet lists — same rule the hub carries locally */
ul.deep { list-style:none; padding:0; max-width:var(--measure); }
ul.deep li { margin:14px 0; line-height:var(--lh-body); color:var(--z-ink); font-size:var(--fs-16); }
ul.deep li strong { color:var(--z-ink); }
ul.deep code.inline { color:var(--z-ink); }
/* blog post scaffolding — breadcrumb, byline, verdict lede */
.blog-crumb { margin:0 0 var(--sp-6); font-family:var(--font-data); font-size:var(--fs-11);
font-weight:600; letter-spacing:var(--track-label); text-transform:uppercase; }
.blog-crumb a { color:var(--z-mute); text-decoration:none; border-bottom:1px solid var(--z-line);
padding-bottom:1px; }
.blog-crumb a:hover, .blog-crumb a:focus-visible { color:var(--z-accent); border-color:var(--z-accent); }
.blog-byline { margin:var(--sp-4) 0 0; font-family:var(--font-data); font-size:var(--fs-11);
font-weight:600; letter-spacing:var(--track-label); text-transform:uppercase;
color:var(--z-mute); }
.verdict-panel { border:1px solid var(--z-line); border-left:3px solid var(--z-accent);
padding:var(--sp-6); margin:var(--sp-8) 0 0; text-align:left; }
.verdict-panel .vh { display:flex; gap:14px; align-items:baseline; flex-wrap:wrap; margin-bottom:var(--sp-4); }
.verdict-panel .vh .wn { font-family:var(--font-data); font-size:12px; font-weight:700;
letter-spacing:.08em; color:var(--z-accent); }
.verdict-panel .vh .wm { margin-left:auto; font-family:var(--font-data); font-size:12px;
color:var(--z-mute); letter-spacing:.04em; }
.verdict-panel p { margin:0 0 var(--sp-4); font-family:var(--font-prose); font-size:var(--fs-16);
line-height:1.7; color:var(--z-mute); max-width:900px; }
.verdict-panel p:last-child { margin-bottom:0; }
.verdict-panel p strong { color:var(--z-ink); }
.verdict-panel p code.inline { color:var(--z-ink); }
/* cover art — the field-log poster series, rendered by
scripts/seo/blog_covers/covers.py. The poster is a self-contained print
on the brand's light paper, ink and one earned yellow (it doubles as the
og card), so on either theme it sits in a flat mount: a 1px rule in the
page's own line colour, square corners, no shadow. Only image rules live
here; page colours belong to the theme. */
.blog-cover { margin: 0 0 var(--sp-6); padding: 0; border: 1px solid var(--z-line);
overflow: hidden; background: #f6f4ee; line-height: 0; }
.blog-cover img { display: block; width: 100%; height: auto; aspect-ratio: 1600 / 640; }
/* ---- index components: bl-card, blp preview bars ---- */
/* page-local — blog index: dated cards, preview visual left, brand tokens
only, 1px lines, no icons, no shadows, no filled shapes. */
.blog-hero { padding: var(--sp-6) 0 var(--sp-8); }
.blog-hero .uc-eyebrow { margin-bottom: var(--sp-4); }
ol.blog-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-6); }
.bl-card {
display: grid;
grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
gap: var(--sp-6);
border: 1px solid var(--z-line);
padding: var(--sp-5);
text-decoration: none;
color: inherit;
}
.bl-card:hover, .bl-card:focus-visible { border-color: var(--z-accent); }
/* card thumbnail: the post's cover at 640x336 (og ratio), lazy-loaded */
.bl-thumb { display: block; width: 100%; height: auto; aspect-ratio: 640 / 336; align-self: start;
border: 1px solid var(--z-line); background: #f6f4ee; }
/* preview slot — a theme-native miniature scorecard, pure divs; no image
file, correct in day and night by construction (site precedent: every
chart in the benchmarks pages is CSS bars). */
.bl-preview { border: 1px solid var(--z-line); padding: var(--sp-4); align-self: stretch; }
.blp-kicker { font-family: var(--font-data); font-size: var(--fs-11); font-weight: 600;
letter-spacing: var(--track-label); text-transform: uppercase;
color: var(--z-mute); padding-bottom: var(--sp-3);
border-bottom: 1px solid var(--z-line); }
.blp-row { padding: var(--sp-3) 0; border-bottom: 1px solid var(--z-line); }
.blp-row:last-of-type { border-bottom: 0; }
.blp-ds { font-family: var(--font-data); font-size: var(--fs-11); font-weight: 600;
letter-spacing: var(--track-label); text-transform: uppercase; color: var(--z-mute); }
.blp-pair { display: grid; grid-template-columns: minmax(92px, 116px) minmax(0, 1fr);
gap: var(--sp-2) var(--sp-3); align-items: center; margin-top: var(--sp-2); }
.blp-bar { height: 4px; min-width: 2px; }
.blp-bar.a { background: var(--z-accent); }
.blp-bar.b { background: var(--z-cmp); }
.blp-num { font-family: var(--font-mono); font-size: var(--fs-11); color: var(--z-ink);
white-space: nowrap; display: flex; align-items: baseline; gap: 6px; }
.blp-num i { font-style: normal; font-family: var(--font-data); font-size: 10px;
letter-spacing: .02em; color: var(--z-mute); }
.blp-num.b { color: var(--z-cmp); }
.blp-chip { color: var(--z-cmp); font-weight: 700; }
.blp-foot { margin: var(--sp-3) 0 0; padding-top: var(--sp-3); border-top: 1px solid var(--z-line);
font-family: var(--font-mono); font-size: var(--fs-11); line-height: 1.6; color: var(--z-mute); }
.bl-meta { min-width: 0; }
.bl-date { font-family: var(--font-data); font-size: var(--fs-11); font-weight: 600;
letter-spacing: var(--track-label); text-transform: uppercase; color: var(--z-mute);
font-variant-numeric: tabular-nums; }
.bl-title { margin: var(--sp-3) 0 0; font-family: var(--font-display); font-weight: 800;
font-size: var(--fs-32); line-height: 1.05; color: var(--z-ink); }
.bl-card:hover .bl-title, .bl-card:focus-visible .bl-title { color: var(--z-accent); }
.bl-excerpt { margin: var(--sp-3) 0 0; font-family: var(--font-prose); font-size: var(--fs-16);
line-height: 1.65; color: var(--z-mute); max-width: 68ch; }
.bl-excerpt strong { color: var(--z-ink); }
.bl-byline { margin: var(--sp-4) 0 0; font-family: var(--font-data); font-size: var(--fs-11);
font-weight: 600; letter-spacing: var(--track-label); text-transform: uppercase;
color: var(--z-mute); font-variant-numeric: tabular-nums; }
.bl-read { display: inline-block; margin-top: var(--sp-4); font-family: var(--font-data);
font-size: var(--fs-11); font-weight: 700; letter-spacing: var(--track-label);
text-transform: uppercase; color: var(--z-accent);
border-bottom: 1px solid var(--z-accent); padding-bottom: 1px; }
.blog-archive { margin: var(--sp-8) 0 0; padding-top: var(--sp-4); border-top: 1px solid var(--z-line);
font-family: var(--font-data); font-size: var(--fs-13); color: var(--z-mute); }
.blog-archive a { color: var(--z-mute); border-bottom: 1px solid var(--z-line); padding-bottom: 1px; }
.blog-archive a:hover, .blog-archive a:focus-visible { color: var(--z-accent); border-color: var(--z-accent); }
@media (max-width: 720px) {
.bl-card { grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); }
.bl-title { font-size: var(--fs-20); }
}
/* ---- reading theme: light paper, AAA text (2026-10-20) ----
Every /blog/ page is served in the day theme (data-theme="day" on <html>),
so the light covers sit on the page colour they were printed for. Inside the
blog the day tokens are tightened to WCAG AAA on paper #f6f4ee: body ink
17.9:1, secondary text 8.3:1, accent text 7.7:1. Brand ochre #A06800
(4.27:1, too light for text) is kept for rules and borders. Flat: no
gradients, no shadows. The NIGHT toggle still works (night tokens untouched). */
html[data-theme='day'] {
--z-ink: #0b0b0d;
--z-mute: #4a4843;
--z-accent: #6b4500;
--z-ochre: #a06800;
--z-cmp: #4f6a88;
}
html[data-theme='day'] pre.code { border-left-color: var(--z-ochre); }
html[data-theme='day'] .bl-card:hover,
html[data-theme='day'] .bl-card:focus-visible { border-color: var(--z-ochre); }
/* type: size, line height and measure only */
.uc-hero .uc-eyebrow, .blog-crumb, .blog-byline { font-size: 13px; }
.uc-hero .lede { font-size: 21px; line-height: 1.6; max-width: 68ch; margin: var(--sp-8) 0 0; }
section.scene-section > .kicker { font-size: 13px; margin-bottom: var(--sp-4); }
section.scene-section > h2.scene { margin: 0 0 var(--sp-8); }
section.scene-section > p,
section.scene-section > ul > li,
section.scene-section > ol > li { font-size: 19px; line-height: 1.7; }
section.scene-section > p { max-width: 68ch; margin: 0 0 1.1em; }
section.scene-section > p:last-child { margin-bottom: 0; }
section.scene-section > ul,
section.scene-section > ol { max-width: 68ch; margin: 0 0 1.1em; padding-left: 1.25em; }
section.scene-section > ul > li,
section.scene-section > ol > li { margin: 0 0 .6em; }
section.scene-section > pre.code { font-size: 15px; line-height: 1.6;
margin: var(--sp-6) 0 var(--sp-8); padding: 20px 22px; }
section.scene-section > .vt-wrap { margin: var(--sp-6) 0 var(--sp-8); }
section.scene-section > .stat-band { margin: var(--sp-6) 0 var(--sp-8); }
table.vt { font-size: 15.5px; line-height: 1.5; }
.vt th { font-size: 12.5px; }
.stat .k { font-size: 12.5px; }
.stat .s { font-size: 15px; }
.bl-excerpt { font-size: 17px; line-height: 1.65; }
@media (max-width: 620px) {
.uc-hero .lede { font-size: 19px; }
section.scene-section > p,
section.scene-section > ul > li,
section.scene-section > ol > li { font-size: 18px; }
section.scene-section > pre.code { font-size: 13px; padding: 16px; }
}
/* ---- pending chip: a visible placeholder ([GATE: …], [VERIFY: …]) a draft
post carries until the number or fact is confirmed. Both themes. ---- */
.pending { display: inline; font-family: var(--font-data); font-size: .82em; font-weight: 700;
letter-spacing: .02em; color: var(--z-ink); background: var(--z-highlight);
border: 1px dashed var(--z-accent); border-radius: 3px; padding: 1px 6px;
box-decoration-break: clone; -webkit-box-decoration-break: clone; }
/* ---- wire.plain: explainer cards whose body is the main text, not an aside:
full ink and a reading size. ---- */
.wire.plain .wp p { color: var(--z-ink); font-size: 17px; }
.wire.plain + p { margin-top: var(--sp-8); }
/* h1.fit: a long first word ("SLOWDOWNS") must fit a 390px phone at the 80px hero size. */
@media (max-width: 560px) { .uc-hero h1.fit { font-size: 12vw; } }