/* ============================================================================
   Savvy Senior Life — tokens + self-hosted faces
   (ssl-theme 1.0.x, Stitch direction "C · The Toolkit", picked 2026-11-10)
   Loaded first; main.css reads the --color-* / --font-size-* bridge below,
   ssl.css reads the --pd-* tokens (names kept from the psd fork).
   ========================================================================= */

/* --- Faces: Vollkorn 600–700 (variable) for headlines; Libre Franklin
       400–700 (variable) + italic for reading text and UI.
       latin + latin-ext, Google Fonts css2 (Chrome UA), 2026-11-10. ------- */
@font-face {
    font-family: 'Libre Franklin';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/libre-franklin-italic-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Libre Franklin';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/libre-franklin-italic-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Libre Franklin';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/libre-franklin-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Libre Franklin';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/libre-franklin-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Vollkorn';
    font-style: normal;
    font-weight: 600 700;
    font-display: swap;
    src: url('../fonts/vollkorn-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Vollkorn';
    font-style: normal;
    font-weight: 600 700;
    font-display: swap;
    src: url('../fonts/vollkorn-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    color-scheme: light;
    /* --- Palette (Stitch "The Toolkit", 2026-11-10): from the logo — blue
       figure, orange bulb, teal leaf. White ground, pale blue panels, ONE blue
       ink for everything interactive; the logo orange only as fills.
       WCAG: #1F5A99 on #FFFFFF 7.0 · on #EEF4FB 6.4 · #FFFFFF on #1F5A99 7.0 ·
       #4F5B6B on #FFFFFF 6.6 · #FFFFFF on #14304F 13.0 · #FFC27A on #14304F 8.8 ·
       #C5D2E2 on #14304F 8.9 · #1C2430 on #FFF1DD 14.5. Orange #E8890F is never text. */
    --pd-ground:      #FFFFFF;
    --pd-white:       #FFFFFF;
    --pd-deep:        #EEF2F7;   /* image placeholders */
    --pd-paper:       #EEF4FB;   /* pale blue panels: archive head, TOC, strip */
    --pd-warm:        #FFF1DD;   /* orange tint: newsletter tile + card */
    --pd-rule:        #DCE3EC;
    --pd-ink:         #1C2430;   /* headlines, text on white */
    --pd-text:        #1C2430;
    --pd-meta:        #4F5B6B;
    --pd-brand:       #1F5A99;   /* logo blue: links, buttons, kickers */
    --pd-brand-dark:  #17467A;
    --pd-brand-tint:  #EEF4FB;
    --pd-dot:         #E8890F;   /* the logo's orange: decoration only */
    --pd-navy:        #14304F;   /* footer */
    --pd-on-ink:      #FFFFFF;
    --pd-on-ink-meta: #C5D2E2;
    --pd-on-ink-accent: #FFC27A;
    --pd-shadow:      0 1px 2px rgba(20, 48, 79, 0.06), 0 8px 24px -12px rgba(20, 48, 79, 0.18);

    /* --- Type ---------------------------------------------------------------- */
    --pd-display: Vollkorn, 'Iowan Old Style', Georgia, 'Times New Roman', serif;
    --pd-body:    'Libre Franklin', 'Helvetica Neue', Arial, sans-serif;
    --pd-ui:      'Libre Franklin', 'Helvetica Neue', Arial, sans-serif;
    --pd-size-body: clamp(1.0938rem, 1.04rem + 0.3vw, 1.1875rem);   /* 17.5–19px */
    --pd-lh-body:   1.7;
    --pd-lh-head:   1.12;
    --pd-title: clamp(2.125rem, 1.6rem + 2vw, 2.875rem);   /* article H1, capped 46px */
    --pd-h2:    clamp(1.625rem, 1.4rem + 0.9vw, 2rem);
    --pd-h3:    clamp(1.3125rem, 1.2rem + 0.5vw, 1.5rem);
    --pd-label: 0.8125rem;

    /* --- Shape & metrics ------------------------------------------------------ */
    --pd-radius:    16px;
    --pd-radius-sm: 10px;
    --pd-board:     1px;
    --pd-page-max:  1280px;
    --pd-sidebar:   304px;
    --pd-gutter:    clamp(1rem, 3vw, 2rem);

    /* --- Bridge to main.css (do not restyle main.css) ------------------------- */
    --font-size-body-min: 1.0625rem;
    --font-size-body-max: 1.1875rem;
    --font-size-body-fluid: calc(1.01rem + 0.3vw);
    --font-size-h1-min: 2.125rem;
    --font-size-h1-max: 2.75rem;
    --font-size-h1-fluid: calc(1.5rem + 2.2vw);
    --font-size-h2-min: 1.5rem;
    --font-size-h2-max: 1.875rem;
    --font-size-h2-fluid: calc(1.3rem + 0.8vw);
    --font-size-h3-min: 1.1875rem;
    --font-size-h3-max: 1.375rem;
    --font-size-h3-fluid: calc(1.1rem + 0.35vw);
    --font-size-h4-min: 1.0625rem;
    --font-size-h4-max: 1.1875rem;
    --font-size-h4-fluid: calc(1.02rem + 0.2vw);
    --font-size-h5-min: 1rem;
    --font-size-h5-max: 1.0625rem;
    --font-size-h5-fluid: calc(0.98rem + 0.15vw);
    --font-size-h6-min: 1rem;
    --font-size-h6-max: 1rem;
    --font-size-h6-fluid: 1rem;
    --line-height-body: 1.7;
    --line-height-heading: 1.12;
    --color-primary: #1F5A99;
    --color-primary-hover: #17467A;
    --color-heading: #1C2430;
    --color-accent: #1F5A99;
    --color-text-dark: #1C2430;
    --color-text-medium: #4F5B6B;
    --color-text-light: #4F5B6B;
    --color-background: #FFFFFF;
    --color-background-light: #FFFFFF;
    --color-background-tint: #EEF2F7;
    --color-border: #DCE3EC;
    --color-border-soft: #DCE3EC;
    --color-footer-bg: #14304F;
    --color-error: #B42318;
    --color-warning: #8A5A00;
    --font-family-display: Vollkorn, 'Iowan Old Style', Georgia, 'Times New Roman', serif;
    --font-family-body: 'Libre Franklin', 'Helvetica Neue', Arial, sans-serif;
    --font-family: 'Libre Franklin', 'Helvetica Neue', Arial, sans-serif;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 16px;
    --border-radius: 16px;
    --border-radius-lg: 16px;
    --content-max: 780px;
    --page-max: 1280px;
    --color-border-light: #DCE3EC;
    --color-footer-border: #DCE3EC;
    --color-footer-text: #FFFFFF;
    --color-copyright: #4F5B6B;
    --color-facebook: #1F5A99; --color-facebook-hover: #17467A;
    --color-twitter: #1F5A99; --color-twitter-hover: #17467A;
    --color-pinterest: #1F5A99; --color-pinterest-hover: #17467A;
    --color-linkedin: #1F5A99; --color-linkedin-hover: #17467A;
    --color-error-bg: #F9E3E0; --color-error-text: #8A1C12;
    --color-warning-bg: #F6EBD2; --color-warning-text: #6B4600;
    --font-primary: 'Libre Franklin', 'Helvetica Neue', Arial, sans-serif;
    --font-heading: Vollkorn, 'Iowan Old Style', Georgia, 'Times New Roman', serif;
}
