Repository navigation
Expand file tree
/
Copy pathglobals.css
More file actions
3828 lines (3288 loc) · 94.8 KB
/
Copy pathglobals.css
File metadata and controls
3828 lines (3288 loc) · 94.8 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
@import "./tokens.css";
@tailwind base;
@tailwind components;
@tailwind utilities;
/* ---------- root tokens — GPUI theme ---------- */
/*
* The site is a folio read in the product client's light: warm paper at the
* surface, warm charcoal at depth. Above the waterline the field is the GPUI
* light theme's paper and the ink is its plum-charcoal foreground. Below the
* waterline (`.ocean-column`, the footer, every terminal plate) the same
* names resolve to the dark charcoal tokens, so a component written once
* reads correctly on either side.
*
* The token NAMES keep their historical shape (`--paper`, `--ink`,
* `--indigo`) so every component rule stays diffable; the VALUES resolve
* through the `--gpui-*` block below, which now references the generated
* Shoreline tokens in ./tokens.css (crates/palette/src/tokens.rs is the
* single source — the same constants the GPUI client and the TUI open on).
* Only values with no Shoreline slot stay literal: the hover tones, the
* accent washes, and the AA-adapted state hues. `--whale-*`/`--light-*`
* remain available to anything that genuinely wants the terminal palette.
*/
:root {
/* --- The GPUI source palette (generated Shoreline slots) --- */
--gpui-paper: var(--shoreline-light-surface); /* light background — warm paper */
--gpui-paper-raised: var(--shoreline-light-elevated); /* light card/popover */
--gpui-paper-muted: var(--shoreline-light-panel); /* light muted surface */
--gpui-ink: var(--shoreline-light-text-body); /* light foreground */
--gpui-ink-soft: var(--shoreline-light-text-soft);
--gpui-ink-mute: var(--shoreline-light-text-muted); /* light muted_foreground */
--gpui-edge: var(--shoreline-light-border); /* light border */
--gpui-primary: var(--shoreline-light-action); /* light primary */
--gpui-primary-hover: #174aa9; /* light button_primary_hover — no Shoreline slot */
--gpui-accent: #dde6f5; /* light accent — no Shoreline slot */
--gpui-selection: var(--shoreline-light-selection); /* light selection */
--gpui-stage: var(--shoreline-surface); /* dark background — warm charcoal */
--gpui-stage-deep: var(--shoreline-chrome); /* deepest dark */
--gpui-stage-muted: var(--shoreline-panel); /* dark muted surface */
--gpui-stage-raised: var(--shoreline-elevated); /* raised dark plate */
--gpui-stage-ink: var(--shoreline-text-body); /* dark foreground */
--gpui-stage-ink-soft: var(--shoreline-text-muted); /* dark muted_foreground */
--gpui-stage-ink-dim: var(--shoreline-text-dim);
--gpui-stage-edge: var(--shoreline-border); /* dark border */
--gpui-primary-dark: var(--shoreline-action); /* dark primary */
--gpui-primary-hover-dark: #b0ccff; /* dark button_primary_hover — no Shoreline slot */
--gpui-on-primary: #15243e; /* dark primary_foreground — no Shoreline slot */
--gpui-accent-dark: #353a4a; /* dark accent — no Shoreline slot */
--gpui-selection-dark: var(--shoreline-selection); /* dark selection */
/* Warm-muted state hues from the GPUI mockups, darkened or lifted per
side of the waterline so text uses of them still clear AA. No Shoreline
slots: these are site-specific adaptations. */
--gpui-tan: #b1a17a; /* human mark */
--gpui-moss: #739686; /* outcome */
--gpui-rust: #aa6f6c; /* attention */
/* RGB channel triples backing the Tailwind surface/ink tokens (see
tailwind.config.ts). `.ocean-column` and the opt-in docs dark sheet
override them for their dark subtree. */
--c-paper: var(--shoreline-light-surface-rgb);
--c-paper-deep: var(--shoreline-light-panel-rgb);
--c-paper-edge: var(--shoreline-light-border-rgb);
--c-ink: var(--shoreline-light-text-body-rgb);
--c-ink-soft: var(--shoreline-light-text-soft-rgb);
--c-ink-mute: var(--shoreline-light-text-muted-rgb);
--c-indigo: var(--shoreline-light-action-rgb);
--c-indigo-deep: 23 74 169; /* light primary hover — no Shoreline slot */
--c-stage-soft: var(--shoreline-text-muted-rgb);
--c-stage-deep: var(--shoreline-chrome-rgb);
--c-primary-dark: var(--shoreline-action-rgb);
/* The sheet. */
--paper: var(--gpui-paper);
--paper-deep: var(--gpui-paper-muted);
--paper-edge: var(--gpui-edge);
--paper-card: var(--gpui-paper-raised);
--paper-line: var(--gpui-edge);
--paper-line-soft: var(--gpui-edge);
--ink: var(--gpui-ink);
--ink-soft: var(--gpui-ink-soft);
--ink-mute: var(--gpui-ink-mute);
/* Action on paper is the GPUI light primary; hover sinks to its hover. */
--indigo: var(--gpui-primary);
--indigo-deep: var(--gpui-primary-hover);
--indigo-pale: rgb(var(--c-indigo) / 0.1);
--action-on-dark: var(--gpui-primary-dark);
/* State inks darkened from the mockup hues so they clear AA on paper:
moss is outcome, rust is attention, tan is the human mark. */
--ochre: #7d6a3f;
--jade: #4e6f61;
--seafoam: var(--gpui-moss);
--cobalt: var(--gpui-primary);
--cyan: var(--gpui-primary); /* reserved for the composer prompt glyph and the release line */
--ocean-deep: var(--gpui-stage-deep);
--ocean-mid: var(--gpui-stage-muted);
--ocean-current: var(--gpui-primary-dark);
--ocean-mist: var(--gpui-stage-ink-soft);
--ocean-coral: #8f5a56;
--signal-gold: #7d6a3f;
/* The whale mark is ink on paper; below the waterline it is the light
stage foreground. The warm tan stays reserved for human moments. */
--mark-ink: var(--gpui-ink);
--stage-text: var(--gpui-stage-ink);
--stage-soft: var(--gpui-stage-ink-soft);
--stage-muted: var(--gpui-stage-ink-dim);
/* The water column, re-inked in the GPUI dark ramp. */
--stage-field-top: var(--gpui-stage-muted); /* surface */
--stage-field-mid: var(--gpui-stage); /* the authored 42% break */
--stage-field-deep: var(--gpui-stage-deep); /* deep field, and the footer seabed */
--stage-ambient: var(--gpui-accent-dark);
--stage-composer: var(--gpui-stage-muted); /* the raised input plate */
--stage-elevated: var(--gpui-stage-raised);
--stage-line: var(--gpui-stage-edge); /* the charcoal border on stage */
--stage-hint: var(--gpui-stage-ink-dim);
--stage-dim: var(--gpui-stage-ink-soft);
--violet: var(--gpui-selection-dark); /* 1px rules only, never text */
/* Newsreader carries h1/h2; Shannon Sans supplies body and small headings.
The historic condensed role keeps its scale and weight, not a second face.
IBM Plex Mono and the Unicode fallback stacks retain their own roles. */
--font-body: var(--font-shannon-sans);
--font-display: var(--font-shannon-sans);
--font-cjk: "PingFang SC", "Hiragino Sans GB", "Source Han Serif SC",
"Noto Serif CJK SC", serif;
/* Hairline + code surfaces routed through vars so the dark subtrees can
re-ink them without touching every rule. Code plates are always the
stage's own deepest field, on either side of the waterline. */
--hairline: rgb(var(--c-ink) / 0.16);
--code-bg: var(--gpui-stage-deep);
--code-fg: var(--gpui-stage-ink);
/* One site container and one vertical rhythm. Every page gutter aligns
with the nav; every hero and section shares a single padding token. */
--container: min(100% - 2rem, 76rem);
--hero-pad: clamp(3rem, 6vw, 4.75rem);
--section-pad: clamp(2.75rem, 5vw, 4rem);
color-scheme: light;
}
/*
* Below the waterline. One rule, applied to every dark subtree — the water
* column on the homepage, the footer seabed, the opt-in docs dark sheet
* (`.docs-portal` is the docs layout root, which also carries `.docs-theme`)
* — so a component never needs to know which side of the surface it is on.
*/
.ocean-column,
.site-footer,
html[data-theme="dark"] .docs-portal {
--c-paper: var(--shoreline-surface-rgb);
--c-paper-deep: var(--shoreline-panel-rgb);
--c-paper-edge: var(--shoreline-border-rgb);
--c-ink: var(--shoreline-text-body-rgb);
--c-ink-soft: var(--shoreline-text-muted-rgb);
--c-ink-mute: var(--shoreline-text-dim-rgb);
--c-indigo: var(--shoreline-action-rgb);
--c-indigo-deep: 176 204 255; /* lifted primary — hover on dark, no Shoreline slot */
--paper: var(--gpui-stage);
--paper-deep: var(--gpui-stage-muted);
--paper-edge: var(--gpui-stage-edge);
--paper-card: var(--gpui-stage-muted);
--paper-line: var(--gpui-stage-edge);
--paper-line-soft: var(--gpui-stage-edge);
--ink: var(--gpui-stage-ink);
--ink-soft: var(--gpui-stage-ink-soft);
--ink-mute: var(--gpui-stage-ink-dim);
--indigo: var(--gpui-primary-dark);
--indigo-deep: var(--gpui-primary-hover-dark);
--indigo-pale: rgb(var(--c-primary-dark) / 0.14);
--ochre: #d6c78f;
--jade: #9ec7b2;
--cyan: var(--gpui-primary-dark);
--ocean-coral: #d08a80;
--signal-gold: #d6c78f;
--mark-ink: var(--gpui-stage-ink);
--hairline: rgb(var(--c-stage-soft) / 0.2);
color-scheme: dark;
}
/* ---------- base ---------- */
html {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
max-width: 100%;
overflow-x: clip;
}
body {
/* The sheet: one opaque paper field. The descent into the water is drawn
by the waterline band and the ocean column, never by a page gradient. */
background: var(--paper);
color: var(--ink);
font-family: var(--font-body), "Noto Sans SC", system-ui, sans-serif;
font-feature-settings: "ss01", "cv11", "tnum";
max-width: 100%;
overflow-x: clip;
position: relative;
}
.codewhale-mark-primary { fill: var(--mark-ink); }
main, header, footer, nav { position: relative; z-index: 1; }
/* ---------- type ---------- */
/* The folio voice: Newsreader for the big headings, set at book weight with
a little negative tracking so it reads as a title page rather than a
blog. Small headings use the shared Shannon Sans label face. */
.font-display { font-family: var(--font-serif), "Newsreader", Georgia, "Times New Roman", serif; font-weight:
10000
500; }
.font-serif { font-family: var(--font-serif), "Newsreader", Georgia, "Times New Roman", serif; }
.font-condensed { font-family: var(--font-display), ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; font-weight: 600; }
.font-cjk { font-family: var(--font-cjk), "PingFang SC", "Source Han Serif SC", serif; }
/* CJK paragraph rhythm — looser leading, wider tracking for body; tighter for headings */
.cjk-body {
line-height: 1.9;
letter-spacing: 0.02em;
word-break: break-all;
}
.cjk-heading {
letter-spacing: -0.01em;
}
.cjk-prose p {
line-height: 1.9;
letter-spacing: 0.02em;
}
/* Full-width punctuation should use CJK spacing */
.cjk-prose {
font-feature-settings: "halt", "pwid";
}
.font-mono { font-family: var(--font-mono), "IBM Plex Mono", ui-monospace, monospace; }
/* ---------- the ` · ` chain ---------- */
/* The single most recognisable thing about the TUI — its header, empty state
and footer all speak in dot chains — and the grammar the product's voice is
carried by on this site, on both sides of the waterline. The separator is
punctuation emitted by CSS, never copy: no locale translates it, and no
string is ever concatenated around one. No uppercase and no wide tracking:
the TUI header has neither, and both are what break Han. */
.dotline {
display: flex;
flex-wrap: wrap;
align-items: baseline;
font-family: var(--font-mono), "IBM Plex Mono", ui-monospace, monospace;
font-size: 0.75rem;
letter-spacing: 0.02em;
text-transform: none;
}
/* The separator hangs off the END of the preceding item, not the start of the
next one. When a long chain wraps, a line ending in `·` reads as
continuation; a line beginning with one reads as a bullet list. */
.dotline > *:not(:last-child)::after {
content: "·";
margin-inline: 0.5em;
color: var(--stage-dim);
}
html[lang="zh"] .dotline,
html[lang="ja"] .dotline,
html[lang="ko"] .dotline {
letter-spacing: 0;
}
h1, h2 {
font-family: var(--font-serif), "Newsreader", Georgia, "Times New Roman", serif;
font-weight: 500;
letter-spacing: -0.022em;
color: var(--ink);
text-wrap: balance;
}
h3, h4 {
font-family: var(--font-display), ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
font-weight: 600;
letter-spacing: -0.01em;
color: var(--ink);
}
h1 { font-size: clamp(2.5rem, 5.6vw, 5rem); line-height: 1.02; word-break: keep-all; overflow-wrap: anywhere; }
h2 { font-size: clamp(1.6rem, 2.9vw, 2.6rem); line-height: 1.1; word-break: keep-all; overflow-wrap: anywhere; }
h3, h4 { font-size: 1.12rem; line-height: 1.25; font-weight: 600; }
h1.font-display, h2.font-display { font-weight: 500; }
/* Han has no serif/sans distinction to spend; the CJK stack already leads
with a serif. */
html[lang="zh"] h1, html[lang="ja"] h1, html[lang="ko"] h1,
html[lang="zh"] h2, html[lang="ja"] h2, html[lang="ko"] h2 { letter-spacing: 0; font-weight: 600; }
/* `overflow-wrap: anywhere` keeps long English headings safe, but can strand
CJK punctuation — or a lone numeral — on a line of its own. Strict CJK
line-breaking keeps punctuation attached while still allowing breaks between
Han characters. ja and ko want the same rule: ja for the identical reason as
zh, ko because it has real word boundaries and should break on them. */
html[lang="zh"] h1,
html[lang="zh"] h2,
html[lang="zh"] h3,
html[lang="ja"] h1,
html[lang="ja"] h2,
html[lang="ja"] h3,
html[lang="ko"] h1,
html[lang="ko"] h2,
html[lang="ko"] h3 {
line-break: strict;
word-break: normal;
overflow-wrap: break-word;
}
@media (max-width: 640px) {
h1 .font-cjk {
display: inline-block;
font-size: clamp(1.6rem, 7.5vw, 2.2rem);
overflow-wrap: anywhere;
}
/* Keep headings inside the viewport without inserting awkward English hyphens. */
h1, h2 { hyphens: auto; }
html[lang="en"] h1,
html[lang="en"] h2 { hyphens: none; }
}
/* ---------- structural primitives ---------- */
/* One hairline everywhere: action blue at low alpha, visible on the deep
field without ever becoming a border wall. */
.hairline { border-color: var(--hairline); }
.hairline-t { border-top: 1px solid var(--hairline); }
.hairline-b { border-bottom: 1px solid var(--hairline); }
.hairline-l { border-left: 1px solid var(--hairline); }
.hairline-r { border-right: 1px solid var(--hairline); }
/* The single site container: width + auto margins so every page's gutters
line up with the nav. */
.site-container {
width: var(--container);
margin-inline: auto;
}
/* The single hero band shared by home, docs, and the community portals: a
quiet, flat stage surface against the deep field. */
.hero {
position: relative;
overflow: hidden;
border-bottom: 1px solid var(--hairline);
background: transparent;
color: var(--ink);
padding-block: var(--hero-pad);
}
/* The single section rhythm for per-route hero/section blocks. */
.section {
padding-block: var(--section-pad);
}
.double-rule {
background-image:
linear-gradient(var(--hairline), var(--hairline)),
linear-gradient(var(--hairline), var(--hairline));
background-size: 100% 1px, 100% 1px;
background-position: top, bottom;
background-repeat: no-repeat;
padding: 0.45rem 0;
}
.col-rule > * + * {
border-left: 1px solid var(--hairline);
}
/* Single-column phones: drop the column rules so cards stack flush. */
@media (max-width: 767px) {
.col-rule > * + * { border-left: 0; border-top: 1px solid var(--hairline); }
}
/* small-caps eyebrow — muted mono chrome for compact labels */
.eyebrow {
font-family: var(--font-mono), "IBM Plex Mono", monospace;
font-size: 0.7rem;
font-weight: 500;
letter-spacing: 0.18em;
text-transform: uppercase;
color: var(--ink-mute);
}
/* ---------- compact section marker ---------- */
/* The seal keeps its Han glyph but speaks as Tideline chrome now: a bordered
stage plate with muted ink, not an ink block on paper. */
.seal {
display: inline-flex;
align-items: center;
justify-content: center;
background: var(--paper-deep);
border: 1px solid var(--stage-line);
color: var(--ink-mute);
font-family: var(--font-cjk), "PingFang SC", serif;
font-weight: 700;
width: 2.6rem;
height: 2.6rem;
border-radius: 6px;
letter-spacing: -0.04em;
}
/* Action-blue variant for the few routes that need a stronger section marker. */
.seal-indigo {
color: var(--indigo);
border-color: color-mix(in srgb, var(--indigo) 55%, transparent);
}
/* Below the waterline the seal stays the same plate — the whole page is water
now, so there is nothing left to invert. */
.ocean-column .seal {
background: var(--stage-elevated);
color: var(--ink-mute);
}
/* ---------- pills / status ---------- */
.pill {
display: inline-flex;
align-items: center;
gap: 0.35rem;
padding: 0.12rem 0.45rem;
font-family: var(--font-mono), monospace;
font-size: 0.7rem;
font-weight: 500;
letter-spacing: 0.06em;
text-transform: uppercase;
border: 1px solid var(--paper-line);
background: var(--paper-deep);
color: var(--ink);
}
.pill-hot { background: var(--indigo); color: var(--paper); border-color: var(--indigo); }
.pill-new { background: var(--paper-deep); color: var(--ink); border-color: var(--ink-mute); }
.pill-jade { background: var(--jade); color: var(--paper); border-color: var(--jade); }
.pill-ochre { background: var(--ochre); color: var(--paper); border-color: var(--ochre); }
.pill-ghost { background: transparent; color: var(--ink-mute); border-color: var(--ink-mute); }
/* ---------- numbers ---------- */
.tabular { font-variant-numeric: tabular-nums; }
.bignum {
font-family: var(--font-body), system-ui, sans-serif;
font-weight: 600;
font-size: 2.2rem;
line-height: 1;
letter-spacing: -0.04em;
font-variant-numeric: tabular-nums;
}
/* ---------- code blocks ---------- */
pre.code-block {
background: var(--code-bg);
color: var(--code-fg);
max-width: 100%;
min-width: 0;
padding: 1rem 1.1rem;
font-family: var(--font-mono), monospace;
font-size: 0.82rem;
line-height: 1.55;
border: 1px solid var(--stage-line);
border-radius: 6px;
overflow-x: auto;
position: relative;
white-space: pre;
-webkit-overflow-scrolling: touch;
}
pre.code-block::before {
content: "";
position: absolute;
top: 0; left: 0; right: 0;
height: 1px;
background: var(--hairline);
}
pre.code-block .prompt { color: var(--action-on-dark); }
pre.code-block .comment { color: var(--gpui-stage-ink-dim); }
pre.code-block .key { color: var(--signal-gold); }
@media (max-width: 640px) {
pre.code-block { font-size: 0.76rem; padding: 0.85rem 0.95rem; }
}
code.inline {
background: var(--paper-deep);
border: 1px solid var(--hairline);
padding: 0.05rem 0.32rem;
font-family: var(--font-mono), monospace;
font-size: 0.85em;
border-radius: 2px;
}
/* ---------- search ---------- */
.search-input {
font-family: var(--font-body), system-ui, sans-serif;
font-size: 1rem;
padding: 0.75rem 2.5rem 0.75rem 1rem;
background: var(--paper);
color: var(--ink);
border: 1px solid var(--hairline);
transition: border-color 180ms ease, box-shadow 180ms ease;
}
.search-input::placeholder { color: var(--ink-mute); }
.search-input:focus {
outline: none;
border-color: var(--indigo);
box-shadow: 0 0 0 3px var(--indigo-pale);
}
mark.search-highlight {
background: var(--indigo-pale);
color: var(--indigo-deep);
padding: 0.02em 0.08em;
border-radius: 2px;
}
/* ---------- nav link ---------- */
.site-nav {
position: sticky;
z-index: 30;
top: 0;
border-bottom: 1px solid var(--hairline);
background: rgb(var(--c-paper) / 0.94);
backdrop-filter: blur(10px);
}
.site-nav-inner {
display: flex;
width: var(--container);
min-height: 4.25rem;
align-items: center;
justify-content: space-between;
gap: 1.5rem;
margin-inline: auto;
}
.site-wordmark {
display: inline-flex;
flex-shrink: 0;
align-items: center;
gap: 0.7rem;
color: var(--ink);
font-family: var(--font-display), ui-sans-serif, system-ui, sans-serif;
font-size: 1.15rem;
font-weight: 600;
letter-spacing: -0.03em;
}
.paper-nav-inner {
min-height: 3.85rem;
padding-block: 0.55rem;
}
.paper-wordmark {
flex: 0 1 auto;
gap: 0.75rem;
max-width: 15rem;
min-width: 8.75rem;
overflow: hidden;
}
.paper-wordmark-text {
display: flex;
align-items: center;
gap: 8px;
line-height: 1.1;
min-width: 0;
}
.paper-wordmark-mark {
display: block;
flex: 0 0 auto;
width: 22px;
height: 22px;
}
/* The traced wordmark is ~7.1:1; when the compact nav clamps its width the
glyphs scale down inside the box instead of squashing. */
.paper-wordmark-logo {
display: block;
flex: 0 1 auto;
width: auto;
min-width: 0;
max-width: 100%;
height: 20px;
object-fit: contain;
object-position: left center;
}
.paper-star-badge {
font-family: var(--font-mono), "IBM Plex Mono", monospace;
font-size: 0.75rem;
letter-spacing: 0.04em;
text-transform: uppercase;
}
.paper-install-cta {
align-items: center;
min-height: 2.25rem;
padding: 0.35rem 0.85rem;
background: var(--indigo-deep);
color: var(--paper);
font-family: var(--font-mono), "IBM Plex Mono", monospace;
font-size: 0.7rem;
font-weight: 600;
letter-spacing: 0.1em;
text-transform: uppercase;
border-radius: 5px;
transition: background-color 150ms ease;
}
.paper-install-cta:hover {
background: var(--indigo);
color: var(--paper);
}
.paper-auth {
display: inline-flex;
align-items: center;
gap: 0.5rem;
}
.paper-auth-signin,
.paper-auth-register {
align-items: center;
min-height: 2.25rem;
padding: 0.35rem 0.75rem;
font-family: var(--font-mono), "IBM Plex Mono", monospace;
font-size: 0.7rem;
font-weight: 600;
letter-spacing: 0.08em;
text-transform: uppercase;
transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}
.paper-auth-signin,
.paper-auth-register {
color: var(--ink);
}
.paper-auth-signin:hover,
.paper-auth-register:hover {
color: var(--indigo);
}
.site-nav-actions {
display: flex;
flex-shrink: 0;
align-items: center;
gap: 0.65rem;
}
.site-nav-actions > * { flex-shrink: 0; }
/* Native <select> sizes to the selected option (Safari) or the longest
option (Chrome). Unbounded, "Bahasa Indonesia (sebagian)" / "Deutsch
(teilweise)" push the compact controls past overflow-x: clip. */
.site-nav-actions select {
width: 6.75rem;
max-width: 6.75rem;
min-width: 0;
}
.site-github-link {
display: inline-flex;
min-height: 2.25rem;
align-items: center;
padding: 0.35rem 0.75rem;
border: 1px solid var(--hairline);
border-radius: 6px;
font-family: var(--font-body), system-ui, sans-serif;
font-size: 0.75rem;
font-weight: 600;
}
.site-github-link:hover { border-color: var(--ink); }
.brand-mark { width: 1rem; height: 1rem; display: block; }
.paper-star-badge .brand-mark { margin-right: 0.3rem; }
.nav-link {
font-family: var(--font-body), system-ui, sans-serif;
font-size: 0.78rem;
letter-spacing: 0;
color: var(--ink);
position: relative;
padding: 0.25rem 0;
}
.nav-link::after {
content: "";
position: absolute;
left: 0; right: 0; bottom: -2px;
height: 2px;
background: var(--indigo);
transform: scaleX(0);
transform-origin: left;
transition: transform 180ms ease;
}
.nav-link:hover::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); }
/* ---------- footer ---------- */
.site-footer {
position: relative;
background: var(--ocean-deep);
color: var(--stage-soft);
}
/* The waterline before the seabed. Every page that is still on paper when
it reaches the footer descends here; the homepage is already under water
by then, so its column hides the band and the seabed simply continues. */
.site-footer-waterline {
position: relative;
height: clamp(9rem, 18vw, 15rem);
overflow: hidden;
background: var(--paper);
}
.site-footer-waterline > svg {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
}
main:has(.ocean-column) + .site-footer .site-footer-waterline { display: none; }
.site-footer-main { border-top: 1px solid rgb(var(--c-stage-soft) / 0.13); }
main:has(.ocean-column) + .site-footer .site-footer-main { border-top-color: transparent; }
.site-footer-main,
.site-footer-meta {
width: var(--container);
margin-inline: auto;
}
.site-footer-main {
display: grid;
grid-template-columns: minmax(16rem, 1.25fr) minmax(18rem, 0.75fr);
gap: 4rem;
padding-block: 2.8rem;
}
.site-wordmark-footer { color: var(--stage-text); }
.site-wordmark-footer img { display: block; width: auto; height: 18px; }
.site-footer-brand p { max-width: 30rem; margin-top: 0.8rem; color: rgb(var(--c-stage-soft) / 0.62); font-size: 0.86rem; line-height: 1.6; }
.site-footer-links {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 2rem;
}
.site-footer-links > div { display: flex; flex-direction: column; gap: 0.55rem; }
.site-footer-links span { margin-bottom: 0.25rem; color: v
10BC8
ar(--ocean-current); font-family: var(--font-mono), "IBM Plex Mono", monospace; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; }
.site-footer-links a { color: rgb(var(--c-stage-soft) / 0.76); font-size: 0.82rem; }
.site-footer-links a:hover { color: var(--stage-text); }
.site-footer-meta {
display: grid;
grid-template-columns: 1fr auto auto;
gap: 1.5rem;
align-items: center;
padding-block: 1rem;
border-top: 1px solid rgb(var(--c-stage-soft) / 0.13);
color: rgb(var(--c-stage-soft) / 0.5);
font-family: var(--font-mono), "IBM Plex Mono", monospace;
font-size: 0.75rem;
}
.site-footer-meta a:hover { color: var(--ocean-current); }
.site-footer-meta > div { display: flex; gap: 1rem; }
.site-footer-meta > p { min-width: 0; max-width: 70ch; overflow-wrap: anywhere; }
/* ---------- ticker ---------- */
.ticker-viewport {
position: relative;
flex: 1 1 auto;
overflow: hidden;
}
.ticker-track {
display: inline-flex;
gap: 3rem;
white-space: nowrap;
animation: ticker 80s linear infinite;
padding-right: 3rem;
}
@keyframes ticker {
from { transform: translateX(0); }
to { transform: translateX(-50%); }
}
/* One wire entry: verb, number or tag, title, by-line, age. Baseline-aligned
so the mono verb sits on the same line as the title it qualifies. */
.ticker-item {
display: inline-flex;
align-items: baseline;
gap: 0.5rem;
}
/* The verb carries the state. Merges are the headline case, so they get the
one warm-neutral ink on the sheet; releases take ochre; anything closed
recedes to mute. Everything else is the action blue. */
.ticker-verb {
color: var(--indigo);
font-size: 0.7rem;
letter-spacing: 0.12em;
text-transform: uppercase;
}
.ticker-verb[data-event="merged"] { color: var(--jade); }
.ticker-verb[data-event="published"] { color: var(--ochre); }
.ticker-verb[data-event="closed"] { color: var(--ink-mute); }
.ticker-num,
.ticker-tag,
.ticker-by,
.ticker-age {
color: var(--ink-mute);
}
.ticker-title {
color: var(--ink);
max-width: 24rem;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
/* The contributor's handle is the point of the line, not a footnote. */
.ticker-handle {
color: var(--ink);
font-weight: 600;
}
.ticker-first {
padding: 0 0.35rem;
border: 1px solid var(--ochre);
color: var(--ochre);
font-size: 0.7rem;
letter-spacing: 0.1em;
text-transform: uppercase;
}
.ticker-sep { color: var(--paper-line-soft); }
@media (prefers-reduced-motion: reduce) {
.ticker-track { animation: none; }
/* A frozen track would clip every entry past the fold with no way to reach
them. Stopping the motion must not also remove the content. */
.ticker-viewport { overflow-x: auto; }
}
/* ---------- ambient ---------- */
/*
* Two effects, both OPT-IN under `no-preference` rather than opted out under
* `reduce`. A `reduce` override can be defeated by specificity; a gate cannot.
* Reduced motion freezes the field — it never removes it, so the column's
* gradient and the whale below are unconditional and only the movement is not.
*
* The TUI's ambient life — fish, jellyfish, bubbles, the whale cameo — stays
* out of scope. This page quotes the product's restraint doctrine in its own
* copy. The standing loops on the whole site are four — ticker, caret, and
* these two. Entrances are transitions, and the one-shot settles live in the
* Motion section below under the same no-preference gate.
*/
/* M1 — the column breath. Opacity only, on a 90s cycle: the TUI's authored
0.018–0.055 phase bias expressed as the same fraction of a mix. Opacity is
the one property that cannot cause layout work on an element four bands
tall. No position change, no hue shift, no filter. */
@keyframes cw-breath {
0%, 100% { opacity: 0; }
50% { opacity: 0.045; }
}
/* M2 — the caustic. `ambient_life.rs`'s literal behaviour: ~1.3s crossing the
mark, parked off-canvas for the remaining ~2.7s, peak 0.33. The easing is a
sine in-out, i.e. the raised cosine it is meant to be. */
@keyframes cw-caustic {
0% { transform: translateX(0); }
32.5% { transform: translateX(1560px); }
100% { transform: translateX(1560px); }
}
@media (prefers-reduced-motion: no-preference) {
.ocean-column::after {
content: "";
position: absolute;
inset: 0;
z-index: -1;
pointer-events: none;
background: var(--stage-ambient);
opacity: 0;
animation: cw-breath 90s ease-in-out infinite;
}
.codewhale-caustic {
animation: cw-caustic 4s cubic-bezier(0.37, 0, 0.63, 1) infinite;
}
}
/* ------------------------------------------------------------------ */
/* Motion — entrances, considered hovers, and one-shot settles */
/* ------------------------------------------------------------------ */
/*
* Grammar: the page is complete and static; motion answers a person's action
* (a hover draws a rule, a press stamps a copy). The one authored ambient
* moment is the column breath above. Everything here animates transform
* and/or opacity only and is gated on `no-preference`, so reduced motion is
* the *absence* of motion rather than an override fighting it.
*/
/* The nav-link underline draw, extended to the other mono-voice links. Hover
draws the rule; the transition is the whole effect, so reduced motion keeps
the existing colour change and simply skips the draw. */
.product-start-links a,
.gs-step-link,
.product-surfaces > .product-container > a,
.product-community nav a {
position: relative;
}
.product-start-links a::after,
.gs-step-link::after,
.product-surfaces > .product-container > a::after,
.product-community nav a::after {
content: "";
position: absolute;
left: 0;
right: 0;
bottom: -2px;
height: 1px;
background: currentColor;
transform: scaleX(0);
transform-origin: left;
transition: transform 180ms ease;
}
@media (prefers-reduced-motion: no-preference) {
.product-start-links a:hover::after,
.gs-step-link:hover::after,
.product-surfaces > .product-container > a:hover::after,
.product-community nav a:hover::after {
transform: scaleX(1);
}
}
/* The primary-button arrow leans into the direction it points. */
.product-button > span[aria-hidden="true"] {
display: inline-block;
transition: transform 150ms ease;
}
@media (prefers-reduced-motion: no-preference) {
.product-button:hover > span[aria-hidden="true"],
.product-button:focus-visible > span[aria-hidden="true"] {
transform: translateX(2px);
}
}
/* Copy-to-clipboard: the press is a stamp, the confirmation a jade seal —
the wire's merge verb colour, borrowed for one beat. The colour change is
unconditional (it is the confirmation); only the motion is gated. */
.copy-btn[data-copied="true"] {
background: var(--jade);
color: var(--paper);
}
@media (prefers-reduced-motion: no-preference) {
.copy-btn {
transition: background-color 150ms ease, color 150ms ease, transform 120ms ease;
}
.copy-btn:active {
transform: scale(0.95);
}
.copy-btn[data-copied="true"] {
animation: copy-settle 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
}
@keyframes copy-settle {
0% { transform: scale(1); }
35% { transform: scale(0.93); }
70% { transform: scale(1.04); }
100% { transform: scale(1); }
}
/* Mobile menu: the sheet drops a few points while its items settle in
sequence; exit is a short fade. The exit is driven by a delayed unmount in
components/mobile-menu.tsx — with reduced motion the menu mounts and
unmounts instantly, exactly as before. */
@media (prefers-reduced-motion: no-preference) {
.mm-panel {
animation: mm-in 240ms cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}
.mm-panel.mm-closing {
animation: mm-out 170ms cubic-bezier(0.4, 0, 0.8, 0.4) both;
pointer-events: none;
}
.mm-panel li,
.mm-panel nav > a {
animation: mm-rise 280ms cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}
.mm-panel li:nth-child(1) { animation-delay: 34ms; }