@@ -132,12 +132,16 @@ h1, h2, h3, h4, h5, h6 {
132132/* ---------------------------------------------------------- */
133133
134134body {
135- font-family : var (--font-sans );
135+ font-family : var (--gh- font-body , var ( --font- sans) );
136136 font-size : 1.6rem ;
137137 background-color : var (--background-color );
138138 color : var (--color-primary-text );
139139}
140140
141+ h1 , h2 , h3 , h4 , h5 , h6 {
142+ font-family : var (--gh-font-heading , var (--font-sans ));
143+ }
144+
141145a {
142146 color : var (--color-darker-gray );
143147 text-decoration : none;
@@ -244,7 +248,7 @@ button.gh-form-input {
244248 color : rgb (0 0 0 / 0.3 );
245249}
246250
247- : is (.has-serif-title , .has-mono-title ) .gh-form-input {
251+ : is (.has-serif-title , .has-mono-title ): not ([ class *= " gh-font-heading" ]) : not ([ class ^= "gh-font-heading" ]) .gh-form-input {
248252 padding-inline : 20px ;
249253}
250254
@@ -280,7 +284,7 @@ button.gh-form-input {
280284 cursor : pointer;
281285}
282286
283- : is (.has-serif-title , .has-mono-title ) button .gh-form-input {
287+ : is (.has-serif-title , .has-mono-title ): not ([ class *= " gh-font-heading" ]) : not ([ class ^= "gh-font-heading" ]) button .gh-form-input {
284288 padding-inline-start : 50px ;
285289}
286290
@@ -300,7 +304,7 @@ button.gh-form-input {
300304 color : var (--color-secondary-text );
301305}
302306
303- : is (.has-serif-title , .has-mono-title ) .gh-form > svg {
307+ : is (.has-serif-title , .has-mono-title ): not ([ class *= " gh-font-heading" ]) : not ([ class ^= "gh-font-heading" ]) .gh-form > svg {
304308 left : 16px ;
305309}
306310
@@ -438,6 +442,7 @@ button.gh-form-input {
438442
439443.gh-navigation-logo {
440444 position : relative;
445+ font-family : var (--gh-font-heading , var (--font-sans ));
441446 font-size : calc (2.4rem * var (--factor , 1 ));
442447 font-weight : 725 ;
443448 letter-spacing : -0.015em ;
@@ -1609,7 +1614,7 @@ Search LOGO Login Subscribe
16091614 height : 18px ;
16101615}
16111616
1612- .has-serif-title .gh-more svg {
1617+ .has-serif-title : not ([ class *= " gh-font-heading" ]) : not ([ class ^= "gh-font-heading" ]) .gh-more svg {
16131618 margin-top : 0 ;
16141619}
16151620
@@ -2118,7 +2123,7 @@ unless a heading is the very first element in the post content */
21182123 font-weight : 700 ;
21192124}
21202125
2121- .has-serif-body .post-template .gh-content .drop-cap > p : first-of-type : first-letter {
2126+ .has-serif-body .post-template : not ([ class *= " gh-font-body" ]) : not ([ class ^= "gh-font-body" ]) .gh-content .drop-cap > p : first-of-type : first-letter {
21222127 font-size : 3.2em ;
21232128}
21242129
@@ -2163,15 +2168,15 @@ unless a heading is the very first element in the post content */
21632168 font-size : 0.95em ;
21642169}
21652170
2166- .has-serif-body .gh-content > blockquote ,
2167- .has-serif-body .gh-content > ol ,
2168- .has-serif-body .gh-content > ul ,
2169- .has-serif-body .gh-content > dl ,
2170- .has-serif-body .gh-content > p ,
2171- .has-serif-body .gh-content .kg-callout-text ,
2172- .has-serif-body .gh-content .kg-toggle-content > ol ,
2173- .has-serif-body .gh-content .kg-toggle-content > ul ,
2174- .has-serif-body .gh-content .kg-toggle-content > p {
2171+ .has-serif-body : not ([ class *= " gh-font-body" ]) : not ([ class ^= "gh-font-body" ]) .gh-content > blockquote ,
2172+ .has-serif-body : not ([ class *= " gh-font-body" ]) : not ([ class ^= "gh-font-body" ]) .gh-content > ol ,
2173+ .has-serif-body : not ([ class *= " gh-font-body" ]) : not ([ class ^= "gh-font-body" ]) .gh-content > ul ,
2174+ .has-serif-body : not ([ class *= " gh-font-body" ]) : not ([ class ^= "gh-font-body" ]) .gh-content > dl ,
2175+ .has-serif-body : not ([ class *= " gh-font-body" ]) : not ([ class ^= "gh-font-body" ]) .gh-content > p ,
2176+ .has-serif-body : not ([ class *= " gh-font-body" ]) : not ([ class ^= "gh-font-body" ]) .gh-content .kg-callout-text ,
2177+ .has-serif-body : not ([ class *= " gh-font-body" ]) : not ([ class ^= "gh-font-body" ]) .gh-content .kg-toggle-content > ol ,
2178+ .has-serif-body : not ([ class *= " gh-font-body" ]) : not ([ class ^= "gh-font-body" ]) .gh-content .kg-toggle-content > ul ,
2179+ .has-serif-body : not ([ class *= " gh-font-body" ]) : not ([ class ^= "gh-font-body" ]) .gh-content .kg-toggle-content > p {
21752180 font-family : var (--font-serif-alt );
21762181}
21772182
@@ -2313,11 +2318,11 @@ unless a heading is the very first element in the post content */
23132318 font-weight : 700 ;
23142319}
23152320
2316- .has-serif-title .kg-toggle-card .kg-toggle-heading-text {
2321+ .has-serif-title : not ([ class *= " gh-font-heading" ]) : not ([ class ^= "gh-font-heading" ]) .kg-toggle-card .kg-toggle-heading-text {
23172322 font-family : var (--font-serif );
23182323}
23192324
2320- .has-mono-title .kg-toggle-card .kg-toggle-heading-text {
2325+ .has-mono-title : not ([ class *= " gh-font-heading" ]) : not ([ class ^= "gh-font-heading" ]) .kg-toggle-card .kg-toggle-heading-text {
23212326 font-family : var (--font-mono );
23222327}
23232328
@@ -2356,15 +2361,15 @@ blockquote.kg-blockquote-alt {
23562361
23572362/* Header */
23582363
2359- .has-serif-title .kg-card .kg-header-card h2 .kg-header-card-header {
2364+ .has-serif-title : not ([ class *= " gh-font-heading" ]) : not ([ class ^= "gh-font-heading" ]) .kg-card .kg-header-card h2 .kg-header-card-header {
23602365 font-family : var (--font-serif );
23612366}
23622367
2363- .has-mono-title .kg-card .kg-header-card h2 .kg-header-card-header {
2368+ .has-mono-title : not ([ class *= " gh-font-heading" ]) : not ([ class ^= "gh-font-heading" ]) .kg-card .kg-header-card h2 .kg-header-card-header {
23642369 font-family : var (--font-mono );
23652370}
23662371
2367- .has-serif-body .kg-header-card h3 .kg-header-card-subheader {
2372+ .has-serif-body : not ([ class *= " gh-font-body" ]) : not ([ class ^= "gh-font-body" ]) .kg-header-card h3 .kg-header-card-subheader {
23682373 font-family : var (--font-serif );
23692374}
23702375
@@ -2417,15 +2422,15 @@ blockquote.kg-blockquote-alt {
24172422 margin-top : 12px ;
24182423}
24192424
2420- .has-serif-title .kg-product-card .kg-card .kg-product-card-title {
2425+ .has-serif-title : not ([ class *= " gh-font-heading" ]) : not ([ class ^= "gh-font-heading" ]) .kg-product-card .kg-card .kg-product-card-title {
24212426 font-family : var (--font-serif );
24222427}
24232428
2424- .has-mono-title .kg-product-card .kg-card .kg-product-card-title {
2429+ .has-mono-title : not ([ class *= " gh-font-heading" ]) : not ([ class ^= "gh-font-heading" ]) .kg-product-card .kg-card .kg-product-card-title {
24252430 font-family : var (--font-mono );
24262431}
24272432
2428- .has-serif-body .kg-product-card-description : is (p , ul , ol ) {
2433+ .has-serif-body : not ([ class *= " gh-font-body" ]) : not ([ class ^= "gh-font-body" ]) .kg-product-card-description : is (p , ul , ol ) {
24292434 font-family : var (--font-serif-alt );
24302435}
24312436
@@ -2597,131 +2602,131 @@ figcaption a {
25972602/* 20. Design settings
25982603/* ---------------------------------------------------------- */
25992604
2600- .has-serif-title {
2605+ .has-serif-title : not ([ class *= " gh-font-heading" ]) : not ([ class ^= "gh-font-heading" ]) {
26012606 --factor : 1.15 ;
26022607}
26032608
2604- .has-mono-title {
2609+ .has-mono-title : not ([ class *= " gh-font-heading" ]) : not ([ class ^= "gh-font-heading" ]) {
26052610 --factor : 1.1 ;
26062611}
26072612
2608- .has-sans-title : is (.is-title , .gh-content : is (h2 , h3 )) {
2609- font-family : var (--font-sans );
2613+ .has-sans-title : not ([ class *= " gh-font-heading" ]) : not ([ class ^= "gh-font-heading" ]) : is (.is-title , .gh-content : is (h2 , h3 )) {
2614+ font-family : var (--gh- font-heading , var ( --font- sans) );
26102615}
26112616
2612- .has-serif-title : is (.is-title , .gh-content : is (h2 , h3 )) {
2613- font-family : var (--font-serif );
2617+ .has-serif-title : not ([ class *= " gh-font-heading" ]) : not ([ class ^= "gh-font-heading" ]) : is (.is-title , .gh-content : is (h2 , h3 )) {
2618+ font-family : var (--gh- font-heading , var ( --font- serif) );
26142619 font-weight : 550 ;
26152620}
26162621
2617- .has-mono-title : is (.is-title , .gh-content : is (h2 , h3 )) {
2618- font-family : var (--font-mono );
2622+ .has-mono-title : not ([ class *= " gh-font-heading" ]) : not ([ class ^= "gh-font-heading" ]) : is (.is-title , .gh-content : is (h2 , h3 )) {
2623+ font-family : var (--gh- font-heading , var ( --font- mono) );
26192624}
26202625
2621- .has-sans-body .is-body {
2622- font-family : var (--font-sans );
2626+ .has-sans-body : not ([ class *= " gh-font-body" ]) : not ([ class ^= "gh-font-body" ]) .is-body {
2627+ font-family : var (--gh- font-body , var ( --font- sans) );
26232628}
26242629
2625- .has-serif-body .is-body {
2626- font-family : var (--font-serif-alt );
2630+ .has-serif-body : not ([ class *= " gh-font-body" ]) : not ([ class ^= "gh-font-body" ]) .is-body {
2631+ font-family : var (--gh- font-body , var ( --font- serif-alt) );
26272632}
26282633
2629- .has-serif-title .gh-header .is-classic .gh-header-title {
2634+ .has-serif-title : not ([ class *= " gh-font-heading" ]) : not ([ class ^= "gh-font-heading" ]) .gh-header .is-classic .gh-header-title {
26302635 font-weight : 550 ;
26312636 letter-spacing : -0.015em ;
26322637}
26332638
2634- .has-mono-title .gh-header .is-classic .gh-header-title {
2639+ .has-mono-title : not ([ class *= " gh-font-heading" ]) : not ([ class ^= "gh-font-heading" ]) .gh-header .is-classic .gh-header-title {
26352640 letter-spacing : -0.01em ;
26362641}
26372642
2638- .has-serif-title .gh-form {
2643+ .has-serif-title : not ([ class *= " gh-font-heading" ]) : not ([ class ^= "gh-font-heading" ]) .gh-form {
26392644 border-radius : 0 ;
26402645}
26412646
2642- .has-serif-title .gh-card-title {
2647+ .has-serif-title : not ([ class *= " gh-font-heading" ]) : not ([ class ^= "gh-font-heading" ]) .gh-card-title {
26432648 line-height : 1.15 ;
26442649 letter-spacing : -0.006em ;
26452650 font-size : calc (2.0 rem*var(--factor , 1))
26462651}
26472652
2648- .has-serif-title .gh-featured-feed .gh-card-title {
2653+ .has-serif-title : not ([ class *= " gh-font-heading" ]) : not ([ class ^= "gh-font-heading" ]) .gh-featured-feed .gh-card-title {
26492654 font-size : calc (1.6 rem*var(--factor , 1))
26502655}
26512656
2652- .has-mono-title .gh-featured-feed .gh-card-title {
2657+ .has-mono-title : not ([ class *= " gh-font-heading" ]) : not ([ class ^= "gh-font-heading" ]) .gh-featured-feed .gh-card-title {
26532658 font-size : calc (1.5 rem*var(--factor , 1));
26542659 letter-spacing : 0 ;
26552660}
26562661
2657- .has-serif-title .gh-header .is-highlight .gh-featured-feed .gh-card-title {
2662+ .has-serif-title : not ([ class *= " gh-font-heading" ]) : not ([ class ^= "gh-font-heading" ]) .gh-header .is-highlight .gh-featured-feed .gh-card-title {
26582663 font-size : clamp (1.6rem , 0.23vw + 1.51rem , 1.8rem );
26592664}
26602665
2661- .has-mono-title .gh-card-title {
2666+ .has-mono-title : not ([ class *= " gh-font-heading" ]) : not ([ class ^= "gh-font-heading" ]) .gh-card-title {
26622667 font-size : calc (1.8 rem*var(--factor , 1));
26632668 line-height : 1.2 ;
26642669}
26652670
2666- .has-serif-title .gh-about-title {
2671+ .has-serif-title : not ([ class *= " gh-font-heading" ]) : not ([ class ^= "gh-font-heading" ]) .gh-about-title {
26672672 letter-spacing : -0.009em ;
26682673}
26692674
2670- .has-serif-title .gh-footer-signup-header {
2675+ .has-serif-title : not ([ class *= " gh-font-heading" ]) : not ([ class ^= "gh-font-heading" ]) .gh-footer-signup-header {
26712676 letter-spacing : -0.019em ;
26722677}
26732678
2674- .has-serif-title .gh-article-title {
2679+ .has-serif-title : not ([ class *= " gh-font-heading" ]) : not ([ class ^= "gh-font-heading" ]) .gh-article-title {
26752680 letter-spacing : -0.019em ;
26762681}
26772682
2678- .has-serif-body {
2683+ .has-serif-body : not ([ class *= " gh-font-body" ]) : not ([ class ^= "gh-font-body" ]) {
26792684 --content-font-size : 1.9rem ;
26802685}
26812686
2682- .has-serif-body .gh-card-excerpt {
2687+ .has-serif-body : not ([ class *= " gh-font-body" ]) : not ([ class ^= "gh-font-body" ]) .gh-card-excerpt {
26832688 font-size : 1.65rem ;
26842689 line-height : 1.4 ;
26852690 letter-spacing : 0.0005em ;
26862691}
26872692
2688- .has-serif-body .gh-header .is-magazine .gh-header-inner > .gh-card .gh-card-excerpt ,
2689- .has-serif-body .gh-header .is-highlight .gh-card : first-child .gh-card-excerpt {
2693+ .has-serif-body : not ([ class *= " gh-font-body" ]) : not ([ class ^= "gh-font-body" ]) .gh-header .is-magazine .gh-header-inner > .gh-card .gh-card-excerpt ,
2694+ .has-serif-body : not ([ class *= " gh-font-body" ]) : not ([ class ^= "gh-font-body" ]) .gh-header .is-highlight .gh-card : first-child .gh-card-excerpt {
26902695 font-size : 1.8rem ;
26912696 letter-spacing : -0.001em ;
26922697}
26932698
2694- .has-serif-title .gh-header .is-magazine .gh-header-inner > .gh-card .gh-card-title ,
2695- .has-serif-title .gh-header .is-highlight .gh-header-left .gh-card-title {
2699+ .has-serif-title : not ([ class *= " gh-font-heading" ]) : not ([ class ^= "gh-font-heading" ]) .gh-header .is-magazine .gh-header-inner > .gh-card .gh-card-title ,
2700+ .has-serif-title : not ([ class *= " gh-font-heading" ]) : not ([ class ^= "gh-font-heading" ]) .gh-header .is-highlight .gh-header-left .gh-card-title {
26962701 font-weight : 550 ;
26972702 font-size : clamp (3.2rem , 1.82vw + 2.47rem , 4.9rem )
26982703}
26992704
2700- .has-serif-body .gh-about-description {
2705+ .has-serif-body : not ([ class *= " gh-font-body" ]) : not ([ class ^= "gh-font-body" ]) .gh-about-description {
27012706 font-size : 1.6rem ;
27022707}
27032708
2704- .has-serif-body .gh-article-excerpt {
2709+ .has-serif-body : not ([ class *= " gh-font-body" ]) : not ([ class ^= "gh-font-body" ]) .gh-article-excerpt {
27052710 letter-spacing : 0 ;
27062711}
27072712
2708- .has-serif-body .gh-footer-signup-subhead {
2713+ .has-serif-body : not ([ class *= " gh-font-body" ]) : not ([ class ^= "gh-font-body" ]) .gh-footer-signup-subhead {
27092714 letter-spacing : 0 ;
27102715}
27112716
2712- .has-serif-title : is (.gh-button , .gh-form , .gh-form-input ) {
2717+ .has-serif-title : not ([ class *= " gh-font-heading" ]) : not ([ class ^= "gh-font-heading" ]) : is (.gh-button , .gh-form , .gh-form-input ) {
27132718 border-radius : 0 ;
27142719}
27152720
2716- .has-mono-title : is (.gh-button ) {
2721+ .has-mono-title : not ([ class *= " gh-font-heading" ]) : not ([ class ^= "gh-font-heading" ]) : is (.gh-button ) {
27172722 border-radius : 0 ;
27182723}
27192724
2720- .has-mono-title : is (.gh-form ) {
2725+ .has-mono-title : not ([ class *= " gh-font-heading" ]) : not ([ class ^= "gh-font-heading" ]) : is (.gh-form ) {
27212726 border-radius : 0 ;
27222727}
27232728
2724- .has-serif-title .gh-cta-title {
2729+ .has-serif-title : not ([ class *= " gh-font-heading" ]) : not ([ class ^= "gh-font-heading" ]) .gh-cta-title {
27252730 font-size : 4.8rem ;
27262731}
27272732
@@ -2768,6 +2773,7 @@ figcaption a {
27682773
27692774.gh-footer-logo {
27702775 position : relative;
2776+ font-family : var (--gh-font-heading , var (--font-sans ));
27712777 font-size : calc (2.4rem * var (--factor , 1 ));
27722778 font-weight : 725 ;
27732779 letter-spacing : -0.015em ;
0 commit comments