Repository navigation
Expand file tree
/
Copy pathdesign.css
More file actions
1281 lines (1213 loc) · 48.7 KB
/
Copy pathdesign.css
File metadata and controls
1281 lines (1213 loc) · 48.7 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
/* design.css -- GENERATED from tokens.json by build_css.py. Do not edit by hand.
*
* The monorepo's shared look. Link it, then write markup against the classes and
* the custom elements in design.js:
*
* <link rel="stylesheet" href="design/design.css">
* <script type="module" src="design/design.js"></script>
*
* See design/INTEGRATION.md. The rule that matters most is in design/CLAUDE.md:
* a LABEL may never be hidden, and its EXPLANATION must be.
*/
/* INSTRUMENT is the default as of 2026-08-19, at the operator's request that other
* projects adopt the attend-to-send briefing look. Three type roles -- Instrument
* Serif for headings, Inter for running text, uppercase IBM Plex Mono for labels --
* and a cool bench palette with ONE saturated accent.
*
* It is the first theme here with a real LIGHT AND DARK pair, so it follows the
* three-state rule properly: bare :root is the full light palette; the media query
* is guarded with :not([data-theme]) so an explicit stamp always beats the OS; and
* both stamps re-declare the tokens so a toggle wins in either direction. The
* un-stamped default-system state is the one most viewers are in and it is the one
* most often got wrong.
*
* A PROJECT KEEPS ITS OLD LOOK BY PINNING A THEME EXPLICITLY -- data-theme="polarize"
* (the warm-dark 2026-08-04 default) or "dark" (the pre-Polarize slate). That is the
* same opt-out tuning-forks used through the Polarize migration and it still works. */
:root {
--background: #f7f6f3;
--foreground: #16181c;
--card: #ffffff;
--card-foreground: #16181c;
--popover: #f0efeb;
--muted: #f0efeb;
--muted-foreground: #4d5259;
--faint-foreground: #6e747c;
--border: #e2e0da;
--border-strong: #d0cec6;
--ring: #0d6d6b;
--accent: #0d6d6b;
--shadow: 0 1px 2px rgba(20,22,26,.05), 0 8px 24px -16px rgba(20,22,26,.25);
--overlay: rgba(20,22,26,.55);
--font-primary: Inter, "Inter var", ui-sans-serif, -apple-system, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
--measured: #15875e;
--predicted: #2976d3;
--exploring: #9f6c00;
--spec: #4a3aa7;
--refuted: #df3231;
--series-1: #2a78d6;
--series-2: #eb6834;
--series-3: #1baf7a;
--series-4: #eda100;
--series-5: #e87ba4;
--series-6: #008300;
--series-7: #4a3aa7;
--series-8: #e34948;
--seq-1: #cde2fb;
--seq-2: #b7d3f6;
--seq-3: #9ec5f4;
--seq-4: #86b6ef;
--seq-5: #6da7ec;
--seq-6: #5598e7;
--seq-7: #3987e5;
--seq-8: #2a78d6;
--seq-9: #256abf;
--seq-10: #1c5cab;
--seq-11: #184f95;
--seq-12: #104281;
--seq-13: #0d366b;
--div-1: #0d366b;
--div-2: #184f95;
--div-3: #256abf;
--div-4: #3987e5;
--div-5: #6da7ec;
--div-6: #9ec5f4;
--div-7: #f0efec;
--div-8: #ffa69f;
--div-9: #ff6f69;
--div-10: #fa082c;
--div-11: #c90020;
--div-12: #9a0016;
--div-13: #6e000d;
color-scheme: light;
}
@media (prefers-color-scheme: dark) {
:root:not([data-theme]) {
--background: #101317;
--foreground: #e8e9ea;
--card: #171b20;
--card-foreground: #e8e9ea;
--popover: #1e232a;
--muted: #1e232a;
--muted-foreground: #a7adb5;
--faint-foreground: #868d96;
--border: #262c33;
--border-strong: #333b44;
--ring: #5fd0c6;
--accent: #5fd0c6;
--shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px -18px rgba(0,0,0,.8);
--overlay: rgba(4,6,8,.68);
--font-primary: Inter, "Inter var", ui-sans-serif, -apple-system, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
--measured: #199e70;
--predicted: #3987e5;
--exploring: #c98500;
--spec: #9085e9;
--refuted: #e66767;
--series-1: #3987e5;
--series-2: #d95926;
--series-3: #199e70;
--series-4: #c98500;
--series-5: #d55181;
--series-6: #008300;
--series-7: #9085e9;
--series-8: #e66767;
--seq-1: #0d366b;
--seq-2: #104281;
--seq-3: #184f95;
--seq-4: #1c5cab;
--seq-5: #256abf;
--seq-6: #2a78d6;
--seq-7: #3987e5;
--seq-8: #5598e7;
--seq-9: #6da7ec;
--seq-10: #86b6ef;
--seq-11: #9ec5f4;
--seq-12: #b7d3f6;
--seq-13: #cde2fb;
--div-1: #9ec5f4;
--div-2: #86b6ef;
--div-3: #5598e7;
--div-4: #2a78d6;
--div-5: #1c5cab;
--div-6: #104281;
--div-7: #383835;
--div-8: #830011;
--div-9: #b1001b;
--div-10: #e20026;
--div-11: #ff4b4c;
--div-12: #ff8c85;
--div-13: #ffa69f;
color-scheme: dark;
}
}
:root[data-theme="instrument"] {
--background: #f7f6f3;
--foreground: #16181c;
--card: #ffffff;
--card-foreground: #16181c;
--popover: #f0efeb;
--muted: #f0efeb;
--muted-foreground: #4d5259;
--faint-foreground: #6e747c;
--border: #e2e0da;
--border-strong: #d0cec6;
--ring: #0d6d6b;
--accent: #0d6d6b;
--shadow: 0 1px 2px rgba(20,22,26,.05), 0 8px 24px -16px rgba(20,22,26,.25);
--overlay: rgba(20,22,26,.55);
--font-primary: Inter, "Inter var", ui-sans-serif, -apple-system, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
--measured: #15875e;
--predicted: #2976d3;
--exploring: #9f6c00;
--spec: #4a3aa7;
--refuted: #df3231;
--series-1: #2a78d6;
--series-2: #eb6834;
--series-3: #1baf7a;
--series-4: #eda100;
--series-5: #e87ba4;
--series-6: #008300;
--series-7: #4a3aa7;
--series-8: #e34948;
--seq-1: #cde2fb;
--seq-2: #b7d3f6;
--seq-3: #9ec5f4;
--seq-4: #86b6ef;
--seq-5: #6da7ec;
--seq-6: #5598e7;
--seq-7: #3987e5;
--seq-8: #2a78d6;
--seq-9: #256abf;
--seq-10: #1c5cab;
--seq-11: #184f95;
--seq-12: #104281;
--seq-13: #0d366b;
--div-1: #0d366b;
--div-2: #184f95;
--div-3: #256abf;
--div-4: #3987e5;
--div-5: #6da7ec;
--div-6: #9ec5f4;
--div-7: #f0efec;
--div-8: #ffa69f;
--div-9: #ff6f69;
--div-10: #fa082c;
--div-11: #c90020;
--div-12: #9a0016;
--div-13: #6e000d;
color-scheme: light;
}
:root[data-theme="instrument-dark"] {
--background: #101317;
--foreground: #e8e9ea;
--card: #171b20;
--card-foreground: #e8e9ea;
--popover: #1e232a;
--muted: #1e232a;
--muted-foreground: #a7adb5;
--faint-foreground: #868d96;
--border: #262c33;
--border-strong: #333b44;
--ring: #5fd0c6;
--accent: #5fd0c6;
--shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px -18px rgba(0,0,0,.8);
--overlay: rgba(4,6,8,.68);
--font-primary: Inter, "Inter var", ui-sans-serif, -apple-system, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
--measured: #199e70;
--predicted: #3987e5;
--exploring: #c98500;
--spec: #9085e9;
--refuted: #e66767;
--series-1: #3987e5;
--series-2: #d95926;
--series-3: #199e70;
--series-4: #c98500;
--series-5: #d55181;
--series-6: #008300;
--series-7: #9085e9;
--series-8: #e66767;
--seq-1: #0d366b;
--seq-2: #104281;
--seq-3: #184f95;
--seq-4: #1c5cab;
--seq-5: #256abf;
--seq-6: #2a78d6;
--seq-7: #3987e5;
--seq-8: #5598e7;
--seq-9: #6da7ec;
--seq-10: #86b6ef;
--seq-11: #9ec5f4;
--seq-12: #b7d3f6;
--seq-13: #cde2fb;
--div-1: #9ec5f4;
--div-2: #86b6ef;
--div-3: #5598e7;
--div-4: #2a78d6;
--div-5: #1c5cab;
--div-6: #104281;
--div-7: #383835;
--div-8: #830011;
--div-9: #b1001b;
--div-10: #e20026;
--div-11: #ff4b4c;
--div-12: #ff8c85;
--div-13: #ffa69f;
color-scheme: dark;
}
/* fieldguide: white and magenta, Geist for the sans (2026-10-15). Opt-in by stamp. */
:root[data-theme="fieldguide"] {
--background: #ffffff;
--foreground: #16181c;
--card: #ffffff;
--card-foreground: #16181c;
--popover: #f4f3f0;
--muted: #f4f3f0;
--muted-foreground: #4d5259;
--faint-foreground: #636970;
--border: #e2e0da;
--border-strong: #d0cec6;
--ring: #923b69;
--accent: #923b69;
--shadow: 0 1px 2px rgba(20,22,26,.05), 0 8px 24px -16px rgba(20,22,26,.25);
--overlay: rgba(20,22,26,.55);
--font-primary: "Geist", ui-sans-serif, -apple-system, "Segoe UI", sans-serif;
--font-sans: "Geist", ui-sans-serif, -apple-system, "Segoe UI", sans-serif;
--measured: #15875e;
--predicted: #2976d3;
--exploring: #9f6c00;
--spec: #4a3aa7;
--refuted: #df3231;
--series-1: #2a78d6;
--series-2: #eb6834;
--series-3: #1baf7a;
--series-4: #eda100;
--series-5: #e87ba4;
--series-6: #008300;
--series-7: #4a3aa7;
--series-8: #e34948;
--seq-1: #cde2fb;
--seq-2: #b7d3f6;
--seq-3: #9ec5f4;
--seq-4: #86b6ef;
--seq-5: #6da7ec;
--seq-6: #5598e7;
--seq-7: #3987e5;
--seq-8: #2a78d6;
--seq-9: #256abf;
--seq-10: #1c5cab;
--seq-11: #184f95;
--seq-12: #104281;
--seq-13: #0d366b;
--div-1: #0d366b;
--div-2: #184f95;
--div-3: #256abf;
--div-4: #3987e5;
--div-5: #6da7ec;
--div-6: #9ec5f4;
--div-7: #f0efec;
--div-8: #ffa69f;
--div-9: #ff6f69;
--div-10: #fa082c;
--div-11: #c90020;
--div-12: #9a0016;
--div-13: #6e000d;
color-scheme: light;
}
:root[data-theme="fieldguide-dark"] {
--background: #101317;
--foreground: #e8e9ea;
--card: #171b20;
--card-foreground: #e8e9ea;
--popover: #1e232a;
--muted: #1e232a;
--muted-foreground: #a7adb5;
--faint-foreground: #868d96;
--border: #262c33;
--border-strong: #333b44;
--ring: #ed9fc4;
--accent: #ed9fc4;
--shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px -18px rgba(0,0,0,.8);
--overlay: rgba(4,6,8,.68);
--font-primary: "Geist", ui-sans-serif, -apple-system, "Segoe UI", sans-serif;
--font-sans: "Geist", ui-sans-serif, -apple-system, "Segoe UI", sans-serif;
--measured: #199e70;
--predicted: #3987e5;
--exploring: #c98500;
--spec: #9085e9;
--refuted: #e66767;
--series-1: #3987e5;
--series-2: #d95926;
--series-3: #199e70;
--series-4: #c98500;
--series-5: #d55181;
--series-6: #008300;
--series-7: #9085e9;
--series-8: #e66767;
--seq-1: #0d366b;
--seq-2: #104281;
--seq-3: #184f95;
--seq-4: #1c5cab;
--seq-5: #256abf;
--seq-6: #2a78d6;
--seq-7: #3987e5;
--seq-8: #5598e7;
--seq-9: #6da7ec;
--seq-10: #86b6ef;
--seq-11: #9ec5f4;
--seq-12: #b7d3f6;
--seq-13: #cde2fb;
--div-1: #9ec5f4;
--div-2: #86b6ef;
--div-3: #5598e7;
--div-4: #2a78d6;
--div-5: #1c5cab;
--div-6: #104281;
--div-7: #383835;
--div-8: #830011;
--div-9: #b1001b;
--div-10: #e20026;
--div-11: #ff4b4c;
--div-12: #ff8c85;
--div-13: #ffa69f;
color-scheme: dark;
}
/* Previous defaults, kept as explicit opt-ins. */
:root[data-theme="polarize"] {
--background: #100d0b;
--foreground: #ece2d2;
--card: #181310;
--card-foreground: #ece2d2;
--popover: #221b16;
--muted: #221b16;
--muted-foreground: #8f8069;
--faint-foreground: #6e6050;
--border: rgba(236,226,210,.07);
--border-strong: rgba(236,226,210,.14);
--ring: #c4643c;
--accent: #c4643c;
--shadow: rgba(0,0,0,.45);
--overlay: rgba(16,13,11,.72);
--font-primary: Inter, "Inter var", ui-sans-serif, -apple-system, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
--measured: #199e70;
--predicted: #3987e5;
--exploring: #c98500;
--spec: #9085e9;
--refuted: #e66767;
--series-1: #3987e5;
--series-2: #d95926;
--series-3: #199e70;
--series-4: #c98500;
--series-5: #d55181;
--series-6: #008300;
--series-7: #9085e9;
--series-8: #e66767;
--seq-1: #0d366b;
--seq-2: #104281;
--seq-3: #184f95;
--seq-4: #1c5cab;
--seq-5: #256abf;
--seq-6: #2a78d6;
--seq-7: #3987e5;
--seq-8: #5598e7;
--seq-9: #6da7ec;
--seq-10: #86b6ef;
--seq-11: #9ec5f4;
--seq-12: #b7d3f6;
--seq-13: #cde2fb;
--div-1: #9ec5f4;
--div-2: #86b6ef;
--div-3: #5598e7;
--div-4: #2a78d6;
--div-5: #1c5cab;
--div-6: #104281;
--div-7: #383835;
--div-8: #830011;
--div-9: #b1001b;
--div-10: #e20026;
--div-11: #ff4b4c;
--div-12: #ff8c85;
--div-13: #ffa69f;
--clay: #c4643c;
--clay-hover: #d0714a;
--clay-press: #96482a;
--clay-tint: rgba(196,100,60,.13);
--ochre: #d9a441;
--ochre-tint: rgba(217,164,65,.13);
--lichen: #7d8a63;
--lichen-text: #98a67c;
--lichen-tint: rgba(125,138,99,.16);
--line-row: rgba(236,226,210,.055);
--wash-hover: rgba(236,226,210,.03);
--wash-selection: rgba(196,100,60,.35);
color-scheme: dark;
}
:root[data-theme="light"] {
--background: #f7f8f9;
--foreground: #12161b;
--card: #ffffff;
--card-foreground: #12161b;
--popover: #f1f3f5;
--muted: #f1f3f5;
--muted-foreground: #5b6674;
--faint-foreground: #818b98;
--border: #dfe3e8;
--border-strong: #c3cad3;
--ring: #2a78d6;
--accent: #8a6a1f;
--shadow: rgba(16,20,26,0.12);
--overlay: rgba(240,242,245,0.72);
--font-primary: Inter, "Inter var", ui-sans-serif, -apple-system, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
--measured: #15875e;
--predicted: #2976d3;
--exploring: #9f6c00;
--spec: #4a3aa7;
--refuted: #df3231;
--series-1: #2a78d6;
--series-2: #eb6834;
--series-3: #1baf7a;
--series-4: #eda100;
--series-5: #e87ba4;
--series-6: #008300;
--series-7: #4a3aa7;
--series-8: #e34948;
--seq-1: #cde2fb;
--seq-2: #b7d3f6;
--seq-3: #9ec5f4;
--seq-4: #86b6ef;
--seq-5: #6da7ec;
--seq-6: #5598e7;
--seq-7: #3987e5;
--seq-8: #2a78d6;
--seq-9: #256abf;
--seq-10: #1c5cab;
--seq-11: #184f95;
--seq-12: #104281;
--seq-13: #0d366b;
--div-1: #0d366b;
--div-2: #184f95;
--div-3: #256abf;
--div-4: #3987e5;
--div-5: #6da7ec;
--div-6: #9ec5f4;
--div-7: #f0efec;
--div-8: #ffa69f;
--div-9: #ff6f69;
--div-10: #fa082c;
--div-11: #c90020;
--div-12: #9a0016;
--div-13: #6e000d;
color-scheme: light;
}
:root[data-theme="dark"] {
--background: #0f1216;
--foreground: #e6ebf2;
--card: #161b22;
--card-foreground: #e6ebf2;
--popover: #1c222b;
--muted: #1c222b;
--muted-foreground: #98a3b3;
--faint-foreground: #6b7686;
--border: #2a323d;
--border-strong: #3a4553;
--ring: #3987e5;
--accent: #c8a04a;
--shadow: rgba(0,0,0,0.45);
--overlay: rgba(6,8,11,0.72);
--font-primary: Inter, "Inter var", ui-sans-serif, -apple-system, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
--measured: #199e70;
--predicted: #3987e5;
--exploring: #c98500;
--spec: #9085e9;
--refuted: #e66767;
--series-1: #3987e5;
--series-2: #d95926;
--series-3: #199e70;
--series-4: #c98500;
--series-5: #d55181;
--series-6: #008300;
--series-7: #9085e9;
--series-8: #e66767;
--seq-1: #0d366b;
--seq-2: #104281;
--seq-3: #184f95;
--seq-4: #1c5cab;
--seq-5: #256abf;
--seq-6: #2a78d6;
--seq-7: #3987e5;
--seq-8: #5598e7;
--seq-9: #6da7ec;
--seq-10: #86b6ef;
--seq-11: #9ec5f4;
--seq-12: #b7d3f6;
--seq-13: #cde2fb;
--div-1: #9ec5f4;
--div-2: #86b6ef;
--div-3: #5598e7;
--div-4: #2a78d6;
--div-5: #1c5cab;
--div-6: #104281;
--div-7: #383835;
--div-8: #830011;
--div-9: #b1001b;
--div-10: #e20026;
--div-11: #ff4b4c;
--div-12: #ff8c85;
--div-13: #ffa69f;
color-scheme: dark;
}
:root {
--font-sans: Inter, "Inter var", ui-sans-serif, -apple-system, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
--font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
--font-serif: "Literata", Georgia, serif;
--font-display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
--display-1: clamp(2.3rem, 6vw, 3.4rem);
--display-2: 1.7rem;
--display-3: 1.25rem;
--text-xs: 10.5px;
--text-sm: 12px;
--text-base: 14px;
--text-lg: 15.5px;
--text-xl: 20px;
--text-hero: 30px;
--leading-tight: 1.25;
--leading-base: 1.55;
--space-1: 4px;
--space-2: 8px;
--space-3: 12px;
--space-4: 16px;
--space-5: 24px;
--space-6: 32px;
--space-7: 48px;
--space-8: 64px;
--space-9: 96px;
--radius-xs: 4px;
--radius-sm: 6px;
--radius-base: 10px;
--radius-lg: 14px;
--radius-pill: 999px;
--radius: 10px;
--code-background: #0f1216;
--code-bar: #161a1f;
--code-border: #232830;
--code-foreground: #d6d9dd;
--code-muted: #8b939d;
--syntax-keyword: #c9a4ff;
--syntax-string: #8fd3a8;
--syntax-number: #f0b86e;
--syntax-comment: #7f8893;
--syntax-function: #7ec3ff;
--content-max: 980px;
--drawer-width: 460px;
--motion-fast: 120ms;
--motion-base: 200ms;
--motion-slow: 320ms;
--ease: cubic-bezier(.2,.7,.3,1);
}
/* Self-hosted, not a CDN reference -- local files under design/fonts/, so
projects still load with no network (earth-heart-beat's offline-PWA requirement and
friends). Latin subset only (~131 KB total). Literata (TypeTogether/Google
Fonts, OFL -- see fonts/LITERATA-OFL.txt), chosen over Source Serif 4
specifically for its opsz (optical size) axis, 7-72pt: this is a UI
typeface running text as small as 11px (--text-xs), and opsz is what
keeps a serif legible that small instead of just scaling down a face
drawn for headlines -- thicker strokes, more open counters and looser
spacing at small sizes, without a second family or manual overrides.
Browsers drive it automatically (font-optical-sizing: auto, the default)
off the rendered font-size, so no CSS here references opsz directly.
Weight 300-700 come from one variable-font file; italic is pinned to 400
(the only italic weight actually used -- .ui-predicted) but keeps its own
opsz range, since predicted values render at every text size too. Never
synthesise oblique (Polarize principle 1). */
@font-face {
font-family: "Literata";
font-style: normal;
font-weight: 300 700;
font-display: swap;
src: url("fonts/literata-normal-variable.woff2") format("woff2");
}
@font-face {
font-family: "Literata";
font-style: italic;
font-weight: 400;
font-display: swap;
src: url("fonts/literata-italic-400.woff2") format("woff2");
}
/* The Instrument triad (2026-08-19). Also self-hosted, also no CDN: 76 KB for all three
latin subsets, which is what made vendoring Inter finally reasonable -- the older note
here declined it assuming 100 KB+, and the variable latin subset is 48 KB.
INSTRUMENT SERIF IS A DISPLAY FACE. It has no optical-size axis and goes spindly below
about 20px, so --font-display is for headings and .ui-display only; running text is Inter. */
@font-face {
font-family: "Instrument Serif";
font-style: normal;
font-weight: 400;
font-display: swap;
src: url("fonts/instrument-serif-400.woff2") format("woff2");
}
@font-face {
font-family: "Inter";
font-style: normal;
font-weight: 100 900;
font-display: swap;
src: url("fonts/inter-variable.woff2") format("woff2");
}
@font-face {
font-family: "Geist";
font-style: normal;
font-weight: 400;
font-display: swap;
src: url("fonts/geist-400.woff2") format("woff2");
}
@font-face {
font-family: "IBM Plex Mono";
font-style: normal;
font-weight: 400 500;
font-display: swap;
src: url("fonts/ibm-plex-mono-400.woff2") format("woff2");
}
/* ---------------------------------------------------------------- base ---- */
*, *::before, *::after { box-sizing: border-box; }
body.ui {
margin: 0;
background: var(--background);
color: var(--foreground);
font: var(--text-base)/var(--leading-base) var(--font-primary);
-webkit-text-size-adjust: 100%;
}
.ui-wrap { max-width: var(--content-max); margin: 0 auto; padding: var(--space-4); }
.ui-header {
padding: var(--space-4) var(--space-4) var(--space-3);
border-bottom: 1px solid var(--border);
background: var(--background);
}
.ui-header h1 { margin: 0; font-size: var(--text-lg); font-weight: 400; }
.ui-header h1 em { font-style: normal; color: var(--accent); }
.ui-lede { color: var(--muted-foreground); font-size: var(--text-sm); margin-top: var(--space-1);
max-width: 72ch; }
/* Navbar: a short sticky bar. data-autohide slides it up out of view while scrolling down and back
when scrolling up; at the top of the page it is always shown. Below the tablet breakpoint
(768px) .ui-navbar__items folds into a menu behind .ui-navbar__toggle, and .ui-navbar__wide
(secondary readouts, status text) is hidden. design.js wires the behaviour (initNavbar). */
.ui-navbar {
position: sticky; top: 0; z-index: 40;
background: var(--background); border-bottom: 1px solid var(--border);
padding-top: env(safe-area-inset-top, 0px);
transition: transform var(--motion-base) var(--ease);
}
.ui-navbar.is-hidden { transform: translateY(-100%); }
.ui-navbar__bar {
display: flex; align-items: center; gap: var(--space-4);
max-width: var(--navbar-max, var(--content-max)); margin: 0 auto; height: 44px;
padding: 0 max(var(--space-4), env(safe-area-inset-right, 0px)) 0 max(var(--space-4), env(safe-area-inset-left, 0px));
}
.ui-navbar__brand {
display: inline-flex; align-items: baseline; gap: var(--space-2); flex: none;
font-family: var(--font-display); font-size: var(--text-xl); line-height: 1;
color: var(--foreground); text-decoration: none; text-transform: none;
}
.ui-navbar__version { font: 500 var(--text-xs)/1 var(--font-mono); color: var(--faint-foreground); }
.ui-navbar__items { display: flex; align-items: center; gap: var(--space-1); flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.ui-navbar__items::-webkit-scrollbar { display: none; }
.ui-navbar__link {
background: none; border: 0; border-radius: var(--radius-sm); padding: 6px var(--space-3);
font: inherit; font-size: var(--text-sm); color: var(--muted-foreground);
text-decoration: none; cursor: pointer; white-space: nowrap;
}
.ui-navbar__link:hover { color: var(--foreground); background: var(--surface-2); }
.ui-navbar__link[aria-current] { color: var(--foreground); background: var(--surface-2); }
.ui-navbar__link:focus-visible, .ui-navbar__toggle:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.ui-navbar__actions { display: flex; align-items: center; gap: var(--space-3); margin-left: auto; flex: none; }
.ui-navbar__toggle {
display: none; align-items: center; justify-content: center; width: 32px; height: 32px; flex: none;
background: none; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
color: var(--foreground); cursor: pointer;
}
.ui-navbar__toggle svg { width: 16px; height: 16px; }
@media (max-width: 767px) {
.ui-navbar__toggle { display: inline-flex; }
.ui-navbar__wide { display: none !important; }
.ui-navbar__items {
display: none; position: absolute; left: 0; right: 0; top: 100%; overflow: visible;
flex-direction: column; align-items: stretch; gap: 2px;
padding: var(--space-2) var(--space-4) var(--space-3);
background: var(--background); border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
}
.ui-navbar[data-open] .ui-navbar__items { display: flex; }
.ui-navbar__link { padding: var(--space-2) var(--space-3); }
}
@media (prefers-reduced-motion: reduce) { .ui-navbar { transition: none; } }
/* ---------------------------------------------------------- dashboards ---- */
/* A dashboard view: KPI strip, stacked panels on a shared gutter, an exponent/category strip,
event cards, a p-value table and a disclosure. Marks are drawn by the consumer (canvas or SVG);
these classes carry the frame, the type and the legend. Tier and measured/predicted styling
still apply inside them: see .ui-tier, .ui-measured, .ui-predicted. */
.ui-kpis {
display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1px;
background: var(--border); border: 1px solid var(--border);
border-radius: var(--radius); overflow: hidden;
}
.ui-kpi { background: var(--surface); padding: var(--space-4) 18px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ui-kpi__label {
font: 500 var(--text-xs)/1.25 var(--font-mono); letter-spacing: .12em; text-transform: uppercase;
color: var(--faint-foreground);
}
.ui-kpi__value {
font-family: var(--font-display); font-size: var(--text-hero); line-height: 1.05;
color: var(--foreground); text-transform: none; text-wrap: balance;
}
.ui-kpi__value small { font-family: var(--font-primary); font-size: var(--text-sm); color: var(--faint-foreground); margin-left: var(--space-1); }
.ui-kpi__note { margin: 0; font-size: var(--text-sm); color: var(--muted-foreground); }
.ui-panels {
--panel-gutter: 56px;
display: flex; flex-direction: column;
border: 1px solid var(--border); border-radius: var(--radius);
background: var(--surface); overflow: hidden;
}
.ui-panel { border-top: 1px solid var(--border); padding-top: var(--space-3); min-width: 0; }
.ui-panel:first-child { border-top: 0; }
.ui-panel__head {
display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px var(--space-3);
padding: 0 var(--space-4) var(--space-2) var(--panel-gutter);
}
.ui-panel__title {
margin: 0; font: 500 var(--text-xs)/1.25 var(--font-mono); letter-spacing: .12em;
text-transform: uppercase; color: var(--foreground);
}
.ui-panel__sub { font-size: var(--text-sm); color: var(--faint-foreground); }
.ui-panel canvas, .ui-panel svg { display: block; width: 100%; }
.ui-panels__keys {
display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) 18px;
padding: 10px var(--space-4); border-top: 1px solid var(--border);
background: var(--surface-2); font-size: var(--text-sm); color: var(--muted-foreground);
}
.ui-key { display: inline-flex; align-items: center; gap: 6px; }
.ui-key::before { content: ""; width: 18px; border-top: 2px solid var(--foreground); }
.ui-key[data-kind="dash"]::before { border-top-style: dashed; border-color: var(--faint-foreground); }
.ui-key[data-kind="fill"]::before { height: 10px; width: 14px; border: 1px solid var(--accent); background: var(--surface-2); }
.ui-strip {
background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
padding: var(--space-4) 18px 14px; display: flex; flex-direction: column; gap: var(--space-3);
}
.ui-strip__legend {
display: flex; flex-wrap: wrap; gap: 6px var(--space-4);
font: 500 var(--text-xs)/1.25 var(--font-mono); letter-spacing: .08em; text-transform: uppercase;
color: var(--muted-foreground);
}
.ui-strip__legend span { display: inline-flex; align-items: center; gap: 6px; }
.ui-strip__legend i {
width: 12px; height: 12px; border-radius: 3px; display: inline-block;
border: 1px solid var(--border-strong); background: var(--swatch, var(--surface-2));
}
.ui-strip__legend em { font-style: normal; color: var(--faint-foreground); }
.ui-strip__well { display: block; width: 100%; border-radius: var(--radius-xs); }
.ui-strip__now { margin: 0; color: var(--foreground); max-width: 90ch; }
.ui-events { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: var(--space-3); }
.ui-event {
background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
padding: 14px var(--space-4); display: flex; flex-direction: column; gap: var(--space-2);
min-width: 0; margin: 0; font: inherit; color: inherit; text-align: left;
}
button.ui-event { cursor: pointer; }
button.ui-event:hover { border-color: var(--foreground); }
.ui-event[aria-current], .ui-event[data-hit] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.ui-event__head { display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); }
.ui-event__title { font-family: var(--font-display); font-size: var(--text-xl); line-height: 1.1; color: var(--foreground); text-transform: none; }
.ui-event__trace { display: block; width: 100%; height: 48px; color: var(--foreground); }
.ui-event__trace path { fill: none; stroke: currentColor; stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.ui-event__trace .axis { stroke: var(--border-strong); vector-effect: non-scaling-stroke; }
.ui-event dl { display: grid; grid-template-columns: auto 1fr; gap: 2px var(--space-3); margin: 0; font-size: var(--text-sm); }
.ui-event dt { color: var(--faint-foreground); }
.ui-event dd { margin: 0; text-align: right; color: var(--foreground); font-variant-numeric: tabular-nums; }
/* p-value cell: a rejected cell is outlined in the accent and keeps its number. */
.ui-table .ui-pcell { font-family: var(--font-mono); text-align: center; font-variant-numeric: tabular-nums; }
.ui-table .ui-pcell[data-reject] { background: var(--surface-2); color: var(--foreground); box-shadow: inset 0 0 0 1px var(--accent); }
details.ui-disclosure { border-top: 1px solid var(--border); padding-top: var(--space-2); max-width: 84ch; }
details.ui-disclosure > summary {
cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: var(--space-2);
font: 500 var(--text-xs)/1.25 var(--font-mono); letter-spacing: .12em; text-transform: uppercase;
color: var(--faint-foreground);
}
details.ui-disclosure > summary::-webkit-details-marker { display: none; }
details.ui-disclosure > summary::before {
content: "?"; display: inline-grid; place-items: center; width: 16px; height: 16px;
border: 1px solid var(--border-strong); border-radius: 50%;
}
details.ui-disclosure[open] > summary::before { background: var(--accent); border-color: var(--accent); color: var(--background); }
details.ui-disclosure > summary:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
details.ui-disclosure > :not(summary) { margin: var(--space-2) 0 0; font-size: var(--text-sm); color: var(--muted-foreground); }
.ui-tabs {
display: flex; gap: 2px; overflow-x: auto;
padding: var(--space-2) var(--space-4) 0;
border-bottom: 1px solid var(--border);
position: sticky; top: 0; z-index: 30; background: var(--background);
}
.ui-tabs button {
background: none; border: 0; border-bottom: 2px solid transparent;
color: var(--muted-foreground); padding: var(--space-2) var(--space-3);
font: inherit; font-size: var(--text-sm); cursor: pointer; white-space: nowrap;
}
.ui-tabs button[aria-selected="true"] { color: var(--foreground); border-bottom-color: var(--accent); }
.ui-tabs button:focus-visible { outline: 2px solid var(--ring); outline-offset: -2px; }
/* ---------------------------------------------------------- containers ---- */
/* THE SANS IS NEVER BOLD AND NEVER TRACKED (operator, 2026-08-20). Inter's regular weight is
the design; hierarchy comes from size, face (serif display / mono label), colour and case.
Browser defaults are the main leak -- plain headings at 700, <strong> at bold -- so they are
reset here. <strong> keeps its semantics and is marked by full-strength ink instead of weight,
which still reads as emphasis inside the muted body colour. Mono keeps its 500 (a label
idiom, not running text); the display serif was already 400. */
h1, h2, h3, h4, h5, h6 { font-weight: 400; }
b, strong { font-weight: 400; color: var(--foreground); }
.ui-card {
background: var(--card); border: 1px solid var(--border);
border-radius: var(--radius); padding: var(--space-4);
margin: 0 0 var(--space-4);
}
/* Uppercase section kicker for a plain h2. NOT for .ui-display headings: uppercase text is
always mono in this system (an uppercased serif display face is the one combination the
type rules forbid), so the display variant is excluded and keeps its own family and case. */
.ui-card > h2:not(.ui-display) {
margin: 0 0 var(--space-2); font-size: var(--text-sm);
font-family: var(--font-mono); font-weight: 500;
letter-spacing: .05em; text-transform: uppercase; color: var(--muted-foreground);
display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap;
}
.ui-card > h2.ui-display { margin: 0 0 var(--space-2); }
.ui-card > h3, .ui-card h3 { margin: var(--space-4) 0 var(--space-1); font-size: var(--text-base); }
.ui-row { display: flex; gap: var(--space-3); flex-wrap: wrap; align-items: center; }
.ui-grid { display: grid; gap: var(--space-3);
grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.ui-split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
@media (max-width: 560px) { .ui-split { grid-template-columns: 1fr; } }
/* Popover: a panel on the native [popover] element (or any element; it styles the panel only). */
.ui-popover { width: min(26rem, 100%); box-sizing: border-box; margin: auto; padding: var(--space-4);
display: grid; gap: var(--space-4); background: var(--card); color: var(--foreground);
border: 1px solid var(--border-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.ui-popover[popover]:not(:popover-open) { display: none; }
.ui-popover::backdrop { background: transparent; }
/* ------------------------------------------------------------ controls ---- */
.ui-btn {
background: var(--muted); border: 1px solid var(--border); color: var(--foreground);
border-radius: var(--radius-sm); padding: 9px 14px;
font: inherit; font-size: var(--text-sm); cursor: pointer;
transition: border-color var(--motion-fast) var(--ease), background var(--motion-fast) var(--ease);
}
.ui-btn:hover { border-color: var(--border-strong); }
.ui-btn:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.ui-btn--primary { background: var(--accent); border-color: var(--accent);
color: var(--background); }
.ui-btn--ghost { background: none; border-color: transparent; color: var(--muted-foreground); }
.ui-btn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent);
color: var(--background); }
/* Segmented control: joined pressed-state buttons, one choice of a few. Each button carries
aria-pressed; the group is role="group" with an accessible name. */
.ui-segmented { display: inline-flex; flex-wrap: wrap; align-self: start;
border: 1px solid var(--border-strong); border-radius: var(--radius-sm); overflow: hidden; }
.ui-segmented > .ui-btn { border: 0; border-radius: 0; min-height: 44px; background: var(--card);
display: inline-flex; align-items: center; gap: var(--space-2); }
.ui-segmented > .ui-btn + .ui-btn { border-left: 1px solid var(--border-strong); }
.ui-segmented > .ui-btn[aria-pressed="true"] { background: var(--accent); color: var(--background); }
.ui-segmented > .ui-btn[aria-disabled="true"], .ui-segmented > .ui-btn:disabled { color: var(--faint-foreground); cursor: not-allowed; }
.ui-segmented > .ui-btn:focus-visible { outline-offset: -2px; }
.ui-field { display: flex; flex-direction: column; gap: var(--space-1);
font-size: var(--text-xs); color: var(--muted-foreground); min-width: 130px; flex: 1; }
.ui-field > select, .ui-field > input { font-size: var(--text-sm); }
select, input[type="text"], input[type="number"] {
background: var(--muted); border: 1px solid var(--border); color: var(--foreground);
border-radius: var(--radius-sm); padding: 7px 9px; font: inherit; font-size: var(--text-sm);
}
input[type="range"] {
background: var(--muted); border: 1px solid var(--border);
border-radius: var(--radius-sm); height: 26px; padding: 0; accent-color: var(--accent);
}
select:focus-visible, input:focus-visible { outline: 2px solid var(--ring); outline-offset: 1px; }
progress { width: 100%; height: 6px; appearance: none; border: 0;
background: var(--muted); border-radius: 3px; }
progress::-webkit-progress-bar { background: var(--muted); border-radius: 3px; }
progress::-webkit-progress-value { background: var(--accent); border-radius: 3px; }
/* --------------------------------------------------------------- text ----- */
.ui-note { color: var(--muted-foreground); font-size: var(--text-sm); }
.ui-mono { font-family: var(--font-mono); font-size: var(--text-sm); }
/* ---- the Instrument type primitives ---------------------------------------------------
Three roles, and the split is the point: a display serif for headings, Inter for
running text, uppercase mono for labels. A project gets these by using the classes;
it does not have to adopt the instrument COLOUR theme to use them. */
.ui-display {
font-family: var(--font-display);
font-weight: 400;
line-height: 1.06;
letter-spacing: -.015em;
text-transform: none; /* the serif is NEVER uppercased -- uppercase belongs to the mono */
text-wrap: balance;
margin: 0;
}
.ui-display--1 { font-size: var(--display-1); }
.ui-display--2 { font-size: var(--display-2); line-height: 1.15; }
.ui-display--3 { font-size: var(--display-3); line-height: 1.25; }
/* The uppercase mono label -- eyebrows, section kickers, data captions. The
letter-spacing is not decoration: mono uppercase at 10.5px is unreadable without it. */
.ui-label {
font-family: var(--font-mono);
font-size: var(--text-xs);
font-weight: 500;
letter-spacing: .12em;
text-transform: uppercase;
color: var(--faint-foreground);
margin: 0;
}
.ui-label--accent { color: var(--accent); }
/* Standfirst / subtitle. Body size on purpose (2026-08-20) -- it differs from running text
by colour and measure, not by being bigger. */
.ui-standfirst {