-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
641 lines (539 loc) · 18.7 KB
/
style.css
File metadata and controls
641 lines (539 loc) · 18.7 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
/* Basic Reset for a clean slate */
:root {
--primary: #448d4f;
--secondary: #efbd8a;
--accent: #eab362;
/* Light Mode Colors (Defaults) */
--background-color: #D5D5FF; /* Soft off-white for general background */
--text-color: #222222; /* Dark grey for main text */
--link-color: #555555; /* Medium grey for links */
--link-hover-color: #010101; /* Dark grey/black for link hover */
--site-name-color: #222222; /* Dark grey for your name on homepage */
--site-name-hover-color: #010101;
--sidenote-color: #222222; /* Dark grey for sidenotes */
--footer-text-color: #222222; /* Default footer text color */
--footer-link-color: #555555; /* Default footer link color */
--footer-link-hover-color: #010101; /* Default footer link hover color */
}
/* Dark Mode based on system preference */
@media (prefers-color-scheme: dark) {
:root {
--primary: #72bb7d;
--secondary: #754210;
--accent: #9d6715;
/* Dark Mode Colors (Overrides) */
--background-color: #1A1439; /* Very dark charcoal */
--text-color: #cccccc; /* Light grey for text */
--link-color: #aaaaaa; /* Soft blue for links (stands out in dark mode) */
--link-hover-color: #f0f0f0; /* Pure white for link hover */
--site-name-color: #cccccc; /* Lighter grey for site name */
--site-name-hover-color: #f0f0f0;
--sidenote-color: #cccccc; /* Lighter grey for sidenotes */
--footer-text-color: #cccccc;
--footer-link-color: #aaaaaa;
--footer-link-hover-color: #f0f0f0;
}
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
/* Pure white background */
background-color: var(--background-color);
color: var(--text-color); /* Soft dark grey for text */
/* The core of the "thin, serif, pure" feel */
font-family: 'Crimson Pro', Georgia, "Times New Roman", Times, serif;
font-weight: 300; /* Thin font weight for body text */
font-size: 1.15em; /* Base font size for readability */
line-height: 1.7; /* Generous line spacing */
letter-spacing: 0.01em; /* Very subtle letter spacing for airiness */
/* Constrain content width for readability, center it */
max-width: 700px; /* Adjust content width as needed */
margin: 4em auto; /* Top/bottom margin, auto for horizontal centering */
padding: 0 1.5em; /* Padding on sides for smaller screens (prevents content touching edges) */
}
/* Headings: Subtle and refined hierarchy (for content within <main>) */
h1:not(.navigation h1), h2, h3, h4, h5, h6 { /* Exclude H1s inside .navigation */
font-weight: 400;
line-height: 1.3;
margin-top: 1.5em;
margin-bottom: 0.8em;
letter-spacing: 0;
}
h1:not(.navigation h1) {
font-size: 2em;
}
h2 { font-size: 1.5em; }
h3 { font-size: 1.15em; }
/* Paragraphs */
p {
text-align: justify;
margin-bottom: 1.2em;
}
footer p {
text-align: center;
}
/* Lists (outside navigation) */
ul:not(.navigation-list) {
list-style-type: disc;
margin-left: 1.5em;
margin-bottom: 1.2em;
}
li {
margin-bottom: 0.5em;
}
/* General anchor link styling within content */
main a {
text-decoration: underline; /* Add an underline */
text-underline-offset: 0.15em; /* A small offset for neatness, similar to others */
transition: color 0.2s ease-in-out; /* Smooth transition for color change */
color: var(--link-color); /* A slightly more pronounced green for in-content links */
}
main a:hover,
main a:focus {
color: var(--link-hover-color); /* Darker green on hover */
}
/* Image styling */
img {
max-width: 100%;
height: auto;
display: block;
margin: 1.5em auto;
}
.image-float-text {
float: left; /* Or 'right' if you want it on the other side */
border: 3px solid white; /* The actual white border line */
border-radius: 10px;
/* Margins to separate from surrounding text */
/* top right bottom left */
margin: 1em 0em 1em 0; /* Adjust these values. Using 'em' for consistency with your typography. */
/* 0 on top, 1.5em on the right (separates from text flowing beside it) */
/* 1em on the bottom (separates from text below it) */
/* 0 on the left */
/* Important: Override the 'display: block' from the general img rule */
display: inline; /* Or display: inline-block; - inline is often sufficient for floats */
}
.image-float-text-minimalist {
float: left;
border-radius: 10px;
/* Or 'right' if you want it on the other side */
/* Margins to separate from surrounding text */
/* top right bottom left */
margin: 1em 0em 1em 0;
/* Adjust these values. Using 'em' for consistency with your typography. */
/* 0 on top, 1.5em on the right (separates from text flowing beside it) */
/* 1em on the bottom (separates from text below it) */
/* 0 on the left */
/* Important: Override the 'display: block' from the general img rule */
display: inline;
/* Or display: inline-block; - inline is often sufficient for floats */
}
.video-pair {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 2em;
margin-top: 1.5em;
}
.video-figure {
display: flex;
flex-direction: column;
text-align: center;
}
.video-pair .video-figure:nth-child(3) {
grid-column: 1 / -1;
justify-self: center;
width: min(42.5%, 320px);
}
@media (max-width: 600px) {
.video-pair {
grid-template-columns: 1fr;
}
.video-pair .video-figure:nth-child(3) {
grid-column: auto;
justify-self: stretch;
width: 100%;
}
}
.video-caption {
color: var(--text-color);
text-align: center;
margin-top: 0.75em; /* or 1em if you want more spacing */
}
.inline-video {
max-width: 100%;
height: auto;
border-radius: 10px;
display: block;
margin: 0;
}
.video-hover-wrapper {
position: relative;
display: block;
overflow: hidden;
border-radius: 10px;
box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}
.video-hover-wrapper .inline-video {
display: block;
width: 100%;
aspect-ratio: 16 / 9;
object-fit: cover;
transition: filter 0.3s ease;
}
.video-hover-wrapper:hover .inline-video {
filter: brightness(25%); /* darkens */
}
.video-overlay {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
white-space: nowrap;
color: white;
font-size: 1.1em;
opacity: 0;
transition: opacity 0.3s ease;
}
.video-hover-wrapper:hover .video-overlay {
opacity: 1;
}
/* ========================================================================= */
/* --- GLOBAL NAVIGATION STYLES (.navigation, based on provided inspiration) --- */
/* ========================================================================= */
.navigation {
display: flex;
flex-direction: row; /* Default to row for desktop */
justify-content: space-between;
align-items: baseline; /* Aligns items based on their text baseline */
text-align: left; /* General text alignment within nav (though flex handles main layout) */
margin-bottom: 4rem; /* Generous space below the entire navigation, using rem */
padding-top: 0.5em; /* Keep some top padding */
padding-bottom: 0.5em; /* Keep some bottom padding for visual separation */
}
/* Site Name within Navigation */
.navigation h1 {
font-size: 1.8rem; /* Using rem for consistent sizing based on inspiration */
flex-shrink: 1; /* Allow to shrink if needed, but flex-basis can prevent extreme shrinkage */
border-bottom: none; /* No border on the h1 */
color: var(--site-name-color); /* Default text color for the site name */
margin: 0; /* Remove default h1 margins */
padding-right: 1rem; /* Space between title and menu, using rem */
line-height: 1; /* Tighter line height for the title */
white-space: nowrap; /* Prevent site name from breaking into multiple lines */
}
.navigation h1 .sitename { /* Target the sitename link very specifically */
text-decoration: none; /* **This will now definitely remove the underline** */
border-bottom: none; /* Explicitly ensure no border-bottom either */
color: inherit; /* Inherit color from parent h1 */
transition: color 0.2s ease-in-out;
}
.navigation h1 .sitename:hover,
.navigation h1 .sitename:focus {
color: var(--site-name-hover-color); /* Darker on hover for the sitename */
outline: none;
}
/* Navigation List (the actual menu items) */
.navigation-list {
list-style: none; /* Remove bullets */
padding-left: 0; /* Remove default padding */
margin: 0; /* Remove default margins */
margin-top: -5px; /* Adjust vertical position slightly, as per inspiration */
font-size: 1.2rem; /* Using rem for font size as per inspiration */
display: flex; /* Make the ul a flex container for its items */
flex-wrap: wrap; /* Allow menu items to wrap */
justify-content: flex-end; /* Align links to the right */
gap: 1rem; /* Consistent spacing between menu items, using rem */
}
.navigation li {
list-style-image: none; /* Ensure no image bullets */
list-style-type: none; /* Ensure no disc bullets */
display: inline-block; /* Keep them inline-block for precise control if not flex */
margin-left: 0; /* Reset previous margins, gap handles spacing now */
/* If you prefer margin-left over gap for older browser support:
margin-left: 1rem;
*/
padding: 0; /* Remove any padding on li */
}
.navigation a { /* Styles for all links within .navigation */
text-decoration: underline; /* Underline all navigation links */
text-underline-offset: 0.3em;
color: var(--link-color); /* Soft grey for links, can be adjusted or use CSS Variables */
font-weight: 400; /* Regular weight for clarity */
transition: color 0.2s ease-in-out;
}
.navigation a:hover,
.navigation a:focus {
color: var(--link-hover-color); /* Darker on hover */
outline: none;
}
/* Active link styling */
.navigation li.active {
color: var(--link-hover-color); /* Darker color for active link */
font-weight: 500; /* Slightly bolder for active link */
}
.navigation li.active a {
color: inherit; /* Inherit color from the parent li */
text-decoration: none; /* No underline for active link itself */
pointer-events: none; /* Make active link non-clickable */
cursor: default;
}
/* Responsive adjustments for .navigation */
@media only screen and (max-width: 780px) { /* Using the 1280px breakpoint from inspiration */
.navigation {
flex-direction: column; /* Stack title and nav vertically */
align-items: center; /* Center both items when stacked */
text-align: center; /* Center text within stacked items */
}
.navigation h1 {
padding-right: 0;
margin-bottom: 0.5rem;
font-size: 2rem;
width: 100%;
}
.sitename {
white-space: normal; /* Allow site name to wrap if it's long when stacked */
}
.navigation-list {
justify-content: center; /* Center links when stacked */
margin-top: 0; /* Reset negative margin when stacked */
width: 75%; /* Take full width */
gap: 0.9rem; /* Slightly reduce gap when stacked */
}
}
/* Further responsive adjustment for very small screens if needed */
@media (max-width: 600) {
.navigation-list {
flex-direction: column;
align-items: center;
}
.navigation-list li {
margin-left: 0;
}
}
/* Footer */
footer {
text-align: center;
margin-top: 4em;
font-size: 0.85em;
color: var(--footer-text-color); /* Default text color for the footer */
}
footer a {
color: var(--footer-link-color); /* The link will inherit the #777 color from the footer text */
text-decoration: underline; /* Add an underline */
text-underline-offset: 0.15em; /* A small offset for neatness, similar to others */
transition: color 0.2s ease-in-out; /* Smooth transition for color change */
}
footer a:hover,
footer a:focus {
color: var(--footer-link-hover-color); /* Make the link slightly darker on hover/focus for interactivity */
outline: none; /* Remove outline for a cleaner look on focus */
}
/* ========================================================================= */
/* --- HOMEPAGE SPECIFIC STYLES (for index.html) --- */
/* ========================================================================= */
body.homepage .navigation {
flex-direction: column; /* Stacks <h1> (site name) and <ul.navigation-list> vertically */
align-items: flex-start; /* Aligns both the site name and the menu list to the left */
padding-left: 0;
padding-right: 0;
}
body.homepage .navigation-list {
flex-direction: column; /* Stacks the individual <li> menu items vertically */
align-items: flex-start; /* Aligns each <li> menu item to the left */
gap: 0.9em; /* Adds vertical spacing between the stacked menu items */
margin-top: 2.5em; /* Adds some space between the site name and the menu list */
margin-left: 0; /* Ensures the entire menu list aligns flush left */
padding-left: 0; /* Ensures the entire menu list aligns flush left by removing default ul padding */
}
body.homepage nav ul li {
margin-bottom: 1em;
padding: 0;
display: flex;
align-items: baseline;
justify-content: space-between;
width: 100%;
white-space: normal;
}
.nav-sidenote {
font-size: 1.05rem;
color: var(--sidenote-color);
text-align: right; /* Aligns the text content itself to the right within the sidenote's box */
margin-left: 15em; /* <--- INCREASE THIS VALUE: Adjust as needed to push it further right */
flex-shrink: 0;
}
@media only screen and (max-width: 780px) { /* Using the 1280px breakpoint from inspiration */
body.homepage .navigation {
align-items: center; /* Center both items when stacked */
text-align: center; /* Center text within stacked items */
}
.nav-sidenote {
font-size: 1.05rem;
color: var(--sidenote-color);
text-align: right; /* Aligns the text content itself to the right within the sidenote's box */
margin-left: 10em; /* <--- INCREASE THIS VALUE: Adjust as needed to push it further right */
flex-shrink: 0;
}
}
/* Responsive adjustments for the sidenote behavior on smaller screens */
@media (max-width: 600px) {
body.homepage .navigation-list {
gap: 0.6em; /* Adds vertical spacing between the stacked menu items */
}
body.homepage nav ul li {
flex-direction: column;
align-items: center;
}
.nav-sidenote {
text-align: center;
margin-left: 0;
width: 100%;
}
body.homepage nav ul li a {
white-space: normal;
}
}
/* Gallery Container - Using CSS Grid */
.gallery-container {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 30px; /* Space between gallery items */
margin: 0 auto; /* Center the gallery */
padding: 0px;
}
/* Individual Gallery Item Styling - SIMPLIFIED */
.gallery-item {
text-align: center; /* Center image and caption */
display: flex; /* Use flexbox for vertical alignment of content */
flex-direction: column;
justify-content: space-between; /* Puts space between image and caption if needed */
padding: 5px; /* Add some padding around the image within the item */
/* No overflow: hidden here, as it's moved to the <a> tag */
}
.gallery-item a {
display: flex; /* Use flex to center image within the link */
justify-content: center;
align-items: center;
flex-grow: 1; /* Allow the link to grow and fill available space */
line-height: 0; /* Remove extra space below images */
/* NEW: Aspect Ratio and Cropping on the <a> tag */
width: 100%; /* Ensure the link takes full width of its parent */
aspect-ratio: 3 / 2; /* Default aspect ratio: 3 units wide, 2 units high (landscape) */
overflow: hidden; /* Crucial for cropping the image within this container */
border-radius: 10px; /* Apply rounded corners to the link container for consistent clipping */
position: relative; /* Needed for object-fit to behave correctly with 100% height/width */
}
/* NEW: Specific aspect ratio for portrait images */
.gallery-item.portrait a {
aspect-ratio: 2 / 3; /* 2 units wide, 3 units high (portrait) */
}
.gallery-item img {
width: 100%; /* Make image fill its container's width */
height: 100%; /* Make image fill its container's height */
object-fit: cover; /* IMPORTANT: Crop the image to fit the aspect ratio while maintaining its own proportions */
display: block; /* Remove extra space below image */
border-radius: 10px;
}
/* Image Caption Styling - SIMPLIFIED */
.gallery-item figcaption {
padding: 5px 0 0; /* Padding above caption, no background or top border */
font-size: 0.9em;
color: var(--text-color); /* Using the variable you provided */
}
.gallery-item.narrow {
max-width: 200px;
/* or any width you prefer */
margin: 0 auto;
/* center in full-width container */
}
.gallery-item.medium {
max-width: 300px;
/* or any width you prefer */
margin: 0 auto;
/* center in full-width container */
}
/* Basic Responsiveness */
@media (max-width: 780) {
.gallery-container {
grid-template-columns: repeat(auto-fit, minmax(225px, 1fr));
gap: 8px;
}
}
@media (max-width: 600px) {
.gallery-container {
grid-template-columns: 1fr;
gap: 5px;
}
/* Removed fixed height for img, as aspect-ratio on the <a> tag handles it */
}
.gslide-description .description-bottom {
background-color: var(--background-color);
display: flex;
justify-content: center;
margin-top: 1rem;
}
/* Inner wrapper */
.gdesc-inner {
background-color: var(--background-color);
}
.glightbox-container .gslide-description.description-bottom .gdesc-inner .gslide-desc {
font-family: 'Crimson Pro', serif;
color: var(--text-color);
}
.profile-pic {
width: 225px;
height: 225px;
border-radius: 1em;
object-fit: cover;
float: left;
margin: 1.0em 1.5em 0.75em 0;
}
@media (max-width: 600px) {
.profile-pic {
float: none;
display: block;
margin: 0 auto 1.5em auto;
}
}
.intext-left {
height: 225px;
width: auto;
border-radius: 1em;
object-fit: cover;
float: left;
margin: 0.75em 1.5em 0.75em 0;
overflow: hidden;
}
@media (max-width: 600px) {
.intext-left {
float: none;
display: block;
margin: 1em auto 1em auto;
}
}
.intext-right {
height: 225px;
width: auto;
border-radius: 1em;
object-fit: cover;
float: right;
margin: 0.75em 0 0.75em 1.5em;
overflow: hidden;
}
@media (max-width: 600px) {
.intext-right {
float: none;
display: block;
margin: 1em auto 1em auto;
}
}
.dropcap {
float: left;
font-family: 'Crimson Pro', serif;
font-size: 3.2em;
font-weight: 300;
line-height: 0.9;
margin-right: 0.3em;
margin-top: 0.1em;
}