/* ============================================================================
   Inspired Retirement USA — tokens + self-hosted faces
   "Postcards" (house-design.md override, direction A; Stitch project
   5138567533356002162, design system assets/1859632453826193172,
   2026-09-29). A travel journal: cream ground, postcards with a photo front and
   a ruled white back, perforated category stamps, a passport masthead.
   Audience 55–75: body 19px, line-height 1.7, 44px targets.
   Loads FIRST, before main.css and iru.css.
   ========================================================================= */

/* --- Faces ----------------------------------------------------------------
   Vollkorn (400–900 + italic 400–700) carries headlines, postcard titles and
   stamps; Rubik (300–700) is the reading, label and UI face.
   latin + latin-ext each. */
@font-face {
    font-family: 'Rubik';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('../fonts/rubik-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: 'Rubik';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('../fonts/rubik-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: italic;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/vollkorn-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: 'Vollkorn';
    font-style: italic;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/vollkorn-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: 'Vollkorn';
    font-style: normal;
    font-weight: 400 900;
    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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Vollkorn';
    font-style: normal;
    font-weight: 400 900;
    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;

    /* --- Postcards palette (contrast measured, WCAG) -------------------------
       ink   on cream 13.7 · white 14.6 · tag 12.4
       meta  on cream  6.4 · white  6.8 · tag  5.8
       teal  on cream  8.3 · white  8.9 · tag  7.5
       white on teal 8.9 · cream on teal 8.3 · sun on teal 5.0
       sunflower on cream is 1.7:1 — decoration only (stamps, rules), never text.
       (Token names kept from the fork: paper/mount/endpaper/crimson.) */
    --iru-paper:        #FBF7EE;   /* page ground — archival paper */
    --iru-mount:        #FFFFFF;   /* print mounts, reading mount, cards */
    --iru-endpaper:     #F3ECDC;   /* footer ground, archive head, TOC card */
    --iru-rule:         #E3DCCB;   /* hairlines on paper */
    --iru-rule-strong:  #C4BAA3;   /* form borders, hover borders */
    --iru-ink:          #1D2B2E;   /* headings, body */
    --iru-meta:         #4F5D60;   /* meta, labels, notes, pencil captions */
    --iru-crimson:      #0F5257;   /* links, tabs, the one button */
    --iru-crimson-dark: #0A3B3F;   /* hover */
    --iru-on-crimson:   #FFFFFF;   /* 8.9:1 on teal */
    --iru-corner:       #1D2B2E;
    --iru-sun:          #F2B92B;   /* stamps, perforations, rules — never text on light */
    --iru-teal:         #0F5257;
    --iru-teal-soft:    #CFE3E1;   /* 6.7:1 on teal: footer muted text */   /* photo corners */
    --iru-shadow:       0 1px 2px rgba(29,43,46,.10), 0 10px 22px -10px rgba(29,43,46,.30);
    --iru-primary:      #0F5257;
    --iru-primary-dark: #0A3B3F;

    /* --- Type ------------------------------------------------------------------ */
    --iru-display: 'Vollkorn', Georgia, 'Times New Roman', serif;
    --iru-text:    'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    --iru-ui:      'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --iru-nav:     'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    --iru-hand:    'Vollkorn', Georgia, serif;   /* italic one-liners on the postcard back */

    --iru-size-body:    clamp(1.125rem, 1.08rem + 0.2vw, 1.1875rem);   /* 18–19px */
    --iru-size-meta:    0.8125rem;
    --iru-lh-body:      1.7;
    --iru-lh-head:      1.12;
    --iru-track-meta:   0.08em;
    --iru-track-head:   -0.01em;

    --iru-h1:      clamp(2.125rem, 1.6rem + 1.9vw, 3.125rem);
    --iru-title:   clamp(2rem, 1.45rem + 1.8vw, 3rem);
    --iru-h2:      clamp(1.5rem, 1.25rem + 0.9vw, 1.9375rem);
    --iru-h3:      clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);

    /* --- Shape & metrics: square mounts, 2px corners on UI ------------------ */
    --iru-radius-sm: 3px;
    --iru-radius:    4px;
    --iru-radius-lg: 6px;
    --iru-page-max:  1200px;
    --iru-content-max: 760px;
    --iru-sidebar:   304px;
    --iru-side-gap:  2.5rem;
    --iru-gutter:    clamp(1rem, 3vw, 2.5rem);
    --iru-grid-gap:  clamp(1.25rem, 2.5vw, 2.25rem);
    --iru-tap:       44px;
    --iru-nav-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.05rem + 0.3vw);
    --font-size-h1-min: 2.125rem;
    --font-size-h1-max: 3.125rem;
    --font-size-h1-fluid: calc(1.6rem + 1.9vw);
    --font-size-h2-min: 1.5rem;
    --font-size-h2-max: 1.9375rem;
    --font-size-h2-fluid: calc(1.25rem + 0.9vw);
    --font-size-h3-min: 1.25rem;
    --font-size-h3-max: 1.5rem;
    --font-size-h3-fluid: calc(1.1rem + 0.5vw);
    --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.12;

    --color-primary: #0F5257;
    --color-primary-hover: #0A3B3F;
    --color-heading: #1D2B2E;
    --color-accent: #0F5257;
    --color-text-dark: #1D2B2E;
    --color-text-medium: #4F5D60;
    --color-text-light: #4F5D60;
    --color-background: #FBF7EE;
    --color-background-light: #FFFFFF;
    --color-background-tint: #F3ECDC;
    --color-border: #E3DCCB;
    --color-border-soft: #E3DCCB;
    --color-footer-bg: #F3ECDC;
    --color-error: #0F5257;
    --color-warning: #8A5A00;

    --font-family-display: 'Vollkorn', Georgia, serif;
    --font-family-body: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    --font-family: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    --font-heading: 'Vollkorn', Georgia, serif;

    --radius-sm: 3px;
    --radius-md: 4px;
    --radius-lg: 6px;
    --border-radius: 4px;
    --border-radius-lg: 6px;
    --content-max: 760px;
    --page-max: 1200px;
    --color-border-light: #E3DCCB;
    --color-footer-border: #E3DCCB;
    --color-footer-text: #1D2B2E;
    --color-copyright: #4F5D60;
    --color-facebook: #1D2B2E; --color-facebook-hover: #0F5257;
    --color-twitter: #1D2B2E; --color-twitter-hover: #0F5257;
    --color-pinterest: #1D2B2E; --color-pinterest-hover: #0F5257;
    --color-linkedin: #1D2B2E; --color-linkedin-hover: #0F5257;
    --color-error-bg: #F9E3E8; --color-error-text: #0A3B3F;
    --color-warning-bg: #F6EBD2; --color-warning-text: #6B4600;
}
