-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.css
More file actions
675 lines (578 loc) · 20.3 KB
/
Copy pathapp.css
File metadata and controls
675 lines (578 loc) · 20.3 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
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
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
/* brust docs site — Tailwind v4 + DESIGN.md tokens.
Dark is the :root DEFAULT (no data-theme attribute required); light is
opt-in via <html data-theme="light">. See DESIGN.md for the full table. */
@import "tailwindcss";
@source "./**/*.{tsx,ts}";
/* ── Self-hosted fonts (public/fonts, latin subset; @fontsource woff2) ────
font-display: swap + the system stacks in the --font-* tokens below keep
text readable before the swap. URLs are root-absolute: public/ is
root-mapped by the server and copied into the SSG static root. */
@font-face {
font-family: "Schibsted Grotesk";
font-style: normal;
font-display: swap;
font-weight: 400;
src: url("/fonts/schibsted-grotesk-latin-400-normal.woff2") format("woff2");
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
font-family: "Schibsted Grotesk";
font-style: italic;
font-display: swap;
font-weight: 400;
src: url("/fonts/schibsted-grotesk-latin-400-italic.woff2") format("woff2");
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
font-family: "Schibsted Grotesk";
font-style: normal;
font-display: swap;
font-weight: 500;
src: url("/fonts/schibsted-grotesk-latin-500-normal.woff2") format("woff2");
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
font-family: "Schibsted Grotesk";
font-style: italic;
font-display: swap;
font-weight: 500;
src: url("/fonts/schibsted-grotesk-latin-500-italic.woff2") format("woff2");
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
font-family: "Schibsted Grotesk";
font-style: normal;
font-display: swap;
font-weight: 700;
src: url("/fonts/schibsted-grotesk-latin-700-normal.woff2") format("woff2");
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
font-family: "Schibsted Grotesk";
font-style: italic;
font-display: swap;
font-weight: 700;
src: url("/fonts/schibsted-grotesk-latin-700-italic.woff2") format("woff2");
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
font-family: "Spline Sans Mono";
font-style: normal;
font-display: swap;
font-weight: 400;
src: url("/fonts/spline-sans-mono-latin-400-normal.woff2") format("woff2");
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
font-family: "Spline Sans Mono";
font-style: normal;
font-display: swap;
font-weight: 600;
src: url("/fonts/spline-sans-mono-latin-600-normal.woff2") format("woff2");
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* ── Runtime semantic tokens (theme-flipped) ──────────────────────────── */
:root {
/* dark default — near-black warm ink #201712 oklch(0.18 0.014 42) */
--bg: oklch(0.18 0.014 42);
--surface: oklch(0.22 0.018 42);
--fg: oklch(0.935 0.021 68); /* cream #F6E9D6 */
--fg-muted: oklch(0.75 0.03 68);
--line: oklch(0.30 0.02 42);
--link: oklch(0.76 0.17 76); /* amber #F59E0B */
/* rust #C2410C solid CTA */
--accent: oklch(0.53 0.20 40);
--accent-fg: oklch(0.985 0.002 68);
/* z-index scale — nothing else gets a z-index */
--z-nav: 10;
--z-palette-backdrop: 40;
--z-palette: 50;
--z-preloader: 60; /* SPA-nav progress bar — a 2px line over everything */
/* motion */
--ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
color-scheme: dark;
}
[data-theme="light"] {
/* Bun theme cream #F6E9D6 background */
--bg: oklch(0.935 0.021 68);
--surface: oklch(0.90 0.03 68);
--fg: oklch(0.18 0.014 42); /* ink #201712 */
--fg-muted: oklch(0.42 0.03 45);
--line: oklch(0.82 0.04 68);
--link: oklch(0.48 0.18 38); /* darker rust to pass 4.5:1 contrast against cream */
color-scheme: light;
}
/* ── Tailwind theme ───────────────────────────────────────────────────── */
@theme inline {
--color-bg: var(--bg);
--color-surface: var(--surface);
--color-fg: var(--fg);
--color-fg-muted: var(--fg-muted);
--color-line: var(--line);
--color-link: var(--link);
--color-accent: var(--accent);
--color-accent-fg: var(--accent-fg);
}
@theme {
/* brand warm palette (static; theme-independent references) */
--color-brand-300: oklch(0.76 0.17 76); /* #F59E0B amber */
--color-brand-500: oklch(0.61 0.22 42); /* #EA580C ember */
--color-brand-700: oklch(0.48 0.18 38); /* dark rust */
/* type — Schibsted Grotesk / Spline Sans Mono self-hosted (public/fonts,
@font-face above); the system stacks cover pre-swap + missing glyphs */
--font-sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
--font-mono: "Spline Sans Mono", ui-monospace, "SF Mono", Menlo, monospace;
/* 1.25-ratio scale from 1rem body */
--text-sm: 0.8rem;
--text-base: 1rem;
--text-lg: 1.25rem;
--text-xl: 1.5625rem;
--text-2xl: 1.953rem;
--text-3xl: 2.441rem;
--text-4xl: 3.052rem;
--text-hero: clamp(2.75rem, 1rem + 6vw, 5.5rem); /* max ≤ 5.5rem (binding) */
--text-hero--line-height: 1.05;
/* radius — 12px is the MAXIMUM */
--radius-card: 12px;
--radius-control: 8px;
--radius-chip: 6px;
}
/* ── Base ─────────────────────────────────────────────────────────────── */
html {
background-color: var(--bg);
color: var(--fg);
font-family: var(--font-sans);
-webkit-font-smoothing: antialiased;
}
h1,
h2,
h3 {
text-wrap: balance;
letter-spacing: -0.02em; /* applied: −0.02em (constraint: no tighter than −0.03em) */
}
button {
cursor: pointer;
}
/* motion policy: grainient owns the page-load moment; everything else
≤ 200ms ease-out-quart. Reduced motion → instant (grainient renders one
frame via its own matchMedia check in the behavior). */
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
}
}
/* ── Docs sidebar active item ─────────────────────────────────────────────
Keyed on [aria-current="page"], NOT baked utility classes: the sidebar is
outside <main>, so SPA navigation can't re-render it — the runtime
active-nav reconciler moves aria-current between links instead
([data-brust-active-nav] on the nav opts in). Unlayered rule deliberately
outbids the Tailwind hover utility on the same links. */
nav[data-brust-active-nav] a[aria-current="page"] {
background: var(--surface);
color: var(--link);
font-weight: 500;
}
/* ── Theme toggle icon swap ───────────────────────────────────────────────
Pure CSS off html[data-theme] so the correct icon shows before the
behavior mounts (the FOUC head script stamps the attribute pre-paint).
Sun shows in dark ("switch to light"), Moon in light. */
[data-theme="light"] .theme-icon-dark {
display: none;
}
html:not([data-theme="light"]) .theme-icon-light {
display: none;
}
/* ── Search palette (the ONE React island, components/SearchPalette.tsx) ──
The island hydrates on idle with NO ssr markup, so the header slot must
own the trigger's box: fixed size here, button fills it (display:contents
collapses the data-brust-island host div). */
.search-slot {
display: inline-flex;
width: 9rem;
height: 2.5rem; /* hit area ≥ 40px */
}
.search-slot [data-brust-island] {
display: contents;
}
/* <dialog> sits in the top layer (no stacking-context fights), but the
z tokens are the binding scale — applied for uniformity. */
dialog.search-palette {
z-index: var(--z-palette);
width: min(34rem, calc(100vw - 2rem));
margin: 10vh auto auto;
padding: 0;
border: 1px solid var(--line);
border-radius: var(--radius-card); /* ≤ 12px (binding max) */
background: var(--bg);
color: var(--fg);
}
dialog.search-palette::backdrop {
z-index: var(--z-palette-backdrop);
background: rgb(32 23 18 / 0.55); /* ink tone overlay */
}
/* open moment: ≤200ms ease-out-quart; the global reduced-motion rule above
flattens this to one frame (opens without transition). */
dialog.search-palette[open] {
animation: palette-in 160ms var(--ease-out-quart);
}
@keyframes palette-in {
from {
opacity: 0;
transform: translateY(-6px);
}
}
/* ── Home hero: grainient canvas + glass pill (the ONE glass use) ─────── */
/* WebGL2 canvas host — fills the relative hero section behind the copy */
.grainient {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
display: block;
pointer-events: none;
}
/* WebGL2 unavailable → the behavior adds this to the canvas's PARENT:
a static gradient in the same trio (#1bcf96 / #27aeff / #08050b). */
.grainient-fallback {
background:
radial-gradient(110% 80% at 85% 8%, rgb(245 158 11 / 0.22), transparent 60%),
radial-gradient(120% 90% at 12% 88%, rgb(234 88 12 / 0.22), transparent 62%),
#201712;
}
/* contrast scrim between the animated field and the hero copy (binding
>=4.5:1 — the field can swing bright amber/ember behind the text) */
.hero-scrim {
position: absolute;
inset: 0;
pointer-events: none;
background: linear-gradient(
180deg,
rgb(32 23 18 / 0.55),
rgb(32 23 18 / 0.55) 45%,
rgb(32 23 18 / 0.72)
);
}
.glass-pill {
background: rgb(8 5 11 / 0.5);
border: 1px solid rgb(255 255 255 / 0.14);
-webkit-backdrop-filter: blur(14px) saturate(140%);
backdrop-filter: blur(14px) saturate(140%);
}
/* ── Home unified-store diagram: connector lines + traveling pulses ──────
Pure CSS/SVG, no JS animation loop: a hairline base line plus a dashed
brand-green overlay whose dashoffset loops one full dash period
(14 + 110 = 124px), so the motion is seamless at ANY line length without
pathLength math. `.connector-rev` reverses travel so both connectors flow
INTO the store node. Reduced motion: the pulse stroke is removed entirely
and the static hairline stays (the global 0.01ms rule alone would freeze
a dash mid-line, which reads as a broken line). */
.connector-base {
stroke: var(--line);
stroke-width: 2px;
}
.connector-pulse {
stroke: var(--link);
stroke-width: 2px;
stroke-linecap: round;
stroke-dasharray: 14 110;
animation: connector-travel 2.8s linear infinite;
}
.connector-rev {
animation-direction: reverse;
}
@keyframes connector-travel {
to {
stroke-dashoffset: -124;
}
}
@media (prefers-reduced-motion: reduce) {
.connector-pulse {
display: none;
}
}
/* polylines (the md+ elbowed traces) would otherwise fill black; round
joins keep the elbows in the same language as the round dash caps */
.connector-base,
.connector-pulse {
fill: none;
stroke-linejoin: round;
}
/* the center "one store" node — tinted hairline treatment (callout family) */
.unified-node {
border: 1px solid color-mix(in oklch, var(--link) 45%, var(--line));
background: color-mix(in oklch, var(--link) 8%, var(--bg));
border-radius: var(--radius-card);
}
/* ── Home chip dressing: pin strips around the store node ─────────────────
Pure CSS decoration (next's "Powered By" chip): ::before/::after are the
left/right pin rows (where the circuit traces land), the two .chip-pins-x
spans are top/bottom. Hairline --line color — theme-flips with the rest. */
.chip-frame {
position: relative;
display: inline-block;
}
.chip-frame::before,
.chip-frame::after {
content: "";
position: absolute;
top: 50%;
translate: 0 -50%;
width: 9px;
height: 64%;
background: repeating-linear-gradient(to bottom, var(--line) 0 5px, transparent 5px 13px);
}
.chip-frame::before {
left: -9px;
}
.chip-frame::after {
right: -9px;
}
.chip-pins-x {
position: absolute;
left: 50%;
translate: -50% 0;
height: 9px;
width: 56%;
background: repeating-linear-gradient(to right, var(--line) 0 5px, transparent 5px 13px);
}
/* ── Home blueprint guides (dashed hairline guides, sections below
the hero only): faint dashed hairlines in --line + small circle marks at
the fold/guide intersections. Decorative — md+ only, very low contrast. */
.home-fold {
border-top: 1px dashed color-mix(in oklch, var(--line) 70%, transparent);
}
.guide-mark {
display: none;
position: absolute;
top: -4.5px;
width: 9px;
height: 9px;
border: 1px solid var(--line);
border-radius: 50%;
background: var(--bg);
}
.guide-mark-l {
left: -4.5px;
}
.guide-mark-r {
right: -4.5px;
}
@media (min-width: 768px) {
.home-guides {
border-inline: 1px dashed color-mix(in oklch, var(--line) 70%, transparent);
}
.guide-mark {
display: block;
}
}
/* ── Home bento highlight card — stays DARK in both themes (next's dark
release card). Brand-green tinted field + hairline; explicit light text
lives in the markup (text-white/75 ≥ 4.5:1 on this field). */
.bento-highlight {
background:
radial-gradient(120% 110% at 85% -10%, rgb(234 88 12 / 0.15), transparent 55%),
#261c16;
border: 1px solid rgb(245 158 11 / 0.3);
}
.bento-highlight:hover {
border-color: rgb(245 158 11 / 0.55);
}
/* ── Markdown prose ([data-brust-md-slot] is the md page wrapper) ─────── */
[data-brust-md-slot] {
max-width: 72ch;
font-size: var(--text-base);
line-height: 1.65;
}
[data-brust-md-slot] p,
[data-brust-md-slot] ul,
[data-brust-md-slot] ol {
text-wrap: pretty;
margin-block: 1.25rem;
}
[data-brust-md-slot] h1 {
font-size: var(--text-3xl);
font-weight: 700;
margin-block: 0 1.5rem;
}
[data-brust-md-slot] h2 {
font-size: var(--text-xl);
font-weight: 600;
margin-block: 2.5rem 1rem;
}
[data-brust-md-slot] h3 {
font-size: var(--text-lg);
font-weight: 600;
margin-block: 2rem 0.75rem;
}
[data-brust-md-slot] a {
color: var(--link);
text-decoration: underline;
text-underline-offset: 4px;
text-decoration-color: color-mix(in oklch, var(--link) 45%, transparent);
transition: text-decoration-color 150ms var(--ease-out-quart);
}
[data-brust-md-slot] a:hover {
text-decoration-color: var(--link);
}
[data-brust-md-slot] ul {
list-style: disc;
padding-inline-start: 1.5rem;
}
[data-brust-md-slot] ol {
list-style: decimal;
padding-inline-start: 1.5rem;
}
[data-brust-md-slot] li {
margin-block: 0.375rem;
}
[data-brust-md-slot] code {
font-family: var(--font-mono);
font-size: 0.9em;
}
/* inline code only (shiki fences carry their own background) */
[data-brust-md-slot] :not(pre) > code {
background: var(--surface);
border: 1px solid var(--line);
border-radius: var(--radius-chip);
padding: 0.125rem 0.375rem;
}
[data-brust-md-slot] hr {
border: 0;
border-top: 1px solid var(--line);
margin-block: 2.5rem;
}
/* ── GFM tables: hairline borders, surface header, no zebra ───────────── */
[data-brust-md-slot] table {
width: 100%;
border-collapse: collapse;
margin-block: 1.5rem;
font-size: var(--text-sm);
line-height: 1.5;
}
[data-brust-md-slot] th,
[data-brust-md-slot] td {
border: 1px solid var(--line);
padding: 0.5rem 0.75rem;
text-align: left;
vertical-align: top;
}
[data-brust-md-slot] thead th {
background: var(--surface);
font-weight: 600;
}
/* ── Callouts: background tint + FULL hairline border (no side-stripes) ── */
[data-brust-md-slot] blockquote,
.callout {
background: color-mix(in oklch, var(--link) 7%, var(--bg));
border: 1px solid color-mix(in oklch, var(--link) 30%, var(--line));
border-radius: var(--radius-card);
padding: 0.875rem 1.25rem;
margin-block: 1.5rem;
}
[data-brust-md-slot] blockquote > p:first-child {
margin-block-start: 0;
}
[data-brust-md-slot] blockquote > p:last-child {
margin-block-end: 0;
}
/* ── shiki code fences (dual CSS-variables themes) ────────────────────────
render.ts highlights with `themes: { light: 'github-light', dark:
'github-dark' }` — shiki emits the LIGHT colors as inline style and the
dark pair as --shiki-dark/--shiki-dark-bg vars per element. Dark is the
site default, so the dark vars apply whenever <html> is NOT explicitly
data-theme="light" (the attribute may be absent entirely on first paint);
light mode simply lets shiki's inline light colors stand. */
.shiki {
border: 1px solid var(--line);
border-radius: var(--radius-card);
padding: 1rem 1.25rem;
margin-block: 1.5rem;
overflow-x: auto;
font-family: var(--font-mono);
font-size: var(--text-sm);
line-height: 1.6;
}
html:not([data-theme="light"]) .shiki,
html:not([data-theme="light"]) .shiki span {
color: var(--shiki-dark) !important;
background-color: var(--shiki-dark-bg) !important;
font-style: var(--shiki-dark-font-style) !important;
font-weight: var(--shiki-dark-font-weight) !important;
text-decoration: var(--shiki-dark-text-decoration) !important;
}
/* plain (non-shiki / shiki-missing) fences still get a readable block */
[data-brust-md-slot] pre:not(.shiki) {
background: var(--surface);
border: 1px solid var(--line);
border-radius: var(--radius-card);
padding: 1rem 1.25rem;
margin-block: 1.5rem;
overflow-x: auto;
font-size: var(--text-sm);
line-height: 1.6;
}
/* ── Page transitions (View Transitions API) ─────────────────────────────
Enabled by data-brust-view-transitions on <html> (set in the BrustPage
shells). The framework wraps the SPA <main> swap in startViewTransition.
The fade is scoped to the CONTENT region only: <main id="content"> gets its
own view-transition-name so it is lifted out of the `root` snapshot. The
chrome (sticky header, sidebar) stays in `root`, which we DON'T animate — so
nothing outside the article moves. The content fade is opacity-only (no
translate) and the group morph is disabled, so changing page heights never
shift the layout up or down. */
main#content {
view-transition-name: brust-content;
}
@media (prefers-reduced-motion: no-preference) {
/* In-place crossfade of the content only — no size/position morph (group
animation off) so a taller/shorter page can't slide the view. */
::view-transition-group(brust-content) {
animation: none;
}
::view-transition-old(brust-content) {
animation: brust-fade-out 140ms ease both;
}
::view-transition-new(brust-content) {
animation: brust-fade-in 180ms ease both;
}
/* The unchanged chrome must not cross-fade (that whole-page fade is what
made the site appear to jump). */
::view-transition-old(root),
::view-transition-new(root) {
animation: none;
}
@keyframes brust-fade-out {
to {
opacity: 0;
}
}
@keyframes brust-fade-in {
from {
opacity: 0;
}
}
}
/* The JS gate calls startViewTransition regardless of motion preference, so
without this the browser would still play its default snapshot animations
for reduced-motion users. Kill them all → instant swap. */
@media (prefers-reduced-motion: reduce) {
::view-transition-group(brust-content),
::view-transition-old(brust-content),
::view-transition-new(brust-content),
::view-transition-old(root),
::view-transition-new(root) {
animation: none;
}
}