Repository navigation
Expand file tree
/
Copy pathglobals.css
More file actions
998 lines (867 loc) · 25.8 KB
/
Copy pathglobals.css
File metadata and controls
998 lines (867 loc) · 25.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
/*
Content sources are declared explicitly rather than auto-detected. Tailwind's
automatic detection walks up to the project root, which is both wasteful and
fragile — anything unreadable up there (editor mounts, device files, private
dotfiles) fails the whole CSS build. Scanning only `src/` is faster and means
the build depends on nothing outside the application.
*/
@import "tailwindcss" source(none);
@source "../**/*.{ts,tsx}";
/*
EIGA design tokens.
The original graphite palette is the default. Light mode overrides the same
tokens so controls, SVG marks and exported images share one palette.
Typefaces are resolved from system stacks so the app builds and runs with no
network dependency. Self-hosting a display face via `next/font/local` is the
intended upgrade; `next/font/google` is avoided because it makes the
production build require an outbound request to fonts.googleapis.com.
*/
@theme {
/* Graphite base, deepest to raised. Cool and neutral, not warm-black. */
--color-void: #101114;
--color-ink: #15171a;
--color-surface: #191b1f;
--color-raised: #212429;
/* Hairlines and cartographic marks. */
--color-rule: #26292e;
--color-rule-soft: #1a1d21;
/* Off-white ink, primary to annotation. */
--color-paper: #e9e7e2;
--color-paper-mid: #a2a6a8;
--color-paper-dim: #6b6f73;
/*
The single accent: citron. Signals state and emphasis, never category.
Split into three strengths and rationed deliberately. Citron is far louder
than the amber it replaces, and used freely it stops reading as cinema and
starts reading as a developer tool. Full strength is reserved for one thing
at a time — the selected anchor and the focus ring. The muted step carries
the five-star films, which are sparse but not singular. The deep step is for
lit edges, where a bright line would out-shout the nodes it connects.
*/
--color-signal: #c8f24e;
--color-signal-muted: #a9cc42;
--color-signal-deep: #5f7a22;
--font-display:
ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua",
"URW Palladio L", "Liberation Serif", Georgia, serif;
--font-sans:
ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
sans-serif;
--font-mono:
ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, "Liberation Mono",
monospace;
}
html {
color-scheme: dark;
}
html[data-theme="light"] {
color-scheme: light;
--color-void: #f3f1ea;
--color-ink: #eeece4;
--color-surface: #eae8df;
--color-raised: #e1dfd5;
--color-rule: #c5c5b8;
--color-rule-soft: #e7e5dc;
--color-paper: #252a28;
--color-paper-mid: #4c5550;
--color-paper-dim: #646c63;
--color-signal: #536b24;
--color-signal-muted: #687d37;
--color-signal-deep: #77865a;
}
body {
height: 100dvh;
background-color: var(--color-void);
color: var(--color-paper);
font-family: var(--font-sans);
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
}
/*
Faint cartographic grid. Atmosphere only — it must never compete with the
graph, so it sits far below the content in contrast.
*/
.eiga-grid {
background-image:
linear-gradient(to right, var(--color-rule-soft) 1px, transparent 1px),
linear-gradient(to bottom, var(--color-rule-soft) 1px, transparent 1px);
background-size: 64px 64px;
background-position: center center;
}
/* Wide tracking for the wordmark and section marks: archival, not decorative. */
.eiga-mark {
font-family: var(--font-sans);
letter-spacing: 0.42em;
text-transform: uppercase;
}
.eiga-annotation {
font-family: var(--font-mono);
font-size: 0.6875rem;
letter-spacing: 0.14em;
text-transform: uppercase;
color: var(--color-paper-dim);
}
/*
A control that looks like one.
Most of EIGA's controls are words on a rule — the axis row, the search field, the
highlight chips — and that is right for them: they change what you are *looking
at*, so they belong to the caption layer over the map. A button is a different
kind of act. It opens a file picker, it writes a file to your disk, it throws away
the library you imported. Those needed an edge, and without one they read as
captions that happened to be clickable — which is how they were reported.
A hairline box with square corners, because a hairline box is what the rest of the
map is drawn with: the drop target, the row rules, the graticule. No radius, no
fill, no pill — any of the three would be the only such shape on screen and would
put a UI kit's voice inside an atlas.
Hover and focus move the border to the accent and the text to full paper. That
stays inside the accent's ration: at most one control is hovered or focused at a
time, which is the same one-at-a-time rule the anchor node lives by.
*/
.eiga-button {
display: inline-block;
font-family: var(--font-mono);
font-size: 0.6875rem;
letter-spacing: 0.14em;
text-transform: uppercase;
color: var(--color-paper-mid);
border: 1px solid var(--color-rule);
border-radius: 0;
padding: 0.5rem 0.8125rem;
cursor: pointer;
transition:
color 200ms ease,
border-color 200ms ease;
}
.eiga-dialog {
position: fixed;
inset: 1rem;
width: min(34rem, calc(100vw - 2rem));
max-width: none;
height: fit-content;
max-height: calc(100dvh - 2rem);
margin: auto;
padding: 0;
overflow-x: hidden;
overflow-y: auto;
text-align: center;
overflow-wrap: anywhere;
color: var(--color-paper);
background: var(--color-void);
border: 1px solid var(--color-rule);
}
.eiga-dialog::backdrop {
background: rgb(16 17 20 / 78%);
}
.eiga-dialog-content {
width: 100%;
min-width: 0;
padding: clamp(1.5rem, 4vw, 2rem);
}
.eiga-dialog-actions {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 0.75rem;
}
.eiga-dialog-actions .eiga-button {
width: 100%;
min-height: 2.75rem;
text-align: center;
line-height: 1.5;
white-space: normal;
}
.eiga-share-link {
display: block;
border: 1px solid var(--color-rule);
padding: 0.875rem 1rem;
font-family: var(--font-mono);
font-size: 0.75rem;
line-height: 1.7;
text-align: left;
overflow-wrap: anywhere;
}
/*
`:focus-within` alongside `:focus-visible`, for the import control: it is a
`<label>` wrapping a visually hidden file input, so focus lands on the input and
never on the box the user can see. A plain `<button>` has no focusable descendant,
so sharing the rule with it cannot fire spuriously.
*/
.eiga-button:hover,
.eiga-button:focus-visible,
.eiga-button:focus-within {
color: var(--color-paper);
border-color: var(--color-signal);
}
/* Focus visibility must survive the quiet palette. */
:focus-visible {
outline: 1px solid var(--color-signal);
outline-offset: 2px;
}
/*
The ring, restated for that same label case where the focused element is hidden
and the global rule has nothing visible to draw around — and pushed a little
further out than the global 2px so it reads as a ring around the box rather than
as a second border just inside the first. Colour is never the only cue: keyboard
focus gets the ring, hover does not.
*/
.eiga-button:focus-visible,
.eiga-button:focus-within {
outline: 1px solid var(--color-signal);
outline-offset: 3px;
}
/*
A save in flight is not pressable and must not look it. After the hover rule
deliberately: some engines still match `:hover` on a disabled control, and at
equal specificity the later rule is the one that holds.
*/
.eiga-button:disabled,
.eiga-button[aria-disabled="true"] {
color: var(--color-paper-dim);
border-color: var(--color-rule-soft);
cursor: default;
}
.eiga-theme-button {
display: inline-flex;
align-items: center;
gap: 0.5rem;
white-space: nowrap;
}
.eiga-theme-button svg {
flex: none;
}
.eiga-map-controls {
position: absolute;
right: 1rem;
bottom: 1rem;
display: flex;
gap: 0.375rem;
background: var(--color-void);
}
.eiga-map-controls .eiga-button {
min-width: 2.5rem;
min-height: 2.5rem;
padding: 0.375rem 0.625rem;
}
.eiga-inspector-close {
float: right;
margin: 0 0 0.5rem 1rem;
}
/* Shared atlases have one compact control band and an unobstructed surface. */
.eiga-shared {
display: flex;
}
.eiga-shared .eiga-atlas-header {
position: relative;
padding: 1rem 1.5rem 0.75rem;
background: var(--color-void);
border-bottom: 1px solid var(--color-rule);
}
.eiga-shared .eiga-atlas-actions {
flex-direction: row;
align-items: flex-start;
grid-row: 1;
}
.eiga-shared .eiga-atlas-filters {
grid-column: 1 / -1;
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 0.5rem 1.5rem;
}
.eiga-shared .eiga-atlas-filters > div {
margin-top: 0.5rem;
}
.eiga-shared .eiga-atlas-filters > p {
display: none;
}
.eiga-shared .eiga-axis-control {
min-width: 0;
}
.eiga-shared .eiga-atlas-surface {
position: relative;
inset: auto;
}
.eiga-shared .eiga-atlas-footer {
position: absolute;
inset: auto auto 1rem 1rem;
width: min(28rem, calc(100% - 2rem));
padding: 1rem;
border: 1px solid var(--color-rule);
background: var(--color-void);
}
.eiga-shared[data-selected="false"] .eiga-atlas-footer {
display: none;
}
.eiga-shared .eiga-atlas-inspector {
max-height: 30dvh;
overflow-y: auto;
width: 100%;
}
@media (width >= 40rem) {
.eiga-atlas:not(.eiga-shared) .eiga-map-controls {
right: 3rem;
bottom: 9rem;
}
}
/* On phones, the supporting bands yield their space to the graph. */
@media (width < 40rem) {
.eiga-atlas-header {
padding: max(0.75rem, env(safe-area-inset-top)) 0.75rem 0.5rem;
column-gap: 0.5rem;
}
.eiga-shared .eiga-atlas-header {
padding: max(0.75rem, env(safe-area-inset-top)) 0.75rem 0.5rem;
}
.eiga-atlas-filters {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 0 0.75rem;
min-width: 0;
}
.eiga-atlas-filters .eiga-axis-control {
width: 100%;
}
.eiga-shared .eiga-atlas-filters {
gap: 0 0.75rem;
}
.eiga-atlas-header h1 {
font-size: 0.75rem;
line-height: 2rem;
}
:where(.eiga-atlas-header > div:not(.eiga-atlas-actions)) .eiga-annotation,
.eiga-atlas-footer .eiga-annotation {
font-size: 0.625rem;
letter-spacing: 0.06em;
}
.eiga-atlas-actions > div > .eiga-button,
.eiga-atlas-actions label.eiga-button,
.eiga-atlas-footer .eiga-button {
min-height: 2rem;
padding: 0.375rem 0.5rem;
font-size: 0.625rem;
letter-spacing: 0.06em;
line-height: 1.125rem;
}
.eiga-atlas-actions {
max-width: calc(100vw - 4.5rem);
flex-direction: row;
flex-wrap: wrap;
justify-content: flex-end;
gap: 0.375rem;
}
.eiga-atlas-actions > div {
gap: 0.25rem;
}
.eiga-atlas-actions .eiga-theme-button {
width: 2rem;
justify-content: center;
gap: 0;
}
.eiga-atlas-actions .eiga-theme-label {
display: none;
}
.eiga-axis-control {
margin-top: 0.5rem;
gap: 0.5rem;
}
.eiga-axis-control > [aria-hidden],
.eiga-search-control > [aria-hidden],
.eiga-filter-control > [aria-hidden] {
width: 0.5rem;
}
.eiga-axis-options {
flex-wrap: nowrap;
gap: 0.5rem;
overflow-x: auto;
scrollbar-width: none;
}
.eiga-axis-options::-webkit-scrollbar {
display: none;
}
.eiga-axis-options button,
.eiga-filter-control button {
min-height: 1.75rem;
flex-shrink: 0;
white-space: nowrap;
}
.eiga-search-control,
.eiga-filter-control {
margin-top: 0.25rem;
gap: 0.5rem;
}
.eiga-search-control input {
min-width: 0;
width: 6rem;
min-height: 2rem;
/* Prevent iOS from zooming the page when the search receives focus. */
font-size: 1rem;
}
.eiga-filter-control [role="group"] {
min-width: 0;
flex-wrap: wrap;
column-gap: 0.75rem;
}
.eiga-filter-control > span,
.eiga-search-control [role="status"]:empty {
display: none;
}
.eiga-atlas-footer {
gap: 0.5rem;
padding: 0.625rem 0.75rem max(0.75rem, env(safe-area-inset-bottom));
}
.eiga-atlas-inspector {
position: absolute;
left: 0;
right: 0;
bottom: 100%;
max-height: 30dvh;
overflow-y: auto;
padding: 0.75rem;
border-top: 1px solid var(--color-rule);
background: var(--color-void);
scrollbar-width: thin;
}
.eiga-atlas[data-selected="false"] .eiga-atlas-inspector {
display: none;
}
.eiga-shared .eiga-atlas-footer {
inset: auto 0 0;
width: 100%;
padding: 0;
border: 0;
}
.eiga-shared .eiga-atlas-inspector {
bottom: 0;
padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
}
.eiga-map-controls {
right: 0.75rem;
bottom: 0.75rem;
}
.eiga-atlas[data-selected="true"] .eiga-map-controls {
top: 0.75rem;
bottom: auto;
}
.eiga-atlas-inspector .font-display {
font-size: 1rem;
line-height: 1.25;
}
.eiga-atlas-inspector h2.font-display {
font-size: 1.125rem;
}
.eiga-atlas-inspector .eiga-annotation {
margin-top: 0.25rem;
}
.eiga-atlas-inspector .eiga-button {
margin-top: 0.375rem;
vertical-align: top;
}
.eiga-atlas-status {
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
column-gap: 0.75rem;
align-items: center;
}
.eiga-atlas-status > p {
grid-column: 1;
text-wrap: pretty;
}
.eiga-atlas-exit {
grid-column: 2;
grid-row: 1 / span 2;
max-width: 7rem;
max-height: 5rem;
overflow-y: auto;
}
.eiga-atlas-exit > *,
.eiga-atlas-exit .eiga-button {
margin-top: 0;
}
}
/*
Graph surface.
All visual state is expressed as `data-` attributes read here so the cascade
does the work: one attribute change restyles a dot, its label and its edges
together.
Which code writes them is split by what they derive from, not by who owns the
element. React writes the attributes that come from the `Graph` — selection,
rating, lit — during render. Everything derived from *coordinates* is written
straight to the DOM by the effects in `GraphView`, outside React: `transform`
and the line endpoints on every tick, and `data-named` whenever the label
choice is recomputed. None of those appear in JSX, so React never fights for
them and a 60fps simulation costs no reconciliation.
*/
.eiga-graph {
display: block;
width: 100%;
height: 100%;
/* Let d3-zoom handle gestures instead of the browser scrolling the page. */
touch-action: none;
/*
The live zoom scale, written by the zoom handler.
Every piece of text and every hairline on the map divides by it, so they hold
their size on screen while the map scales underneath. That is what makes
zooming in reveal more names: the type stays 10px while the disc grows, so a
title's footprint *in map coordinates* shrinks and more of them fit. Type
that scaled with the map would be equally crowded at every zoom and there
would be nothing for `viz/labels.ts` to compute.
Updated in the same throttled step as the label choice, so the boxes that
decision was made with and the text actually drawn never disagree by more
than the few percent of a zoom step.
*/
--zoom: 1;
}
.eiga-graph text {
pointer-events: none;
user-select: none;
}
/* A halo, so a label stays readable where it crosses an edge. */
.eiga-graph .eiga-label {
paint-order: stroke;
stroke: var(--color-void);
/* Counter-scaled with the type it outlines: at 6× a fixed 3px halo would be
18px of void in map coordinates and would swallow the neighbouring dots. */
stroke-width: calc(3px / var(--zoom));
stroke-linejoin: round;
text-anchor: middle;
}
.eiga-node {
cursor: pointer;
transition: opacity 260ms ease;
}
.eiga-edge {
stroke: var(--color-rule);
stroke-width: 1;
transition:
opacity 260ms ease,
stroke 260ms ease;
}
/*
The spine: hub-to-hub links along an ordinal axis. It is the backbone of the
map, so it is the one edge drawn at full strength — but in rule grey, not in
the accent. Structure should be legible without being loud.
*/
.eiga-edge[data-kind="spine"] {
stroke: var(--color-rule);
stroke-width: 1.25;
}
/* Membership is the common case, so it sits back and lets the spine read. */
.eiga-edge[data-kind="membership"] {
opacity: 0.55;
}
/* Sessions are a garnish over the hub backbone, so they read as a dotted trace. */
.eiga-edge[data-kind="session"] {
stroke-dasharray: 1 3;
opacity: 0.5;
}
/*
The chain: the diary thread itself, film to film in watch order.
Drawn at full strength like the spine, because on the thread it is not one
relationship among several — it is the entire structure, and every other edge
kind is absent. Slightly finer than the spine: there are a hundred of these
where a spine has a dozen, and at that count the same weight would read as a
drawn coil rather than as a line through the films.
*/
.eiga-edge[data-kind="chain"] {
fill: none;
stroke: var(--color-paper-dim);
stroke-width: 1.1;
stroke-opacity: 0.55;
}
/*
The wrap: December into the following January.
One edge per year boundary, and the only curved one on the map. It reaches out
past the end of a row, sweeps through the empty band beneath it and comes back in
at the left — so it crosses the full width of the map where a chain edge crosses a
few days. Drawn much fainter than the chain for exactly that reason: it carries no
information the year labels do not already give, and its whole job is to say the
thread continues. At chain weight, nine of these would be the loudest thing on a
ten-year map.
`fill: none` because it is the one edge that is a `<path>`, and an unfilled path is
not the SVG default.
*/
.eiga-edge[data-kind="wrap"] {
fill: none;
stroke: var(--color-rule);
stroke-width: 1;
opacity: 0.28;
}
/*
Year rows: the timeline's graticule.
A rule the width of a calendar year, twelve short ticks at the true start of each
month, and the year itself out in the left margin — the marks a printed chart uses
to say what its axis is, and nothing more. Faint on purpose: this is the one
element on the map that is not the user's data, so it must be findable when looked
for and invisible when not.
The rule is fainter than the ticks rather than the other way round. A rule at tick
weight, repeated down a ten-year map, stops reading as an axis and starts reading
as ruled paper — and then the films are entries on a form instead of places on a
chart.
Named `eiga-year`, not `eiga-mark`: that class is the wordmark's letterspacing
treatment, and sharing it would mean retuning the wordmark moved the graticule.
*/
.eiga-year line {
stroke: var(--color-rule);
stroke-width: calc(1px / var(--zoom));
}
.eiga-year-rule {
opacity: 0.45;
}
.eiga-year-tick {
opacity: 0.8;
}
.eiga-year text {
fill: var(--color-paper-dim);
font-family: var(--font-mono);
font-size: calc(8px / var(--zoom));
letter-spacing: 0.08em;
/*
Right-anchored, so a run of years lines up on its last digit down the margin
and sits at a fixed distance from January whatever the label says. `labels.ts`
measures the box the same way round — see `yearLabelBox`.
*/
text-anchor: end;
/* A halo, as on a node label: the margin is narrow and films drift into it. */
paint-order: stroke;
stroke: var(--color-void);
stroke-width: calc(3px / var(--zoom));
stroke-linejoin: round;
}
.eiga-film circle {
fill: var(--color-paper-mid);
transition:
fill 200ms ease,
stroke 200ms ease;
}
.eiga-graph .eiga-film circle.eiga-rewatch-ring {
fill: none;
stroke: var(--color-paper-dim);
stroke-width: 0.8;
}
.eiga-journey-caption {
opacity: 0;
fill: var(--color-paper-dim);
font-family: var(--font-mono);
font-size: calc(9px / var(--zoom));
letter-spacing: 0.08em;
text-anchor: middle;
paint-order: stroke;
stroke: var(--color-void);
stroke-width: calc(3px / var(--zoom));
stroke-linejoin: round;
}
.eiga-film[data-named="true"] .eiga-journey-caption,
.eiga-film[data-state="anchor"] .eiga-journey-caption,
.eiga-film:hover .eiga-journey-caption {
opacity: 1;
}
/*
The one categorical use of the accent: films rated five. Sparse by definition,
so it reads as a constellation of favourites rather than a colour legend. The
muted step, not the full one — on a large library the bright citron turns a
hundred small dots into a rash.
*/
.eiga-film[data-loved="true"] circle {
fill: var(--color-signal-muted);
}
.eiga-film .eiga-label {
font-size: calc(10px / var(--zoom));
fill: var(--color-paper-mid);
opacity: 0;
transition: opacity 200ms ease;
}
/* Hubs are structure, not subject: an outline and a small archival label. */
.eiga-hub circle {
fill: var(--color-ink);
stroke: var(--color-paper-dim);
stroke-width: 1;
}
.eiga-hub .eiga-label {
font-size: calc(9px / var(--zoom));
letter-spacing: 0.22em;
text-transform: uppercase;
fill: var(--color-paper-dim);
}
/*
Selective disclosure: a title appears only if it was *chosen*, which
`viz/labels.ts` decides by laying boxes down in priority order and rejecting
any that would collide. `data-named` is written by `GraphView` after a settle,
after a re-sort and on zoom.
This replaces a single `data-detail="near"` threshold that showed every title
at once above 1.6×. That was not a hierarchy, it was a switch: at 124 films it
printed a hundred names over each other, which is the reported bug — "the
names of the movie are so close they are unreadable and clogged". Same
specificity as the rule it replaces, and in the same place in the cascade, so
the focus, hover and anchor rules below still override it.
*/
.eiga-graph .eiga-film[data-named="true"] .eiga-label {
opacity: 0.8;
}
/*
Focus. The anchor brightens, its neighbours stay lit, and everything else
recedes instead of disappearing — the map has to keep its shape.
*/
.eiga-graph[data-focused="true"] .eiga-node[data-state="far"] {
opacity: 0.12;
}
.eiga-graph[data-focused="true"] .eiga-edge[data-state="far"] {
opacity: 0.07;
}
.eiga-graph .eiga-node[data-state="near"] .eiga-label {
opacity: 0.75;
}
.eiga-graph .eiga-edge[data-state="near"] {
stroke: var(--color-signal-deep);
opacity: 0.9;
}
/*
The anchor is the only place full-strength citron appears, and there is never
more than one of them on screen. That scarcity is what keeps the accent
meaning "here" rather than becoming a decorative colour.
*/
.eiga-graph .eiga-node[data-state="anchor"] circle {
stroke: var(--color-signal);
stroke-width: 1.5;
}
.eiga-graph .eiga-node[data-state="anchor"] .eiga-label {
opacity: 1;
fill: var(--color-paper);
}
/* One name at a time, at any zoom level. */
.eiga-graph .eiga-node:hover .eiga-label,
.eiga-graph .eiga-node:focus-visible .eiga-label {
opacity: 1;
fill: var(--color-paper);
}
/*
Narrowing: the search box and the highlight chips, which resolve to one answer.
The same idea as focus. Films that are not lit recede, and the hubs, spine and
chain stay at full strength so the map keeps its shape while you read the
answer — narrowing that emptied the screen would make you lose your place in it.
A lit film is *prioritised* for a name, not exempted from the collision test:
it sorts to the front of the queue in `viz/labels.ts` and so gets first refusal
on the space, but a query matching forty titles must not be able to re-clog the
map with the very bug the thinning exists to fix. Hence `data-named` here as
well as `data-lit`. A lit film that lost the space is still framed in citron and
still readable on hover or in the inspector.
`data-lit` is keyed on the film id rather than the node id; see `litState` in
GraphView for why that distinction has a scar.
*/
.eiga-graph[data-narrowed="true"] .eiga-film[data-lit="false"] {
opacity: 0.08;
}
.eiga-graph[data-narrowed="true"] .eiga-film[data-lit="true"] circle {
stroke: var(--color-signal);
stroke-width: 1.25;
}
.eiga-graph[data-narrowed="true"]
.eiga-film[data-lit="true"][data-named="true"]
.eiga-label {
opacity: 1;
fill: var(--color-paper);
}
/*
Motion explains state changes here (focus, reveal, recede). When the user has
asked for less of it, the end state must still be correct — so transitions
collapse rather than being replaced with something decorative.
*/
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
scroll-behavior: auto !important;
}
}
/* Static field guides share the atlas palette while allowing ordinary reading. */
.eiga-guide {
width: min(100%, 58rem);
margin-inline: auto;
padding: 2rem clamp(1.25rem, 5vw, 3rem) 5rem;
line-height: 1.75;
}
.eiga-guide nav {
display: flex;
flex-wrap: wrap;
gap: 1rem 2rem;
align-items: center;
margin-bottom: 4rem;
}
.eiga-guide a {
text-decoration: underline;
text-underline-offset: 0.2em;
}
.eiga-guide a:hover {
color: var(--color-paper);
}
.eiga-guide h1 {
font-family: var(--font-display);
font-size: clamp(2rem, 5vw, 3.5rem);
line-height: 1.12;
margin-block: 1rem 1.5rem;
text-wrap: balance;
}
.eiga-guide h2 {
font-family: var(--font-display);
font-size: 1.7rem;
line-height: 1.3;
margin-bottom: 1.25rem;
}
.eiga-guide h3,
.eiga-guide dt {
font-weight: 600;
margin-top: 1.5rem;
}
.eiga-guide p,
.eiga-guide dd {
margin-bottom: 1.25rem;
}
.eiga-guide section,
.eiga-guide footer {
border-top: 1px solid var(--color-rule);
margin-top: 3rem;
padding-top: 2rem;
}
.eiga-guide-deck {
font-size: 1.2rem;
}
.eiga-guide-credit,
.eiga-guide figcaption {
color: var(--color-paper-mid);
font-size: 0.875rem;
}
.eiga-guide ol {
padding-left: 1.5rem;
list-style: decimal;
}
.eiga-guide li {
margin-block: 1rem;
padding-left: 0.5rem;
}
.eiga-guide-table {
overflow-x: auto;
}
.eiga-guide table {
width: 100%;
border-collapse: collapse;
font-size: 0.9rem;
}
.eiga-guide caption {
text-align: left;
margin-bottom: 1rem;
font-weight: 600;
}
.eiga-guide th,
.eiga-guide td {
border-bottom: 1px solid var(--color-rule);
padding: 0.8rem;
text-align: left;
vertical-align: top;
}
.eiga-guide-diagram {
width: 100%;
height: auto;
margin-block: 1.5rem;
}