Repository navigation
Expand file tree
/
Copy pathstyles.css
More file actions
2908 lines (2468 loc) · 60.3 KB
/
Copy pathstyles.css
File metadata and controls
2908 lines (2468 loc) · 60.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
@font-face {
font-family: Literata;
src: url("fonts/literata.woff2") format("woff2");
font-weight: 200 900;
font-display: block;
}
@font-face {
font-family: Literata;
src: url("fonts/literata-italic.woff2") format("woff2");
font-weight: 200 900;
font-style: italic;
font-display: block;
}
@font-face {
font-family: "Plex Mono";
src: url("fonts/plex-mono.woff2") format("woff2");
font-weight: 400;
font-display: block;
}
@font-face {
font-family: "Instrument Sans";
src: url("fonts/instrument-sans.woff2") format("woff2");
font-weight: 400 700;
font-stretch: 75% 100%;
font-display: block;
}
:root {
--bg: #08090c;
--panel: #0f1116;
--rule: #2a2f39;
--hairline: rgb(255 255 255 / 0.09); /* a line that only separates, on the page */
--link: rgb(255 255 255 / 0.13); /* the line under a link: under what Jev underlines */
--ink: #b8bcc4;
--ink-strong: #eef0f2;
--ink-dim: #8a909c;
--ground: #0a0b0f; /* the web's side of the window */
--edge: #566070; /* a line between two subjects */
/* The two kinds of sentence the crawler eats: what is being laid, and what is essential. */
--catch: #5ee4ea;
--prize: #ff4f5a;
/* The one loud colour: for the one thing to do, and for what the crawler points out as it eats. */
--signal: #f2e313;
--control: 32px; /* the height of a control in the bar */
--rule-hover: #3e4552; /* a control's line when it is pointed at, and the one in force */
--lift: #171a21; /* what stands one step over the ground: the thumb of a switch, a button pointed at */
--hover: rgb(255 255 255 / 0.04);
--cut: 7px; /* the corner a panel or a control has cut off */
--text: var(--body)/1.7 Literata, "Iowan Old Style", Palatino, Georgia, serif;
--ui-family: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
--ui: var(--md)/1.5 var(--ui-family);
--mono: "Plex Mono", ui-monospace, Menlo, monospace;
--faint: #5b6472; /* a subject with nothing under it yet */
--on: #fff; /* a switch's label in force, and a figure as it flares */
--off: #6b7280; /* a switch's label not in force */
--track: #050608; /* a switch's track sinks a step under the bar */
--thumb: #1e222b; /* and its thumb stands a step over it */
--thumb-edge-top: rgb(255 255 255 / 0.1);
--thumb-edge-all: rgb(255 255 255 / 0.06);
--signal-line: var(--signal); /* the loud colour as a line or a ring, where it has to read on the ground */
--signal-hover: #fff35a;
/* The ink Jev's reading lays on the text, and what an eaten word leaves. */
--gone: #363b44;
--passed: #727985;
--rated-0: #4f5560;
--rated-1: #7f858f;
--ghost-catch: #1f4a4e;
--ghost-prize: #5a2228;
--pointed: rgb(255 255 255 / 0.1);
--glow: rgb(238 240 242 / 0.5); /* the lift under a hairline that is lit */
--bar: 52px;
--readout: 88px; /* the height of the readout band over the web */
/* The whole type scale: six sizes. */
--xs: 10px;
--sm: 12px;
--md: 14px;
--body: 19px;
--h2: 27px;
--h1: 46px;
/* The window is two halves: the text in a column on the left, with room
beside it for the crawler to run in, and the web from there to the right
edge. The column sits in the middle of its half. */
--column: min(600px, calc(var(--web-left) - 200px));
--web-left: max(clamp(760px, 62vw, 900px), 46vw); /* 900 from 1450 px up; narrower, the text keeps its column and the web gives */
--margin: calc((var(--web-left) - var(--column)) / 2);
}
* {
box-sizing: border-box;
}
html {
background: var(--bg);
color-scheme: dark;
}
/* The same instrument on a clear ground: every step of grey mirrored, the two
worths deepened to hold on white, the loud colour kept as a fill and
darkened where it is a line. The crawler is an object and is lit the same. */
:root[data-theme="clear"] {
color-scheme: light;
--bg: #f7f8fa;
--panel: #eef0f3;
--rule: #d3d7de;
--hairline: rgb(0 0 0 / 0.09);
--link: rgb(0 0 0 / 0.13);
--ink: #454b57;
--ink-strong: #101216;
--ink-dim: #6d7380;
--ground: #f3f4f7;
--edge: #a3abb8;
--faint: #a4abb6;
--catch: #0b7f86;
--prize: #d02a3a;
--rule-hover: #aab1bd;
--lift: #e6e9ee;
--hover: rgb(0 0 0 / 0.04);
--on: #101216;
--off: #6b717d;
--track: #e4e7ec;
--thumb: #fff;
--thumb-edge-top: rgb(255 255 255 / 0.9);
--thumb-edge-all: rgb(0 0 0 / 0.1);
--signal-line: #a89c00;
--signal-hover: #fff35a;
--gone: #c2c7cf;
--passed: #9097a2;
--rated-0: #b4b9c2;
--rated-1: #80868f;
--ghost-catch: #3ea5ad;
--ghost-prize: #d9606d;
--pointed: rgb(0 0 0 / 0.07);
--glow: rgb(16 18 22 / 0.35);
}
::selection {
background: var(--signal);
color: #000;
}
body {
position: relative;
margin: 0;
padding: calc(var(--bar) + 72px) 0 240px var(--margin);
color: var(--ink);
font: var(--text);
-webkit-font-smoothing: antialiased;
}
/* ---------- Bar ---------- */
#bar {
position: fixed;
z-index: 4;
top: 0;
left: 0;
right: 0;
height: var(--bar);
display: flex;
align-items: center;
gap: 12px;
padding: 0 24px;
border-bottom: 1px solid var(--rule);
background:
linear-gradient(var(--signal-line), var(--signal-line)) left bottom / 72px 1px no-repeat,
var(--bg);
font: var(--ui);
}
#bar .name {
margin-right: 16px;
color: var(--ink-strong);
font: var(--sm)/1 var(--mono);
letter-spacing: 0.14em;
text-transform: uppercase;
text-decoration: none;
white-space: nowrap;
}
#bar form {
display: flex;
min-width: 0;
}
#address {
flex: 1;
max-width: 560px;
}
/* Controls. Three kinds, told apart by what they are, not by decoration:
an action (sans, sentence case, square; the one that matters is yellow with its corner cut),
a switch (a track with a label, one thumb that slides to the one in force),
a readout (mono) for what is typed or measured. */
#bar input,
#bar select,
#bar > button,
#address button {
height: var(--control);
border: 1px solid var(--rule);
border-radius: 0;
background: var(--panel);
color: var(--ink);
}
#bar input {
flex: 1;
min-width: 0;
padding: 0 12px;
border-right: 0;
font: var(--sm) var(--mono);
letter-spacing: 0.02em;
transition: border-color 120ms;
}
#bar input:hover,
#bar select:hover {
border-color: var(--rule-hover);
}
#bar input::placeholder {
color: var(--ink-dim);
}
#bar select {
max-width: 220px;
padding: 0 30px 0 12px;
appearance: none;
background:
url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none' stroke='%238a909c' stroke-width='1.25'%3E%3Cpath d='M1 1l4 4 4-4'/%3E%3C/svg%3E") right 11px center / 10px 6px no-repeat,
var(--panel);
font: var(--ui);
font-size: 13px;
cursor: pointer;
transition: border-color 120ms;
}
/* The one thing to do: the crawl, in the loud colour, its corner cut. */
#address button {
padding: 0 18px 0 14px;
border-color: var(--signal);
background: var(--signal);
color: #000;
font: 600 13px var(--ui-family);
letter-spacing: -0.005em;
clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
cursor: pointer;
transition: background-color 120ms, transform 100ms;
}
#address button:hover {
background: var(--signal-hover);
}
/* Once the crawler has eaten everything, the one thing to do is read the summary: it takes the loud colour. */
body.is-done #address button {
border-color: var(--rule);
background: var(--panel);
color: var(--ink);
font-weight: 500;
}
body.is-done .web-tools .web-read {
border-color: var(--signal);
background: var(--signal);
color: #000;
font-weight: 600;
clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}
body.is-done .web-tools .web-read:hover {
background: var(--signal-hover);
}
#bar :is(input, select, button):focus-visible {
outline: 1px solid var(--signal-line);
outline-offset: 2px;
}
#address button:active {
transform: scale(0.97);
}
/* A switch in the bar, how fast everything goes and how much of Jev shows: a label, then a
track of equal cells with one thumb under the one in force. The thumb slides, so the change
of state is seen as a move from one to the other, not a flash. */
.switch {
display: flex;
align-items: stretch;
height: var(--control);
padding-right: 3px;
border: 1px solid var(--hairline);
background: var(--track);
}
#camera {
--n: 2;
margin-left: auto;
}
#speed {
--n: 4;
margin-left: 12px;
}
#jev-mode {
--n: 3;
}
#theme {
--n: 2;
}
#skip {
margin-left: 12px;
padding: 0 12px;
font: 500 13px var(--ui-family);
letter-spacing: -0.005em;
cursor: pointer;
transition: border-color 120ms;
}
#skip:hover:not(:disabled) {
border-color: var(--rule-hover);
}
#skip:disabled {
color: var(--ink-dim);
cursor: default;
}
#skip + .switch {
margin-left: 20px;
}
.switch[hidden] {
display: none;
}
.switch > span {
display: flex;
align-items: center;
margin-right: 3px;
padding: 0 11px 0 10px;
border-right: 1px solid var(--hairline);
color: var(--ink-dim);
font: var(--xs)/1 var(--mono);
letter-spacing: 0.14em;
text-transform: uppercase;
}
.switch .options {
--i: 0;
position: relative;
display: grid;
grid-auto-flow: column;
grid-auto-columns: 1fr;
align-self: center;
height: calc(var(--control) - 8px);
}
.switch .options:has(:nth-child(2)[aria-pressed="true"]) { --i: 1; }
.switch .options:has(:nth-child(3)[aria-pressed="true"]) { --i: 2; }
.switch .options:has(:nth-child(4)[aria-pressed="true"]) { --i: 3; }
.switch .options::before {
content: "";
position: absolute;
inset: 0 auto 0 0;
box-sizing: border-box;
width: calc(100% / var(--n));
background: var(--thumb);
box-shadow: inset 0 1px var(--thumb-edge-top), inset 0 0 0 1px var(--thumb-edge-all); /* an edge of light, not a shadow */
transform: translateX(calc(var(--i) * 100%));
transition: transform 200ms cubic-bezier(0.3, 0, 0, 1);
}
#bar .switch button {
position: relative;
min-width: 40px;
height: auto;
padding: 0 11px;
border: 0;
background: transparent;
color: var(--off);
font: 500 13px var(--ui-family);
letter-spacing: -0.005em;
cursor: pointer;
transition: color 120ms;
}
/* The speeds are numbers: a readout, in mono. */
#speed button {
font: var(--sm) var(--mono);
}
#bar .switch button:hover {
color: var(--ink);
}
#bar .switch button[aria-pressed="true"] {
color: var(--on);
}
.switch kbd {
margin-left: 8px;
padding: 2px 4px;
border: 1px solid var(--hairline);
color: var(--faint);
font: var(--xs)/1 var(--mono);
letter-spacing: 0;
}
/* ---------- Page (page.js) ----------
The text as the page it was, set to be read: what the page says of itself
over the title, then the text, then where it came from. Hierarchy is light
and the families' roles: Literata for what is read, Instrument Sans for
what frames it, Plex Mono only for figures. What Jev does not read (the
pictures, the tables) stands back in grey. */
main {
width: var(--column);
}
/* The crawler walks over the text. */
#page {
position: relative;
z-index: 1;
overflow-wrap: break-word;
font-kerning: normal;
text-rendering: optimizeLegibility;
}
h1,
h2,
h3 {
color: var(--ink-strong);
font-family: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
font-weight: 600;
text-wrap: balance;
}
p,
ul,
blockquote,
pre {
margin: 0 0 22px;
}
ul {
padding-left: 22px;
}
li {
margin-bottom: 6px;
}
/* What the page says of itself: where it is from, its name, its standfirst,
who wrote it and when, and how long it is. Read once; it takes a band. */
.masthead {
margin-bottom: 48px;
padding-bottom: 24px;
border-bottom: 1px solid var(--hairline);
}
.masthead-source {
margin: 0 0 16px;
font: var(--ui);
font-size: var(--sm);
}
#page .masthead a {
color: var(--ink-dim);
text-decoration: none;
}
#page .masthead a:hover {
color: var(--ink-strong);
}
#page h1 {
margin: 0 0 16px;
font-size: var(--h1);
font-stretch: 85%;
line-height: 1.04;
letter-spacing: -0.022em;
}
.masthead-standfirst {
margin: 0 0 20px;
color: var(--ink-dim);
font-style: italic;
line-height: 1.5;
text-wrap: pretty;
}
/* Who and when on the left, how long on the right: one line, wrapping whole. */
.masthead-line {
display: flex;
flex-wrap: wrap;
align-items: baseline;
gap: 4px 16px;
margin: 0;
color: var(--ink-dim);
font: var(--ui);
font-size: var(--sm);
}
.masthead-byline {
color: var(--ink);
}
.masthead-measure {
margin-left: auto;
font-family: var(--mono);
font-size: var(--xs);
white-space: nowrap;
}
.masthead-measure:only-child {
margin-left: 0;
}
/* Sections open on a hairline; what they are called is set tight. */
#page h2 {
margin: 72px 0 20px;
padding-top: 20px;
border-top: 1px solid var(--hairline);
font-size: var(--h2);
font-stretch: 90%;
line-height: 1.16;
letter-spacing: -0.016em;
}
#page h3 {
margin: 40px 0 8px;
font-size: var(--body);
line-height: 1.3;
letter-spacing: -0.006em;
}
#page .masthead + h2 {
margin-top: 0;
padding-top: 0;
border-top: 0;
}
#page h2 + h3 {
margin-top: 0;
}
#page :is(p, li, blockquote) {
text-wrap: pretty;
hanging-punctuation: first;
}
/* A link reads as text with a line under it; the line lights when pointed at. */
#page a {
color: inherit;
text-decoration: underline 1px var(--link);
text-underline-offset: 0.24em;
text-decoration-skip-ink: auto;
transition: text-decoration-color 120ms ease;
}
@media (hover: hover) and (pointer: fine) {
#page a:hover {
text-decoration-color: var(--ink-strong);
}
}
#page em {
font-style: italic;
}
#page strong {
font-weight: 620;
}
#page :is(p, li, blockquote, h3) code {
font-family: var(--mono);
font-size: 0.84em;
}
#page :is(ul, ol) {
margin: 0 0 22px;
padding-left: 28px;
}
#page li > :is(ul, ol) {
margin: 6px 0 0;
}
#page ul > li::marker {
content: "– ";
color: var(--ink-dim);
}
#page ol > li::marker {
color: var(--ink-dim);
font: var(--sm) var(--mono);
}
#page blockquote {
margin: 0 0 22px;
padding-left: 28px;
font-style: italic;
}
/* Code is set in the face for figures, between two hairlines, with the
language the page labels it with over it. */
#page pre {
margin: 0 0 28px;
padding: 14px 0;
overflow-x: auto;
border-block: 1px solid var(--hairline);
color: var(--ink-strong);
font: var(--sm)/1.65 var(--mono);
tab-size: 2;
}
#page p.is-language {
margin: 28px 0 0;
color: var(--ink-dim);
font: var(--xs)/2 var(--mono);
}
#page p.is-language + pre {
border-top-color: transparent;
padding-top: 4px;
}
/* Pictures and tables: the page's own, not read by Jev. Pictures that stood
together stand in one row at one height, each captioned at its own width;
one alone takes the column. */
.figure-row {
display: flex;
flex-wrap: wrap;
align-items: flex-start;
gap: 24px 16px;
margin: 36px 0 40px;
}
#page .figure-row figure {
flex: 0 1 auto;
margin: 0;
}
#page figure.is-table {
margin: 36px 0 40px;
}
#page figure img {
display: block;
max-width: 100%;
height: auto;
object-fit: contain;
filter: grayscale(1);
opacity: 0.6;
transition: filter 200ms ease, opacity 200ms ease;
}
#page .figure-row:not(:has(> figure:only-child)) img {
width: auto;
height: 176px;
}
#page .figure-row:has(> figure:only-child) img {
max-height: 440px;
}
@media (hover: hover) and (pointer: fine) {
#page figure:hover img {
filter: none;
opacity: 1;
}
}
#page figcaption {
max-width: 52ch;
margin-top: 10px;
color: var(--ink-dim);
font: var(--ui);
font-size: var(--sm);
text-wrap: pretty;
}
/* In a row, a caption is as wide as its picture, never wider. */
#page .figure-row:not(:has(> figure:only-child)) figcaption {
contain: inline-size;
min-width: 120px;
}
.figure-scroll {
overflow-x: auto;
}
#page table {
width: 100%;
border-collapse: collapse;
color: var(--ink-dim);
font: var(--xs)/1.5 var(--mono);
font-variant-numeric: tabular-nums;
}
#page :is(th, td) {
padding: 7px 16px 7px 0;
border-bottom: 1px solid var(--hairline);
text-align: left;
vertical-align: top;
}
#page th {
color: var(--ink);
font-weight: inherit;
}
/* Where the page came from, at its foot. */
.colophon {
margin-top: 72px;
padding-top: 16px;
border-top: 1px solid var(--hairline);
color: var(--ink-dim);
font: var(--ui);
font-size: var(--sm);
}
.colophon p {
margin: 0 0 4px;
}
.colophon span {
margin-right: 12px;
}
#page .colophon a {
color: var(--ink);
text-decoration: none;
overflow-wrap: anywhere;
}
#page .colophon a:hover {
color: var(--ink-strong);
}
/* ---------- Jev's triage of the text (page.js) ---------- */
/* Four steps of ink. A section that is not part of the text is all but gone,
and says so in the margin beside its heading. */
.is-skipped {
position: relative;
color: var(--gone);
}
.is-skipped[data-triage]::before {
content: attr(data-triage);
position: absolute;
top: 0.35em;
right: calc(100% + 30px);
width: min(96px, calc(var(--margin) - 38px));
color: var(--ink-dim);
font: var(--ui);
font-size: var(--sm);
line-height: 1.3;
letter-spacing: 0;
text-align: right;
}
/* A sentence a sparing reader passes over is dim; the rest is plain. */
::highlight(passed) {
color: var(--passed);
}
/* A sentence to be eaten has a tick beside it, faint until the crawler has it. */
#margin {
position: absolute;
inset: 0;
overflow: hidden;
pointer-events: none;
}
#margin i {
position: absolute;
left: calc(var(--margin) - 22px);
width: 2px;
background: var(--worth);
opacity: 0.3;
transition: opacity 500ms ease-out;
}
#margin i.is-eaten {
opacity: 1;
}
/* ---------- Jev reading the text (watch.js) ---------- */
/* Until Jev has read it the text is faint; its headings, the outline Jev
surveys first, are not. */
#page.is-unread :is(p, li, blockquote, pre) {
color: var(--faint);
}
/* As Jev rates a sentence it takes its ink: four steps, from what a sparing
reader passes over to what they would keep of the whole. */
::highlight(rated-0) {
color: var(--rated-0);
}
::highlight(rated-1) {
color: var(--rated-1);
}
::highlight(rated-2) {
color: var(--ink);
}
::highlight(rated-3) {
color: var(--ink-strong);
}
/* Jev hidden: its marks on the text go with it. */
body.jev-hidden #page.is-unread :is(p, li, blockquote, pre) {
color: inherit;
}
body.jev-hidden :is(#margin i.jev-reading, #margin i.jev-tick) {
display: none;
}
body.jev-hidden ::highlight(rated-0),
body.jev-hidden ::highlight(rated-1),
body.jev-hidden ::highlight(rated-2),
body.jev-hidden ::highlight(rated-3) {
color: inherit;
}
body.jev-hidden ::highlight(named) {
text-decoration: none;
}
/* The passage the console points at. */
::highlight(pointed) {
background-color: var(--pointed);
}
/* The term Jev names a kept sentence by. */
::highlight(named) {
text-decoration: underline 1px var(--ink-dim);
text-underline-offset: 0.3em;
text-decoration-skip-ink: none;
}
/* A passage Jev is reading has a bracket beside it, out past the ticks. */
#margin i.jev-reading {
left: calc(var(--margin) - 34px);
width: 1px;
background: var(--ink-strong);
opacity: 1;
transition: none;
}
/* Beside a passage, as a proofreader would: bright while Jev reads it, then
what it kept of it, falling back. */
#margin .jev-note {
position: absolute;
left: max(4px, calc(var(--margin) - 152px));
width: min(108px, calc(var(--margin) - 48px));
color: var(--ink-strong);
font: var(--ui);
font-size: var(--sm);
line-height: 1.4;
text-align: right;
transition: color 900ms ease-out;
}
#margin .jev-note.is-kept {
color: var(--ink-dim);
}
#margin .jev-note.is-passed {
color: var(--faint);
}
/* What Jev is doing, in words, over the text, until the crawler sets off. */
#jev-caption {
position: fixed;
z-index: 3;
top: var(--bar);
left: var(--margin);
width: var(--column);
margin: 0;
padding: 22px 0 10px;
background: var(--bg);
color: var(--ink-dim);
font: var(--ui);
font-size: var(--sm);
line-height: 1.4;
}
/* Under it, how much of the text Jev has read: a hairline filled as far. */
#jev-caption::before,
#jev-caption::after {
content: "";
position: absolute;
left: 0;
bottom: 0;
width: 100%;
height: 1px;
background: var(--hairline);
}
#jev-caption::before {
z-index: 1;
background: var(--ink-dim);
transform: scaleX(var(--read, 0));
transform-origin: left;
transition: transform 240ms cubic-bezier(0.23, 1, 0.32, 1);
}
/* Open, the console says what Jev is doing; the caption over the text would sit on its numbers. */
body.jev-open #jev-caption {
display: none;
}
body.jev-hidden :is(#jev-caption, #margin .jev-note) {
display: none;
}
/* A sentence Jev keeps, before it has said what it is worth. */
#margin i.jev-tick {
--worth: var(--ink-strong);
}
/* ---------- What is eaten (page.js, flight.js) ---------- */
/* The two kinds of sentence, each in its colour. */
.is-catch {
--worth: var(--catch);
}
.is-prize {
--worth: var(--prize);
}
/* An eaten word leaves its ghost: its own colour, most of the way down to the
page's. Nothing of the layout changes. */
::highlight(eaten-catch) {
color: var(--ghost-catch);
}
::highlight(eaten-prize) {
color: var(--ghost-prize);
}
/* What the crawler points out, a surprise or a figure worth remembering: a
hairline under it, laid as it eats it. */
::highlight(marked) {
text-decoration: underline 1px var(--signal-line);
text-underline-offset: 0.3em;
text-decoration-skip-ink: none;
}
#flight,
#overlay {
position: absolute;
z-index: 2;
inset: 0;
overflow: hidden;
pointer-events: none;
}
/* A word on its way to the mouth: set exactly over the one on the page, each letter moved by flight.js. */
#flight span {
position: absolute;
top: 0;
left: 0;
color: var(--worth);
white-space: pre;
}
#flight b {
display: inline-block;
font-weight: inherit;
}
/* The name of a subject the crawler has torn off the web. */
#flight span.is-name {
color: var(--ink-strong);
}
/* ---------- Crawler (overlay.js) ---------- */
#overlay {
--crawler-catch: var(--catch);
--crawler-prize: var(--prize);
}