/* Epicene Text Font Face Declarations */
    @font-face {
        font-family: 'etl';
        font-style: normal;
        font-weight: 300;
        font-display: swap;
        src: url('../fonts/epicene/text/epicene-text-light.woff2') format('woff2');
    }

    @font-face {
        font-family: 'etl';
        font-style: italic;
        font-weight: 300;
        font-display: swap;
        src: url('../fonts/epicene/text/epicene-text-light-italic.woff2') format('woff2');
    }

    @font-face {
        font-family: 'et';
        font-style: normal;
        font-weight: 400;
        font-display: swap;
        src: url('../fonts/epicene/text/epicene-text-regular.woff2') format('woff2');
    }

    @font-face {
        font-family: 'et';
        font-style: italic;
        font-weight: normal;
        font-display: swap;
        src: url('../fonts/epicene/text/epicene-text-regular-italic.woff2') format('woff2');
    }

    @font-face {
        font-family: 'etm';
        font-style: normal;
        font-weight: 500;
        font-display: swap;
        src: url('../fonts/epicene/text/epicene-text-medium.woff2') format('woff2');
    }

    @font-face {
        font-family: 'etm';
        font-style: italic;
        font-weight: 500;
        font-display: swap;
        src: url('../fonts/epicene/text/epicene-text-medium-italic.woff2') format('woff2');
    }
    @font-face {
        font-family: 'etb';
        font-style: normal;
        font-weight: 700;
        font-display: swap;
        src: url('../fonts/epicene/text/epicene-text-bold.woff2') format('woff2');
    }

    @font-face {
        font-family: 'etb';
        font-style: italic;
        font-weight: 700;
        font-display: swap;
        src: url('../fonts/epicene/text/epicene-text-bold-italic.woff2') format('woff2');
    }
    @font-face {
        font-family: 'etbl';
        font-style: normal;
        font-weight: 900;
        font-display: swap;
        src: url('../fonts/epicene/text/epicene-text-black.woff2') format('woff2');
    }

    @font-face {
        font-family: 'etbl';
        font-style: italic;
        font-weight: 900;
        font-display: swap;
        src: url('../fonts/epicene/text/epicene-text-black-italic.woff2') format('woff2');
    }

/* Epicene Display Font Face Declarations */
    @font-face {
        font-family: 'edl';
        font-style: normal;
        font-weight: 300;
        font-display: swap;
        src: url('../fonts/epicene/display/epicene-display-light.woff2') format('woff2');
    }

    @font-face {
        font-family: 'edl';
        font-style: italic;
        font-weight: 300;
        font-display: swap;
        src: url('../fonts/epicene/display/epicene-display-light-italic.woff2') format('woff2');
    }
    @font-face {
        font-family: 'ed';
        font-style: normal;
        font-weight: 400;
        font-display: swap;
        src: url('../fonts/epicene/display/epicene-display-regular.woff2') format('woff2');
    }

    @font-face {
        font-family: 'ed';
        font-style: italic;
        font-weight: 400;
        font-display: swap;
        src: url('../fonts/epicene/display/epicene-display-regular-italic.woff2') format('woff2');
    }
    @font-face {
        font-family: 'edm';
        font-style: normal;
        font-weight: 500;
        font-display: swap;
        src: url('../fonts/epicene/display/epicene-display-medium.woff2') format('woff2');
    }

    @font-face {
        font-family: 'edm';
        font-style: italic;
        font-weight: 500;
        font-display: swap;
        src: url('../fonts/epicene/display/epicene-display-medium-italic.woff2') format('woff2');
    }

    @font-face {
        font-family: 'edb';
        font-style: normal;
        font-weight: 700;
        font-display: swap;
        src: url('../fonts/epicene/display/epicene-display-bold.woff2') format('woff2');
    }

    @font-face {
        font-family: 'edb';
        font-style: italic;
        font-weight: 700;
        font-display: swap;
        src: url('../fonts/epicene/display/epicene-display-bold-italic.woff2') format('woff2');
    }
    @font-face {
        font-family: 'edbl';
        font-style: normal;
        font-weight: 900;
        font-display: swap;
        src: url('../fonts/epicene/display/epicene-display-black.woff2') format('woff2');
    }

    @font-face {
        font-family: 'edbl';
        font-style: italic;
        font-weight: 900;
        font-display: swap;
        src: url('../fonts/epicene/display/epicene-display-black-italic.woff2') format('woff2');
    }
/* CommitMono Variable Font Declaration */
    @font-face {
        font-family: 'CommitMono';
        font-style: normal;
        font-weight: 100 900;
        font-display: swap;
        font-variation-settings: 'wght' 350;
        src: url('../fonts/commitmono/CommitMonoVar.woff2') format('woff2');
    }

    @font-face {
        font-family: 'CommitMono';
        font-style: italic;
        font-weight: 100 900;
        font-display: swap;
        font-variation-settings: 'wght' 350;
        src: url('../fonts/commitmono/CommitMonoVar.woff2') format('woff2');
    }
/* Rosart Ornament Font Face Declarations */

    @font-face {
        font-family: 'RosartOrnaments';
        font-style: normal;
        font-display: swap;
        src: url('../fonts/rosart/DTLRosartPRO-Ornaments.woff2') format('woff2');
    }


