/* ============================================================================
   isConnect — font declarations. THE ONLY PLACE @font-face lives.

   Loaded twice, deliberately:
     • the published site  — <link> in _Layout.cshtml, BEFORE site.css
     • the TinyMCE iframe  — ContentCss("/css/fonts.css", "/css/editor.css")
   The editor renders in an iframe, a separate document that cannot inherit
   anything from site.css, so both surfaces must be handed the faces directly.
   Declaring them here (rather than in each file) is what stops that drift.

   Two families:
     • Stevie Sans — the brand typeface. Four cuts, no italics:
         Light 300 · Book 400 · Regular 550 · Medium 600
       (Figma "Style → Typography", node 279:7373.)
     • Barlow 700 — the uppercase eyebrow labels only ("LATEST UPDATES",
       "QUICK LINKS", the contents-rail heading). Unchanged by the rebrand.

   Paths are ROOT-relative on purpose: this file is served from /css/ on the
   site and pulled into /EPiServer/… contexts by the editor, so a relative
   ../fonts/ would resolve differently in the two.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@600;700&display=swap');

/* ---- Stevie Sans ----------------------------------------------------------
   LICENCE: Stevie Sans is a commercial typeface. The webfont files are not
   redistributable — like the Font Awesome Pro webfonts already in this repo,
   they are covered by the licence holder's project licence and are one of the
   reasons this repository must stay private. See CLAUDE.md.

   Until the licensed files are dropped into wwwroot/fonts/stevie-sans/, these
   rules simply fail to load and the stack in --font-body falls through to
   Segoe UI / system-ui. Sizes, weights and line-heights are already correct,
   so adding the files is the only remaining step — no CSS changes.

   Every weight is declared as a REAL face. Do not delete a rule and rely on
   the browser synthesising the weight: a missing 300 renders as 400, and the
   H1 dropping from Bold to Light is the most visible single change in this
   rebrand — it would look unapplied rather than broken.

   If the licence ships a VARIABLE font instead of four statics, replace all
   four blocks with one carrying `font-weight: 300 600` and the -variable file.
   -------------------------------------------------------------------------- */

@font-face {
    font-family: "Stevie Sans";
    font-style: normal;
    font-weight: 300;            /* Light — h1-xl / h1-lg / h1 */
    font-display: swap;
    src: url('/fonts/stevie-sans/stevie-sans-light.woff2') format('woff2'),
         url('/fonts/stevie-sans/stevie-sans-light.woff') format('woff');
}

@font-face {
    font-family: "Stevie Sans";
    font-style: normal;
    font-weight: 400;            /* Book — body, body-sm, card summaries */
    font-display: swap;
    src: url('/fonts/stevie-sans/stevie-sans-book.woff2') format('woff2'),
         url('/fonts/stevie-sans/stevie-sans-book.woff') format('woff');
}

@font-face {
    font-family: "Stevie Sans";
    font-style: normal;
    font-weight: 550;            /* Regular — buttons, pill links, search chips */
    font-display: swap;
    src: url('/fonts/stevie-sans/stevie-sans-regular.woff2') format('woff2'),
         url('/fonts/stevie-sans/stevie-sans-regular.woff') format('woff');
}

@font-face {
    font-family: "Stevie Sans";
    font-style: normal;
    font-weight: 600;            /* Medium — h2 / h3 / h4 / h5, nav links */
    font-display: swap;
    src: url('/fonts/stevie-sans/stevie-sans-medium.woff2') format('woff2'),
         url('/fonts/stevie-sans/stevie-sans-medium.woff') format('woff');
}
