@still-void/ui 1.0.0 → 1.1.0

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.
package/dist/style.css CHANGED
@@ -1,232 +1,267 @@
1
1
  /* ============================================================
2
- Quiet Tech — component styles
3
- Import once: `import '@quiet-tech/ui/style.css'`
2
+ Still Void — component styles
3
+ Import once: `import '@still-void/ui/style.css'`
4
4
  Requires theme.css (tokens) to be loaded as well.
5
5
  All values reference theme vars — no magic numbers.
6
6
  ============================================================ */
7
7
 
8
8
  /* ---------- base ---------- */
9
- .qt-root,
10
- [data-qt] body,
11
- body.qt-body {
12
- background: var(--qt-bg);
13
- color: var(--qt-text);
14
- font-family: var(--qt-font-body);
15
- font-size: var(--qt-text-base);
9
+ .sv-root,
10
+ [data-sv] body,
11
+ body.sv-body {
12
+ background: var(--sv-bg);
13
+ color: var(--sv-text);
14
+ font-family: var(--sv-font-body);
15
+ font-size: var(--sv-text-base);
16
16
  line-height: 1.5;
17
17
  -webkit-font-smoothing: antialiased;
18
18
  }
19
19
 
20
20
  /* Display headings always balance. */
21
- .qt-display {
22
- font-family: var(--qt-font-display);
21
+ .sv-display {
22
+ font-family: var(--sv-font-display);
23
23
  letter-spacing: -0.02em;
24
24
  text-wrap: balance;
25
- color: var(--qt-text);
25
+ color: var(--sv-text);
26
26
  }
27
27
 
28
28
  /* ---------- Header ---------- */
29
- .qt-header {
29
+ .sv-header {
30
30
  position: sticky;
31
31
  top: 0;
32
- z-index: 40;
32
+ z-index: var(--sv-z-sticky);
33
33
  display: flex;
34
34
  align-items: center;
35
35
  justify-content: space-between;
36
- gap: var(--qt-space-6);
37
- padding: var(--qt-space-4) var(--qt-space-6);
36
+ gap: var(--sv-space-6);
37
+ padding: var(--sv-space-4) var(--sv-space-6);
38
38
  }
39
- .qt-header__nav {
39
+ .sv-header__nav {
40
40
  display: flex;
41
41
  align-items: center;
42
- gap: var(--qt-space-5);
42
+ gap: var(--sv-space-5);
43
+ /* Lets the row shrink below its content width so overflow-x can scroll
44
+ it instead of the whole header wrapping or forcing the page wider. */
45
+ min-width: 0;
46
+ }
47
+ /* No distinct mobile nav pattern by design — a wrapping/collapsing nav adds
48
+ a second layout to maintain. Below the point where items stop fitting,
49
+ the row scrolls horizontally instead of overflowing the viewport. */
50
+ @media (max-width: 640px) {
51
+ .sv-header__nav {
52
+ overflow-x: auto;
53
+ flex-wrap: nowrap;
54
+ scrollbar-width: none;
55
+ -webkit-mask-image: linear-gradient(
56
+ to right,
57
+ transparent 0,
58
+ black var(--sv-space-2),
59
+ black calc(100% - var(--sv-space-2)),
60
+ transparent 100%
61
+ );
62
+ mask-image: linear-gradient(
63
+ to right,
64
+ transparent 0,
65
+ black var(--sv-space-2),
66
+ black calc(100% - var(--sv-space-2)),
67
+ transparent 100%
68
+ );
69
+ }
70
+ .sv-header__nav::-webkit-scrollbar {
71
+ display: none;
72
+ }
43
73
  }
44
- .qt-header__link {
74
+ .sv-header__link {
45
75
  appearance: none;
46
76
  border: none;
47
77
  background: none;
48
78
  font-family: inherit;
49
79
  padding: 0;
50
- color: var(--qt-text-2);
80
+ color: var(--sv-text-2);
51
81
  text-decoration: none;
52
- font-size: var(--qt-text-sm);
82
+ font-size: var(--sv-text-sm);
53
83
  font-weight: 500;
54
84
  cursor: pointer;
55
- transition: color var(--qt-duration-fast) var(--qt-ease-hover);
85
+ transition: color var(--sv-duration-fast) var(--sv-ease-hover);
86
+ /* WCAG 2.5.8 (AA): 24×24 CSS px minimum target size. */
87
+ display: inline-flex;
88
+ align-items: center;
89
+ min-height: 24px;
56
90
  }
57
- .qt-header__link:hover,
58
- .qt-header__link--active {
59
- color: var(--qt-text);
91
+ .sv-header__link:hover,
92
+ .sv-header__link--active {
93
+ color: var(--sv-text);
60
94
  }
61
- .qt-header__actions {
95
+ .sv-header__actions {
62
96
  display: flex;
63
97
  align-items: center;
64
- gap: var(--qt-space-3);
98
+ gap: var(--sv-space-3);
65
99
  }
66
100
 
67
101
  /* ---------- Logo ---------- */
68
- .qt-logo {
102
+ .sv-logo {
69
103
  display: inline-flex;
70
104
  align-items: center;
71
- gap: var(--qt-space-2);
105
+ gap: var(--sv-space-2);
72
106
  text-decoration: none;
73
- font-family: var(--qt-font-display);
107
+ font-family: var(--sv-font-display);
74
108
  font-weight: 600;
75
- font-size: var(--qt-text-md);
76
- color: var(--qt-text);
109
+ font-size: var(--sv-text-md);
110
+ color: var(--sv-text);
77
111
  }
78
- .qt-logo__dot {
112
+ .sv-logo__dot {
79
113
  width: 8px;
80
114
  height: 8px;
81
- border-radius: var(--qt-radius-full);
82
- background: var(--qt-accent);
115
+ border-radius: var(--sv-radius-full);
116
+ background: var(--sv-accent);
83
117
  flex-shrink: 0;
84
118
  }
85
119
 
86
120
  /* ---------- Footer ---------- */
87
- .qt-footer {
88
- border-top: 1px solid var(--qt-border);
89
- padding: var(--qt-space-8) var(--qt-space-6);
121
+ .sv-footer {
122
+ border-top: 1px solid var(--sv-border);
123
+ padding: var(--sv-space-8) var(--sv-space-6);
90
124
  display: flex;
91
125
  align-items: center;
92
126
  justify-content: space-between;
93
- gap: var(--qt-space-6);
127
+ gap: var(--sv-space-6);
94
128
  flex-wrap: wrap;
95
- color: var(--qt-text-2);
96
- font-size: var(--qt-text-sm);
129
+ color: var(--sv-text-2);
130
+ font-size: var(--sv-text-sm);
97
131
  }
98
- .qt-footer__links {
132
+ .sv-footer__links {
99
133
  display: flex;
100
- gap: var(--qt-space-5);
134
+ gap: var(--sv-space-5);
101
135
  }
102
- .qt-footer__link {
103
- color: var(--qt-text-2);
136
+ .sv-footer__link {
137
+ color: var(--sv-text-2);
104
138
  text-decoration: none;
105
- transition: color var(--qt-duration-fast) var(--qt-ease-hover);
139
+ transition: color var(--sv-duration-fast) var(--sv-ease-hover);
106
140
  }
107
- .qt-footer__link:hover {
108
- color: var(--qt-text);
141
+ .sv-footer__link:hover {
142
+ color: var(--sv-text);
109
143
  }
110
144
 
111
145
  /* ---------- CategoryPill ---------- */
112
- .qt-pill {
146
+ .sv-pill {
113
147
  display: inline-flex;
114
148
  align-items: center;
115
- gap: var(--qt-space-2);
116
- padding: var(--qt-space-1) var(--qt-space-3);
117
- border: 1px solid var(--qt-border);
118
- border-radius: var(--qt-radius-full);
119
- background: var(--qt-surface);
120
- color: var(--qt-text-2);
121
- font-size: var(--qt-text-xs);
149
+ gap: var(--sv-space-2);
150
+ padding: var(--sv-space-1) var(--sv-space-3);
151
+ border: 1px solid var(--sv-border);
152
+ border-radius: var(--sv-radius-full);
153
+ background: var(--sv-surface);
154
+ color: var(--sv-text-2);
155
+ font-size: var(--sv-text-xs);
122
156
  font-weight: 600;
123
157
  letter-spacing: 0.08em;
124
158
  text-transform: uppercase;
125
159
  white-space: nowrap;
126
160
  }
127
- .qt-pill__dot {
161
+ .sv-pill__dot {
128
162
  width: 6px;
129
163
  height: 6px;
130
- border-radius: var(--qt-radius-full);
131
- background: var(--qt-pill-color, var(--qt-accent));
164
+ border-radius: var(--sv-radius-full);
165
+ background: var(--sv-pill-color, var(--sv-accent));
132
166
  flex-shrink: 0;
133
167
  }
134
- .qt-pill--interactive {
168
+ .sv-pill--interactive {
135
169
  appearance: none;
136
170
  font-family: inherit;
137
171
  cursor: pointer;
138
172
  transition:
139
- color var(--qt-duration-fast) var(--qt-ease-hover),
140
- border-color var(--qt-duration-fast) var(--qt-ease-hover);
173
+ color var(--sv-duration-fast) var(--sv-ease-hover),
174
+ border-color var(--sv-duration-fast) var(--sv-ease-hover);
141
175
  }
142
- .qt-pill--interactive:hover,
143
- .qt-pill--active {
144
- color: var(--qt-text);
145
- border-color: var(--qt-border-strong);
176
+ .sv-pill--interactive:hover,
177
+ .sv-pill--active {
178
+ color: var(--sv-text);
179
+ border-color: var(--sv-border-strong);
146
180
  }
147
181
 
148
182
  /* ---------- PostCard ---------- */
149
- .qt-post-card {
183
+ .sv-post-card {
150
184
  display: flex;
151
185
  flex-direction: column;
152
- gap: var(--qt-space-3);
153
- padding: var(--qt-space-6);
154
- background: var(--qt-surface);
155
- border: 1px solid var(--qt-border);
156
- border-radius: var(--qt-radius-lg);
186
+ gap: var(--sv-space-3);
187
+ padding: var(--sv-space-6);
188
+ background: var(--sv-surface);
189
+ border: 1px solid var(--sv-border);
190
+ border-radius: var(--sv-radius-lg);
157
191
  /* No shadow. Ever. */
158
192
  box-shadow: none;
159
193
  }
160
- .qt-post-card--dense {
161
- padding: var(--qt-space-4);
162
- gap: var(--qt-space-2);
194
+ .sv-post-card--dense {
195
+ padding: var(--sv-space-4);
196
+ gap: var(--sv-space-2);
163
197
  }
164
- .qt-post-card__meta {
198
+ .sv-post-card__meta {
165
199
  display: flex;
166
200
  align-items: center;
167
- gap: var(--qt-space-3);
168
- color: var(--qt-text-3);
169
- font-size: var(--qt-text-xs);
201
+ gap: var(--sv-space-3);
202
+ color: var(--sv-text-3);
203
+ font-size: var(--sv-text-xs);
170
204
  }
171
- .qt-post-card__title {
172
- font-family: var(--qt-font-display);
173
- font-size: var(--qt-text-xl);
205
+ .sv-post-card__title {
206
+ font-family: var(--sv-font-display);
207
+ font-size: var(--sv-text-xl);
174
208
  font-weight: 600;
175
209
  letter-spacing: -0.02em;
176
210
  text-wrap: balance;
177
- color: var(--qt-text);
211
+ color: var(--sv-text);
178
212
  margin: 0;
179
213
  }
180
- .qt-post-card--dense .qt-post-card__title {
181
- font-size: var(--qt-text-md);
214
+ .sv-post-card--dense .sv-post-card__title {
215
+ font-size: var(--sv-text-md);
182
216
  }
183
- .qt-post-card__title a {
217
+ .sv-post-card__title a {
184
218
  color: inherit;
185
219
  text-decoration: none;
186
220
  }
187
- .qt-post-card__excerpt {
188
- color: var(--qt-text-2);
189
- font-size: var(--qt-text-base);
221
+ .sv-post-card__excerpt {
222
+ color: var(--sv-text-2);
223
+ font-size: var(--sv-text-base);
190
224
  line-height: 1.5;
191
225
  margin: 0;
192
226
  }
193
227
 
194
228
  /* ---------- FeaturedPostCard ---------- */
195
- .qt-featured-card {
229
+ .sv-featured-card {
196
230
  display: grid;
197
231
  grid-template-columns: 1fr;
198
- gap: var(--qt-space-6);
199
- padding: var(--qt-space-8);
232
+ gap: var(--sv-space-6);
233
+ padding: var(--sv-space-8);
200
234
  overflow: hidden;
201
235
  }
202
236
  @media (min-width: 768px) {
203
- .qt-featured-card {
237
+ .sv-featured-card {
204
238
  grid-template-columns: 3fr 2fr;
205
239
  align-items: center;
206
240
  }
207
241
  }
208
- .qt-featured-card__body {
242
+ .sv-featured-card__body {
209
243
  display: flex;
210
244
  flex-direction: column;
211
- gap: var(--qt-space-4);
245
+ gap: var(--sv-space-4);
212
246
  }
213
- .qt-featured-card__title {
214
- font-family: var(--qt-font-display);
215
- font-size: var(--qt-text-2xl);
247
+ .sv-featured-card__title {
248
+ font-family: var(--sv-font-display);
249
+ font-size: var(--sv-text-2xl);
216
250
  font-weight: 700;
217
251
  letter-spacing: -0.02em;
218
252
  text-wrap: balance;
219
- color: var(--qt-text);
253
+ color: var(--sv-text);
220
254
  margin: 0;
221
255
  }
222
- .qt-featured-card__title a {
256
+ .sv-featured-card__title a {
223
257
  color: inherit;
224
258
  text-decoration: none;
225
259
  }
226
- .qt-featured-card__visual {
260
+ .sv-featured-card__visual {
261
+ aspect-ratio: 16 / 10;
227
262
  min-height: 160px;
228
- border-radius: var(--qt-radius-md);
229
- background: var(--qt-surface-2);
263
+ border-radius: var(--sv-radius-md);
264
+ background: var(--sv-surface-2);
230
265
  display: flex;
231
266
  align-items: center;
232
267
  justify-content: center;
@@ -234,317 +269,329 @@ body.qt-body {
234
269
  }
235
270
 
236
271
  /* ---------- PostGrid + Sidebar layout ---------- */
237
- .qt-post-grid {
272
+ .sv-post-grid {
238
273
  display: grid;
239
274
  grid-template-columns: 1fr;
240
- gap: var(--qt-space-6);
275
+ gap: var(--sv-space-6);
241
276
  }
242
277
  @media (min-width: 640px) {
243
- .qt-post-grid {
278
+ .sv-post-grid {
244
279
  grid-template-columns: repeat(2, 1fr);
245
280
  }
246
281
  }
247
- .qt-layout {
282
+ .sv-layout {
248
283
  display: grid;
249
284
  grid-template-columns: 1fr;
250
- gap: var(--qt-space-10);
285
+ gap: var(--sv-space-10);
251
286
  max-width: 1120px;
252
287
  margin: 0 auto;
253
- padding: var(--qt-space-8) var(--qt-space-6);
288
+ padding: var(--sv-space-8) var(--sv-space-6);
254
289
  }
255
290
  @media (min-width: 1024px) {
256
- .qt-layout--with-sidebar {
291
+ .sv-layout--with-sidebar {
257
292
  grid-template-columns: minmax(0, 1fr) 280px;
258
293
  }
259
294
  }
260
- .qt-sidebar {
295
+ .sv-sidebar {
261
296
  display: flex;
262
297
  flex-direction: column;
263
- gap: var(--qt-space-8);
298
+ gap: var(--sv-space-8);
264
299
  }
265
- .qt-sidebar__section-title {
266
- font-size: var(--qt-text-sm);
300
+ .sv-sidebar__section-title {
301
+ font-size: var(--sv-text-sm);
267
302
  font-weight: 600;
268
303
  letter-spacing: 0.08em;
269
304
  text-transform: uppercase;
270
- color: var(--qt-text-3);
271
- margin: 0 0 var(--qt-space-4);
305
+ color: var(--sv-text-3);
306
+ margin: 0 0 var(--sv-space-4);
272
307
  }
273
308
 
274
309
  /* ---------- Hero ---------- */
275
- .qt-hero {
310
+ .sv-hero {
276
311
  display: flex;
277
312
  flex-direction: column;
278
- gap: var(--qt-space-4);
279
- padding: var(--qt-space-16) 0 var(--qt-space-12);
313
+ gap: var(--sv-space-4);
314
+ padding: var(--sv-space-16) 0 var(--sv-space-12);
280
315
  }
281
- .qt-hero__eyebrow {
282
- color: var(--qt-accent);
283
- font-family: var(--qt-font-mono);
284
- font-size: var(--qt-text-sm);
316
+ .sv-hero__eyebrow {
317
+ color: var(--sv-accent-ink);
318
+ font-family: var(--sv-font-mono);
319
+ font-size: var(--sv-text-sm);
285
320
  letter-spacing: 0.08em;
286
321
  text-transform: uppercase;
287
322
  }
288
- .qt-hero__title {
289
- font-family: var(--qt-font-display);
290
- font-size: var(--qt-text-4xl);
323
+ .sv-hero__title {
324
+ font-family: var(--sv-font-display);
325
+ font-size: var(--sv-text-4xl);
291
326
  font-weight: 700;
292
327
  letter-spacing: -0.02em;
293
328
  line-height: 1.15;
294
329
  text-wrap: balance;
295
- color: var(--qt-text);
330
+ color: var(--sv-text);
296
331
  margin: 0;
297
332
  }
298
- .qt-hero__description {
299
- color: var(--qt-text-2);
300
- font-size: var(--qt-text-lg);
333
+ .sv-hero__description {
334
+ color: var(--sv-text-2);
335
+ font-size: var(--sv-text-lg);
301
336
  line-height: 1.7;
302
337
  max-width: 60ch;
303
338
  margin: 0;
304
339
  }
305
340
 
306
341
  /* ---------- Skeleton ---------- */
307
- .qt-skeleton-line {
308
- height: var(--qt-space-4);
342
+ .sv-skeleton-line {
343
+ height: var(--sv-space-4);
309
344
  }
310
- .qt-skeleton-line--sm {
311
- height: var(--qt-space-3);
345
+ .sv-skeleton-line--sm {
346
+ height: var(--sv-space-3);
312
347
  width: 40%;
313
348
  }
314
- .qt-card-skeleton {
349
+ .sv-card-skeleton {
315
350
  display: flex;
316
351
  flex-direction: column;
317
- gap: var(--qt-space-3);
318
- padding: var(--qt-space-6);
319
- border: 1px solid var(--qt-border);
320
- border-radius: var(--qt-radius-lg);
352
+ gap: var(--sv-space-3);
353
+ padding: var(--sv-space-6);
354
+ border: 1px solid var(--sv-border);
355
+ border-radius: var(--sv-radius-lg);
321
356
  }
322
357
 
323
358
  /* ---------- CodeBlock ---------- */
324
- .qt-code-block {
359
+ .sv-code-block {
325
360
  position: relative;
326
- background: var(--qt-bg-elev);
327
- border: 1px solid var(--qt-border);
328
- border-radius: var(--qt-radius-lg);
361
+ background: var(--sv-bg-elev);
362
+ border: 1px solid var(--sv-border);
363
+ border-radius: var(--sv-radius-lg);
329
364
  overflow: hidden;
330
- font-family: var(--qt-font-mono);
331
- font-size: var(--qt-text-sm);
365
+ font-family: var(--sv-font-mono);
366
+ font-size: var(--sv-text-sm);
332
367
  }
333
- .qt-code-block__header {
368
+ .sv-code-block__header {
334
369
  display: flex;
335
370
  align-items: center;
336
371
  justify-content: space-between;
337
- gap: var(--qt-space-3);
338
- padding: var(--qt-space-2) var(--qt-space-4);
339
- border-bottom: 1px solid var(--qt-border);
340
- color: var(--qt-text-3);
341
- font-size: var(--qt-text-xs);
372
+ gap: var(--sv-space-3);
373
+ padding: var(--sv-space-2) var(--sv-space-4);
374
+ border-bottom: 1px solid var(--sv-border);
375
+ color: var(--sv-text-3);
376
+ font-size: var(--sv-text-xs);
342
377
  letter-spacing: 0.08em;
343
378
  text-transform: uppercase;
344
379
  }
345
- .qt-code-block__pre {
380
+ .sv-code-block__pre {
346
381
  margin: 0;
347
- padding: var(--qt-space-4);
382
+ padding: var(--sv-space-4);
348
383
  overflow-x: auto;
349
384
  line-height: 1.7;
350
- color: var(--qt-text);
385
+ color: var(--sv-text);
351
386
  }
352
- .qt-code-block__copy {
387
+ .sv-code-block__copy {
353
388
  appearance: none;
354
- border: 1px solid var(--qt-border);
355
- background: var(--qt-surface);
356
- color: var(--qt-text-2);
357
- font-family: var(--qt-font-body);
358
- font-size: var(--qt-text-xs);
389
+ border: 1px solid var(--sv-border);
390
+ background: var(--sv-surface);
391
+ color: var(--sv-text-2);
392
+ font-family: var(--sv-font-body);
393
+ font-size: var(--sv-text-xs);
359
394
  font-weight: 600;
360
- padding: var(--qt-space-1) var(--qt-space-3);
361
- border-radius: var(--qt-radius-sm);
395
+ padding: var(--sv-space-1) var(--sv-space-3);
396
+ border-radius: var(--sv-radius-sm);
362
397
  cursor: pointer;
363
398
  transition:
364
- color var(--qt-duration-fast) var(--qt-ease-hover),
365
- border-color var(--qt-duration-fast) var(--qt-ease-hover);
399
+ color var(--sv-duration-fast) var(--sv-ease-hover),
400
+ border-color var(--sv-duration-fast) var(--sv-ease-hover);
401
+ /* WCAG 2.5.8 (AA): 24×24 CSS px minimum target size. */
402
+ display: inline-flex;
403
+ align-items: center;
404
+ justify-content: center;
405
+ min-height: 24px;
366
406
  }
367
- .qt-code-block__copy:hover {
368
- color: var(--qt-text);
369
- border-color: var(--qt-border-strong);
407
+ .sv-code-block__copy:hover {
408
+ color: var(--sv-text);
409
+ border-color: var(--sv-border-strong);
370
410
  }
371
- .qt-code-block__copy--copied {
372
- color: var(--qt-accent);
373
- border-color: var(--qt-accent);
411
+ .sv-code-block__copy--copied {
412
+ color: var(--sv-accent-ink);
413
+ border-color: var(--sv-accent-ink);
374
414
  }
375
415
 
376
416
  /* ---------- Callout ---------- */
377
- .qt-callout {
417
+ .sv-callout {
378
418
  display: flex;
379
- gap: var(--qt-space-3);
380
- padding: var(--qt-space-4) var(--qt-space-5);
381
- border: 1px solid var(--qt-border);
382
- border-left: 2px solid var(--qt-callout-color, var(--qt-accent));
383
- border-radius: var(--qt-radius-md);
384
- background: var(--qt-surface);
385
- color: var(--qt-text-2);
386
- font-size: var(--qt-text-base);
419
+ gap: var(--sv-space-3);
420
+ padding: var(--sv-space-4) var(--sv-space-5);
421
+ border: 1px solid var(--sv-border);
422
+ border-inline-start: 2px solid var(--sv-callout-color, var(--sv-accent-ink));
423
+ border-radius: var(--sv-radius-md);
424
+ background: var(--sv-surface);
425
+ color: var(--sv-text-2);
426
+ font-size: var(--sv-text-base);
387
427
  line-height: 1.5;
388
428
  }
389
- .qt-callout--note {
390
- --qt-callout-color: var(--qt-accent-cyan);
429
+ .sv-callout--note {
430
+ --sv-callout-color: var(--sv-accent-cyan-ink);
391
431
  }
392
- .qt-callout--warn {
393
- --qt-callout-color: var(--qt-accent-amber);
432
+ .sv-callout--warn {
433
+ --sv-callout-color: var(--sv-accent-amber-ink);
394
434
  }
395
- .qt-callout--aha {
396
- --qt-callout-color: var(--qt-accent-violet);
435
+ .sv-callout--aha {
436
+ --sv-callout-color: var(--sv-accent-violet-ink);
397
437
  }
398
- .qt-callout__label {
399
- font-family: var(--qt-font-mono);
400
- font-size: var(--qt-text-xs);
438
+ .sv-callout__label {
439
+ font-family: var(--sv-font-mono);
440
+ font-size: var(--sv-text-xs);
401
441
  font-weight: 500;
402
442
  letter-spacing: 0.08em;
403
443
  text-transform: uppercase;
404
- color: var(--qt-callout-color, var(--qt-accent));
444
+ color: var(--sv-callout-color, var(--sv-accent-ink));
405
445
  flex-shrink: 0;
406
446
  padding-top: 2px;
407
447
  }
408
448
 
409
449
  /* ---------- TableOfContents ---------- */
410
- .qt-toc {
450
+ .sv-toc {
411
451
  display: flex;
412
452
  flex-direction: column;
413
- gap: var(--qt-space-2);
414
- border-left: 1px solid var(--qt-border);
415
- padding-left: var(--qt-space-4);
453
+ gap: var(--sv-space-2);
454
+ border-inline-start: 1px solid var(--sv-border);
455
+ padding-inline-start: var(--sv-space-4);
416
456
  }
417
- .qt-toc__link {
418
- color: var(--qt-text-3);
457
+ .sv-toc__link {
458
+ display: inline-flex;
459
+ align-items: center;
460
+ /* WCAG 2.5.8 (AA): 24×24 CSS px minimum target size. */
461
+ min-height: 24px;
462
+ color: var(--sv-text-3);
419
463
  text-decoration: none;
420
- font-size: var(--qt-text-sm);
464
+ font-size: var(--sv-text-sm);
421
465
  line-height: 1.5;
422
- transition: color var(--qt-duration-fast) var(--qt-ease-hover);
466
+ transition: color var(--sv-duration-fast) var(--sv-ease-hover);
423
467
  }
424
- .qt-toc__link:hover {
425
- color: var(--qt-text-2);
468
+ .sv-toc__link:hover {
469
+ color: var(--sv-text-2);
426
470
  }
427
- .qt-toc__link--active {
428
- color: var(--qt-accent);
471
+ .sv-toc__link--active {
472
+ color: var(--sv-accent-ink);
429
473
  }
430
- .qt-toc__link--depth-3 {
431
- padding-left: var(--qt-space-4);
474
+ .sv-toc__link--depth-3 {
475
+ padding-inline-start: var(--sv-space-4);
432
476
  }
433
477
 
434
478
  /* ---------- ReadingProgress ---------- */
435
- .qt-reading-progress {
479
+ .sv-reading-progress {
436
480
  position: fixed;
437
481
  top: 0;
438
482
  left: 0;
439
483
  right: 0;
440
484
  height: 2px;
441
- z-index: 50;
485
+ z-index: var(--sv-z-toast);
442
486
  background: transparent;
443
487
  pointer-events: none;
444
488
  }
445
- .qt-reading-progress__bar {
489
+ .sv-reading-progress__bar {
446
490
  height: 100%;
447
491
  width: 100%;
448
- background: var(--qt-accent);
492
+ background: var(--sv-accent-ink);
449
493
  transform-origin: 0 50%;
450
- transform: scaleX(var(--qt-reading-progress, 0));
494
+ transform: scaleX(var(--sv-reading-progress, 0));
451
495
  /* progress is linear by spec — no hover easing here */
452
- transition: transform var(--qt-duration-fast) linear;
496
+ transition: transform var(--sv-duration-fast) linear;
453
497
  }
454
498
 
455
499
  /* ---------- ArticleHeader ---------- */
456
- .qt-article-header {
500
+ .sv-article-header {
457
501
  display: flex;
458
502
  flex-direction: column;
459
- gap: var(--qt-space-5);
460
- padding: var(--qt-space-12) 0 var(--qt-space-8);
461
- border-bottom: 1px solid var(--qt-border);
503
+ gap: var(--sv-space-5);
504
+ padding: var(--sv-space-12) 0 var(--sv-space-8);
505
+ border-bottom: 1px solid var(--sv-border);
462
506
  }
463
- .qt-article-header__title {
464
- font-family: var(--qt-font-display);
465
- font-size: var(--qt-text-3xl);
507
+ .sv-article-header__title {
508
+ font-family: var(--sv-font-display);
509
+ font-size: var(--sv-text-3xl);
466
510
  font-weight: 700;
467
511
  letter-spacing: -0.02em;
468
512
  line-height: 1.15;
469
513
  text-wrap: balance;
470
- color: var(--qt-text);
514
+ color: var(--sv-text);
471
515
  margin: 0;
472
516
  }
473
- .qt-article-header__meta {
517
+ .sv-article-header__meta {
474
518
  display: flex;
475
519
  align-items: center;
476
- gap: var(--qt-space-3);
477
- color: var(--qt-text-3);
478
- font-size: var(--qt-text-sm);
520
+ gap: var(--sv-space-3);
521
+ color: var(--sv-text-3);
522
+ font-size: var(--sv-text-sm);
479
523
  }
480
- .qt-article-header__author {
481
- color: var(--qt-text-2);
524
+ .sv-article-header__author {
525
+ color: var(--sv-text-2);
482
526
  font-weight: 600;
483
527
  }
484
528
 
485
529
  /* ---------- Prose ---------- */
486
- .qt-prose {
487
- color: var(--qt-text-2);
488
- font-family: var(--qt-font-body);
489
- font-size: var(--qt-text-md);
530
+ .sv-prose {
531
+ /* Article body is the primary content, not metadata — --sv-text-2 (muted)
532
+ reads as an AI-slop tell here (long-form copy dimmed "for elegance")
533
+ and is the wrong semantic role: --sv-text-2 is for secondary/meta text. */
534
+ color: var(--sv-text);
535
+ font-family: var(--sv-font-body);
536
+ font-size: var(--sv-text-md);
490
537
  line-height: 1.7;
491
538
  max-width: 68ch;
492
539
  }
493
- .qt-prose h2 {
494
- font-family: var(--qt-font-display);
495
- font-size: var(--qt-text-2xl);
540
+ .sv-prose h2 {
541
+ font-family: var(--sv-font-display);
542
+ font-size: var(--sv-text-2xl);
496
543
  font-weight: 600;
497
544
  letter-spacing: -0.02em;
498
545
  text-wrap: balance;
499
- color: var(--qt-text);
500
- margin: var(--qt-space-10) 0 var(--qt-space-4);
546
+ color: var(--sv-text);
547
+ margin: var(--sv-space-10) 0 var(--sv-space-4);
501
548
  }
502
- .qt-prose h3 {
503
- font-family: var(--qt-font-display);
504
- font-size: var(--qt-text-xl);
549
+ .sv-prose h3 {
550
+ font-family: var(--sv-font-display);
551
+ font-size: var(--sv-text-xl);
505
552
  font-weight: 600;
506
553
  letter-spacing: -0.02em;
507
554
  text-wrap: balance;
508
- color: var(--qt-text);
509
- margin: var(--qt-space-8) 0 var(--qt-space-3);
555
+ color: var(--sv-text);
556
+ margin: var(--sv-space-8) 0 var(--sv-space-3);
510
557
  }
511
- .qt-prose p {
512
- margin: 0 0 var(--qt-space-5);
558
+ .sv-prose p {
559
+ margin: 0 0 var(--sv-space-5);
513
560
  }
514
- .qt-prose .qt-prose__lead {
515
- font-size: var(--qt-text-lg);
516
- color: var(--qt-text);
561
+ .sv-prose .sv-prose__lead {
562
+ font-size: var(--sv-text-lg);
563
+ color: var(--sv-text);
517
564
  }
518
- .qt-prose a {
519
- color: var(--qt-accent);
565
+ .sv-prose a {
566
+ color: var(--sv-accent-ink);
520
567
  text-decoration: underline;
521
568
  text-underline-offset: 3px;
522
569
  }
523
- .qt-prose code {
524
- font-family: var(--qt-font-mono);
570
+ .sv-prose code {
571
+ font-family: var(--sv-font-mono);
525
572
  font-size: 0.9em;
526
- background: var(--qt-surface-2);
527
- border: 1px solid var(--qt-border);
528
- border-radius: var(--qt-radius-sm);
529
- padding: 1px var(--qt-space-1);
573
+ background: var(--sv-surface-2);
574
+ border: 1px solid var(--sv-border);
575
+ border-radius: var(--sv-radius-sm);
576
+ padding: 1px var(--sv-space-1);
530
577
  }
531
- .qt-prose pre code {
578
+ .sv-prose pre code {
532
579
  background: none;
533
580
  border: none;
534
581
  padding: 0;
535
582
  }
536
- .qt-prose ul,
537
- .qt-prose ol {
538
- padding-left: var(--qt-space-5);
539
- margin: 0 0 var(--qt-space-5);
583
+ .sv-prose ul,
584
+ .sv-prose ol {
585
+ padding-inline-start: var(--sv-space-5);
586
+ margin: 0 0 var(--sv-space-5);
540
587
  }
541
- .qt-prose li {
542
- margin-bottom: var(--qt-space-2);
588
+ .sv-prose li {
589
+ margin-bottom: var(--sv-space-2);
543
590
  }
544
- .qt-prose blockquote {
545
- border-left: 2px solid var(--qt-accent);
546
- margin: var(--qt-space-6) 0;
547
- padding-left: var(--qt-space-5);
548
- color: var(--qt-text);
591
+ .sv-prose blockquote {
592
+ border-inline-start: 2px solid var(--sv-accent);
593
+ margin: var(--sv-space-6) 0;
594
+ padding-inline-start: var(--sv-space-5);
595
+ color: var(--sv-text);
549
596
  font-style: italic;
550
597
  }