:root {
    --success-color: green;
    --error-color: #F44336;
    --ease-transition: 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
    --scale: 1;
    
    /* Font fallback settings to ensure consistent typography */
    --font-fallback: 'Ibarra Real Nova', Georgia, 'Times New Roman', serif;
    
    /* Global font features that should always be enabled */
    --font-features-global: 'liga' 1, 'kern' 1, 'calt' 1, 'onum' 1;
    
    /* Contextual font features for specific use cases */
    --font-features-small-caps: 'smcp' 1;
    --font-features-superscript: 'sups' 1;
    --font-features-subscript: 'infs' 1;
    --font-features-fractions: 'frac' 1;
    --font-features-case: 'case' 1;
    --font-features-stylistic: 'ss01' 1;
    
    /* Colors from Sip-palette.json */
    --swiss-coffee: #DBD2D8; /* Swiss Coffee */
    --cannon-pink: #9B5B82; /* Cannon Pink */
    --strikemaster: #86446D; /* Strikemaster */
    --port: #5C1E45; /* Port */
    --revolver: #341627; /* Revolver */
    --eden: #1E585B; /* Eden */
    --tasman: #D2DBD3; /* Tasman */
    --may-green: #498543; /* May Green */
    --westar: #DBD9D3; /* Westar */
    --sandwisp: #DDCD7C; /* Sandwisp */
    --jumbo: #898883; /* mid-gray ('jumbo') */
    --mariner: #3571CE; /* Mariner (blue) */

    
    /* epicene-text variants */
    --et: 'et', 'Ibarra Real Nova', serif;
    --etl: 'etl', 'Ibarra Real Nova', serif;
    --etm: 'etm', 'Ibarra Real Nova', serif;
    --etb: 'etb', 'Ibarra Real Nova', serif;
    --etbl: 'etbl', 'Ibarra Real Nova', serif;

    /* epicene-text italic variants -     no longer needed 
        bc font-face redefined so both variants have same name
    -et: 'et', 'Ibarra Real Nova', serif;
    -etl: 'etli', 'Ibarra Real Nova', serif;
    -etm: 'etm', 'Ibarra Real Nova', serif;
    -etb: 'etb', 'Ibarra Real Nova', serif;
    -etbl: 'etbl', 'Ibarra Real Nova', serif;
     */
    /* EpiceneDisplay variants */
    --edl: 'edl', 'Ibarra Real Nova', serif;
    --ed: 'ed', 'Ibarra Real Nova', serif;
    --edm: 'edm', 'Ibarra Real Nova', serif;
    --edb: 'edb', 'Ibarra Real Nova', serif;
    --edbl: 'edbl', 'Ibarra Real Nova', serif;

    /* EpiceneDisplay italic variants - no longer needed 
        bc font-face redefined so both variants have same name
    -edl: 'edl', 'Ibarra Real Nova', serif;
    -edr: 'ed', 'Ibarra Real Nova', serif;
    -edm: 'edm', 'Ibarra Real Nova', serif;
    -edb: 'edb', 'Ibarra Real Nova', serif;
    -edbl: 'edbl', 'Ibarra Real Nova', serif;
     */
    /* CommitMono variants */
    --cm: 'CommitMono', 'Fira Code', monospace;
    --cm: 'CommitMono', 'Fira Code', monospace;
    --cml: 'CommitMono', 'Fira Code', monospace;
    --cml: 'CommitMono', 'Fira Code', monospace;
    --cmb: 'CommitMono', 'Fira Code', monospace;
    --cmb: 'CommitMono', 'Fira Code', monospace;
    
    /* Font family variables for theme integration */
    --font-body: 'et', 'Ibarra Real Nova', serif;
    --font-heading: 'ed', 'Ibarra Real Nova', serif;
    --font-mono: 'CommitMono', 'Fira Code', monospace;
    
    /* Legacy font variables for compatibility */
    --font1: 'ed', 'Ibarra Real Nova', serif;
    --font2: 'et', 'Ibarra Real Nova', serif;
    --font3: 'CommitMono', 'Fira Code', monospace;
    
    /* Ghost font settings for theme integration */
    --gh-font-heading: 'ed', 'Ibarra Real Nova', serif;
    --gh-font-body: 'et', 'Ibarra Real Nova', serif;

    --fontSizeBlog: 20px;
    --fontSizeBlogGlyph: 19px;
    --fontSizeFixed1: 14px;
    --fontSizeFixed2: 16px;
    --fontSizeFixed3: 18px;
    --fontSizeFixed4: 24px;
    --fontSizeFixed5: 36px;
    --fontSizeFixed6: 48px;
    --fontSizeFixed7: 64px;
    --fontSizeFixed8: 100px;
    --fontSizeFluid1: calc(14 / 1680 * 100vw);
    --fontSizeFluid2: calc(16 / 1680 * 100vw);
    --fontSizeFluid3: calc(18 / 1680 * 100vw);
    --fontSizeFluid4: calc(24 / 1680 * 100vw);
    --fontSizeFluid5: calc(30 / 1680 * 100vw);
    --fontSizeFluid5_2: calc(32 / 1680 * 100vw);
    --fontSizeFluid5_5: calc(36 / 1680 * 100vw);
    --fontSizeFluid6: calc(48 / 1680 * 100vw);
    --fontSizeFluid6_5: calc(58 / 1680 * 100vw);
    --fontSizeFluid7: calc(64 / 1680 * 100vw);
    --fontSizeFluid7_5: calc(72 / 1680 * 100vw);
    --fontSizeFluid8: calc(80 / 1680 * 100vw);
    --fontSizeFluid9: calc(100 / 1680 * 100vw);
    --fontSizeFluid10: calc(120 / 1680 * 100vw);
}

