-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
624 lines (616 loc) · 14.4 KB
/
Copy pathstyle.css
File metadata and controls
624 lines (616 loc) · 14.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
/* Color Palette & Variables */
:root {
--slate-dark: #423b37;
--slate-light: #e7dfd9;
--accent-pink: #d94a76;
--accent-blue: #414a63;
--text-main: #2b2724;
--white: #ffffff;
--font-main: "Optima", "Iowan Old Style", "Seravek", sans-serif;
/* Derived tones -- kept in the same warm slate family */
--slate-muted: rgba(66, 59, 55, 0.8);
--border-subtle: rgba(66, 59, 55, 0.28);
--shadow-soft: 0 2px 10px rgba(43, 39, 36, 0.06);
--shadow-lift: 0 30px 80px rgba(43, 39, 36, 0.28);
/* Project card surface */
--card-bg: rgba(255, 255, 255, 0.38);
--card-bg-hover: rgba(66, 59, 55, 0.13);
--card-border: rgba(255, 255, 255, 0.55);
--card-border-hover: rgba(255, 255, 255, 0.3);
--shadow-card: 0 4px 20px rgba(43, 39, 36, 0.07);
--shadow-card-hover: 0 18px 46px rgba(43, 39, 36, 0.2);
/* Tool/skill pills -- solid fill so it can't pick up the card's color behind it */
--pill-bg: #e2ddd9;
--pill-border-glass: rgba(255, 255, 255, 0.5);
--pill-border-glass-hover: rgba(255, 255, 255, 0.8);
/* Glass tokens for the media viewer */
--glass-fill: rgba(255, 255, 255, 0.5);
--glass-fill-deep: rgba(231, 223, 217, 0.28);
--glass-border: rgba(255, 255, 255, 0.5);
--glass-highlight: rgba(255, 255, 255, 0.7);
}
* {
box-sizing: border-box;
}
html,
body {
margin: 0;
padding: 0;
background-color: var(--slate-light);
color: var(--text-main);
font-family: var(--font-main);
min-height: 100vh;
scrollbar-width: none; /* For Firefox */
}
/* Locks the page behind the media viewer */
body.viewer-open {
overflow: hidden;
}
body::-webkit-scrollbar {
display: none; /* For Chrome, Safari, and Edge */
}
.page-wrapper {
display: flex;
flex-direction: column;
min-height: 100vh;
width: 100%;
}
.hero {
text-align: center;
padding: 40px 20px 10px 20px;
}
/* HERO SECTION (heading, bio) */
.hero h1 {
font-family: var(--font-main);
font-size: 3rem;
color: var(--slate-dark);
}
.hero p {
color: var(--accent-blue);
font-size: 1.2rem;
letter-spacing: 0.1em;
}
/* LANDING SECTION -- profile links, project blocks */
.landing-container {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 10px;
width: 100%;
text-align: center;
}
.menu-list {
list-style: none;
padding: 0;
margin: 0;
display: flex;
flex-direction: row;
justify-content: center;
gap: 40px;
}
.menu-list li {
margin: 25px 25px;
}
.menu-list a {
text-decoration: none;
font-family: var(--font-main);
font-size: 1.5rem;
font-weight: 400;
letter-spacing: 0.05em;
color: var(--slate-dark);
transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
display: inline-block;
}
.menu-list a:hover {
color: var(--accent-pink);
letter-spacing: 0.1em;
}
.social-link {
text-decoration: none;
color: var(--slate-dark);
font-family: var(--font-main);
font-size: 0.9rem;
display: flex;
align-items: center;
gap: 10px;
transition: all 0.3s ease;
}
/* Styling the link Icons */
.social-link i {
font-size: 1.4rem;
transition: transform 0.3s ease;
}
/* Hover Effect */
.social-link:hover {
color: var(--accent-pink);
scale: 1.05;
}
/* PROJECT BLOCKS */
.project-block {
width: 100%;
max-width: 1400px;
display: flex;
flex-direction: column;
gap: 20px;
margin: 0 auto 48px auto;
padding: 32px 24px;
background: var(--card-bg);
border: 1px solid var(--card-border);
border-radius: 20px;
-webkit-backdrop-filter: blur(20px) saturate(150%);
backdrop-filter: blur(20px) saturate(150%);
box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255, 255, 255, 0.5);
transition: background-color 0.4s ease, border-color 0.4s ease,
box-shadow 0.4s ease, transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.project-block:hover {
background: var(--card-bg-hover);
border-color: var(--card-border-hover);
/* Soft pink backlight, as if light is bleeding out from behind the card */
box-shadow: var(--shadow-card-hover), inset 0 1px 0 rgba(255, 255, 255, 0.35),
0 0 45px rgba(217, 74, 118, 0.28), 0 0 100px rgba(217, 74, 118, 0.14);
transform: translateY(-3px);
}
.project-info {
text-align: left; /* Overrides the centered text-align inherited from .landing-container */
}
.project-info h2 {
font-family: var(--font-main);
font-size: 2rem;
color: var(--slate-dark);
}
.project-tools,
.project-skills {
list-style: none;
padding: 0;
margin: 10px 0 20px 0; /* Space above/below the list */
display: flex;
flex-wrap: wrap; /* Allows tags to wrap on small screens */
gap: 10px; /* Space between tags */
}
.project-tools li,
.project-skills li {
font-family: var(--font-main);
font-size: 0.7rem;
color: var(--slate-dark);
background: var(--pill-bg);
border: 1px solid var(--pill-border-glass);
padding: 4px 12px;
border-radius: 20px; /* Makes them look like pills */
text-transform: uppercase;
letter-spacing: 0.05em;
}
/* Fill stays fixed -- only the glass edge brightens against the darker card */
.project-block:hover .project-tools li,
.project-block:hover .project-skills li {
border-color: var(--pill-border-glass-hover);
}
.project-description a {
color: var(--accent-blue);
text-decoration: none;
border-bottom: 1px solid rgba(77, 86, 112, 0.35);
transition: color 0.3s ease, border-color 0.3s ease;
}
.project-description a:hover {
color: var(--accent-pink);
border-bottom-color: var(--accent-pink);
}
.project-tool-header,
.project-skill-header {
font-size: 0.8rem;
color: var(--slate-dark) !important;
text-transform: none;
border: none !important;
padding-right: 15px;
}
.project-description {
max-width: 70ch;
line-height: 1.6;
font-family: var(--font-main);
color: var(--slate-dark);
text-align: left;
transition: color 0.4s ease;
}
/* Darkens body copy and captions for legibility once the card background darkens */
.project-block:hover .project-description,
.project-block:hover .media-item figcaption {
color: var(--text-main);
}
.project-media {
width: 100%;
overflow: hidden;
}
.media-item {
flex: 0 0 85%;
scroll-snap-align: center;
justify-content: flex-end;
position: relative; /* Anchors the expand affordance */
cursor: zoom-in;
}
.media-item img {
width: 100%;
border-radius: 8px;
}
.media-item video {
width: 100%;
border-radius: 8px; /* Matches your images */
display: block;
}
.media-item img,
.media-item video {
box-shadow: var(--shadow-soft);
transition: box-shadow 0.4s ease, transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.media-item:hover img,
.media-item:hover video,
.media-item:focus-visible img,
.media-item:focus-visible video {
box-shadow: 0 10px 30px rgba(43, 39, 36, 0.14);
transform: translateY(-2px);
}
.media-item:focus-visible {
outline: 2px solid var(--accent-pink);
outline-offset: 6px;
border-radius: 6px;
}
.media-item figcaption {
font-family: var(--font-main);
font-size: 0.85rem;
color: var(--slate-dark);
letter-spacing: 0.03em;
text-align: left;
margin-top: 10px;
transition: color 0.4s ease;
}
/* Expand affordance -- icon only, fades in on hover/focus */
.media-expand {
position: absolute;
top: 12px;
right: 12px;
width: 34px;
height: 34px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
color: var(--slate-dark);
background: var(--glass-fill);
border: 1px solid var(--glass-border);
-webkit-backdrop-filter: blur(10px) saturate(160%);
backdrop-filter: blur(10px) saturate(160%);
box-shadow: 0 4px 14px rgba(43, 39, 36, 0.16);
font-size: 0.8rem;
opacity: 0;
transform: scale(0.9);
transition: opacity 0.3s ease, transform 0.3s ease;
pointer-events: none; /* The whole figure is the trigger */
}
.media-item:hover .media-expand,
.media-item:focus-visible .media-expand {
opacity: 1;
transform: scale(1);
}
.media-scroller {
width: 100%;
display: flex;
align-items: center;
overflow-x: auto;
scroll-snap-type: x mandatory;
gap: 20px;
padding: 0 7.5%;
scrollbar-width: none;
-webkit-overflow-scrolling: touch;
}
.media-scroller::-webkit-scrollbar {
display: none;
}
.scroller-dots {
display: flex;
justify-content: center;
align-items: center;
gap: 12px;
margin-top: 0px;
width: 100%;
height: 20px; /* Ensures space is reserved for them */
}
.dot {
width: 6px;
height: 6px;
background-color: var(--slate-dark);
opacity: 0.3;
border-radius: 50%;
transition: all 0.3s ease;
}
.dot:hover {
opacity: 0.6;
scale: 1.6;
}
.dot.active {
opacity: 1;
background-color: var(--accent-blue);
scale: 2;
}
/* DESKTOP QUERIES */
@media (min-width: 768px) {
.project-block {
display: grid;
grid-template-columns: 1.5fr 3.5fr;
gap: 40px;
padding: 48px 5%;
}
.project-media {
position: sticky;
top: 40px;
}
.media-scroller {
padding: 0;
}
.media-item {
flex: 0 0 100%;
scroll-snap-align: start;
}
}
/* MOBILE MENU */
@media (max-width: 767px) {
.project-info h2 {
font-family: var(--font-main);
font-size: 1.5rem;
color: var(--slate-dark);
}
}
footer {
padding: 60px 20px;
text-align: center;
background-color: transparent; /* Or var(--white) if you want it to pop */
border-top: 1px solid rgba(66, 59, 55, 0.12); /* Subtle divider line */
margin-top: auto; /* Pushes footer to bottom if page is short */
}
.footer-content {
display: flex;
flex-direction: column;
align-items: center;
gap: 15px;
}
footer p {
font-size: 0.9rem;
opacity: 0.6;
margin-top: 10px;
letter-spacing: 0.05em;
}
/* MEDIA VIEWER -- a glass panel that sits on top of the page */
.media-viewer {
position: fixed;
inset: 0;
z-index: 100;
display: flex;
align-items: center;
justify-content: center;
padding: 3vh 3vw;
opacity: 0;
visibility: hidden;
pointer-events: none;
overscroll-behavior: contain;
transition: opacity 0.45s ease, visibility 0.45s ease;
}
.media-viewer.is-open {
opacity: 1;
visibility: visible;
pointer-events: auto;
}
/* The page reads as a blurred surface behind the panel */
.viewer-scrim {
position: absolute;
inset: 0;
background: radial-gradient(
120% 120% at 50% 0%,
rgba(231, 223, 217, 0.55) 0%,
rgba(66, 59, 55, 0.42) 100%
);
-webkit-backdrop-filter: blur(16px) saturate(150%);
backdrop-filter: blur(16px) saturate(150%);
}
.viewer-panel {
position: relative;
width: min(1500px, 100%);
height: 100%;
display: grid;
grid-template-rows: auto 1fr auto;
border-radius: 26px;
overflow: hidden;
background: linear-gradient(
155deg,
var(--glass-fill) 0%,
var(--glass-fill-deep) 55%,
rgba(255, 255, 255, 0.32) 100%
);
border: 1px solid var(--glass-border);
-webkit-backdrop-filter: blur(34px) saturate(180%);
backdrop-filter: blur(34px) saturate(180%);
box-shadow: var(--shadow-lift), inset 0 1px 0 var(--glass-highlight),
inset 0 -1px 0 rgba(255, 255, 255, 0.25);
transform: scale(0.97) translateY(10px);
transition: transform 0.45s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.media-viewer.is-open .viewer-panel {
transform: none;
}
/* Specular sheen across the top-left of the glass */
.viewer-panel::before {
content: "";
position: absolute;
inset: 0;
background: radial-gradient(
80% 55% at 12% 0%,
rgba(255, 255, 255, 0.5),
transparent 60%
);
pointer-events: none;
}
.viewer-bar {
position: relative;
display: flex;
align-items: center;
justify-content: space-between;
gap: 20px;
padding: 18px 24px;
border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}
.viewer-title {
font-family: var(--font-main);
font-size: 1.05rem;
color: var(--slate-dark);
letter-spacing: 0.03em;
}
.viewer-actions {
display: flex;
align-items: center;
gap: 14px;
}
.viewer-counter {
font-family: var(--font-main);
font-size: 0.8rem;
color: var(--slate-dark);
letter-spacing: 0.08em;
}
.viewer-btn {
width: 38px;
height: 38px;
flex: 0 0 auto;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
font-size: 0.9rem;
color: var(--slate-dark);
background: rgba(255, 255, 255, 0.45);
border: 1px solid var(--glass-border);
-webkit-backdrop-filter: blur(10px) saturate(160%);
backdrop-filter: blur(10px) saturate(160%);
box-shadow: 0 4px 14px rgba(43, 39, 36, 0.14);
cursor: pointer;
transition: all 0.3s ease;
}
.viewer-btn:hover {
color: var(--accent-pink);
background: rgba(255, 255, 255, 0.72);
transform: scale(1.06);
}
.viewer-btn:focus-visible {
outline: 2px solid var(--accent-pink);
outline-offset: 3px;
}
.viewer-btn[disabled] {
opacity: 0.3;
cursor: default;
pointer-events: none;
}
.viewer-stage {
position: relative;
min-height: 0; /* Lets the stage shrink inside the grid row */
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
padding: 20px 76px; /* Keeps wide media clear of the nav buttons */
touch-action: none;
cursor: zoom-in;
}
.viewer-stage.is-zoomed {
cursor: grab;
}
.viewer-stage.is-panning {
cursor: grabbing;
}
/* Fills the stage so the media inside has a definite box to fit within */
.viewer-canvas {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
min-height: 0;
transform-origin: center center;
will-change: transform;
}
.viewer-canvas img,
.viewer-canvas video {
max-width: 100%;
max-height: 100%;
width: auto;
height: auto;
object-fit: contain;
border-radius: 8px;
box-shadow: 0 18px 45px rgba(43, 39, 36, 0.25);
-webkit-user-drag: none;
user-select: none;
}
.viewer-nav {
position: absolute;
top: 50%;
z-index: 2;
transform: translateY(-50%);
}
.viewer-nav:hover {
transform: translateY(-50%) scale(1.06);
}
.viewer-nav.prev {
left: 18px;
}
.viewer-nav.next {
right: 18px;
}
.viewer-foot {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
gap: 10px;
padding: 16px 24px 20px 24px;
border-top: 1px solid rgba(255, 255, 255, 0.35);
}
.viewer-caption {
font-family: var(--font-main);
font-size: 0.95rem;
color: var(--slate-dark);
text-align: center;
margin: 0;
}
.viewer-dots {
display: flex;
align-items: center;
gap: 12px;
height: 20px;
}
.viewer-dots .dot {
cursor: pointer;
}
.viewer-hint {
font-family: var(--font-main);
font-size: 0.72rem;
color: var(--slate-muted);
letter-spacing: 0.05em;
margin: 0;
}
@media (max-width: 767px) {
.media-viewer {
padding: 0;
}
.viewer-panel {
border-radius: 0;
}
.viewer-stage {
padding: 12px;
}
.viewer-nav,
.viewer-hint {
display: none; /* Swipe and pinch take over on touch */
}
}
@media (prefers-reduced-motion: reduce) {
.media-viewer,
.viewer-panel {
transition: none;
}
}