-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
2112 lines (1988 loc) · 73.3 KB
/
Copy pathstyle.css
File metadata and controls
2112 lines (1988 loc) · 73.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
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
:root {
color-scheme: light dark;
/* populace.dev consumes the PolicyEngine design system: @policyengine/ui-kit
tokens.css is loaded via CDN in the page <head> (light theme — PE default,
no .dark class). The site's original local var names are aliased onto the
PE semantic tokens here, so the existing component CSS keeps working. */
--ink: var(--background); /* page background */
--ink-2: var(--muted); /* raised surface (cards) */
--paper: var(--foreground); /* primary text */
--paper-dim: var(--muted-foreground);
/* --text-tertiary (#64748B) measures 4.47:1 on the translucent .panel-card
used by /connect/ — just under AA. Darkened one step so faint text clears
4.5:1 on every surface the site paints. */
--paper-faint: #5B6878;
/* Accent. Named --brand* because these are teal, not amber: the old
--amber/--amber-soft names were left over from a previous palette and
invited reaching for the wrong colour. --chart-1 (#319795) was 3.51:1 on
white and failed AA as the site's main link colour, so the emphasis accent
now resolves to --primary (#2C7A7B, 5.03:1). */
--brand: var(--primary);
--brand-strong: var(--primary);
/* deeper teal for hover/pressed states, so hover still reads as a change now
that --brand and --brand-strong resolve to the same AA-passing value.
#285E61 = teal-700, 7.33:1 on white. */
--brand-deep: #285E61;
/* Chart series 2. --brand-strong collapsed onto --primary for AA, which
left .vc-s1 and .vc-s2 the same colour, distinguished only by a dash
pattern -- while .vc-lab/.vc-lab2 styled the legend as two colours.
A dark slate keeps the two-series-plus-neutrals restraint and reads
apart from teal in greyscale. 10.4:1 on white. */
--chart-s2: #334155;
/* AA-safe warning text. --text-warning (#c2410c) is only 4.10:1 against the
16%-tinted chip .tag-local paints behind it; #9A3412 is 5.63:1 there. */
--brand-warning: #9A3412;
/* Back-compat aliases: page-level inline <style> blocks still reference
--amber/--amber-soft. Keep them pointed at the accent tokens. */
--amber: var(--brand);
--amber-soft: var(--brand-strong);
--line: var(--border);
--line-soft: var(--border-light);
/* aliases so the content-page component CSS uses design-system colors
instead of hard-coded light-mode fallbacks (theme-safe). */
--text: var(--foreground);
--surface: color-mix(in srgb, var(--background) 72%, transparent);
/* PE ships its font families in the Tailwind @theme layer (not :root), which a
no-build static page can't read; the families below mirror ui-kit tokens.css
and resolve to --font-sans/--font-mono if a build ever exposes them. */
--display: var(--font-sans, "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
--body: var(--font-sans, "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
--mono: var(--font-mono, "JetBrains Mono", "Fira Code", Consolas, monospace);
--max: 1140px;
/* ---------- type scale (single source of truth for font sizes) ---------- */
/* Steps are ~1.3x apart so h1 > h2 > h3 > body reads as four distinct
levels. The old scale topped out at 3.9rem/3.2rem: h1 and h2 were close
enough to compete, and both were loud enough to fight the body copy. */
--fs-hero: clamp(1.9rem, 3.8vw, 2.7rem); /* homepage h1 */
--fs-hero-sub: clamp(1.9rem, 4vw, 2.7rem); /* interior-page h1 */
--fs-h2: clamp(1.5rem, 2.6vw, 1.95rem); /* band headings */
--fs-h3: 1.2rem; /* card h3 */
--fs-h3-sm: 1.1rem; /* compact card h3 */
--fs-h4: 16px; /* step / minor headings */
--fs-lede: clamp(1.05rem, 1.8vw, 1.25rem); /* hero ledes */
--fs-stat: 2.4rem; /* big metric numerals */
--fs-body: 17px; /* prose + card body text */
--fs-body-sm: 14px; /* secondary text, notes, tables */
--fs-small: 13px; /* captions, nav, fine print */
--fs-mono: 13px; /* code blocks */
--fs-label: 12px; /* uppercase mono micro-labels */
--fs-code-inline: 0.9em; /* inline code, relative to its text */
--ls-label: 0.08em; /* letter-spacing for micro-labels */
/* ---------- spacing scale (single source of truth for rhythm) ----------
One geometric-ish ramp. Component margins/padding pick a step from here
instead of inventing a number, so seams between sections are consistent
and the eye can find them. */
--s-1: 4px;
--s-2: 8px;
--s-3: 12px;
--s-4: 16px;
--s-5: 24px;
--s-6: 32px;
--s-7: 48px;
--s-8: 64px;
--s-9: 96px;
/* band gutter + vertical band rhythm */
--gutter: clamp(20px, 5vw, 56px);
--band-y: clamp(48px, 6vw, 80px);
/* ---------- one border radius, one border colour ----------
Cards, code blocks, charts and panels used 2px/3px/6px/8px in different
places for the same job. One value now. */
--radius: 8px;
/* Referenced by the model navs, .contact-email, .comparison-table row hover
and .verification-tag, but never defined --
so those backgrounds resolved to nothing and the PUBLISHED ANCHOR chips
rendered as bare text while STATUTE/CALIBRATED rendered as pills. */
--brand-wash: color-mix(in srgb, var(--primary) 8%, transparent);
--radius-card: var(--radius);
--radius-sm: 4px;
}
.skip-link {
position: absolute;
left: -9999px;
top: 0;
z-index: 100;
padding: 10px 16px;
border: 1px solid var(--line-soft);
border-radius: 4px;
background: var(--ink);
color: var(--paper);
font-family: var(--mono);
font-size: var(--fs-small);
}
.skip-link:focus { left: 12px; top: 12px; }
.visually-hidden {
position: absolute;
width: 1px;
height: 1px;
overflow: hidden;
clip-path: inset(50%);
white-space: nowrap;
}
.prose tbody th {
color: inherit;
font-family: inherit;
font-size: inherit;
font-weight: 500;
letter-spacing: 0;
text-transform: none;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
/* ---------- focus (WCAG 2.4.7) ----------
The vendored ui-kit ships a focus ring inside @layer base, so any unlayered
rule here would silently outrank it; and its single teal outline disappears
against the teal-tinted and dark-filled surfaces this site paints (most
visibly /connect/'s selected tablist button, which is filled with --text).
This is a two-tone ring — a dark inner outline plus a light outer box-shadow
— so exactly one of the two always contrasts, on any background the site
uses. Unlayered, so it wins everywhere. */
:focus-visible {
outline: 3px solid var(--foreground);
outline-offset: 2px;
box-shadow: 0 0 0 6px var(--background);
border-radius: 3px;
}
/* On a filled/inverted control the roles swap: the light ring sits inside. */
[aria-selected="true"]:focus-visible,
.btn-primary:focus-visible {
outline-color: var(--background);
outline-offset: -5px;
box-shadow: 0 0 0 3px var(--foreground);
}
/* Never let a clipping ancestor eat the ring. */
:focus-visible { position: relative; z-index: 1; }
/* ---------- fragment navigation ----------
`scroll-behavior: smooth` was here, and it is why `/docs/#papers` did not
work: the four paper viewer pages link to that fragment, the target sits
~4,400px down, and Chrome does not run the smooth animation for the
initial same-document fragment jump at all (measured: scrollY stayed 0
with smooth, landed exactly on target with auto). It was also the wrong
call for its own sake — a multi-second animated flight down a long
reference page is disorienting, not calm. Instant jumps now.
scroll-margin-top keeps the landed heading clear of the fixed nav
instead of tucked underneath it. */
:target,
section[id],
[id]:not(body) { scroll-margin-top: clamp(88px, 12vh, 112px); }
body {
background: var(--ink);
color: var(--paper);
font-family: var(--body);
font-size: var(--fs-body);
line-height: 1.6;
-webkit-font-smoothing: antialiased;
overflow-x: visible;
position: relative;
}
/* Let content shrink inside grid/flex tracks. Horizontal scrolling belongs
only to explicit table and code scrollers, never to the whole document. */
main, section, article, header, nav, .hero-inner, .hero-copy, .band-head,
.lede, h1, h2, h3, p, figure, figcaption { min-width: 0; max-inline-size: 100%; }
img, svg, canvas { max-width: 100%; }
h1, h2, h3, p, figcaption, a { overflow-wrap: anywhere; }
/* ---------- background: deliberately nothing ----------
The page used to stack three ambient layers behind the reading column: two
fixed teal radial washes, an animated canvas of 120–360 drifting/twinkling
dots (field.js, now deleted along with its markup), and an SVG noise grain.
These are reference pages of continuous prose; ambient motion and
texture directly behind that much body copy is what "the background is confusing" means.
One flat surface, so the only thing moving on the page is the text.
.grain is a <div> on all 14 pages (markup owned elsewhere) — retired here.
What replaces it is not ambient: a static plot grid. The subject of this site
is models that produce charts, so the page's own surface is ruled like the
paper those charts are drawn on — a 64px lattice at 3% of the accent, fixed,
never animated, no second layer. It is a texture you notice once and then
stop seeing, which is the whole difference from the dot field. The character
is spent in the hero fan chart below; everything else stays quiet. */
.grain {
display: block;
position: fixed;
inset: 0;
z-index: -1;
pointer-events: none;
background-image:
repeating-linear-gradient(to right,
color-mix(in srgb, var(--brand) 4.5%, transparent) 0 1px, transparent 1px 64px),
repeating-linear-gradient(to bottom,
color-mix(in srgb, var(--brand) 4.5%, transparent) 0 1px, transparent 1px 64px);
/* fade the lattice out down the page so long reference pages end on plain
paper rather than carrying texture under 4,900 words of prose */
-webkit-mask-image: linear-gradient(to bottom, #000 0, #000 26vh, transparent 96vh);
mask-image: linear-gradient(to bottom, #000 0, #000 26vh, transparent 96vh);
}
/* ---------- hero fan chart: the signature element ----------
The old background depicted a field of synthetic households — a
microsimulation metaphor on a site about macro models. The artifact this
subject actually produces is a forecast fan, so the hero *is* one, drawn from
papers/boe-svar/figures/current_forecast.json by assets/make_hero.py. The
ornament is the output. Static: no entrance animation, nothing loops. */
.hero-fig {
margin: 0;
min-width: 0; /* lets the grid track shrink; no horizontal overflow */
}
.hero-fan {
display: block;
width: 100%;
height: auto;
overflow: visible;
}
.hero-fan text { font-family: var(--mono); fill: var(--paper-faint); }
.hero-fan .hf-tick { font-size: 11px; }
/* the viewBox scales to about half below the two-column breakpoint, which would
render these at ~6px. Hide them there; the figcaption carries the detail. */
@media (max-width: 999px) {
.hero-fan .hf-tick { display: none; }
}
.hero-fan .hf-grid { stroke: var(--line-soft); stroke-width: 1; }
.hero-fan .hf-zero { stroke: var(--line); stroke-width: 1.5; }
.hero-fan .hf-b90 { fill: color-mix(in srgb, var(--brand) 13%, transparent); }
.hero-fan .hf-b68 { fill: color-mix(in srgb, var(--brand) 26%, transparent); }
.hero-fan .hf-med {
fill: none; stroke: var(--brand-strong); stroke-width: 2.5;
stroke-linejoin: round; stroke-linecap: round;
}
.hero-fan .hf-dot { fill: var(--brand-strong); }
.hero-fig figcaption {
margin-top: var(--s-3);
margin-left: auto;
margin-right: auto;
font-size: var(--fs-body-sm);
line-height: 1.55;
color: var(--paper-faint);
max-width: 46ch;
text-align: center;
}
.hero-fig figcaption a { color: var(--brand-strong); }
/* single column at phone/tablet: the figure sits under the CTAs, never behind
a word of text at any width */
.hero-inner { display: grid; grid-template-columns: 1fr; gap: var(--s-7); }
.hero-copy { min-width: 0; }
@media (min-width: 1000px) {
.hero-inner {
grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr);
gap: var(--s-5);
align-items: center;
}
}
/* ---------- nav ---------- */
.nav {
position: fixed;
top: 0; left: 0; right: 0;
z-index: 10;
display: flex;
align-items: center;
justify-content: space-between;
padding: var(--s-4) var(--gutter);
backdrop-filter: blur(10px);
background: color-mix(in srgb, var(--ink) 88%, transparent);
border-bottom: 1px solid var(--line-soft);
}
.brand {
font-family: var(--mono);
font-size: var(--fs-body);
letter-spacing: 0.02em;
color: var(--paper);
text-decoration: none;
display: inline-flex;
align-items: center;
gap: 9px;
}
.brand-dot {
width: 9px; height: 9px;
border-radius: 50%;
background: var(--brand);
}
.brand-logo {
display: block;
width: 20px;
height: 20px;
flex: 0 0 auto;
}
.nav-links {
display: flex;
align-items: center;
gap: clamp(14px, 2.4vw, 30px);
font-family: var(--mono);
font-size: var(--fs-small);
letter-spacing: 0.01em;
}
.nav-links a {
color: var(--paper-dim);
text-decoration: none;
transition: color 0.25s;
}
.nav-links a:hover { color: var(--brand-strong); }
.nav-links a[aria-current="page"] {
color: var(--brand-strong);
font-weight: 600;
text-decoration: underline;
text-decoration-thickness: 2px;
text-underline-offset: 8px;
}
.nav-gh { color: var(--paper) !important; display: inline-flex; align-items: center; }
.nav-gh svg { width: 18px; height: 18px; display: block; }
.nav-links a:not(.nav-gh) { display: none; }
/* Keep the two primary journeys available on small screens. The previous
mobile header reduced the entire site navigation to a GitHub icon. */
.nav-links a.nav-mobile { display: inline-flex; }
.nav-links .nav-start {
align-items: center;
min-height: 34px;
padding: 0 10px;
border: 1px solid var(--brand);
border-radius: 4px;
color: var(--brand-strong);
}
.nav-links .nav-start:hover { background: var(--ink-2); }
@media (min-width: 940px) {
.nav-links .nav-start { min-height: auto; padding: 0; border: 0; }
.nav-links .nav-start:hover { background: transparent; }
.nav-links a:not(.nav-gh) { display: inline; }
}
/* Topic-level wayfinding for the economy dashboard. Unlike the retired second
global nav row, this names sections within one destination and scrolls
naturally with the page. */
.economy-topics {
position: sticky;
top: 61px;
z-index: 8;
display: flex;
gap: var(--s-2);
max-width: var(--max);
margin: 0 auto;
padding: var(--s-4) var(--gutter);
overflow-x: auto;
scrollbar-width: none;
border-top: 1px solid var(--line-soft);
border-bottom: 1px solid var(--line-soft);
background: color-mix(in srgb, var(--ink) 94%, transparent);
backdrop-filter: blur(12px);
box-shadow: 0 10px 24px color-mix(in srgb, var(--paper) 6%, transparent);
}
.economy-topics-hint { display: none; }
.economy-topics::-webkit-scrollbar { display: none; }
.economy-topics a {
flex: 0 0 auto;
padding: 8px 12px;
border: 1px solid var(--line-soft);
border-radius: 999px;
color: var(--paper-dim);
font-family: var(--mono);
font-size: var(--fs-small);
text-decoration: none;
white-space: nowrap;
}
.economy-topics a:hover {
color: var(--brand-strong);
background: var(--brand-wash);
}
.economy-topics a[aria-current="location"] {
color: var(--ink);
border-color: var(--brand-strong);
background: var(--brand-strong);
}
.economy-country-switch {
display: grid;
grid-template-columns: auto repeat(2, minmax(190px, 1fr));
align-items: stretch;
gap: 1px;
max-width: var(--max);
margin: 0 auto;
padding: var(--s-5) var(--gutter);
}
.economy-country-switch > span {
display: flex;
align-items: center;
padding-right: var(--s-4);
color: var(--paper-faint);
font-size: var(--fs-label);
text-transform: uppercase;
letter-spacing: var(--ls-label);
}
.economy-country-switch a {
display: grid;
grid-template-columns: auto 1fr;
align-items: center;
gap: 12px;
min-height: 58px;
padding: 12px 16px;
border: 1px solid var(--line-soft);
color: var(--paper-dim);
background: var(--surface);
text-decoration: none;
}
.economy-country-switch a:hover {
color: var(--brand-strong);
border-color: var(--brand);
}
.economy-country-switch a[aria-current="page"] {
color: var(--paper);
border-color: var(--brand);
background: var(--brand-wash);
}
.economy-country-switch small {
color: var(--brand-strong);
font: 600 var(--fs-label)/1 var(--mono);
letter-spacing: .08em;
}
.economy-page section[id] { scroll-margin-top: 132px; }
.home-proof {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
max-width: var(--max);
margin: var(--s-5) auto 0;
border-top: 1px solid var(--line-soft);
border-bottom: 1px solid var(--line-soft);
}
.home-proof > div {
display: grid;
gap: 7px;
min-width: 0;
padding: var(--s-5);
}
.home-proof > div + div { border-left: 1px solid var(--line-soft); }
.home-proof strong {
color: var(--paper);
font-family: var(--mono);
font-size: var(--fs-small);
}
.home-proof span {
color: var(--paper-faint);
font-size: var(--fs-small);
line-height: 1.45;
}
.model-local-nav,
.validation-model-nav {
display: flex;
gap: 8px;
padding: 0 var(--gutter) var(--s-5);
max-width: calc(980px + (2 * var(--gutter)));
margin: 0 auto;
overflow-x: auto;
scrollbar-width: none;
}
.validation-model-nav {
position: sticky;
top: 116px;
z-index: 5;
width: max-content;
max-width: calc(100% - (2 * var(--gutter)));
margin-top: 12px;
padding: 5px;
gap: 3px;
background: color-mix(in srgb, var(--ink) 96%, transparent);
border: 1px solid var(--line-soft);
border-radius: 999px;
box-shadow: 0 8px 24px rgba(20, 45, 52, .06);
}
.model-local-nav::-webkit-scrollbar,
.validation-model-nav::-webkit-scrollbar { display: none; }
.model-local-nav a,
.validation-model-nav a {
flex: 0 0 auto;
padding: 9px 14px;
border: 1px solid transparent;
border-radius: 999px;
color: var(--paper-dim);
font-family: var(--mono);
font-size: var(--fs-label);
text-decoration: none;
}
.model-local-nav a:hover,
.validation-model-nav a:hover,
.validation-model-nav a[aria-current="location"] {
color: var(--brand-strong);
border-color: color-mix(in srgb, var(--brand) 34%, var(--line-soft));
background: var(--brand-wash);
}
.validation-model-nav a[aria-current="location"] { font-weight: 600; }
.model-breadcrumb {
display: block;
margin-bottom: var(--s-4);
color: var(--paper-faint);
font-family: var(--mono);
font-size: var(--fs-label);
}
.model-breadcrumb a { color: var(--brand-strong); }
/* ---------- hero ---------- */
.hero {
display: flex;
align-items: center;
padding: clamp(120px, 16vh, 168px) var(--gutter) var(--s-9);
}
.hero-inner { max-width: 980px; margin: 0 auto; width: 100%; }
.eyebrow {
font-family: var(--mono);
font-size: var(--fs-small);
letter-spacing: 0.18em;
text-transform: uppercase;
color: var(--brand);
margin-bottom: var(--s-4);
}
h1 {
font-family: var(--display);
font-weight: 400;
font-size: var(--fs-hero);
line-height: 1.08;
letter-spacing: -0.015em;
font-optical-sizing: auto;
margin-bottom: var(--s-5);
}
h1 em {
font-style: italic;
color: var(--brand-strong);
font-weight: 500;
}
.lede {
font-size: var(--fs-lede);
line-height: 1.55;
color: var(--paper);
max-width: 56ch;
margin-bottom: var(--s-6);
}
.lede strong { color: var(--brand-strong); font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-bottom: 0; }
.btn {
font-family: var(--mono);
font-size: var(--fs-body-sm);
letter-spacing: 0.01em;
text-decoration: none;
padding: 12px 22px;
border-radius: var(--radius-sm);
transition: background 0.2s, color 0.2s, border-color 0.2s;
display: inline-block;
/* some buttons are labelled with a full repo URL; let the label break
rather than push the page sideways at 375px */
max-width: 100%;
overflow-wrap: anywhere;
}
.btn-primary {
background: var(--brand);
color: var(--ink);
font-weight: 500;
}
.btn-primary:hover { background: var(--brand-deep); }
.btn-secondary {
color: var(--brand-strong);
border: 1px solid var(--brand);
background: var(--brand-wash);
}
.btn-secondary:hover { border-color: var(--brand-strong); background: var(--surface); }
.btn-ghost {
color: var(--paper);
border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-strong); }
.mono { font-family: var(--mono); }
/* ---------- bands ---------- */
.band {
max-width: var(--max);
margin: 0 auto;
padding: var(--band-y) var(--gutter);
position: relative;
}
.band + .band { border-top: 1px solid var(--line-soft); }
.band-head { margin-bottom: var(--s-6); max-width: 60ch; }
.kicker {
display: block;
font-size: var(--fs-small);
letter-spacing: 0.14em;
text-transform: uppercase;
color: var(--brand);
margin-bottom: var(--s-3);
}
h2 {
font-family: var(--display);
font-weight: 400;
font-size: var(--fs-h2);
line-height: 1.2;
letter-spacing: -0.012em;
max-width: 26ch;
}
.prose { max-width: 68ch; }
/* Long unbreakable tokens — file paths, package names, URLs printed inline in
the prose — are wider than a 375px column at this body size and pushed the
page 2–3px sideways on /validation/. Break them instead of shrinking the
type. <pre>/.codeblock keep their own horizontal scroll and are untouched. */
.prose p, .prose li, .prose td, .prose figcaption { overflow-wrap: break-word; }
.prose p { margin-bottom: var(--s-5); color: var(--paper); font-size: var(--fs-body); line-height: 1.7; }
.prose p:last-child { margin-bottom: 0; }
.prose em { font-style: italic; color: var(--brand-strong); }
.prose strong { font-weight: 600; color: var(--paper); }
/* ---------- cards ---------- */
.card-id { font-size: var(--fs-small); color: var(--brand); letter-spacing: 0.04em; }
/* ONE chip form. Variants differ only by colour, never by shape or size. */
.tag {
display: inline-block;
font-family: var(--mono);
font-size: var(--fs-label);
letter-spacing: var(--ls-label);
text-transform: uppercase;
padding: 3px 9px;
border-radius: var(--radius-sm);
border: 1px solid transparent;
white-space: nowrap;
}
.tag-wip { background: var(--ink-2); color: var(--paper-dim); }
/* model access + status badges (accurate to how each model can be used) */
.tag-hosted { background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--text-success); }
.tag-local { background: color-mix(in srgb, var(--brand-warning) 16%, transparent); color: var(--brand-warning); }
.tag-experimental { background: var(--muted); color: var(--paper-dim); border-color: var(--line); }
.tag-country { background: transparent; color: var(--paper-dim); border-color: var(--line); }
/* two badges sit side by side in a card header */
.tag-row { display: inline-flex; gap: 6px; flex-wrap: wrap; }
/* paper status badges: draft / preprint / submitted / published */
.stack-note { text-align: center; color: var(--paper-faint); font-size: var(--fs-small); margin-top: 8px; }
/* ---------- metrics ---------- */
.metrics {
display: grid;
grid-template-columns: 1fr;
gap: 0;
margin: var(--s-7) 0 var(--s-6);
border: 1px solid var(--line-soft);
border-radius: var(--radius);
overflow: hidden;
}
@media (min-width: 720px) { .metrics { grid-template-columns: repeat(3, 1fr); } }
.metric {
padding: 30px 28px;
border-bottom: 1px solid var(--line-soft);
}
@media (min-width: 720px) {
.metric { border-bottom: none; border-right: 1px solid var(--line-soft); }
.metric:last-child { border-right: none; }
}
.metric-label { display: block; font-size: var(--fs-label); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--paper-faint); margin-bottom: 14px; }
.metric-val {
font-family: var(--display);
font-size: var(--fs-stat);
font-weight: 500;
color: var(--brand-strong);
line-height: 1;
display: flex;
align-items: baseline;
gap: 12px;
}
.metric-vs { font-family: var(--mono); font-size: var(--fs-small); color: var(--paper-faint); font-weight: 400; }
.metric-note { display: block; font-family: var(--mono); font-size: var(--fs-label); color: var(--paper-faint); margin-top: 12px; }
.research-link a {
color: var(--brand-strong);
text-decoration-color: color-mix(in srgb, var(--primary) 35%, transparent);
text-underline-offset: 0.18em;
}
.research-link {
font-size: var(--fs-small);
margin-top: 18px;
}
/* ---------- releases ---------- */
/* ---------- commons ---------- */
/* ---------- footer ---------- */
.foot {
width: 100%;
max-width: none;
margin: 0;
padding: 48px var(--gutter) 64px;
border-top: 1px solid var(--line-soft);
}
.foot-pe { display: inline-flex; align-items: center; }
.foot-pe img { height: 20px; width: auto; display: block; opacity: 0.82; transition: opacity 0.2s; }
.foot-pe:hover img { opacity: 1; }
/* ---------- scroll reveal ----------
Heroes paint immediately. Section-level blocks reached by scrolling move
once, together, so long technical pages never arrive out of order. */
.reveal {
opacity: 1;
transform: none;
animation: none;
}
.scroll-reveal {
opacity: 0;
transform: translateY(14px);
transition: opacity 420ms ease-out, transform 420ms ease-out;
}
.scroll-reveal.in-view {
opacity: 1;
transform: none;
}
.scroll-reveal.reveal-initial { transition: none; }
@media (prefers-reduced-motion: reduce) {
* { animation: none !important; transition: none !important; }
html { scroll-behavior: auto; }
}
/* ---------- strategy grid (papers aggregator, homepage overview) ---------- */
.strategy-grid {
display: grid;
grid-template-columns: 1fr;
gap: var(--s-4);
}
@media (min-width: 640px) { .strategy-grid { grid-template-columns: repeat(2, 1fr); } }
/* four model cards: keep a balanced 2x2 at desktop */
/* Cards: ONE treatment, shared by .strategy-card and .doc-index a (below).
Previously two padding values, two radii, two border colours and two hover
transforms did the same job. */
.strategy-card,
.doc-index a {
display: block;
border: 1px solid var(--line-soft);
background: var(--card);
padding: var(--s-5);
border-radius: var(--radius);
text-decoration: none;
transition: border-color 0.2s, background 0.2s;
}
.strategy-card:hover,
.doc-index a:hover {
border-color: var(--brand);
background: color-mix(in srgb, var(--primary) 4%, var(--card));
}
.strategy-card header { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); margin-bottom: var(--s-3); }
.strategy-card .card-id { font-size: var(--fs-small); color: var(--brand); letter-spacing: 0.04em; }
/* The restructured cards lead with a bolded question inside the body copy,
which was out-weighting the card title. The title takes 600 so the
heading level still wins. */
.strategy-card h2,
.strategy-card h3 {
font-family: var(--display);
font-weight: 600;
font-size: var(--fs-h3-sm);
color: var(--paper);
margin-bottom: 10px;
}
.strategy-card p { font-size: var(--fs-body); line-height: 1.55; color: var(--paper-dim); margin-bottom: 0; }
.strategy-card .strategy-paper-link {
display: block;
margin-top: 16px;
font-family: var(--mono);
font-size: var(--fs-small);
color: var(--brand-strong);
}
/* ---------- strategy landing pages: depth-gradient sections ---------- */
.page-title { font-size: var(--fs-hero-sub); }
/* ---------- diagrams (strategy-page SVGs) ---------- */
/* box = a stage/node in a pipeline or hierarchy diagram */
/* text roles inside a diagram */
/* edges: flows between stages */
/* reference / floor lines on bar charts */
/* bar-chart bars: primary result vs. comparison arms */
/* ---------- quick-start block (06 releases) ---------- */
/* =====================================================================
Content pages (olg, connect) — one shared measure and rhythm.
`body.doc` widens the reading column so text uses the full line, and
lets code, tables, charts, and card grids span the whole band.
===================================================================== */
.doc .band { max-width: var(--max); }
/* The hero's inner column was 980px while bands are 1140px, so a page's h1
started 26px to the right of every heading under it — a visible kink down
the left edge. One column edge for the whole page. */
.doc .hero-inner { max-width: var(--max); }
/* Content-page titles share one left edge with the sections below. The
homepage keeps its split text/chart composition; only model-style heroes
collapse to a single, left-aligned reading column. */
.doc .model-hero .hero-inner { display: block; }
.doc .model-hero .lede { margin-left: 0; margin-right: 0; }
/* text fills the line; rich blocks go edge-to-edge inside the band */
.doc .prose { max-width: none; }
.doc .prose > p,
.doc .prose > ul,
.doc .prose > ol,
.doc .prose > .research-link,
.doc .prose > .soon-hint,
.doc .prose > .chart-note,
.doc .prose > .opt-note { max-width: 74ch; }
/* consistent body copy across every content page */
.doc .prose p { font-size: var(--fs-body); line-height: 1.7; }
.doc .prose ul { padding-left: 22px; }
.doc .prose li { margin: var(--s-2) 0; line-height: 1.7; font-size: var(--fs-body); max-width: 74ch; }
.doc .prose p code,
.doc .prose li code,
.doc .prose td code { font-family: var(--mono); font-size: var(--fs-code-inline); color: var(--brand-strong); }
.doc .prose p code,
.doc .prose li code,
.connect-panel p code { overflow-wrap: anywhere; }
/* AI-client identity cues: names stay visible, while the marks make the
hosted path quicker to scan without turning third-party brands into CTAs. */
.ai-client-row {
display: flex;
flex-wrap: wrap;
gap: 10px;
margin-top: 20px;
}
.ai-client {
display: inline-flex;
align-items: center;
gap: 10px;
min-height: 44px;
padding: 9px 14px;
border: 1px solid var(--line-soft);
border-radius: 999px;
background: color-mix(in srgb, var(--background, #fff) 92%, transparent);
color: var(--text);
font-weight: 600;
}
.ai-client img { display: block; flex: 0 0 auto; }
.seg button[data-client] {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 9px;
min-height: 46px;
}
.seg button[data-client] img { display: block; flex: 0 0 auto; }
.seg button[data-client="chatgpt"] img { color: currentColor; }
.seg button[data-client="chatgpt"][aria-selected="true"] img { filter: invert(1); }
/* section headings on content pages read a touch tighter than the band default */
.doc .band-head { margin-bottom: var(--s-6); }
.doc h2 { max-width: 30ch; }
/* --- code blocks: one look everywhere (was duplicated inline) --- */
.codeblock {
position: relative;
border: 1px solid var(--line-soft);
border-radius: var(--radius);
background: var(--ink-2);
padding: var(--s-4) var(--s-5);
margin: var(--s-5) 0 var(--s-2);
overflow-x: auto;
}
.codeblock pre { margin: 0; }
.codeblock code,
.code-window code { font-family: var(--mono); font-size: var(--fs-mono); line-height: 1.7; white-space: pre; }
.codeblock .cb-copy {
position: absolute; top: 10px; right: 12px;
border: 0; background: none; cursor: pointer;
font-family: var(--mono); font-size: var(--fs-label); color: var(--paper-faint);
}
.codeblock .cb-copy:hover { color: var(--text); }
.cm { color: var(--paper-faint); }
.kw { color: var(--brand); }
/* --- reference tables --- */
/* wide tables (e.g. the docs comparison) scroll inside their own container
instead of pushing the page sideways on narrow screens */
/* .model-seg is declared in /connect/'s inline <style> (owned elsewhere). It
sets overflow-x:auto but is a flex item, whose default min-width:auto makes
it grow to content width rather than clip — which panned the whole page
679px sideways at 375px. Fixed from here with a two-class selector so it
outranks the inline single-class rule without editing that file. */
.seg.model-seg { min-width: 0; max-width: 100%; }
/* same failure mode for any other flex/grid child that scrolls internally */
.panel-bars > *, .model-pane, .prose > * { min-width: 0; }
.table-scroll { overflow-x: auto; margin: 24px 0; }
/* code blocks get the same treatment: long lines scroll inside the block
instead of being clipped unreachably (or panning the whole page) on mobile */
.prose pre,
.codeblock pre,
.code-window pre { overflow-x: auto; max-width: 100%; }
.table-scroll table { margin: 0; min-width: 720px; }
.prose table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: var(--fs-body-sm); }
.prose th {
text-align: left; font-family: var(--mono); font-size: var(--fs-label);
letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--paper-faint);
}
.prose th, .prose td {
padding: 11px 16px 11px 0; border-bottom: 1px solid var(--line-soft); vertical-align: top;
}
.opt-note { font-size: var(--fs-body-sm); line-height: 1.55; color: var(--paper-faint); }
.callout {
border-left: 2px solid var(--brand);
padding: var(--s-1) 0 var(--s-1) var(--s-5); margin: var(--s-6) 0;
font-size: var(--fs-body-sm); line-height: 1.6; color: var(--paper-dim); max-width: 80ch;
}
/* ---------- section divider after hero + grid footer ---------- */
.hero + .band { border-top: 1px solid var(--line-soft); }
.foot-head { display: block; font-family: var(--mono); font-size: var(--fs-label); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--paper-faint); margin-bottom: 12px; }
.next-invite { margin-top: 30px; text-align: center; font-size: var(--fs-small); color: var(--paper-faint); display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.next-invite a { color: var(--text, #111); text-decoration: none; border-bottom: 1px solid var(--line-soft); padding-bottom: 1px; }
.next-invite a:hover { color: var(--brand-strong); border-bottom-color: var(--brand-strong); }
/* Homepage decision path. This is intentionally a list rather than another
card grid: readers scan from their question to the model in one line. */
.question-list {
border-top: 1px solid var(--line);
margin-top: var(--s-6);
}
.question-list a {
display: grid;
grid-template-columns: minmax(0, 1.5fr) minmax(180px, 0.7fr) 18px;
gap: var(--s-5);
align-items: center;
padding: 20px 0;
border-bottom: 1px solid var(--line-soft);
color: var(--paper);
text-decoration: none;
}
.question-list a::after { content: "→"; color: var(--brand); }
.question-list a:hover strong,
.question-list a:hover::after { color: var(--brand-deep); }
.question-list span { font-size: var(--fs-body); line-height: 1.45; }
.question-list strong {
color: var(--brand-strong);
font-family: var(--mono);
font-size: var(--fs-small);
font-weight: 500;
}
.chooser-note { margin-top: var(--s-5); color: var(--paper-dim); font-size: var(--fs-body-sm); }
.chooser-note a { color: var(--brand-strong); }
@media (max-width: 620px) {
.nav {
min-height: 112px;
align-content: center;
flex-wrap: wrap;
gap: 8px;
padding-block: 10px;
}
.brand { width: 100%; font-size: 12px; }
.nav-links {
width: 100%;
justify-content: flex-start;
gap: 18px;