/* ========================================
   3-TIER RESPONSIVE SCALE SYSTEM
   Standard breakpoints for consistent sizing
   ======================================== */

/* XXL: Large desktops (≥1200px) - Scale up for better readability */
@media (min-width: 1200px) {
    :root {
        --scale: 1.2;
    }
}

/* STD: Standard desktops (769-1199px) - Default scale */
/* Default --scale: 1 already set in :root above */

/* MOBILE: Tablets and phones (≤768px) - Compact for small screens */
@media (max-width: 768px) {
    :root {
        --scale: 0.8;
    }
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -moz-font-feature-settings: "liga" on;
    font-feature-settings: var(--font-features-global);

    
    /* Comprehensive font attributes for optimal rendering */
    letter-spacing: auto;
    font-optical-sizing: auto;
    font-size-adjust: none;
    font-variant-alternates: normal;
    font-variant-caps: normal;
    font-variant-east-asian: normal;
    font-variant-ligatures: normal;
    font-variant-numeric: normal;
    font-variant-position: normal;
    font-variation-settings: normal;
    vertical-align: baseline;
    font-kerning: auto;
}

/* html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
    margin: 0;
    padding: 0;
    border: 0;
    font: inherit;
    font-size: 100%;
    vertical-align: baseline;
} */

/* Specific heading font rules */
h1,
h1 > * {
    font-family: var(--edb); /* Epicene Display */
    font-weight: 700; /* Bold */
}
h2,
h2 > * {
    font-family: var(--edl); /* Epicene Display */
    font-weight: 300; /* Light */
}

/* Specific h2 elements that should use bold */
.latest-post-title h2,
.related-card h2 {
    font-family: var(--edb); /* Epicene Display */
    font-weight: 700; /* Bold */
    font-optical-sizing: auto;
}

.section-header h2 {
    font-family: var(--edl); /* Epicene Display Italic */
    font-style: italic;
    font-weight: 300;
    font-optical-sizing: auto;
}

.medium-text,
.logo-text,
.nav li,
.big-text,
.footer-nav,
.footer-links-label {
    font-family: var(--font1);
    font-weight: 300;
    letter-spacing: -0.03em;
}

/* Common properties for all headings */
h1, h2, h3, h4, h5, h6 {
    padding-top: calc(24px * var(--scale) * 1.25);
}

h1 {
    font-size: calc(75px * var(--scale)); /* $text-max equivalent, +25% */
    line-height: 90%;
    font-family: var(--edbl);
}

h2 {
    font-size: calc(60px * var(--scale)); /* $text-xxl equivalent */
    line-height: 110%;
    font-family: var(--edl);
}

h3 {
    font-size: calc(44px * var(--scale)); /* $text-xl equivalent */
    padding-top: calc(44px * var(--scale) * 1.25);
    line-height: 110%;
    font-family: var(--edm);
}

h4 {
    font-size: calc(37.5px * var(--scale)); /* ~50% of h1 size */
    padding-top: calc(36px * var(--scale) * 1.25);
    line-height: 110%;
    font-family: var(--edb);
}

h5 {
    font-size: calc(28px * var(--scale)); /* $text-md equivalent */
    padding-top: calc(28px * var(--scale) * 1.25);
    line-height: 125%;
    font-family: var(--ed);
}

h6 {
    font-size: calc(24px * var(--scale)); /* $text-md equivalent */

    line-height: 125%;
    font-family: var(--ed);
}

.big-text {
    font-size: 32px;
}

