Repository navigation
Expand file tree
/
Copy pathstyles.css
More file actions
804 lines (693 loc) · 17.2 KB
/
Copy pathstyles.css
File metadata and controls
804 lines (693 loc) · 17.2 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
/* ===================================
CSS Custom Properties (Variables)
=================================== */
:root {
/* Colors */
--color-primary: #000000;
--color-secondary: #727272;
--color-accent: #f6bd60;
--color-background: #ffffff;
--color-text: #000000;
--color-gray: darkgray;
/* Spacing */
--spacing-xs: 0.5vw;
--spacing-sm: 1vw;
--spacing-md: 2vw;
--spacing-lg: 4vw;
--spacing-xl: 8vw;
/* Typography */
--font-family: 'IBM Plex Mono', monospace;
/* Serif rule: the serifs are reserved for things that speak to the
artistic / humanities side of the work (writing, photography,
reflective questions, the motto). Engineering and utility content
stays in IBM Plex Mono. Display is for large titles; Text is the
same family drawn for small sizes (~20px and under). */
--font-display: 'DM Serif Display', Georgia, serif;
--font-text: 'DM Serif Text', Georgia, serif;
--font-size-base: 12px;
--font-size-large: 1.5vw;
--font-size-heading: 2vw;
--font-weight-normal: 400;
--font-weight-medium: 500;
--font-weight-bold: 700;
--font-weight-black: 800;
/* Layout */
--grid-gap: 1vw;
--grid-row-gap: 2vw;
--gallery-gap: 2vw;
--gallery-border: 1px solid black;
/* Transitions */
--transition-fast: 0.2s ease;
--transition-medium: 0.3s ease;
/* Z-index layers */
--z-base: 0;
--z-sticky: 2;
--z-dropdown: 10;
--z-overlay: 11;
--z-hover: 15;
}
/* ===================================
Base Styles
=================================== */
* {
font-family: var(--font-family);
font-weight: var(--font-weight-normal);
font-size: var(--font-size-base);
z-index: var(--z-base);
box-sizing: border-box;
}
*::selection {
background-color: var(--color-accent);
}
img::selection {
background-color: transparent;
}
body {
margin: 0;
padding: 0;
background-color: var(--color-background);
color: var(--color-text);
}
/* ===================================
Typography
=================================== */
p {
margin: 0;
line-height: 1.6;
}
a {
color: var(--color-primary);
font-weight: var(--font-weight-medium);
margin: inherit;
text-decoration: none;
transition: color var(--transition-fast);
}
a:hover {
color: var(--color-secondary);
}
a:focus {
outline: 2px solid var(--color-accent);
outline-offset: 2px;
}
.heading {
font-size: var(--font-size-heading);
font-weight: 900;
margin: 0;
}
/* ===================================
Header & Navigation
=================================== */
#time {
right: var(--spacing-md);
transform: translateY(-0.3vh);
position: fixed;
z-index: var(--z-sticky);
}
#bar {
display: flex;
gap: var(--spacing-sm);
margin-left: var(--spacing-xl);
right: var(--spacing-xl);
position: fixed;
z-index: var(--z-overlay);
}
#letterhead {
margin-left: var(--spacing-sm);
margin-top: var(--spacing-md);
margin-right: var(--spacing-sm);
}
.letterhead-name {
font-family: var(--font-text);
font-weight: var(--font-weight-normal);
font-size: 1.12rem;
line-height: 1;
}
/* ===================================
Grid Layout
=================================== */
#image_grid {
display: grid;
grid-template-columns: repeat(6, 1fr);
gap: var(--grid-gap);
row-gap: var(--grid-row-gap);
max-width: 100%;
margin: var(--spacing-sm);
margin-right: calc(var(--spacing-md) + 9.9px);
margin-left: var(--spacing-md);
}
.grid-item {
position: relative;
}
.grid-item img {
width: 100%;
height: auto;
max-height: calc((100vw / 6) * 3);
object-fit: cover;
object-position: center;
z-index: var(--z-base);
transition: z-index var(--transition-fast);
}
.grid-item img:hover {
z-index: var(--z-hover);
}
.grid-item p {
margin: 0;
font-size: 0.9rem;
color: var(--color-text);
text-align: center;
display: flex;
align-items: center;
justify-content: center;
}
/* ===================================
Index Page Styles
=================================== */
/* Timeline Styles */
#timeline {
grid-column: 1 / 2;
grid-row: 1 / span 3;
align-self: start;
z-index: var(--z-sticky);
color: var(--color-gray);
padding: 8px;
padding-top: 0;
display: flex;
flex-direction: column;
gap: 8px;
margin-left: var(--spacing-md);
}
#montagna {
grid-column: 2 / span 5;
grid-row: 1;
}
#montagna:hover {
z-index: var(--z-overlay);
}
#wowCL {
grid-column: 2 / 4;
grid-row: 2;
}
#wowCL:hover {
z-index: var(--z-overlay);
}
#discovery {
grid-column: 4 / span 3;
grid-row: 2;
}
.timeline-row {
display: flex;
gap: 8px;
}
/* The label doubles as the open/close control (see initializeTimelineToggle).
Below desktop it just reads as the old "Timeline:" heading. */
.timeline-toggle {
align-self: flex-start;
padding: 0;
border: 0;
background: none;
text-align: left;
font-weight: var(--font-weight-black);
color: var(--color-primary);
}
.timeline-toggle::after {
content: ":";
}
.timeline-toggle:focus-visible {
outline: 2px solid var(--color-accent);
outline-offset: 2px;
}
/* Desktop homepage: the photos take the page, and the timeline is squeezed
into the left page margin as a single word running up it. Clicking opens
it to a full column, pushing the photos over. */
@media (min-width: 1025px) {
#image_grid:has(> #timeline) {
--timeline-open: 16vw;
position: relative;
grid-template-columns: repeat(5, 1fr);
transition: padding-left var(--transition-medium);
}
#image_grid:has(> #timeline.is-open) {
padding-left: calc(var(--timeline-open) + var(--grid-gap));
}
#image_grid:has(> #timeline) #montagna { grid-column: 1 / -1; }
#image_grid:has(> #timeline) #wowCL { grid-column: 1 / 3; }
#image_grid:has(> #timeline) #discovery { grid-column: 3 / -1; }
/* Out of the grid flow: collapsed, it fills the page margin beside the
photos; open, it takes the space the grid's padding clears for it. */
#timeline {
/* An absolute grid item with a grid placement is positioned inside
that grid area (past the padding); `auto` makes it use the grid's
padding box, so left: 0 really is the cleared space. */
grid-column: auto;
grid-row: auto;
position: absolute;
top: 0;
bottom: 0;
left: calc(-1 * var(--spacing-md));
width: var(--spacing-md);
margin: 0;
padding: 0;
align-items: center;
/* Clip sideways while it animates, but never cut off the bottom rows. */
overflow-x: clip;
color: var(--color-text);
transition: left var(--transition-medium), width var(--transition-medium);
}
#timeline.is-open {
left: 0;
width: var(--timeline-open);
align-items: flex-start;
}
/* Fixed width so rows don't rewrap while it's animating open. */
#timeline .timeline-row {
flex-shrink: 0;
width: var(--timeline-open);
}
#timeline:not(.is-open) .timeline-row {
display: none;
}
/* Collapsed, the label fills the margin strip so the whole thing is clickable. */
.timeline-toggle {
flex: 1;
align-self: center;
cursor: pointer;
color: var(--color-primary);
/* Reads bottom-to-top (letter tops face left); `end` keeps the word
at the top of the strip once it's flipped. */
writing-mode: vertical-rl;
transform: rotate(180deg);
text-align: end;
}
.timeline-toggle:hover {
color: var(--color-secondary);
}
/* ∇ after the word reads as an arrow: pointing at the photos while
collapsed (it turns with the sideways label), back toward the margin
once open. */
#timeline .timeline-toggle::after {
font-family: var(--font-display);
}
#timeline:not(.is-open) .timeline-toggle::after {
content: "\00a0\2207";
}
#timeline.is-open .timeline-toggle::after {
content: "\2207";
display: inline-block;
margin-left: 0.5em;
transform: rotate(90deg);
}
#timeline.is-open .timeline-toggle {
flex: none;
align-self: flex-start;
writing-mode: horizontal-tb;
transform: none;
text-align: left;
}
}
.timeline-year {
font-weight: var(--font-weight-bold);
flex-shrink: 0;
width: 1uw;
text-align: left;
}
.timeline-details {
text-align: left;
flex-grow: 1;
}
.match-timeline {
text-decoration: none;
color: inherit;
}
/* ===================================
Projects Page Styles
=================================== */
#projectFilters {
grid-column: 1;
grid-row: 2 / span 2;
display: flex;
flex-direction: column;
align-items: flex-start;
justify-content: flex-start;
text-align: left;
padding: 0;
margin: 0;
}
.filter-group {
display: flex;
flex-wrap: wrap;
gap: 0.5vw;
}
.filter-btn,
.year-btn {
background-color: transparent;
border: 1px solid var(--color-primary);
color: var(--color-primary);
padding: 0.25vw 0.6vw;
cursor: pointer;
font-family: var(--font-family);
font-size: 0.75rem;
font-weight: var(--font-weight-medium);
transition: all var(--transition-medium);
text-transform: lowercase;
}
.filter-btn:hover,
.year-btn:hover {
background-color: var(--color-primary);
color: var(--color-background);
}
.filter-btn.active,
.year-btn.active {
background-color: var(--color-accent);
border-color: var(--color-accent);
color: var(--color-primary);
font-weight: var(--font-weight-bold);
}
.filter-btn:focus,
.year-btn:focus {
outline: 2px solid var(--color-accent);
outline-offset: 2px;
}
#filterCount {
font-size: var(--font-size-base);
color: var(--color-secondary);
margin-top: 0.5vw;
}
#projectList {
grid-column: 2 / span 2;
grid-row: 2 / span 2;
display: flex;
flex-direction: column;
align-items: flex-start;
justify-content: flex-start;
text-align: left;
padding: 0;
margin: 0;
perspective: 700px;
}
#projectList a {
transition: opacity var(--transition-medium), transform var(--transition-medium);
transform-origin: 50% 50%;
backface-visibility: hidden;
-webkit-backface-visibility: hidden;
}
#projectList a.filtered-out {
opacity: 0;
transform: translateX(-10px);
height: 0;
overflow: hidden;
margin: 0;
pointer-events: none;
}
@keyframes flap-in {
0% { opacity: 0; transform: rotateX(-90deg); }
45% { opacity: 1; }
70% { transform: rotateX(6deg); }
100% { opacity: 1; transform: rotateX(0deg); }
}
#projectList a.flap-in {
animation: flap-in var(--transition-medium) both;
will-change: transform, opacity;
}
#writings {
grid-column: 4 / span 2;
grid-row: 6;
display: flex;
flex-direction: column;
align-items: flex-end;
justify-content: flex-start;
text-align: right;
padding: 0;
margin: 0;
}
#preview {
grid-column: 4 / -1;
grid-row: 2 / span 2;
}
/* Back link used at the top of the log / blog pages */
.page-back {
display: inline-block;
margin: var(--spacing-md);
margin-bottom: 0;
color: var(--color-secondary);
}
/* Currently / work-in-progress block — sits atop the project-list column */
#currently {
display: flex;
flex-direction: column;
align-items: flex-start;
text-align: left;
margin: 0 0 var(--spacing-sm);
padding: 0;
}
.current-item {
display: inline-flex;
align-items: center;
gap: 0.6em;
line-height: 1.2;
}
.current-item::before {
content: "";
width: 6px;
height: 6px;
border-radius: 50%;
background: var(--color-accent);
flex-shrink: 0;
}
.current-focus {
color: var(--color-secondary);
margin: 0;
}
/* Cap the preview image so small source files aren't upscaled (and blurred) */
#preview img {
max-width: 460px;
max-height: 620px;
width: 100%;
height: auto;
object-fit: contain;
}
/* ===================================
Photos/Gallery Page Styles
=================================== */
#galleryGrid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: var(--grid-gap);
margin: var(--spacing-md) calc(var(--spacing-md) + 9.9px) var(--spacing-md) var(--spacing-md);
}
.gallery-card {
display: flex;
flex-direction: column;
gap: 0.5vw;
border: var(--gallery-border);
padding: 1vw;
background: var(--color-background);
}
.gallery-cover {
width: 100%;
aspect-ratio: 4 / 5;
object-fit: cover;
border: var(--gallery-border);
}
.gallery-meta {
display: flex;
flex-direction: column;
gap: 0.25vw;
}
.gallery-title {
font-family: var(--font-text);
font-weight: var(--font-weight-normal);
font-size: 1.35rem;
line-height: 1.15;
}
.gallery-description {
margin: 0;
font-size: 0.95rem;
line-height: 1.5;
}
/* ===================================
Image Interactions
=================================== */
img {
width: 100%;
height: auto;
object-position: center;
z-index: var(--z-base);
}
img:hover {
z-index: var(--z-hover);
}
/* Homepage photos (with their captions) that are still loading start hidden
and fade in once they arrive (class added by JS, so they still show if
scripts don't run). The transition lives only on the loaded state so
hiding is instant. */
.grid-item.fade-in {
opacity: 0;
}
.grid-item.fade-in.is-loaded {
opacity: 1;
transition: opacity 1.6s ease;
}
.flip {
cursor: e-resize;
z-index: var(--z-base);
}
.flip:hover {
z-index: var(--z-hover);
}
/* ===================================
Utility Classes
=================================== */
.text-container {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
}
/* ===================================
Footer
=================================== */
footer {
text-align: center;
margin-top: 20px;
padding: var(--spacing-md);
color: var(--color-gray);
}
/* Quiet footer easter-egg link — inherits footer color so it stays hidden */
.motto-link {
color: inherit;
font-family: var(--font-text);
font-style: italic;
font-weight: var(--font-weight-normal);
font-size: 1.1rem;
}
.motto-link:hover {
color: inherit;
}
/* ===================================
Responsive Design - Mobile
=================================== */
@media (max-width: 768px) {
:root {
--font-size-base: 14px;
--spacing-xl: 4vw;
}
#bar {
margin-left: var(--spacing-lg);
right: var(--spacing-lg);
}
#image_grid {
grid-template-columns: repeat(2, 1fr);
gap: var(--spacing-md);
}
#timeline {
grid-column: 1 / -1;
grid-row: 1;
position: static;
margin-left: var(--spacing-sm);
margin-bottom: var(--spacing-md);
}
#wowCL {
grid-column: 1 / -1;
grid-row: auto;
}
#montagna {
grid-column: 1 / -1;
grid-row: auto;
}
#discovery {
grid-column: 1 / -1;
grid-row: auto;
}
#projectFilters {
grid-column: 1 / -1;
grid-row: auto;
}
#projectList {
grid-column: 1 / -1;
grid-row: auto;
}
#writings {
grid-column: 1 / -1;
grid-row: auto;
align-items: flex-start;
text-align: left;
}
#preview {
grid-column: 1 / -1;
grid-row: auto;
}
#galleryGrid {
grid-template-columns: 1fr;
gap: var(--spacing-lg);
margin: var(--spacing-lg);
}
.gallery-card {
padding: 3vw;
}
}
/* ===================================
Responsive Design - Tablet
=================================== */
@media (min-width: 769px) and (max-width: 1024px) {
#image_grid {
grid-template-columns: repeat(4, 1fr);
}
#timeline {
grid-column: 1 / -1;
grid-row: 1;
position: static;
}
#wowCL {
grid-column: 1 / 3;
grid-row: auto;
}
#montagna {
grid-column: 3 / -1;
grid-row: auto;
}
#discovery {
grid-column: 1 / -1;
grid-row: auto;
}
#galleryGrid {
grid-template-columns: repeat(2, 1fr);
}
}
/* ===================================
Accessibility
=================================== */
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
}
}
/* High contrast mode support */
@media (prefers-contrast: high) {
a {
text-decoration: underline;
}
a:focus {
outline-width: 3px;
}
}
/* ===================================
Print Styles
=================================== */
@media print {
#bar,
#time {
display: none;
}
body {
background: white;
color: black;
}
a {
text-decoration: underline;
}
}