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

/* --- Faces: Newsreader 500–700 (variable, no opsz axis: 58 KB instead of
       132) for headlines; Karla 400–700 (variable) + italic 400 for reading
       text and UI. latin + latin-ext, Google Fonts css2 (Chrome UA). ------- */
@font-face {
    font-family: 'Karla';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/karla-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: 'Karla';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/karla-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: 'Karla';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/karla-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: 'Karla';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/karla-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: 'Newsreader';
    font-style: normal;
    font-weight: 500 700;
    font-display: swap;
    src: url('../fonts/newsreader-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: 'Newsreader';
    font-style: normal;
    font-weight: 500 700;
    font-display: swap;
    src: url('../fonts/newsreader-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 "Centerpiece", 2026-11-10): a bright morning paper.
       White ground, sunlight panels, ONE ocean-blue ink for everything
       interactive; sun gold only as fills (rules, discs).
       WCAG: #0B5C8A on #FFFFFF 7.2 · on #FFF7DF 6.7 · #FFFFFF on #0B5C8A 7.2 ·
       #51606E on #FFFFFF 6.5 · on #FFF7DF 6.0 · #FFFFFF on #10243A 15.6 ·
       #F8CB5C on #10243A 10.2 · #C3CFDA on #10243A 9.8. Gold #F5B82E is never text. */
    --pd-ground:      #FFFFFF;
    --pd-white:       #FFFFFF;
    --pd-deep:        #EEF1F3;   /* image placeholders */
    --pd-paper:       #FFF7DF;   /* sunlight panels: archive head, TOC, newsletter */
    --pd-warm:        #FFF7DF;
    --pd-rule:        #E4E7EA;
    --pd-ink:         #17222D;   /* headlines, text on white */
    --pd-text:        #17222D;
    --pd-meta:        #51606E;
    --pd-brand:       #0B5C8A;   /* ocean blue: links, buttons, kickers */
    --pd-brand-dark:  #084768;
    --pd-brand-tint:  #EAF3F8;
    --pd-dot:         #F5B82E;   /* sun gold: decoration only */
    --pd-navy:        #10243A;   /* footer */
    --pd-on-ink:      #FFFFFF;
    --pd-on-ink-meta: #C3CFDA;
    --pd-on-ink-accent: #F8CB5C;
    --pd-shadow:      none;

    /* --- Type ---------------------------------------------------------------- */
    --pd-display: Newsreader, 'Iowan Old Style', Georgia, 'Times New Roman', serif;
    --pd-body:    Karla, 'Helvetica Neue', Arial, sans-serif;
    --pd-ui:      Karla, 'Helvetica Neue', Arial, sans-serif;
    --pd-size-body: clamp(1.125rem, 1.06rem + 0.3vw, 1.21875rem);   /* 18–19.5px (Karla runs small) */
    --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:    4px;
    --pd-radius-sm: 4px;
    --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: #0B5C8A;
    --color-primary-hover: #084768;
    --color-heading: #17222D;
    --color-accent: #0B5C8A;
    --color-text-dark: #17222D;
    --color-text-medium: #51606E;
    --color-text-light: #51606E;
    --color-background: #FFFFFF;
    --color-background-light: #FFFFFF;
    --color-background-tint: #EEF1F3;
    --color-border: #E4E7EA;
    --color-border-soft: #E4E7EA;
    --color-footer-bg: #10243A;
    --color-error: #B42318;
    --color-warning: #8A5A00;
    --font-family-display: Newsreader, 'Iowan Old Style', Georgia, 'Times New Roman', serif;
    --font-family-body: Karla, 'Helvetica Neue', Arial, sans-serif;
    --font-family: Karla, 'Helvetica Neue', Arial, sans-serif;
    --radius-sm: 4px;
    --radius-md: 4px;
    --radius-lg: 4px;
    --border-radius: 4px;
    --border-radius-lg: 4px;
    --content-max: 780px;
    --page-max: 1280px;
    --color-border-light: #E4E7EA;
    --color-footer-border: #E4E7EA;
    --color-footer-text: #FFFFFF;
    --color-copyright: #51606E;
    --color-facebook: #0B5C8A; --color-facebook-hover: #084768;
    --color-twitter: #0B5C8A; --color-twitter-hover: #084768;
    --color-pinterest: #0B5C8A; --color-pinterest-hover: #084768;
    --color-linkedin: #0B5C8A; --color-linkedin-hover: #084768;
    --color-error-bg: #F9E3E0; --color-error-text: #8A1C12;
    --color-warning-bg: #F6EBD2; --color-warning-text: #6B4600;
    --font-primary: Karla, 'Helvetica Neue', Arial, sans-serif;
    --font-heading: Newsreader, 'Iowan Old Style', Georgia, 'Times New Roman', serif;
}