body, html {
    background-color: var(--background-color);
    color: var(--text-color);
    /* Ensure smart quotes are used */
    quotes: "“" """ "'" "'";
}

body, p, small, figcaption {
    font-family: var(--et); /* Epicene Text Regular */
    font-size: 20px; /* $text-sm equivalent */
    line-height: 1.4;
    letter-spacing: 0;
    font-weight: 400;
    font-optical-sizing: auto;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: var(--font-features-global);
}

input, button, .kg-btn, .kg-header-card-button, .button, textarea {
    margin: 0px;
    border-radius: 0px;
    font-family: var(--font3);
    font-weight: 400;
}

p, li {
    font-size: 20px;
    line-height: 1.4;

    /* Ensure smart quotes are used */
    font-feature-settings: var(--font-features-global);
}

br {
    line-height: 0.5rem; /* Creates 0.5rem (10px desktop, 9px mobile) of vertical space */
}

a {
    color: #1F585C;
    text-decoration: underline;
    text-decoration-color: #2A9299;
}

small, figcaption {
    line-height: 1.4;
    font-size: 16px;
}

figcaption {
    margin-top: calc(0.6vw * var(--scale));
    text-align: left;
}

.medium-text {
    font-size: 22px;
}

strong, b {
    font-weight: 700;
}
/* Italic handling for normal weight text */
em, i {
    font-style: italic;
}



/* Bold and italic combination */
strong em, strong i, b em, b i,
em strong, em b, i strong, i b {
    font-weight: 700;
    font-style: italic;
}

/* Italic handling in headings */
h1 em, h1 i, h1 > * em, h1 > * i,
h2 em, h2 i, h2 > * em, h2 > * i 
h3 em, h3 i, h3 > * em, h3 > * i,
h4 em, h4 i, h4 > * em, h4 > * i,
h5 em, h5 i, h5 > * em, h5 > * i,
h6 em, h6 i, h6 > * em, h6 > * i {
    font-style: italic; /* Epicene Display Bold Italic */
}

/* epicene-text italic variants
em:not([class*="--ed"]):not([class*="--cm"]),
i:not([class*="--ed"]):not([class*="--cm"]) {
    font-family: var(--et);
} */

/* Ensure smart quotes work across all content */
.post-content,
.gh-content,
article,
p,
blockquote {
    font-feature-settings: var(--font-features-global);
    text-rendering: optimizeLegibility;
}

/* Headings get discretionary ligatures for decorative effect */
h1, h2, h3 {
    font-feature-settings: var(--font-features-global), 'dlig' 1;
    text-rendering: optimizeLegibility;
}

/* Force smart quotes with CSS replacement */
.post-content,
.gh-content,
article,
p,
blockquote {
    quotes: """ """ "'" "'";
}
.footnotes-container p {
    margin-bottom: calc(1vw * var(--scale));
}
/* Replace straight quotes with smart quotes using CSS */
.post-content,
.gh-content,
article,
p,
blockquote {
    font-feature-settings: var(--font-features-global);
}

/* Additional smart quote support */
.post-content,
.gh-content,
article,
p,
blockquote {
    -webkit-font-feature-settings: var(--font-features-global);
    -moz-font-feature-settings: var(--font-features-global);
    font-feature-settings: var(--font-features-global);
}

/* EpiceneDisplay italic variants (use defined variables and set italic explicitly) */
/* Generic Epicene Display italic (regular weight) */
em[class*="--ed"],
i[class*="--ed"] {
    font-family: var(--ed);
    font-style: italic;
    font-weight: 400; /* match regular italic weight */
}

/* Weight-specific Epicene Display italics override the generic */
em[class*="--edl"],
i[class*="--edl"] { /* light italic */
    font-family: var(--edl);
    font-style: italic;
    font-weight: 300;
}

em[class*="--edm"],
i[class*="--edm"] { /* medium italic */
    font-family: var(--edm);
    font-style: italic;
    font-weight: 500;
}

em[class*="--edb"],
i[class*="--edb"] { /* bold italic */
    font-family: var(--edb);
    font-style: italic;
    font-weight: 700;
}

em[class*="--edbl"],
i[class*="--edbl"] { /* black italic */
    font-family: var(--edbl);
    font-style: italic;
    font-weight: 900;
}

/* CommitMono italic variants */
em[class*="--cm"],
i[class*="--cm"] {
    font-family: var(--cm);
    font-style: italic;
}

/* Specific weight italic variants for Epicene Text */
em[class*="--et"],
i[class*="--et"] { /* default text italic (regular) */
    font-family: var(--et);
    font-style: italic;
    font-weight: 400;
}

em[class*="--etl"],
i[class*="--etl"] {
    font-family: var(--etl);
    font-style: italic;
    font-weight: 300;
}

em[class*="--etm"],
i[class*="--etm"] {
    font-family: var(--etm);
    font-style: italic;
    font-weight: 500;
}

em[class*="--etb"],
i[class*="--etb"] {
    font-family: var(--etb);
    font-style: italic;
    font-weight: 700;
}

em[class*="--etbl"],
 i[class*="--etbl"] {
    font-family: var(--etbl);
    font-style: italic;
    font-weight: 900;
}

/* CommitMono weight-specific italics */
em[class*="--cml"],
i[class*="--cml"] {
    font-family: var(--cml);
    font-style: italic;
    font-weight: 300;
}

em[class*="--cmb"],
i[class*="--cmb"] {
    font-family: var(--cmb);
    font-style: italic;
    font-weight: 700;
}

button, .kg-btn, .kg-header-card-button, .button {
    background-color: var(--text-color);
    color: var(--background-color);
    font-size: 18px;
    padding: 16px 42px;
    line-height: 100%;
    border: none;
    cursor: pointer;
    border: 1px solid var(--text-color);
    text-decoration: none;
    text-align: center;
}

input, textarea {
    line-height: 100%;
    font-size: 18px;
    padding: 14px 22px;
    border: 1px solid var(--text-color);
    border-radius: 0px;
    width: 100%;
    background-color: transparent;
    color: var(--text-color);
}

textarea {
    resize: none;
    min-height: 35vh;
}
/* edited because post-images were stretching across entire page, may break other image types */
img, figure {
    /* width: 100%;
    height: 100%;
    object-fit: cover; */
    transition: none;
}

/* Disable image zoom/scale hover effects globally on linked media. */
a:hover img,
a:hover figure,
.card-image-link:hover figure,
.card-image-link:hover img,
.card-image-link:hover .placeholder-svg,
.related-card:hover figure,
.related-card:hover img,
.related-card:hover .placeholder-svg,
.latest-post-image-link:hover figure,
.latest-post-image-link:hover img,
.latest-post-image-link:hover .placeholder-svg {
    scale: 1 !important;
    transform: none !important;
}
/* Thick text styling for ==text== markers */
a.thick {
    text-decoration: underline;
    text-decoration-thickness: 3pt;
    text-decoration-color: #DECE7D;
    text-underline-offset: 2px;
}

/* Font consistency fixes for punctuation and symbols */
/* Ensure question marks and dollar signs inherit the same font as surrounding text */
.post-content *:not(pre):not(code) {
    font-feature-settings: var(--font-features-global);
}

/* Force consistent font rendering for specific problematic characters */
.post-content *:not(pre):not(code)::before,
.post-content *:not(pre):not(code)::after {
    font-family: inherit;
}

/* Alternative approach: explicitly style problematic characters */
.post-content *:not(pre):not(code) {
    font-variant-numeric: oldstyle-nums;
    font-feature-settings: var(--font-features-global);
}

/* Contextual font feature classes */
/* Small-caps styling for spans inside paragraphs in article body */
/* Small-caps utility — exclude .info, footnotes, and var(--font3) contexts */
.article-body > p .small-caps:not(.info):not(.footnote-item) {
    font-variant-caps: small-caps;
    font-feature-settings: var(--font-features-global), var(--font-features-small-caps);
    /* Ensure lowercase letters are used so small-caps glyphs are triggered */
    text-transform: lowercase;
}


.em-wide {
    letter-spacing: 0.6em;
  }
/* .all-small-caps {
    font-feature-settings: var(--font-features-global), 'c2sc' 1, var(--font-features-small-caps);
} */

.superscript {
    font-feature-settings: var(--font-features-global), var(--font-features-superscript);
}

.subscript {
    font-feature-settings: var(--font-features-global), var(--font-features-subscript);
}

.fractions {
    font-feature-settings: var(--font-features-global), var(--font-features-fractions);
}

.stylistic {
    font-feature-settings: var(--font-features-global), var(--font-features-stylistic);
}

/* Automatic case feature when text-transform is applied */
[style*="text-transform: uppercase"],
[style*="text-transform:uppercase"],
.text-uppercase {
    font-feature-settings: var(--font-features-global), var(--font-features-case);
}

/* Disable ligatures when needed */
.no-ligatures {
    font-feature-settings: var(--font-features-global), 'liga' 0;
}


.site-main {
    padding-left: 72px;
}

.subscribe-alert {
    display: none;
    margin-top: calc(1vw * var(--scale));
}

.success-alert {
    color: var(--success-color);
}

.error-alert {
    color: var(--error-color);
}

.subscribe-with-alerts {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.subscribe-alerts {
    max-width: 600px;
}

.subscribe-wrapper {
    display: flex;
    width: 100%;
}

.subscribe-form.error .error-alert,
.subscribe-form.success .success-alert,
.subscribe-form.loading .loading-alert {
   display: block;
}

.subscribe-input {
    width: 350px;
    background-color: rgba(255, 255, 255, 0.7) !important;
}

input::placeholder, textarea::placeholder {
    color: var(--text-color);
    opacity: 0.4;
}

input:focus, textarea:focus {
    outline: none;
}

.hero {
    padding: calc(8.9vw * var(--scale)) 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero.has-cover {
    min-height: 45vh;
}

.hero-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.hero.has-cover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    z-index: 1;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
    padding: 0 calc(2.5vw * var(--scale));
}

.hero.has-cover .hero-content h1,
.hero.has-cover .hero-content p {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Ensure hero h1 uses bold weight */
.hero-content h1 {
    font-family: var(--edb);
    font-weight: 700;
    font-size: clamp(72px, 25vw, 120px);
    line-height: 90%;
    font-optical-sizing: auto;
}


.hero-description-wrapper {
    max-width: 640px;
    margin-top: calc(1.6vw * var(--scale));
    font-size: calc(1.25 * var(--fontSizeBlog));
}

.action-wrapper {
    margin-top: calc(2.9vw * var(--scale));
}

.notification {
    z-index: 9999;
    position: fixed;
    display: none;
    visibility: hidden;
    top: 0;
    left: calc(50% + 36px);
    transform: translateX(-50%);
    padding: calc(1.1vw * var(--scale)) calc(4.4vw * var(--scale));
    border: 1px solid var(--text-color);
    background-color: var(--background-color);
}

.notification-icon {
    width: calc(1.4vw * var(--scale));
    min-width: calc(1.4vw * var(--scale));
    height: calc(1.4vw * var(--scale));
    min-height: calc(1.4vw * var(--scale));
    margin-right: calc(0.6vw * var(--scale));
    display: flex;
    align-items: center;
    justify-content: center;
}

.global-notifications.subscribe-false .subscribe-false,
.global-notifications.signin-false .signin-false,
.global-notifications.subscribe-true .subscribe-true,
.global-notifications.signin-true .signin-true,
.global-notifications.stripe-success .stripe-success,
.global-notifications.signup-true .signup-true,
.global-notifications.signup-false .signup-false {
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: visible;
    animation-name: slide-in-down;
    animation-duration: 4s;
    animation-fill-mode: forwards;
} 

/* Hide default global notifications */
.gh-portal-notification-iframe {
    display: none;
}

.plus-button {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 41px;
    width: 41px;
    min-width: 41px;
    transition: transform var(--ease-transition);
}

.plus-button:hover .vertical-line, 
.plus-button:hover .horizontal-line{
    transform: rotateZ(90deg);
}

.vertical-line {
    position: absolute;
    width: 1px;
    height: 100%;
    background-color: var(--text-color);
    transition: transform var(--ease-transition);
}

.horizontal-line {
    position: absolute;
    height: 1px;
    width: 100%;
    background-color: var(--text-color);
    transition: transform var(--ease-transition);
}

.placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--placeholder-color);
}

.placeholder-svg {
    transition: scale 1s ease;
    width: calc(10vw * var(--scale));
    height: calc(10vw * var(--scale));
}

.light-button {
    background-color: var(--background-color);
    color: var(--text-color);
}

.unstyled-button {
    background-color: transparent;
    border: none;
    color: var(--text-color);
    padding: 0;
}

.underlined {
    text-decoration: underline;
    text-decoration-thickness: 2px;
}

custom-pagination nav{
    display: flex;
    justify-content: center;
    margin: calc(4vw * var(--scale)) auto;
}

.extra-top-margin {
    margin-top: calc(2.8vw * var(--scale));
}

.clipboard-alert {
    display: none;
    position: absolute;
    left: 0;
    bottom: calc(-2.5vw * var(--scale));
}

article {
    overflow-x: hidden;
}

.post-content > * {
    margin-bottom: calc(1.7vw * var(--scale));
}

blockquote,
blockquote .p {
    margin-left: 1.25rem;
    padding-left: 1.25rem;
    padding-top: calc(.25vw * var(--scale));
    padding-bottom: calc(.25vw * var(--scale));
    margin-top: calc(.75vw * var(--scale));
    margin-bottom: calc(2.2vw * var(--scale));
    font-family: var(--etl) !important; /* Epicene Text Light */
    line-height: 125% !important;
    font-size: 1em;/*calc(1em - 2px); $text-md equivalent */
    border-left: 4px solid var(--swiss-coffee);
    font-weight: 300;
    font-optical-sizing: auto;


    font-feature-settings: var(--font-features-global);
}
blockquote > p {
    font-family: var(--etl) !important;
}
/* Nested blockquote support for indented content */
blockquote.indent1 {
    margin-left: calc(4.4vw * var(--scale)); /* Double the base margin */
    padding-left: calc(1.1vw * var(--scale)); /* Half the base padding */
    border-left: none; /* Remove border for indented content - only outer blockquote should have border */
}

blockquote.indent2 {
    margin-left: calc(6.6vw * var(--scale)); /* Triple the base margin */
    padding-left: calc(1.1vw * var(--scale)); /* Half the base padding */
    border-left: none; /* Remove border for indented content - only outer blockquote should have border */
}

blockquote.indent3 {
    margin-left: calc(8.8vw * var(--scale)); /* Quadruple the base margin */
    padding-left: calc(1.1vw * var(--scale)); /* Half the base padding */
    border-left: none; /* Remove border for indented content - only outer blockquote should have border */
}

/* For mobile - scale down the indentation */
@media (max-width: 768px) {
    blockquote.indent1 {
        margin-left: 2rem;
        padding-left: 0.5rem;
        border-left: none;
    }

    blockquote.indent2 {
        margin-left: 3rem;
        padding-left: 0.5rem;
        border-left: none;
    }

    blockquote.indent3 {
        margin-left: 4rem;
        padding-left: 0.5rem;
        border-left: none;
    }
}

/* Citation-specific styles */
blockquote.citation footer {
    margin-top: .5em;
    padding: 0 0 0 4px;
    font-family: var(--font3);
    font-weight: 350;
    font-size: 18pt;
    text-align: left;
    font-style: italic;
}

blockquote.citation footer:before {
    content: '— ';
}

ul, ol {
    padding-left: 36px;
}

ul li, ol li{
    margin-bottom: calc(1.4vw * var(--scale));
    /* font-size removed - li already has proper size from p, li rule */
    font-family: var(--font2);
}

p img {
    width: auto;
    max-width: 100%;
}

hr {
    width: 100%;
    height: 1px;
    background-color: var(--text-color);
    border: 0;
    margin: 0;
    padding: 0;
}

.sixty-opac {
    opacity: 0.6;
}

.under-button-wrapper {
    margin-top: calc(0.8vw * var(--scale));
}

.bold-link {
    cursor: pointer;
    font-weight: 700;
    text-decoration: none;
}

.bold-link:hover {
    text-decoration: underline;
}

.author-grid {
    margin-bottom: calc(8vw * var(--scale));
}

.unstyled-list {
    padding-left: 0;
    list-style: none;
}

.fixed-width-button {
    width: 174px;
}

.hidden {
    display: none;
    height: 0px;
    width: 0px;;
}

table {
    font-family: var(--font2);
    border-spacing: 0px;
    width: 100%;
    align-self: center;
    margin-bottom: 1rem;
}

thead {
    background-color: transparent;
    color: var(--text-color);
}

th {
    text-align: left;
    padding: calc(1vw * var(--scale)) calc(1vw * var(--scale));
    font-family: var(--font3); /* CommitMono */
    font-weight: 500;
    font-size: 0.9em; /* 90% of body font-size */
}

td {
    border-bottom: 1px solid var(--text-color);
    padding: calc(1vw * var(--scale)) calc(1vw * var(--scale));
    text-size-adjust: calc(1rem * var(--scale));
    line-height: 125%;
    font-size: 20px; /* Explicit size to prevent inheritance issues */
}

.full-screen {
    min-height: calc(100vh - 55px);
}

@keyframes slide-in-down {
    0% {
      transform: translateY(-100%) translateX(-50%);
    }
    12% {
      transform: translateY(70%) translateX(-50%);
    }
    88% {
      transform: translateY(70%) translateX(-50%);
    }
    100% {
      transform: translateY(-100%) translateX(-50%);
    }
  }

/* Styles for large desktop */
@media (min-width: 1439px) {
/*     [asterisk] {
        font-size: calc(1.38vw * var(--scale));
    } */
    blockquote {
        font-size: calc(1em * var(--scale) - 2px);
    }

    button, .kg-btn, .kg-header-card-button, .button {
        font-size: calc(1.38vw * var(--scale));
        padding: calc(1.1vw * var(--scale)) calc(2.9vw * var(--scale));
    }
    
    input, textarea {
        font-size: calc(1.38vw * var(--scale));
        padding: calc(1vw * var(--scale)) calc(1.5vw * var(--scale));       
    }

    small {
        font-size: calc(1.1vw * var(--scale));
    }

    .medium-text {
        font-size: calc(1.66vw * var(--scale));
    }

    .site-main {
        padding-left: calc(5vw  * var(--scale));
    }

    .subscribe-input {
        width: calc(30vw * var(--scale));
    }

    .hero-description-wrapper {
        max-width: calc(44vw * var(--scale));
    }

    .subscribe-alerts {
        max-width: calc(41vw * var(--scale));
    }

    .plus-button {
        height: calc(2.8vw * var(--scale));
        width: calc(2.8vw * var(--scale));
        min-height: calc(2.8vw * var(--scale));
        min-width: calc(2.8vw * var(--scale));
    }

    .underlined {
        text-decoration-thickness: calc(0.14vw * var(--scale));
    }

    ul, ol {
        padding-left: calc(2vw * var(--scale));
    }

    .fixed-width-button {
        width: calc(12vw * var(--scale));
    }

    .full-screen {
        min-height: calc(100vh - (3.8vw * var(--scale)));
    }

    .notification {
        left: calc(50% + (2.5vw * var(--scale)));
    }
}

/* Styles for tablet */
@media (max-width: 768px) {

    h1 {
        font-size: calc(15vw * var(--heading-one-scale));
        padding-top: calc(15vw * var(--heading-one-scale) * 1.25);
    }

    h2 {
        font-size: calc(48px * var(--scale));
        padding-top: calc(48px * var(--scale) * 1.25);
    }

    h3 {
        font-size: calc(36px * var(--scale));
        padding-top: calc(36px * var(--scale) * 1.25);
    }

    h4 {
        font-size: calc(30px * var(--scale));
        padding-top: calc(30px * var(--scale) * 1.25);
    }

    h5 {
        font-size: calc(24px * var(--scale));
        padding-top: calc(24px * var(--scale) * 1.25);
    }

    h6 {
        font-size: calc(20px * var(--scale));
        padding-top: calc(20px * var(--scale) * 1.25);
    }

    .big-text {
        font-size: calc(24px * var(--scale));
    }

    p, li, input, button, .kg-btn, .kg-header-card-button, .button, textarea {
        font-size: calc(18px * var(--scale)); /* Changed from 16px to 18px for better mobile/tablet readability */
    }

    small {
        font-size: calc(14px * var(--scale));
    }

    figcaption {
        margin-top: calc(6px * var(--scale));
    }

    .medium-text {
        font-size: calc(18px * var(--scale)); /* Updated from fixed 16px to scale with 18px base */
    }

    .site-main {
        padding-left: 0px;
    }

    .hero {
        padding: 124px 30px;
    }

    .hero.has-cover {
        min-height: 50vh;
    }

    .hero-description-wrapper {
        max-width: 80%;
        margin-top: 18px;
    }

    .action-wrapper {
        margin-top: 26px;
        width: 80%;
    }

    .subscribe-input {
        width: 100%;
    }

    .subscribe-alert {
        margin-top: 12px;
    }

    .notification {
        padding: 12px 44px;
        max-width: 400px;
        width: 100%;
        left: 50%;
    }

    .notification-icon {
        width: 22px;
        min-width: 22px;
        height: 22px;
        min-height: 22px;
        margin-right: 6px;
    }

    .plus-button {
        height: 35px;
        width: 35px;
        min-height: 35px;
        min-width: 35px;
    }

    .plus-button:hover .vertical-line, 
    .plus-button:hover .horizontal-line{
        transform: rotateZ(0deg);
    }

    .placeholder-svg {
        width: 140px;
        height: 140px;
    }

    custom-pagination nav{
        margin: 45px auto;
    }

    custom-pagination nav .button{
        padding-left: 32px;
        padding-right: 32px;
    }

    .extra-top-margin {
        margin-top: 26px;
    }

    blockquote {
        margin-left: 1.25rem;
        padding-left: 1.25rem;
        padding-top: 12px;
        padding-bottom: 12px;
        font-size: calc(16px * var(--scale));
    }

    ul, ol {
        padding-left: 30px;
    }

    ul li, ol li {
        margin-bottom: 14px;
        /* font-size removed - li already has proper size from p, li rule at line 1388 */
    }

    .post-content > * {
        margin-bottom: 16px;
    }

    .under-button-wrapper {
        margin-top: 8px;
    }

    .author-grid {
        margin-bottom: 90px;
    }

    
    th {
        padding: 14px;
        font-family: var(--font3); /* CommitMono */
        font-weight: 500;
        font-size: calc(18px * var(--scale) * 0.9); /* 90% of mobile body font-size */
    }

    td {
        font-size: calc(18px * var(--scale)); /* Match mobile body font-size */
        padding: 14px;
    }

    textarea {
        min-height: 250px;
    }

    .full-screen {
        min-height: calc(100vh - 50px);
    }

    .clipboard-alert {
        bottom: -25px;
    }
}

/* Styles for mobile */
/* @media (max-width: 479px) {

    h2 {
        font-size: 32px;
    }

    h3 {
        font-size: 28px;
    }

    h4 {
        font-size: 24px;
    }

    h5 {
        font-size: 20px;
    }

    h6 {
        font-size: 18px;
    }

    .big-text {
        font-size: 22px;
    }

    p, input, button, .kg-btn, .kg-header-card-button, .button, textarea {
        font-size: 16px;
    }

    small, figcaption {
        font-size: 13px;
    }

    figcaption {
        margin-top: 4px;
    }

    .medium-text {
        font-size: 18px;
    }

    input, textarea {
        padding: 12px 10px;
    }

    button, .kg-btn, .button, .kg-header-card-button {
        padding: 12px 18px;
    }

    .hero {
        padding: 90px 18px;
    }

    .hero.has-cover {
        min-height: 40vh;
    }

    .hero-description-wrapper {
        max-width: 100%;
        margin-top: 14px;
    }

    .action-wrapper {
        margin-top: 20px;
        width: 100%;
    }

    .notification {
        max-width: 90vw;
        width: 100%;
        padding: 10px 18px;
    }

    .notification-icon {
        width: 18px;
        min-width: 18px;
        height: 18px;
        min-height: 18px;
        margin-right: 6px;
    }

    .plus-button {
        height: 31px;
        width: 31px;
        min-height: 31px;
        min-width: 31px;
    }

    .placeholder-svg {
        width: 100px;
        height: 100px;
    }

    .underlined {
        text-decoration-thickness: 1px;
    }

    .extra-top-margin {
        margin-top: 20px;
    }

    blockquote {
        margin-left: 1.25rem;
        padding-left: 1.25rem;
        padding-top: 10px;
        padding-bottom: 10px;
        font-size: 1em;
    }

    ul, ol {
        margin-left: calc(2.2vw * var(--scale));
        padding-left: 26px;
    }

    ul li, ol li {
        margin-bottom: 12px;
        font-size: 16px;
    }

    .post-content > * {
        margin-bottom: 14px;
    }

    .under-button-wrapper {
        margin-top: 6px;
    }

    .wide-button {
        padding-left: 32px;
        padding-right: 32px;
    }

    .fixed-width-button {
        width: 136px;
    }

    th {
        padding: 12px;
        font-size: 16px;
    }
    
    td {
        font-size: 14px;
        padding: 12px;
    }
} */
/*
Test comment for deployment */
/* Another test comment */
/* Testing activation fix */

/* ========================================
   Mobile Typography Normalization Layer
   Applies last to avoid conflicting overrides
   ======================================== */
@media (max-width: 768px) {
    body,
    p,
    li,
    input,
    button,
    .kg-btn,
    .kg-header-card-button,
    .button,
    textarea {
        font-size: 17px !important;
        line-height: 1.48;
    }

    h1 {
        font-size: clamp(40px, 10.5vw, 54px) !important;
        line-height: 0.96;
    }

    h2 {
        font-size: clamp(34px, 8.9vw, 46px) !important;
        line-height: 1.05;
    }

    h3 {
        font-size: clamp(28px, 7.2vw, 38px) !important;
        line-height: 1.08;
    }

    h4 {
        font-size: clamp(24px, 6.1vw, 32px) !important;
        line-height: 1.12;
    }

    h5 {
        font-size: clamp(20px, 5.1vw, 27px) !important;
        line-height: 1.18;
    }

    h6 {
        font-size: clamp(18px, 4.5vw, 24px) !important;
        line-height: 1.24;
    }

    small,
    figcaption {
        font-size: 14px !important;
    }
}

@media (max-width: 479px) {
    body,
    p,
    li,
    input,
    button,
    .kg-btn,
    .kg-header-card-button,
    .button,
    textarea {
        font-size: 16px !important;
        line-height: 1.5;
    }

    h1 {
        font-size: clamp(34px, 11vw, 46px) !important;
    }

    h2 {
        font-size: clamp(30px, 9.4vw, 40px) !important;
    }

    h3 {
        font-size: clamp(26px, 8vw, 34px) !important;
    }

    h4 {
        font-size: clamp(22px, 6.9vw, 30px) !important;
    }

    h5 {
        font-size: clamp(19px, 5.7vw, 25px) !important;
    }

    h6 {
        font-size: clamp(17px, 5vw, 22px) !important;
    }

    small,
    figcaption {
        font-size: 13px !important;
    }
}