Repository navigation
Expand file tree
/
Copy pathstyle.css
More file actions
4981 lines (4350 loc) · 130 KB
/
Copy pathstyle.css
File metadata and controls
4981 lines (4350 loc) · 130 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
/*
Theme Name: Understrap Child - MELP
Theme URI: https://mariaedgeworth.org
Description: Child theme for Maria Edgeworth Letters Project
Author: MELP Team
Author URI: https://mariaedgeworth.org
Template: understrap
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: understrap-child
*/
/**
* All MELP theme styling lives in this one file. There is no build step —
* edit it directly and reload.
*
* Written in native CSS: nesting, custom properties, and nested @media. It
* replaces the former Gulp + Sass pipeline, whose partials compiled into
* assets/css/melp.css; both are gone. `url()` paths resolve against this file
* at the theme root, so they read `assets/images/...`, not `../images/...`.
*
* Mobile-first throughout: base rules target the smallest viewport and
* larger-screen overrides layer on via nested min-width queries sitting next
* to the component they modify. Breakpoints are 800px (tablet) and 1120px
* (desktop), plus 960px for the letter viewer only — it goes side-by-side
* earlier than the rest of the site so landscape tablets get the desktop
* layout instead of the stacked one.
*
* Section order is load-bearing: later sections win the cascade where
* selectors collide. Keep new rules in the section they belong to rather than
* appending to the end.
*
* The Google Fonts stylesheet (Libre Baskerville + Public Sans) is enqueued
* from functions.php, not @imported here, so it downloads in parallel with
* this file instead of waiting on it.
*/
/* ==========================================================================
TYPOGRAPHY
Base layer: brand custom properties, base typography, a11y utilities.
========================================================================== */
/**
* Base typography + brand variables.
*
* The custom properties below are the single source of truth for brand color
* and type. Prefer referencing them over repeating a literal value, so a
* palette change lands in one place.
*/
:root {
/* Brand colors */
--melp-gold: #CBBA69;
--melp-gold-dark: #857217;
--melp-text-muted: #596668; /* AA: 4.7:1 on --melp-bg-warm, was #677779 (3.7:1) */
--melp-text: #464B4D;
--melp-white: #FFFFFF;
--melp-bg-warm: #E9E5DC;
--melp-bg-light: #FEFCF7;
--melp-browse-label: #59696B;
--melp-border-light: #C4C4C4;
--melp-placeholder: #767676; /* AA: 4.5:1 on white, was #999999 (2.8:1) */
/* Pill icon colors */
--melp-pill-people-icon: #B8C9D5;
--melp-pill-people-hover: #587385;
--melp-pill-people-active: #587385;
--melp-pill-places-icon: #EAE1B8;
--melp-pill-places-hover: #857217;
--melp-pill-places-active: #857217;
--melp-pill-works-icon: #EFCEBC;
--melp-pill-works-hover: #9D5D39;
--melp-pill-works-active: #9D5D39;
--melp-pill-date-icon: #C3C0B8;
--melp-pill-date-hover: #677779;
--melp-pill-date-active: #677779;
--melp-pill-repo-icon: #C3C0B8;
--melp-pill-repo-hover: #677779;
--melp-pill-repo-active: #677779;
/* Pagination */
--melp-pager-active: #587385;
--melp-pager-inactive: #BEC7CE;
/* Fonts */
--melp-font-serif: Georgia, serif;
--melp-font-body: 'Public Sans', sans-serif;
--default-text-font: 'Public Sans', sans-serif;
/* ---------------------------------------------------------------------
Fluid type scale.
Every font-size on the site comes from one of these tokens — there are
no literal px sizes left except the letter transcript, which stays
pinned so its line breaks keep matching the original manuscript.
Each token interpolates between a 400px and a 1280px viewport and is
flat outside that range, so there is no need for font-size media
queries: the clamp does the work. Add a new token here rather than
hard-coding a one-off size.
320px 1280px+
--fs-psmall 12px → 14px small UI text, labels, pills
--fs-p 14px → 16px body copy, form controls
--fs-plarge 16px → 18px lead paragraphs
--fs-h4 18px → 20px
--fs-h3 20px → 22px
--fs-h2 20px → 26px
--fs-h1 28px → 38px page titles, heroes
--------------------------------------------------------------------- */
--fs-psmall: clamp(0.75rem, 0.6932rem + 0.2273vw, 0.875rem);
--fs-p: clamp(0.875rem, 0.8182rem + 0.2273vw, 1rem);
--fs-plarge: clamp(1rem, 0.9432rem + 0.2273vw, 1.125rem);
--fs-h4: clamp(1.125rem, 1.0682rem + 0.2273vw, 1.25rem);
--fs-h3: clamp(1.25rem, 1.1932rem + 0.2273vw, 1.375rem);
--fs-h2: clamp(1.25rem, 1.0795rem + 0.6818vw, 1.625rem);
--fs-h1: clamp(1.75rem, 1.4659rem + 1.1364vw, 2.375rem);
/* h5 and h6 continue the ramp downward; aliases rather than new clamps
so the scale stays six steps wide. */
--fs-h5: var(--fs-plarge);
--fs-h6: var(--fs-p);
}
h1,
h2,
h3,
h4,
h5,
h6,
.letter-carousel-label,
.topic-index-name {
font-family: var(--melp-font-serif) !important;
text-transform: none !important;
/* `balance` evens out ragged headings; ignored by browsers that lack it.
Tracking is 0.02em — the design spec quotes 2%, which is not a valid
letter-spacing unit in CSS (percentages are dropped), so it is expressed
in em here. */
text-wrap: balance;
letter-spacing: 0.02em;
}
/* Every heading level takes its size from the scale; the clamps make
per-breakpoint font-size overrides unnecessary. */
/* h1/h2/h3/h5 get their sizes from their own rules further down; h4 and h6
have none of their own, so they are set here. */
h4 { font-size: var(--fs-h4); }
h6 { font-size: var(--fs-h6); }
h2 {
font-family: 'Libre Baskerville', serif !important;
font-weight: 400;
font-style: normal;
font-size: var(--fs-h2);
line-height: 100%;
letter-spacing: 0.02em;
}
h3 {
font-family: 'Libre Baskerville', serif !important;
font-weight: 400;
font-style: normal;
font-size: var(--fs-h3);
line-height: 25.2px;
}
body,
p {
font-family: var(--melp-font-body);
}
body {
background-color: var(--melp-bg-light);
}
/* ---------------------
OTHER MASTHEAD STYLES
(was at the bottom of style.css)
----------------------*/
#masthead #masthead-project-description {
font-weight: 400;
font-style: normal;
font-size: var(--fs-h3);
line-height: 160%;
}
/* The byline (editors / team / design credits, one icon per line) is moved by
JS to sit directly under the "Project Updates" <h2> — no longer inside
#masthead — so it's styled on the ID alone. On that light background the text
uses the default dark colour. It shares the section's 1232px content
container (matching the posts block) and left-aligns beneath the heading; the
container's own responsive gutter handles the screen edges. */
#masthead-byline {
font-weight: 400;
font-style: normal;
font-size: var(--fs-psmall);
line-height: 150%;
color: var(--default-text-color);
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 15px;
width: 100%;
max-width: 1232px;
margin: 0 auto 30px;
& br {
display: none;
}
& span {
display: flex;
align-items: center;
gap: 15px;
&::before {
content: '';
display: inline-block;
width: 20px;
height: 20px;
background-size: contain;
background-repeat: no-repeat;
flex-shrink: 0;
}
&:nth-of-type(1)::before {
background-image: url('assets/images/hero_icon_1.png');
background-size: 17.25px;
background-position: center;
}
/* Icons 2 and 3 are intentionally swapped relative to their filenames —
the artwork order didn't match the byline copy order. */
&:nth-of-type(2)::before {
background-image: url('assets/images/hero_icon_3.png');
}
&:nth-of-type(3)::before {
background-image: url('assets/images/hero_icon_2.png');
}
}
}
/* ---------------------
ACCESSIBILITY
WCAG 2.2 AA structural pass — see /Users/.../plans/synthetic-watching-clarke.md
----------------------*/
/* Visually-hidden utility for sr-only labels (e.g. on `<input>`s where the
placeholder is the only visible affordance). Standard pattern; do not
`display: none` because that hides from AT too. */
.visually-hidden {
position: absolute !important;
width: 1px !important;
height: 1px !important;
padding: 0 !important;
margin: -1px !important;
overflow: hidden !important;
clip: rect(0, 0, 0, 0) !important;
white-space: nowrap !important;
border: 0 !important;
}
/* Skip link — first focusable element on every page via the `wp_body_open`
hook in functions.php. Hidden off-screen until focused, then drops into
view in the top-left corner. */
.skip-link {
position: absolute;
top: -40px;
left: 0;
z-index: 10000;
padding: 8px 16px;
background: var(--melp-text);
color: var(--melp-bg-light);
text-decoration: none;
font-family: var(--melp-font-body);
font-weight: 600;
border-radius: 0 0 4px 0;
&:focus,
&:focus-visible {
top: 0;
outline: 2px solid var(--melp-gold);
outline-offset: 2px;
}
}
/* Global focus ring for every interactive element. `:where()` keeps the
specificity at 0 so per-component overrides win without `!important`.
Uses the slate accent already in the palette so it reads on both cream
and teal surfaces. */
:where(a, button, summary, input, select, textarea, [tabindex]):focus-visible {
outline: 2px solid var(--melp-pill-people-hover);
outline-offset: 2px;
border-radius: 2px;
}
/* Reduced-motion guard. Neutralizes the 0.2 s color/background transitions,
the carousel transform hover, and `scroll-behavior: smooth` for users who
have the OS preference set. Carousel JS (LetterCarousel) also gates its
smooth-scroll easing on the same media query. */
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
scroll-behavior: auto !important;
}
}
/* ==========================================================================
GLOBAL
Global components: site chrome, letter viewer, search, cards, controls.
========================================================================== */
:root {
--page-bg-color: #FEFCF7;
--masthead-bg-color: #587385;
--masthead-text-color: #FEFCF7;
--secondary-bg-color: #D0D0CE;
--control-bg-color: #CBBA69;
--control-text-color: #464B4D;
--control-border-color: #7C7C7C;
--heading-text-color: #464B4D;
--default-text-color: #464B4D;
--default-text-font: 'Public Sans', sans-serif;
--browse-by-pill-color: #F5F5F5;
--alt-bg-color: #E4E4E4;
--alt-text-color: #59696B;
--search-bg-color: #E9E5DC;
--border-light-color: #D0D0CE;
--border-result-color: #C3C0B8;
--text-muted-color: #596668; /* AA: 4.7:1 on --search-bg-color, was #677779 (3.7:1) */
--text-label-color: #59696B;
--radio-color: #6F8596;
--accent-bar-color: #536D81;
}
@font-face {
font-family: 'Romie';
src: url('assets/fonts/Romie-Regular.woff2') format('woff2'),
url('assets/fonts/Romie-Regular.woff') format('woff');
font-weight: normal;
font-style: normal;
font-display: swap;
}
html, body {
height: 100%;
width: 100%;
margin: 0px;
padding: 0px;
color: var(--default-text-color)!important;
background-color: var(--page-bg-color)!important;
font-family: var(--default-text-font)!important;
scroll-behavior: smooth;
}
#announcement-banner {
padding: 10px;
text-align: center;
background-color: white;
width: 100%;
}
h1 {
/* Default H1. Reads --color-neutrals-Black directly (not
--heading-text-color) so per-component re-points of that token — e.g.
link-hover rules — never recolor page headings. */
color: var(--color-neutrals-Black, #464B4D) !important;
font-family: 'Libre Baskerville', serif !important;
font-size: var(--fs-h1);
font-style: normal;
font-weight: 400 !important;
line-height: normal !important;
text-transform: none !important;
/* No font-size override here any more — --fs-h1 already ramps 28→38px
across this range. Only the desktop line-height still needs a step. */
@media (min-width: 1120px) {
line-height: 50.4px !important; /* 126% */
}
}
h2 {
color: var(--heading-text-color)!important;
font-family: 'Libre Baskerville', serif !important;
font-size: var(--fs-h2);
font-style: normal;
font-weight: 400 !important;
line-height: normal !important;
text-transform: none !important;
}
h3 {
color: var(--heading-text-color)!important;
font-family: 'Libre Baskerville', serif !important;
font-size: var(--fs-h3);
font-style: normal;
font-weight: 400 !important;
line-height: 25.2px !important;
}
h5 {
color: var(--heading-text-color)!important;
font-family: 'Libre Baskerville', serif !important;
font-size: var(--fs-h5);
font-style: normal;
text-transform: none !important;
font-weight: 400 !important;
line-height: 26px !important;
}
p {
color: var(--default-text-color);
font-family: var(--default-text-font);
font-size: var(--fs-p);
/* `pretty` avoids orphans/short last lines; ignored where unsupported. */
text-wrap: pretty;
font-style: normal;
font-weight: 400;
line-height: 160%;
}
a {
color: var(--default-text-color);
}
img.alignleft {
float: left;
margin-right: 10px;
margin-bottom: 10px;
}
img.alignright {
float: right;
margin-left: 10px;
margin-bottom: 10px;
}
.profile-image-circle {
width: 178px!important;
height: 178px!important;
overflow: hidden!important;
border-radius: 50%!important;
}
.profile-byline p {
margin: 0;
}
input[type=radio] + label {
color: var(--default-text-color);
font-family: var(--default-text-font);
font-size: var(--fs-p);
font-style: normal;
font-weight: 400;
line-height: 21px;
}
input[type=text] {
color: var(--default-text-color);
font-family: var(--default-text-font);
font-style: italic;
font-size: var(--fs-p);
font-weight: 400;
}
option[disabled] { display: none; }
button {
cursor: pointer;
}
details {
padding-bottom: 16px;
border-bottom: solid 1px var(--border-light-color);
}
details > summary, .metadata-label, .tippy-content .entity-popup-label {
display: block;
color: var(--default-text-color);
font-family: var(--default-text-font);
font-size: var(--fs-p);
font-style: normal;
font-weight: 400;
line-height: 22.5px;
text-transform: uppercase;
}
.metadata-label {
font-family: "Public Sans", var(--default-text-font), sans-serif;
font-size: var(--fs-psmall);
font-weight: 700;
font-style: normal;
text-transform: uppercase;
letter-spacing: 0.78px;
color: #464B4D;
line-height: 20px;
}
details > summary {
margin-left: 20px;
list-style: none;
cursor: pointer;
padding: 12px 0;
}
/* Hide the disclosure triangle. Deliberately two rules, not one selector list:
an unrecognized selector invalidates the whole list, so pairing these would
mean Firefox — which cannot parse ::-webkit-details-marker — discards the
::marker half too and keeps painting the triangle. */
details > summary::marker {
display: none;
}
details > summary::-webkit-details-marker { /* Safari */
display: none;
}
details > summary::before {
background-image: url('assets/images/icon_chevron_down.png');
background-size: 9px;
background-repeat: no-repeat;
display: block;
position: relative;
left: -20px;
top: 20px;
width: 10px;
height: 18px;
cursor: pointer;
content: "";
transition: transform 0.2s ease;
}
details:not([open]) > summary::before {
background-image: url('assets/images/icon_chevron_down.png');
transform: rotate(-90deg);
}
/* ---------------------
NAV
----------------------*/
#top-container {
background-color: var(--masthead-bg-color);
border-bottom: none;
}
#top-container:has(#nav-container.search) {
border-bottom: none;
}
#top-container.homepage {
border-bottom: unset;
gap: 0;
}
#nav-container {
display: flex;
align-items: center;
justify-content: space-between;
background-color: var(--masthead-bg-color);
width: 100vw;
height: 80px;
padding: 0 max(calc((100vw - 1232px) / 2), calc(15vw / 2));
border-bottom: 4.697px solid var(--color-yellow-60, #CBBA69);
@media (min-width: 1120px) {
height: auto;
border-bottom: solid 5px var(--control-bg-color);
}
/* Inner pages (anything without the JS-applied .homepage class) drop
the gold rule under the nav — only the homepage keeps it. */
&:not(.homepage) {
border-bottom: none;
}
}
#nav-title-and-menu {
display: flex;
width: 100%;
justify-content: space-between;
margin-bottom: 0;
@media (min-width: 1120px) {
margin-bottom: -55px;
}
}
#nav-container.homepage {
position: relative;
z-index: 20;
background-color: var(--masthead-bg-color);
padding: 0 20px;
width: 100%;
@media (min-width: 1120px) {
background-color: unset;
border-bottom: unset;
padding: 0 max(calc((100vw - 1232px) / 2), calc(15vw / 2));
}
}
#nav-container.homepage #nav-title-and-menu {
/* Mobile: title on the left, hamburger on the right (space-between).
Desktop: title floats to the masthead and the menu group right-aligns. */
justify-content: space-between;
margin-bottom: 0;
@media (min-width: 1120px) {
justify-content: end;
}
}
#nav-container.homepage #nav-menu {
padding-top: 20px;
}
#nav-container.search #nav-title-and-menu {
margin-bottom: unset;
}
#nav-container a {
color: var(--masthead-text-color) !important;
font-size: var(--fs-psmall);
font-weight: 700;
letter-spacing: 1.04px;
text-transform: uppercase;
/* No underline at rest (bootstrap's base `a` underlines otherwise) —
it appears on hover/keyboard focus only. */
text-decoration: none;
}
#nav-container a:hover,
#nav-container a:focus-visible {
text-decoration: underline;
}
#nav-title, #nav-title a {
/* Mobile: small uppercase Libre Baskerville label, no underline.
Desktop: the large Romie wordmark used in the original masthead. */
color: var(--masthead-text-color);
font-family: "Libre Baskerville";
font-size: var(--fs-psmall);
font-style: normal;
font-weight: 400;
line-height: 18px; /* 150% */
text-transform: uppercase;
text-decoration: none;
word-wrap: break-word;
max-width: 180px;
@media (min-width: 1120px) {
font-family: "Romie", sans-serif !important;
font-size: var(--fs-h2);
line-height: 30px !important;
font-weight: normal;
text-transform: none;
text-decoration: none;
height: 60px;
margin: 25px 0;
max-width: 300px;
}
}
#nav-container.search #nav-title {
margin-right: auto;
}
/* Content pages: the search is nested in #nav-title-and-menu, inline between the
logo and the menu. Lay the row out on a single centered line, with the logo at
the left and the search + menu grouped to the right. */
#nav-container:not(.homepage):not(.search) #nav-title-and-menu #nav-search {
position: static;
top: auto;
flex: 0 0 auto;
margin: 0;
}
#nav-container:not(.homepage):not(.search) #nav-title-and-menu {
align-items: center;
margin-bottom: 0;
}
#nav-container:not(.homepage):not(.search) #nav-menu {
align-self: center;
margin-top: 0;
}
#nav-container:not(.homepage):not(.search) #nav-search-bar {
width: 320px;
height: 40px;
}
#nav-container:not(.homepage):not(.search) #nav-search-button {
height: 40px;
}
#nav-search {
display: flex;
justify-content: center;
}
#nav-container #nav-search {
position: relative;
top: 25px;
z-index: 20;
}
#nav-search-bar {
border-radius: 4px 0 0 4px;
border: none;
color: var(--default-text-color);
width: 320px;
height: 40px;
padding-left: 16px;
font-size: var(--fs-p);
font-family: var(--default-text-font);
}
#nav-search-button {
display: inline-flex;
align-items: center;
justify-content: center;
height: 40px;
width: 104px;
padding: 0 20px;
text-decoration: none;
color: var(--control-text-color);
background-color: var(--control-bg-color);
/* Hover fill slides in from the left (dark gold over gold — matches the
Places pill hover). */
/* Hover fill sliding in from the left; retreats on un-hover. Double-width,
hard-stop gradient whose background-position animates between halves.
(Shared pattern — keep the four background declarations together.) */
background-image: linear-gradient(to right, var(--melp-pill-places-hover) 50%, var(--control-bg-color) 50%);
background-size: 200% 100%;
background-position: right top;
background-repeat: no-repeat;
transition: background-position 0.3s ease, color 0.2s, border-color 0.2s;
&:hover,
&:focus-visible {
background-position: left top;
}
border-radius: 0 4px 4px 0;
border: none;
font-family: var(--default-text-font);
font-size: var(--fs-psmall);
font-style: normal;
font-weight: 700;
line-height: normal;
text-transform: uppercase;
letter-spacing: 0.78px;
position: relative;
}
#nav-menu {
display: flex;
justify-content: flex-start;
align-items: center;
column-gap: 30px;
row-gap: 5px;
@media (min-width: 1120px) {
justify-content: flex-end;
align-self: start;
margin-top: 30px;
}
}
#nav-container.homepage #nav-menu {
align-self: unset;
margin-top: unset;
}
/* Inline nav links underline on hover/focus only — no rest-state underline,
including the current page (aria-current still announces it to AT). The
hamburger drawer's push-menu rules keep their own .current underline. */
#nav-menu a:hover, #nav-menu a:focus-visible {
text-decoration: underline;
}
/* Focus rings on the slate nav/masthead surfaces. The global ring in
the TYPOGRAPHY section uses --melp-pill-people-hover (#587385), which is the
exact --masthead-bg-color, so it's invisible here. Use the gold accent —
the same convention as the skip-link focus on dark surfaces. Covers the
logo/wordmark link (which JS moves into #masthead on the homepage), the
inline menu items, the search controls, and the hamburger button. */
#nav-container a:focus-visible,
#nav-container button:focus-visible,
#nav-container input:focus-visible,
#masthead a:focus-visible {
outline: 2px solid var(--melp-gold);
outline-offset: 2px;
}
/* Mobile hamburger button — a real <button> wrapping the SVG glyph
<img>. The desktop version (≥1120px) hides it; the .force-hamburger
override below wins back at desktop when there are 3+ menu items. */
#hamburger-open-button {
display: block;
width: 36px;
height: 36px;
cursor: pointer;
margin-left: 30px;
/* Reset UA <button> chrome so the glyph shows on its own. */
background: none;
border: none;
padding: 0;
& > img {
width: 100%;
height: 100%;
display: block;
}
@media (min-width: 1120px) {
display: none;
}
}
/* ---------------------
MASTHEAD
----------------------*/
#masthead { display: none; }
#masthead.homepage {
/* mobile: full-width single column with no background image so the hero text
reads on a flat teal panel. desktop: the original 3-column grid with the
right-side engraving overlay. */
display: flex;
flex-direction: column;
width: 100%;
min-height: auto;
margin: 0;
padding: 20px 10px;
background-color: var(--masthead-bg-color);
@media (min-width: 1120px) {
display: grid;
grid-template-columns: min(43%, 480px) 1fr min(22%, 230px);
width: 100vw;
min-height: 500px;
margin: -40px auto 0 auto;
padding: 0;
background-image: url('assets/images/hero-right-bg.png');
background-position: center right;
background-size: contain;
background-repeat: no-repeat;
}
}
#masthead.homepage #masthead-right-col {
/* mobile only: the right column is hidden until the grid lays out at desktop. */
display: none;
@media (min-width: 800px) {
display: block;
}
}
#masthead-left-col {
/* hidden through tablet — only re-appears once the masthead is the desktop grid. */
display: none;
background-image: url('assets/images/hero-left-bg.png');
background-position: center left;
background-size: contain;
background-repeat: no-repeat;
@media (min-width: 1120px) {
display: block;
}
}
#masthead-center-col {
display: flex;
width: 100%;
padding: 0;
@media (min-width: 800px) {
padding-top: 60px;
}
@media (min-width: 1120px) {
width: auto;
padding: 50px 0;
}
}
#masthead p {
font-size: var(--fs-p);
font-style: normal;
line-height: 17px;
color: var(--masthead-text-color);
margin-top: 1em;
}
#masthead p.by-line {
font-size: var(--fs-psmall);
}
#masthead-title-and-description {
/* mobile: hero text spans the panel with centered alignment.
desktop: revert to the original 24px gutter offset. */
width: 100%;
padding: 0;
margin: 0;
text-align: center;
@media (min-width: 1120px) {
width: auto;
padding-left: 24px;
padding-right: 24px;
margin: auto -24px;
text-align: left;
}
}
#masthead-title-and-description #nav-title,
#masthead-title-and-description #nav-title a {
/* This used to step 30px → 40px → 38px across two breakpoints, which is
non-monotonic and impossible to express as one clamp. --fs-h1 ramps
28→38px smoothly and lands on the same desktop size, so the two
font-size overrides are gone; only the line-height steps remain. */
display: contents;
font-family: 'Libre Baskerville', serif !important;
font-size: var(--fs-h1) !important;
line-height: 40.4px !important;
font-weight: 400;
font-style: normal;
letter-spacing: 0.01em;
text-transform: none;
vertical-align: middle;
color: var(--masthead-text-color) !important;
max-width: unset;
@media (min-width: 800px) {
line-height: 30px !important;
}
@media (min-width: 1200px) {
line-height: 50.4px !important;
}
}
#masthead-title-and-description p {
font-size: var(--fs-psmall);
line-height: 22px;
padding-left: 0;
padding-right: 0;
text-align: center;
@media (min-width: 1120px) {
font-size: var(--fs-p);
line-height: 17px;
text-align: left;
}
}
#masthead > p {
padding-left: 0;
padding-right: 0;
}
#masthead-about-button {
display: inline-block;
color: var(--masthead-text-color);
font-size: var(--fs-psmall);
font-style: normal;
line-height: normal;
text-transform: uppercase;
border-radius: 60px;
border: 1px solid var(--masthead-text-color);
padding: 10px 20px 10px 20px;
margin-top: 10px;
transition: background-color 0.2s, color 0.2s;
}
#masthead-about-button:hover {
background-color: var(--masthead-text-color);
color: var(--masthead-bg-color);
text-decoration: none;
}