-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathmembrane.css
More file actions
2840 lines (2647 loc) · 93.4 KB
/
Copy pathmembrane.css
File metadata and controls
2840 lines (2647 loc) · 93.4 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
/* Membrane mode — scoped palette + layout.
Palette tokens are defined on BOTH the .membrane-host (the alchemy-canvas
div once mounted) AND the alchemy-view container while membrane mode is
active, so cascading rules that target the outer view can resolve them. */
.membrane-host,
.alchemy-view[data-alch-mode-current="membrane"] {
/* Vanta cosmic — true black with a sparse star field. The blobs read as
small warm celestial bodies against deep space. Reading surfaces are
translucent panels with ember neon trim — Vision Pro × Tron Legacy. */
--membrane-void: #000000;
--membrane-void-warm: #060509;
--membrane-void-deep: #000000;
--membrane-mist: #f1ece7;
--membrane-mist-mid: #b8b3ad;
--membrane-mist-dim: #6f6a64;
/* Cream ink as an --ink-rgb-style triple — every body-text / hairline site
reads rgba(var(--mem-ink-rgb), α). Dark mode = cream; the light-mode block
below flips this one value to dark ink, swinging all of them at once. */
--mem-ink-rgb: 247, 242, 236;
--membrane-ember: #ff7a3d; /* brighter neon ember */
--membrane-ember-deep: #c75a2a;
--membrane-ember-soft: rgba(255, 122, 61, 0.55);
--membrane-star: rgba(255, 255, 255, 0.85);
--membrane-slate: #3a4a5e;
/* Card is translucent so atmosphere reads through — not a black slab. */
--membrane-card-bg: rgba(22, 20, 25, 0.52);
--membrane-card-top: rgba(36, 30, 36, 0.62);
--membrane-rule: rgba(var(--ink-rgb), 0.08);
/* Lifted feed card surface: near-opaque so a hover/focus-expanded card (which
z-lifts and overflows its row to float over the cards below) OCCLUDES them
cleanly, rather than letting their text bleed through. Light mode flips it. */
--mfeed-lift-bg: rgba(20, 18, 23, 0.97);
}
/* ── Light mode ──────────────────────────────────────────────────────────
The membrane was built dark-only. In light mode we flip the host to paper,
swing the ink triple to dark, turn the glass panels light, and lighten the
scrims. The WebGL scene (starfield / cube / bloom) reacts separately via the
theme read in scene.js. Dark mode is untouched. */
html[data-theme="light"] .membrane-host,
html[data-theme="light"] .alchemy-view[data-alch-mode-current="membrane"] {
--membrane-void: #f6f6f6;
--membrane-void-warm: #faf8f5;
--membrane-void-deep: #eaeaea;
--membrane-mist: #1a1a1a; /* primary text → near-black ink */
--membrane-mist-mid: #4a4a4a;
--membrane-mist-dim: #7a7a7a;
--mem-ink-rgb: 26, 26, 26; /* flip the cream triple to dark ink */
--membrane-star: rgba(20, 20, 24, 0.85);
/* Light translucent glass for the reading panels. */
--membrane-card-bg: rgba(255, 255, 255, 0.62);
--membrane-card-top: rgba(248, 248, 248, 0.74);
--mfeed-lift-bg: rgba(255, 255, 255, 0.97);
}
/* Paper background — what the transparent WebGL canvas composites over, so the
star field reads on white. The field is kept a touch DARKER than the feed /
agenda cards so they read as cards (white-on-grey), not a flat wash. Needs the
.alchemy-view….alchemy-canvas selector to out-specify the generic membrane-mode
bg rule (`.alchemy-view[…="membrane"] .alchemy-canvas { background: var(--membrane-void) }`). */
html[data-theme="light"] .membrane-host { color: var(--membrane-mist); }
html[data-theme="light"] .alchemy-view[data-alch-mode-current="membrane"] .alchemy-canvas,
html[data-theme="light"] .membrane-host.alchemy-canvas {
background: radial-gradient(ellipse 110% 70% at 50% -10%, #efefef 0%, #e8e8e8 55%, #e2e2e2 100%);
}
/* Reading-gutter scrim: the dark version paints a black band over the left of a
white page. Flip to a faint paper veil. */
html[data-theme="light"] .membrane-stage::before {
background: linear-gradient(90deg,
rgba(255, 255, 255, 0.55) 0%,
rgba(255, 255, 255, 0.28) 50%,
rgba(255, 255, 255, 0.00) 100%);
}
/* Warm "throne" glow uses screen blend — invisible on white. Switch to a soft
normal-blended warm tint so the cube still feels anchored. */
html[data-theme="light"] .ma-throne-presence {
mix-blend-mode: normal;
background: radial-gradient(circle at center,
rgba(255, 140, 80, 0.07) 0%,
rgba(255, 120, 60, 0.035) 30%,
transparent 68%);
}
/* "enter the field" pill: dark fill → faint ink fill on paper. */
html[data-theme="light"] .membrane-enter-field {
background: rgba(0, 0, 0, 0.04);
}
/* ── Light mode: feed + agenda read as proper light-mode cards ────────────
The dark-mode pastels (cream text, low-blend tints) wash out on white. Here
the cards go near-white on the darker field, text is dark ink, and the kind /
category accents are darkened to saturated, readable hues (the pale sage /
lapis / amber pastels vanish on paper). */
html[data-theme="light"] .mfeed-item {
background: rgba(255, 255, 255, 0.72);
border-color: rgba(26, 26, 26, 0.10);
}
/* hover/focus lift bg now comes from --mfeed-lift-bg (see the shared
.mfeed-row:hover/.focus-within rule), so both themes + keyboard focus occlude. */
html[data-theme="light"] .mfeed-age { color: rgba(26, 26, 26, 0.5); }
/* Chip: faint kind tint over white, kind-colored (darkened) text. */
html[data-theme="light"] .mfeed-meta {
background: color-mix(in srgb, var(--mfeed-color) 16%, #ffffff);
}
html[data-theme="light"] .mfeed-release { --mfeed-color: #4f8a64; } /* sage */
html[data-theme="light"] .mfeed-commit { --mfeed-color: #7a6aa6; } /* violet */
html[data-theme="light"] .mfeed-transcript { --mfeed-color: #4d6bb0; } /* lapis */
html[data-theme="light"] .mfeed-ask { --mfeed-color: #b9821f; } /* amber */
html[data-theme="light"] .mfeed-event { --mfeed-color: #3f8a72; } /* teal */
/* Incoming-watch kinds — darkened so they read on white (V3 Crisp Heavy). */
html[data-theme="light"] .mfeed-event-soon { --mfeed-color: #c2562a; } /* ember */
html[data-theme="light"] .mfeed-person-soon { --mfeed-color: #b04a6a; } /* rose */
html[data-theme="light"] .mfeed-event-new { --mfeed-color: #3f8a72; } /* teal */
html[data-theme="light"] .mfeed-event-changed { --mfeed-color: #b9821f; } /* amber */
/* Agenda cards: lift tint + darken category hues so events read on white.
The default --c2-acc tier sits on the element that carries data-cat: the
card itself for timed events, the .magenda-up wrapper for up-event cards
(so a [data-cat] override wins and the card inherits it). */
html[data-theme="light"] .magenda-event { --c2-acc: #6f655e; }
html[data-theme="light"] .magenda-up { --c2-acc: #6f655e; }
html[data-theme="light"] .magenda-event,
html[data-theme="light"] .magenda-up-event {
background: color-mix(in srgb, var(--c2-acc) 28%, #ffffff);
border-color: color-mix(in srgb, var(--c2-acc) 55%, transparent);
}
html[data-theme="light"] .magenda-up-event:hover {
background: color-mix(in srgb, var(--c2-acc) 42%, #ffffff);
}
/* Dismiss disc on paper: a real white chip with dark ink, not the dark-ink
wash the dark-mode rule would invert to (which reads as a smudge on white). */
html[data-theme="light"] .mfeed-dismiss,
html[data-theme="light"] .membrane-agenda .magenda-dismiss {
background: rgba(255, 255, 255, 0.74);
border-color: rgba(26, 26, 26, 0.14);
color: rgba(26, 26, 26, 0.55);
}
html[data-theme="light"] .mfeed-dismiss:hover,
html[data-theme="light"] .membrane-agenda .magenda-dismiss:hover {
background: rgba(255, 255, 255, 0.96);
border-color: rgba(26, 26, 26, 0.24);
color: rgba(26, 26, 26, 0.86);
}
html[data-theme="light"] .membrane-agenda [data-cat="oh"] { --c2-acc: #c4763f; }
html[data-theme="light"] .membrane-agenda [data-cat="salon"] { --c2-acc: #a87fc0; }
html[data-theme="light"] .membrane-agenda [data-cat="weekly"] { --c2-acc: #79a06a; }
html[data-theme="light"] .membrane-agenda [data-cat="coord"] { --c2-acc: #c9a338; }
html[data-theme="light"] .membrane-agenda [data-cat="review"] { --c2-acc: #d9883f; }
html[data-theme="light"] .membrane-agenda [data-cat="hack"] { --c2-acc: #6f90c4; }
html[data-theme="light"] .membrane-agenda [data-cat="demo"] { --c2-acc: #c75f34; }
html[data-theme="light"] .membrane-agenda [data-cat="anarchy"] { --c2-acc: #79a06a; }
.membrane-host {
position: relative;
inset: auto;
width: 100%;
height: 100%;
min-width: 0;
min-height: 0;
padding: 0;
background: #000000;
color: var(--membrane-mist);
overflow: hidden;
font-family: 'Inter Display', 'Inter', -apple-system, BlinkMacSystemFont,
'Segoe UI', system-ui, sans-serif;
font-feature-settings: 'ss01' on, 'cv11' on;
letter-spacing: 0.005em;
}
/* Atmosphere = distant stars + a single soft warm presence around the
cube anchor. Stars are the cosmic field; throne-presence is the lit
anchor. */
.membrane-atmosphere {
position: absolute;
inset: 0;
pointer-events: none;
z-index: 0;
overflow: hidden;
}
/* Stars are now a 3D point cloud rendered by Three.js (starfield.js).
The old CSS-based stars are gone — full-screen box-shadow approach was
broken (each shadow rendered as a screen-sized box). The 3D approach
gives real perspective + seamless wrap-around as stars stream past. */
/* Throne presence — barely-there warm radial glow that anchors the
cube in the void. The only atmosphere besides the stars. */
.ma-throne-presence {
position: absolute;
width: 70vmin;
height: 70vmin;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
background: radial-gradient(
circle at center,
rgba(255, 140, 80, 0.10) 0%,
rgba(255, 120, 60, 0.05) 22%,
rgba(200, 90, 40, 0.02) 45%,
transparent 70%
);
filter: blur(60px);
mix-blend-mode: screen;
}
.membrane-host * {
box-sizing: border-box;
}
/* Shape name — pinned to the right edge, vertically centred. Names the
current die so shapes can be referenced by name. */
/* Shape-name label hidden — no longer surfaced. */
.membrane-shape-name {
display: none;
}
.membrane-shape-name .msn-name {
font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
font-size: 17px;
font-weight: 700;
letter-spacing: 0.08em;
text-transform: lowercase;
color: rgba(var(--mem-ink-rgb), 0.96);
text-shadow: 0 0 6px rgba(0, 0, 0, 0.9), 0 1px 2px rgba(0, 0, 0, 0.95);
}
.membrane-shape-name .msn-meta {
font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
font-size: 11px;
font-weight: 500;
letter-spacing: 0.14em;
text-transform: uppercase;
color: rgba(var(--mem-ink-rgb), 0.5);
}
/* Today's agenda — an ambient day-timeline pinned to the right edge, sitting
BEHIND the canvas (z-index 0) so the cube + stars render over it. Just
today; a glowing line marks the current time. */
.membrane-agenda {
position: absolute;
top: 0;
right: 0;
bottom: 0;
width: 196px;
/* left pad gives the inner-edge dismiss control room to sit without being
clipped by overflow:hidden (mirror of the left feed's right gutter). */
padding: 56px 26px 52px 12px;
z-index: 2; /* above the canvas so the cards are clickable */
pointer-events: none; /* container passes through; cards opt back in */
font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
overflow: hidden;
display: flex;
flex-direction: column;
gap: 7px;
}
.membrane-agenda .magenda-head {
text-align: right;
font-size: 10px;
font-weight: 700;
letter-spacing: 0.28em;
text-transform: uppercase;
color: rgba(var(--mem-ink-rgb), 0.3);
margin-bottom: 6px;
}
.membrane-agenda .magenda-allday {
text-align: right;
font-size: 11px;
letter-spacing: 0.04em;
color: rgba(var(--mem-ink-rgb), 0.32);
margin-bottom: 10px;
}
.membrane-agenda .magenda-track {
position: relative;
flex: 1 1 auto; /* fills the column when there's no look-ahead… */
min-height: 150px; /* …but yields room (keeping a defined height for
the now-line/ticks) when upcoming events flow below */
}
.magenda-tick {
position: absolute;
left: 0;
right: 0;
transform: translateY(-50%);
border-top: 1px solid rgba(var(--mem-ink-rgb), 0.05);
}
.magenda-tick-label {
position: absolute;
right: 0;
top: -7px;
font-size: 9px;
letter-spacing: 0.1em;
color: rgba(var(--mem-ink-rgb), 0.2);
}
/* Today axis events — positioned on the time ruler; compact cards with the
calendar category tint. Clickable (opens the calendar). */
.membrane-agenda .magenda-event {
--c2-acc: #8f817a;
box-sizing: border-box;
position: absolute;
right: 0;
transform: translateY(-50%);
display: flex;
align-items: baseline;
gap: 6px;
max-width: 164px;
padding: 3px 8px 3px 9px;
background: color-mix(in srgb, var(--c2-acc) 22%, transparent);
border: 1px solid color-mix(in srgb, var(--c2-acc) 40%, transparent);
border-radius: 7px;
/* category accent — a crisp inner edge-tick, echoing the calendar's
left-bar marker so the two surfaces share a grammar. */
box-shadow: inset 3px 0 0 0 color-mix(in srgb, var(--c2-acc) 85%, transparent);
white-space: nowrap;
overflow: hidden;
cursor: pointer;
pointer-events: auto;
font: inherit;
transition: background 200ms cubic-bezier(0.19, 1, 0.22, 1),
border-color 200ms cubic-bezier(0.19, 1, 0.22, 1),
box-shadow 200ms cubic-bezier(0.19, 1, 0.22, 1),
transform 120ms cubic-bezier(0.19, 1, 0.22, 1);
}
.membrane-agenda .magenda-event:hover {
background: color-mix(in srgb, var(--c2-acc) 34%, transparent);
border-color: color-mix(in srgb, var(--c2-acc) 58%, transparent);
box-shadow: inset 3px 0 0 0 var(--c2-acc),
0 4px 14px -7px color-mix(in srgb, var(--c2-acc) 65%, transparent);
z-index: 5;
}
.membrane-agenda .magenda-event:active { transform: translateY(-50%) scale(0.97); }
.magenda-event-time {
flex: 0 0 auto;
font-size: 9px;
letter-spacing: 0.06em;
color: rgba(var(--mem-ink-rgb), 0.42);
}
.magenda-event-title {
overflow: hidden;
text-overflow: ellipsis;
font-size: 10.5px;
letter-spacing: 0.02em;
color: rgba(var(--mem-ink-rgb), 0.72);
}
/* The current-time line — a glowing warm rule across the agenda. */
.magenda-now {
position: absolute;
left: 0;
right: 0;
transform: translateY(-50%);
border-top: 1px solid rgba(255, 150, 90, 0.8);
box-shadow: 0 0 6px rgba(255, 140, 80, 0.45);
}
.magenda-now-label {
position: absolute;
right: 0;
top: -14px;
font-size: 10px;
font-weight: 700;
letter-spacing: 0.12em;
color: rgba(255, 178, 130, 0.95);
text-shadow: 0 0 6px rgba(0, 0, 0, 0.8);
}
/* Look-ahead: upcoming days rolled forward below the today axis. A static
right-aligned list (no minute positioning) with terse day headers. */
.membrane-agenda .magenda-upcoming {
flex: 0 0 auto;
margin-top: 14px;
}
.magenda-quiet {
text-align: right;
font-size: 9px;
letter-spacing: 0.14em;
text-transform: uppercase;
color: rgba(var(--mem-ink-rgb), 0.22);
}
.magenda-day-head {
text-align: right;
font-size: 9px;
font-weight: 700;
letter-spacing: 0.18em;
text-transform: uppercase;
color: rgba(var(--mem-ink-rgb), 0.44); /* ~30% brighter than 0.34 */
margin-top: 3px;
}
.magenda-day-head:first-child {
margin-top: 0;
}
/* Upcoming + today's all-day items — full cards, same chrome as the left
feed item (1px border, 9px corners, ~53px tall) but with the calendar
category tint for more contrast against the dark stage. Each card is
wrapped in .magenda-up (the dismiss anchor + collapse host); the wrapper
owns --c2-acc so a [data-cat] on it tints the inheriting card. */
.membrane-agenda .magenda-up {
--c2-acc: #8f817a; /* default tier; [data-cat] overrides on wrapper */
position: relative;
width: 100%;
max-height: 220px;
transition: opacity 200ms cubic-bezier(0.19, 1, 0.22, 1);
}
/* Close = recede into the field — mirror of the feed's membrane fold, folding
away toward its own (right) screen edge. */
.membrane-agenda .magenda-up.is-dismissing {
overflow: hidden;
pointer-events: none;
opacity: 0;
transform: perspective(1100px) translateX(10px) rotateY(-20deg) scale(0.9);
transform-origin: right center;
filter: blur(6px);
max-height: 0;
margin-top: -7px;
/* Mirror of the feed exit — quicker out (240ms) than the arrival (280ms). */
transition: transform 240ms cubic-bezier(0.65, 0, 0.05, 1),
opacity 220ms cubic-bezier(0.65, 0, 0.05, 1),
filter 220ms ease,
max-height 260ms cubic-bezier(0.4, 0, 0.2, 1) 130ms,
margin-top 260ms cubic-bezier(0.4, 0, 0.2, 1) 130ms;
}
/* Mirror of the feed enter — a new agenda card slides in from the right edge
(this rail's own edge) as it fades up. Added in JS only to new cards. */
.membrane-agenda .magenda-up.is-entering { animation: magenda-enter 280ms cubic-bezier(0.19, 1, 0.22, 1); }
@keyframes magenda-enter {
from { opacity: 0; transform: translateX(8px); }
to { opacity: 1; transform: translateX(0); }
}
.membrane-agenda .magenda-up-event {
box-sizing: border-box;
display: flex;
flex-direction: column; /* title over time, like the left feed's 2-line cards */
align-items: flex-end;
justify-content: center;
gap: 2px;
width: 100%;
/* extra left pad reserves the gutter for the add-to-calendar control (text is
right-aligned, so this only bounds how far left a long title may run). */
padding: 8px 11px 8px 36px;
min-height: 53px; /* match the left feed item height */
background: color-mix(in srgb, var(--c2-acc) 20%, transparent);
border: 1px solid color-mix(in srgb, var(--c2-acc) 38%, transparent);
border-radius: 9px;
/* category accent — crisp inner edge-tick on the screen-edge (right) side,
a mirror of the calendar's left-bar marker. */
box-shadow: inset -3px 0 0 0 color-mix(in srgb, var(--c2-acc) 82%, transparent);
white-space: normal; /* let long titles wrap instead of truncating */
text-align: right;
cursor: pointer;
pointer-events: auto;
font: inherit;
transition: background 220ms cubic-bezier(0.19, 1, 0.22, 1),
border-color 220ms cubic-bezier(0.19, 1, 0.22, 1),
box-shadow 220ms cubic-bezier(0.19, 1, 0.22, 1),
transform 220ms cubic-bezier(0.19, 1, 0.22, 1);
}
.membrane-agenda .magenda-up-event:hover {
background: color-mix(in srgb, var(--c2-acc) 30%, transparent);
border-color: color-mix(in srgb, var(--c2-acc) 55%, transparent);
box-shadow: inset -3px 0 0 0 var(--c2-acc),
0 6px 18px -8px color-mix(in srgb, var(--c2-acc) 60%, transparent);
transform: translateX(-2px);
}
.membrane-agenda .magenda-up-event:active {
transform: translateX(-2px) scale(0.985);
}
/* Quiet dismiss control — mirror of the feed's, pinned to the inner-top
(left) corner so the two rails read as one symmetric system. */
.membrane-agenda .magenda-dismiss {
position: absolute;
top: -5px;
left: -5px;
width: 16px;
height: 16px;
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0;
border: 1px solid rgba(var(--mem-ink-rgb), 0.16);
border-radius: 50%;
background: rgba(var(--mem-ink-rgb), 0.14);
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
color: rgba(var(--mem-ink-rgb), 0.62);
cursor: pointer;
opacity: 0;
transform: scale(0.5);
pointer-events: none;
transition: opacity 130ms ease,
transform 150ms cubic-bezier(0.65, 0, 0.05, 1),
background 150ms ease, color 150ms ease, border-color 150ms ease;
}
.membrane-agenda .magenda-up:hover .magenda-dismiss,
.membrane-agenda .magenda-up:focus-within .magenda-dismiss {
opacity: 1;
transform: scale(1);
pointer-events: auto;
transition: opacity 200ms ease,
transform 280ms cubic-bezier(0.34, 1.56, 0.64, 1),
background 150ms ease, color 150ms ease, border-color 150ms ease;
}
.membrane-agenda .magenda-dismiss:hover {
background: rgba(var(--mem-ink-rgb), 0.24);
border-color: rgba(var(--mem-ink-rgb), 0.30);
color: rgba(var(--mem-ink-rgb), 0.98);
}
.membrane-agenda .magenda-up:hover .magenda-dismiss:active,
.membrane-agenda .magenda-up:focus-within .magenda-dismiss:active { transform: scale(0.84); }
.membrane-agenda .magenda-dismiss:focus-visible {
outline: 1px solid color-mix(in srgb, var(--membrane-ember) 45%, transparent);
outline-offset: 2px;
opacity: 1;
transform: scale(1);
pointer-events: auto;
}
.membrane-agenda .magenda-dismiss svg { width: 9px; height: 9px; display: block; }
/* Add-to-calendar — a HELPER, not housekeeping, so unlike the dismiss it stays
faintly visible at rest (discoverable) in the card's empty left gutter and
brightens on hover/focus. Click opens a prefilled Google Calendar event. Its
square-rounded geometry distinguishes it from the round dismiss; the opposite
roles (add vs. remove) read apart at a glance. Tinted by the card's --c2-acc. */
.membrane-agenda .magenda-add {
position: absolute;
left: 7px;
top: 50%;
transform: translateY(-50%) scale(0.92);
width: 22px;
height: 22px;
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0;
border: 1px solid color-mix(in srgb, var(--c2-acc) 34%, transparent);
border-radius: 7px;
background: color-mix(in srgb, var(--c2-acc) 14%, transparent);
color: color-mix(in srgb, var(--c2-acc) 85%, rgba(var(--mem-ink-rgb), 0.6));
cursor: pointer;
opacity: 0.42;
pointer-events: auto;
transition: opacity 180ms ease,
transform 200ms cubic-bezier(0.19, 1, 0.22, 1),
background 160ms ease, border-color 160ms ease, color 160ms ease;
}
.membrane-agenda .magenda-up:hover .magenda-add,
.membrane-agenda .magenda-up:focus-within .magenda-add {
opacity: 0.95;
transform: translateY(-50%) scale(1);
}
.membrane-agenda .magenda-add:hover {
background: color-mix(in srgb, var(--c2-acc) 28%, transparent);
border-color: color-mix(in srgb, var(--c2-acc) 60%, transparent);
color: color-mix(in srgb, var(--c2-acc) 96%, #ffffff);
}
.membrane-agenda .magenda-add:active { transform: translateY(-50%) scale(0.86); }
.membrane-agenda .magenda-add:focus-visible {
outline: 1px solid color-mix(in srgb, var(--c2-acc) 55%, transparent);
outline-offset: 2px;
opacity: 1;
}
.membrane-agenda .magenda-add svg { width: 13px; height: 13px; display: block; }
.magenda-up-event .magenda-event-title {
max-width: 100%;
font-size: 12px;
line-height: 1.3;
white-space: normal; /* full title, wraps over multiple lines */
overflow: visible;
text-overflow: clip;
overflow-wrap: anywhere;
color: rgba(var(--mem-ink-rgb), 0.85);
}
/* Category colours — same hexes as calendar.css so the two surfaces match.
'default' is the inherited --c2-acc above. */
.membrane-agenda [data-cat="oh"] { --c2-acc: #d98a5c; }
.membrane-agenda [data-cat="salon"] { --c2-acc: #c9a8d8; }
.membrane-agenda [data-cat="weekly"] { --c2-acc: #a8c79f; }
.membrane-agenda [data-cat="coord"] { --c2-acc: #e3c77f; }
.membrane-agenda [data-cat="review"] { --c2-acc: #f3b174; }
.membrane-agenda [data-cat="hack"] { --c2-acc: #9fb8d8; }
.membrane-agenda [data-cat="demo"] { --c2-acc: #e07a4e; }
.membrane-agenda [data-cat="anarchy"] { --c2-acc: #a8c79f; }
/* "What's new" feed — left-edge stream of cohort activity. Above the canvas
(so items are clickable), scrollable, color-coded by kind. Each item is a
small two-line card; clicking it opens that thing in a new OS tab. */
.membrane-feed {
position: absolute;
top: 0;
left: 0;
bottom: 0;
width: 264px;
padding: 54px 14px 52px 24px;
z-index: 2;
font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
overflow-y: auto;
overflow-x: hidden;
display: flex;
flex-direction: column;
gap: 7px;
scrollbar-width: none;
-webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 44px, #000 calc(100% - 40px), transparent 100%);
mask-image: linear-gradient(to bottom, transparent 0, #000 44px, #000 calc(100% - 40px), transparent 100%);
}
.membrane-feed::-webkit-scrollbar { width: 0; height: 0; }
/* Each feed item lives in a positioned row so the dismiss control can pin to
the card's inner-top corner. The row also owns the tail-taper opacity (so a
hovered tail card lifts back to full) and the collapse-out on dismiss. */
.mfeed-row {
position: relative;
flex: 0 0 auto;
width: 100%;
max-height: 160px;
z-index: 1;
transition: opacity 200ms cubic-bezier(0.19, 1, 0.22, 1);
}
/* Taper the tail of the feed: the last three rows fade progressively,
strongest at the very bottom, so the list dissolves into the field rather
than ending on a hard edge. Hover/focus lifts the hovered card back to full
so it stays legible and its dismiss control is usable. */
.mfeed-row:nth-last-child(3) { opacity: 0.6; }
.mfeed-row:nth-last-child(2) { opacity: 0.4; }
.mfeed-row:nth-last-child(1) { opacity: 0.2; }
.mfeed-row:hover,
.mfeed-row:focus-within { opacity: 1; z-index: 10; }
/* Close = recede into the field, the membrane's own exit. The card folds away
like the membrane panel does (perspective + rotateY toward its left screen
edge, signature easing cubic-bezier(0.65,0,0.05,1)) with a blur-dissolve;
the height then folds (delayed ~130ms) so siblings close AFTER the card has
gone, not while it's mid-fold. Negative top-margin eats the 7px flex gap. */
.mfeed-row.is-dismissing {
overflow: hidden;
pointer-events: none;
opacity: 0;
transform: perspective(1100px) translateX(-10px) rotateY(20deg) scale(0.9);
transform-origin: left center;
filter: blur(6px);
max-height: 0;
margin-top: -7px;
/* Recede a touch quicker than a card arrives (240ms out vs 280ms in) so the
dismissal reads decisive and the arrival reads considered — the house
asymmetric-timing law. The signature fold curve is preserved; only the
duration tightens. Height/margin still collapse after a 130ms beat so
siblings close once the card is gone. */
transition: transform 240ms cubic-bezier(0.65, 0, 0.05, 1),
opacity 220ms cubic-bezier(0.65, 0, 0.05, 1),
filter 220ms ease,
max-height 260ms cubic-bezier(0.4, 0, 0.2, 1) 130ms,
margin-top 260ms cubic-bezier(0.4, 0, 0.2, 1) 130ms;
}
/* A new card arrives by sliding in from the rail's left edge as it fades up —
the headline "alive" moment on a notification surface. Calmer than the exit
(no rotateY/blur), slightly slower (280ms) per the asymmetric-timing law.
The class is added in JS only to genuinely-new rows (keyed diff), so the
stream does NOT re-animate on the once-a-minute rebuild. New cards always
enter at the top (incoming sorts first), never in the faded tail, so the
0→1 fade never fights the tail-taper opacity. */
.mfeed-row.is-entering { animation: mfeed-enter 280ms cubic-bezier(0.19, 1, 0.22, 1); }
@keyframes mfeed-enter {
from { opacity: 0; transform: translateX(-8px); }
to { opacity: 1; transform: translateX(0); }
}
.mfeed-item {
display: flex;
align-items: stretch;
gap: 9px;
width: 100%;
padding: 8px 11px;
border: 1px solid rgba(var(--mem-ink-rgb), 0.06);
border-radius: 9px;
background: rgba(var(--mem-ink-rgb), 0.08);
text-align: left;
cursor: pointer;
font: inherit;
transition: background 200ms cubic-bezier(0.19, 1, 0.22, 1),
transform 200ms cubic-bezier(0.19, 1, 0.22, 1),
border-color 200ms cubic-bezier(0.19, 1, 0.22, 1);
}
.mfeed-item:hover {
background: rgba(var(--mem-ink-rgb), 0.14);
border-color: rgba(var(--mem-ink-rgb), 0.12);
transform: translateX(2px);
}
.mfeed-item:active { transform: translateX(2px) scale(0.985); }
/* Quiet dismiss control — the "subtle hidden feature". Invisible at rest, it
fades + scales in on the inner-top corner only when the row is hovered or
keyboard-focused. Neutral ink (not alarm-red): closing a glanceable feed
item is housekeeping, not a destructive act. */
.mfeed-dismiss {
position: absolute;
top: -5px;
right: -5px;
width: 16px;
height: 16px;
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0;
border: 1px solid rgba(var(--mem-ink-rgb), 0.16);
border-radius: 50%;
background: rgba(var(--mem-ink-rgb), 0.14);
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
color: rgba(var(--mem-ink-rgb), 0.62);
cursor: pointer;
opacity: 0;
transform: scale(0.5);
pointer-events: none;
/* resting transition = the HIDE timing (fast); the reveal rule below
overrides it with a slower, softly-settling enter. */
transition: opacity 130ms ease,
transform 150ms cubic-bezier(0.65, 0, 0.05, 1),
background 150ms ease, color 150ms ease, border-color 150ms ease;
}
.mfeed-row:hover .mfeed-dismiss,
.mfeed-row:focus-within .mfeed-dismiss {
opacity: 1;
transform: scale(1);
pointer-events: auto;
/* enter slower than exit, with a small settle (punctuation overshoot). */
transition: opacity 200ms ease,
transform 280ms cubic-bezier(0.34, 1.56, 0.64, 1),
background 150ms ease, color 150ms ease, border-color 150ms ease;
}
.mfeed-dismiss:hover {
background: rgba(var(--mem-ink-rgb), 0.24);
border-color: rgba(var(--mem-ink-rgb), 0.30);
color: rgba(var(--mem-ink-rgb), 0.98);
}
/* press — scoped under the revealed state so it out-specifies scale(1). */
.mfeed-row:hover .mfeed-dismiss:active,
.mfeed-row:focus-within .mfeed-dismiss:active { transform: scale(0.84); }
.mfeed-dismiss:focus-visible {
outline: 1px solid color-mix(in srgb, var(--membrane-ember) 45%, transparent);
outline-offset: 2px;
opacity: 1;
transform: scale(1);
pointer-events: auto;
}
.mfeed-dismiss svg { width: 9px; height: 9px; display: block; }
.mfeed-body {
flex: 1 1 auto;
min-width: 0;
display: flex;
flex-direction: column;
gap: 2px;
}
.mfeed-label {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size: 12px;
letter-spacing: 0.01em;
color: rgba(var(--mem-ink-rgb), 0.82);
}
.mfeed-meta {
align-self: flex-start;
max-width: 100%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size: 9.5px;
letter-spacing: 0.06em;
text-transform: lowercase;
/* Muted kind tint — softer than the original loud green, but not the dull
0-saturation grey it briefly became. */
color: var(--mfeed-color, rgba(var(--mem-ink-rgb), 0.7));
background: color-mix(in srgb, var(--mfeed-color, #f7f2ec) 18%, transparent);
padding: 2px 7px;
border-radius: 5px;
}
/* Per-kind Lucide icon at the start of each feed item, tinted (muted) by
the kind color so the type is clear without being loud. */
.mfeed-icon {
flex: 0 0 auto;
align-self: flex-start;
margin-top: 1px;
width: 15px;
display: inline-flex;
align-items: center;
justify-content: center;
color: var(--mfeed-color, rgba(var(--mem-ink-rgb), 0.6));
}
.mfeed-icon svg { width: 13px; height: 13px; display: block; }
.mfeed-age {
flex: 0 0 auto;
align-self: flex-start;
font-size: 9px;
letter-spacing: 0.06em;
color: rgba(var(--mem-ink-rgb), 0.32);
}
/* Stacked card — iOS-style grouped-notification pile. When same-day items from
one source collapse into a card, the most-recent one is OPAQUE (so the deck
never bleeds through — translucent show-through looked cheap) and sits on two
cards offset down + scaled narrower, peeking at the bottom like a tidy pile.
The front card carries NO transform/backdrop at rest, hover, OR active: any of
those spawns a stacking context and pops the negative-z deck in front of its
own background. Offsets stay within the row gap so the deck never reaches the
card below. */
.mfeed-stacked {
position: relative;
background: color-mix(in srgb, var(--membrane-void-warm) 92%, var(--membrane-mist) 8%);
box-shadow: 0 2px 7px rgba(0, 0, 0, 0.20);
}
.mfeed-item.mfeed-stacked:hover,
.mfeed-item.mfeed-stacked:active { transform: none; }
.mfeed-item.mfeed-stacked:hover {
background: color-mix(in srgb, var(--membrane-void-warm) 88%, var(--membrane-mist) 12%);
}
.mfeed-stacked::before,
.mfeed-stacked::after {
content: "";
position: absolute;
inset: 0;
border-radius: 9px;
border: 1px solid rgba(var(--mem-ink-rgb), 0.07);
z-index: -1;
pointer-events: none;
transition: transform 220ms cubic-bezier(0.19, 1, 0.22, 1);
}
/* ::before is the DEEPER card (further down + narrower); ::after the nearer. */
.mfeed-stacked::before {
background: color-mix(in srgb, var(--membrane-void-warm) 96%, var(--membrane-mist) 4%);
transform: translateY(6px) scaleX(0.87);
}
.mfeed-stacked::after {
background: color-mix(in srgb, var(--membrane-void-warm) 94%, var(--membrane-mist) 6%);
transform: translateY(3px) scaleX(0.93);
}
.mfeed-item.mfeed-stacked:hover::before { transform: translateY(7px) scaleX(0.88); }
.mfeed-item.mfeed-stacked:hover::after { transform: translateY(4px) scaleX(0.94); }
/* Count sits ABSOLUTELY in the card's bottom-right corner — out of the top flex
row entirely — so adding it never shifts the age/date indicator (which stays
pinned top-right whether or not a card is a stack). */
.mfeed-count {
position: absolute;
right: 10px;
bottom: 8px;
min-width: 16px;
height: 15px;
padding: 0 5px;
display: inline-flex;
align-items: center;
justify-content: center;
font-size: 9px;
font-variant-numeric: tabular-nums;
letter-spacing: 0.02em;
border-radius: 8px;
color: rgba(var(--mem-ink-rgb), 0.5);
background: rgba(var(--mem-ink-rgb), 0.08);
border: 1px solid rgba(var(--mem-ink-rgb), 0.1);
}
/* ── hover layer ─────────────────────────────────────────────────────────
The third interaction layer. At rest a card is a one-line glance; on
hover/focus it LIFTS toward the viewer (kind-tinted shadow, raised z-index
so it floats over the rows below — no neighbour reflow above it), the label
+ meta un-truncate, and a quiet line reveals the exact date/time and where a
click will go. You read the whole item — and learn its destination — without
clicking. The card itself stays the single click target. */
.mfeed-row:hover .mfeed-item,
.mfeed-row:focus-within .mfeed-item {
/* Near-opaque lift surface: the expanded card z-lifts (z-index 10) and can
overflow its row's max-height to float over the cards below, so it must
OCCLUDE them — the old translucent 0.16 ink film let the lower card's text
bleed through (the garbled overlap). Frost-blur the residual + the field
behind. Theme-aware via --mfeed-lift-bg. */
background: var(--mfeed-lift-bg);
backdrop-filter: blur(12px) saturate(1.1);
-webkit-backdrop-filter: blur(12px) saturate(1.1);
border-color: color-mix(in srgb, var(--mfeed-color, rgba(var(--mem-ink-rgb), 0.4)) 40%, transparent);
box-shadow: 0 12px 30px -16px color-mix(in srgb, var(--mfeed-color, #000) 70%, transparent),
0 2px 8px -5px rgba(0, 0, 0, 0.45);
}
.mfeed-row:hover .mfeed-label,
.mfeed-row:focus-within .mfeed-label,
.mfeed-row:hover .mfeed-meta,
.mfeed-row:focus-within .mfeed-meta {
white-space: normal;
overflow: visible;
text-overflow: clip;
}
/* The revealed line: a CSS-grid 0fr→1fr accordion (height animates, no JS).
Resting transition is the fast collapse; the reveal rule below slows the
enter, per the house asymmetric-timing law. */
.mfeed-cta {
display: grid;
grid-template-rows: 0fr;
opacity: 0;
transition: grid-template-rows 170ms cubic-bezier(0.65, 0, 0.05, 1),
opacity 120ms ease;
}
.mfeed-cta-inner {
min-height: 0;
overflow: hidden;
display: flex;
flex-wrap: wrap;
align-items: baseline;
gap: 3px 8px;
padding-top: 3px; /* clipped to 0 while collapsed; breathes once open */
}
.mfeed-row:hover .mfeed-cta,
.mfeed-row:focus-within .mfeed-cta {
grid-template-rows: 1fr;
opacity: 1;
transition: grid-template-rows 260ms cubic-bezier(0.19, 1, 0.22, 1),
opacity 200ms ease 60ms;
}
.mfeed-cta-when {
font-size: 9px;
letter-spacing: 0.05em;
color: rgba(var(--mem-ink-rgb), 0.55);
}
.mfeed-cta-go {
font-size: 9.5px;
letter-spacing: 0.04em;
font-weight: 600;
color: var(--mfeed-color, rgba(var(--mem-ink-rgb), 0.72));
}
/* Kind tints — clearly colored but softer than the original loud palette;
shared by the icon and the project chip. */
.mfeed-release { --mfeed-color: rgba(136, 208, 161, 0.95); } /* github / releases — sage green */
.mfeed-commit { --mfeed-color: rgba(186, 170, 222, 0.95); } /* commit activity — violet */
.mfeed-transcript { --mfeed-color: rgba(153, 180, 235, 0.95); } /* transcripts — lapis */
.mfeed-ask { --mfeed-color: rgba(238, 196, 126, 0.95); } /* asks — amber */
.mfeed-event { --mfeed-color: rgba(140, 204, 183, 0.95); } /* events — teal */
/* Incoming-watch kinds — the forward-looking band atop the rail. */
.mfeed-event-soon { --mfeed-color: rgba(255, 142, 92, 0.95); } /* event imminent (tea) — warm ember */
.mfeed-person-soon { --mfeed-color: rgba(232, 156, 178, 0.95); } /* person arriving/returning — rose */
.mfeed-event-new { --mfeed-color: rgba(140, 204, 183, 0.95); } /* new event — teal */
.mfeed-event-changed { --mfeed-color: rgba(238, 196, 126, 0.95); } /* time changed — amber */
.membrane-stage {
position: absolute;
inset: 0;
display: block;
}
.membrane-canvas {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
display: block;
background: transparent;
z-index: 1;
}
/* Easter-egg Rubik's cube — its own transparent canvas overlaid on the die.
Hidden (and not rendering) until the die has cycled through every shape;
then it fades in, becomes interactive, and the psy-die fades out under it. */
.membrane-rubiks-canvas {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
display: block;
background: transparent;
z-index: 2;
opacity: 0;
pointer-events: none;
transition: opacity 700ms ease;
}
.membrane-rubiks-active .membrane-rubiks-canvas {
opacity: 1;
pointer-events: auto;
}
/* Keep this canvas visible while the cube shows — the die MESH is hidden in the
scene (scene.js), but the starfield keeps rendering here and shows through
behind the Rubik's overlay. Just stop it catching pointers. */
.membrane-rubiks-active .membrane-canvas {
pointer-events: none;
}
.membrane-rubiks-controls {
position: absolute;
left: 0;
right: 0;
bottom: 7%;
display: flex;
justify-content: center;
gap: 16px;
z-index: 3;
opacity: 0;
pointer-events: none;
transition: opacity 700ms ease;
}
.membrane-rubiks-active .membrane-rubiks-controls {
opacity: 0.4;
}
.membrane-rubiks-active .membrane-rubiks-controls button {
pointer-events: auto;
}
/* Bright bloom flash that masks the die<->Rubik's swap — a real light source:
a hot opaque-white core easing through a long, smooth tail to zero alpha
(closest-side so the falloff completes inside the box → no disc, no ring, no