/* ============================================================================
   The Graceful Retirement — tokens + self-hosted faces (tgr-theme, 2026-11-10)
   Stitch direction B "Diptych" (project 14531053224566744212, design system
   assets/9440515458455868909): white ground, plum as the one hue, gold only
   as thin rules and the sun dot (never text), plum-black quote band + footer.
   Loads FIRST, before main.css and tgr.css.
   ========================================================================= */

/* --- Faces: Playfair Display (headlines, variable 400–700 + italic), Hanken
   Grotesk (text + UI, variable 400–700 + italic 400). latin + latin-ext each. */
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/playfair-display-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/playfair-display-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: 'Playfair Display';
    font-style: italic;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/playfair-display-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Playfair Display';
    font-style: italic;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/playfair-display-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: 'Hanken Grotesk';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/hanken-grotesk-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Hanken Grotesk';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/hanken-grotesk-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: 'Hanken Grotesk';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/hanken-grotesk-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Hanken Grotesk';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/hanken-grotesk-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;
}

:root {
    color-scheme: light;
    /* --- Palette (WCAG contrast, measured 2026-11-10) ------------------------
       plum #6B2F8A on white 8.75 · on tint #F7F2F9 7.9 · white on plum 8.75
       ink #241B2F on white 16.5 · meta #5E5566 on white 7.1
       footer/quote band #2A1633: white 16.7 · #D9C6E6 10.4 · gold #E9B949 9.1 (rules only)
       (Token names keep the fork's --mn-* prefix so the shared article/page
       rules carry over unchanged.) */
    --mn-paper:      #FFFFFF;   /* white page ground */
    --mn-sheet:      #FFFFFF;   /* cards */
    --mn-tint:       #F7F2F9;   /* lavender mist: callouts, current topic */
    --mn-rule:       #E8E1EC;   /* hairlines on cream/white */
    --mn-rule-soft:  #F2EEF4;
    --mn-ink:        #241B2F;
    --mn-meta:       #5E5566;
    --mn-head:       #241B2F;   /* headings: plum-ink */
    --mn-blue:       #6B2F8A;   /* the one hue (plum): links, buttons, labels */
    --mn-blue-dark:  #521F6C;
    --mn-on-blue:    #FFFFFF;
    --mn-gold:       #E9B949;   /* sunrise gold: rules + sun dot only */
    --mn-footer:     #2A1633;
    --mn-shadow:     0 1px 3px rgba(36, 27, 47, 0.06), 0 1px 2px rgba(36, 27, 47, 0.04);
    --mn-shadow-hover: 0 6px 18px rgba(36, 27, 47, 0.09);

    /* --- Type ---------------------------------------------------------------- */
    --mn-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --mn-text:    'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    --mn-size-body: clamp(1.125rem, 1.06rem + 0.3vw, 1.25rem);   /* 18–20px */
    --mn-lh-body:   1.75;
    --mn-lh-head:   1.12;
    --mn-title: clamp(2rem, 1.5rem + 1.6vw, 2.75rem);   /* article + archive H1, capped 44px */
    --mn-h2:    clamp(1.55rem, 1.3rem + 0.8vw, 2rem);
    --mn-h3:    clamp(1.25rem, 1.12rem + 0.45vw, 1.5rem);

    /* --- Shape & metrics ------------------------------------------------------ */
    --mn-radius:    4px;
    --mn-radius-sm: 4px;
    --mn-page-max:  1280px;
    --mn-sidebar:   304px;
    --mn-side-gap:  2rem;
    --mn-gutter:    clamp(1rem, 3vw, 2rem);
    --mn-tap:       48px;

    /* --- Bridge to main.css (do not restyle main.css) ------------------------- */
    --font-size-body-min: 1.125rem;
    --font-size-body-max: 1.25rem;
    --font-size-body-fluid: calc(1.06rem + 0.3vw);
    --font-size-h1-min: 2rem;
    --font-size-h1-max: 2.75rem;
    --font-size-h1-fluid: calc(1.5rem + 1.6vw);
    --font-size-h2-min: 1.5rem;
    --font-size-h2-max: 1.875rem;
    --font-size-h2-fluid: calc(1.3rem + 0.7vw);
    --font-size-h3-min: 1.2rem;
    --font-size-h3-max: 1.4rem;
    --font-size-h3-fluid: calc(1.1rem + 0.4vw);
    --font-size-h4-min: 1.125rem;
    --font-size-h4-max: 1.25rem;
    --font-size-h4-fluid: calc(1.05rem + 0.3vw);
    --font-size-h5-min: 1.0625rem;
    --font-size-h5-max: 1.125rem;
    --font-size-h5-fluid: calc(1rem + 0.2vw);
    --font-size-h6-min: 1rem;
    --font-size-h6-max: 1.0625rem;
    --font-size-h6-fluid: calc(0.96rem + 0.12vw);
    --line-height-body: 1.7;
    --line-height-heading: 1.15;
    --color-primary: #6B2F8A;
    --color-primary-hover: #521F6C;
    --color-heading: #241B2F;
    --color-accent: #6B2F8A;
    --color-text-dark: #241B2F;
    --color-text-medium: #5E5566;
    --color-text-light: #5E5566;
    --color-background: #FFFFFF;
    --color-background-light: #FFFFFF;
    --color-background-tint: #F7F2F9;
    --color-border: #E8E1EC;
    --color-border-soft: #F2EEF4;
    --color-footer-bg: #2A1633;
    --color-error: #B42318;
    --color-warning: #8A5A00;
    --font-family-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-family-body: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    --font-family: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    --radius-sm: 4px;
    --radius-md: 4px;
    --radius-lg: 4px;
    --border-radius: 4px;
    --border-radius-lg: 4px;
    --content-max: 820px;
    --page-max: 1320px;
    --color-border-light: #F2EEF4;
    --color-footer-border: #E8E1EC;
    --color-footer-text: #241B2F;
    --color-copyright: #5E5566;
    --color-facebook: #241B2F; --color-facebook-hover: #6B2F8A;
    --color-twitter: #241B2F; --color-twitter-hover: #6B2F8A;
    --color-pinterest: #241B2F; --color-pinterest-hover: #6B2F8A;
    --color-linkedin: #241B2F; --color-linkedin-hover: #6B2F8A;
    --color-error-bg: #F9E3E8; --color-error-text: #8A1C12;
    --color-warning-bg: #F6EBD2; --color-warning-text: #6B4600;
    --font-primary: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
}
