/*
 * Self-hosted Google Fonts (Poppins + Rubik) and shared typography tokens.
 *
 * Strictly two font families site-wide:
 *   - Poppins (--font-display): headings, titles, buttons and large display text
 *   - Rubik   (--font-body):    paragraphs, links, navigation, labels and small UI text
 *
 * Served from this origin instead of fonts.googleapis.com so Content-Security-Policy
 * stays locked to font-src 'self', zero third-party connections delay first paint,
 * files cache immutably via ?v=<hash>, and visitor IPs are never shared externally.
 * Poppins and Rubik: SIL Open Font License 1.1 (OFL.txt in assets/fonts).
 */

/* ---------- Poppins (headings & display: 500, 600, 700, 800) ---------- */
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url(../fonts/poppins-500-latin-ext.woff2?v=af5fda16a1) 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: 'Poppins';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url(../fonts/poppins-500-latin.woff2?v=cd36de204a) 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: 'Poppins';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url(../fonts/poppins-600-latin-ext.woff2?v=bb1f2d582e) 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: 'Poppins';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url(../fonts/poppins-600-latin.woff2?v=f4e80d9dfd) 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: 'Poppins';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(../fonts/poppins-700-latin-ext.woff2?v=ccfd87f69e) 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: 'Poppins';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(../fonts/poppins-700-latin.woff2?v=9338e65fc0) 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: 'Poppins';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url(../fonts/poppins-800-latin-ext.woff2?v=a72eccfa6c) 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: 'Poppins';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url(../fonts/poppins-800-latin.woff2?v=60bf0aba65) 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;
}

/* ---------- Rubik (body, links & smaller UI text: variable 400..700) ---------- */
@font-face {
    font-family: 'Rubik';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url(../fonts/rubik-latin-ext.woff2?v=09472f217a) 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: 'Rubik';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url(../fonts/rubik-latin.woff2?v=691cd1d9b4) 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;
}

/* ---------- Shared reusable typography tokens (public + admin) ---------- */
:root {
    --font-display: "Poppins", system-ui, -apple-system, sans-serif;
    --font-body:    "Rubik", system-ui, -apple-system, sans-serif;
    /* Two-font rule: technical/meta text reuses Rubik (with tabular numerals) rather than a 3rd family. */
    --font-mono:    var(--font-body);

    /* Responsive type scale hitting exact desktop targets: H1 62px, H2 48px, H3 40px, H4 32px, H5 24px, p 20px, a 16px */
    --text-h1:   clamp(2.25rem, 5vw, 62px);
    --text-h2:   clamp(1.875rem, 4vw, 48px);
    --text-h3:   clamp(1.5rem, 3.3vw, 40px);
    --text-h4:   clamp(1.25rem, 2.6vw, 32px);
    --text-h5:   clamp(1.125rem, 2vw, 24px);
    --text-p:    clamp(1.0625rem, 1.7vw, 20px);
    --text-link: 16px;

    /* Heading line-height is always < 1.5 */
    --lh-h1: 1.08;
    --lh-h2: 1.14;
    --lh-h3: 1.2;
    --lh-h4: 1.25;
    --lh-h5: 1.3;
    --lh-body: 1.6;

    /* Tight negative px tracking on headings for readability */
    --ls-h1: -1.5px;
    --ls-h2: -1px;
    --ls-h3: -0.75px;
    --ls-h4: -0.5px;
    --ls-h5: -0.25px;
}
