/* =========================================================
   FONT SCHEME: Swear Display (headings) + Inter Tight (body)
                + Space Mono (ceny / mono prvky)
   Umisteni: media/templates/site/cassiopeia_trs/css/global/
   Vybira se v Nastaveni sablony -> Fonty

   Zdroje:
     Swear Display .. Adobe Typekit (web, kit dai8nzd)
     Inter Tight .... lokalne, ../../fonts/custom/*.woff2
     Space Mono ..... lokalne, ../../fonts/custom/*.woff2
   ========================================================= */

/* --- Swear Display – ONLINE (Adobe Typekit, kit dai8nzd) ---
   Pozor: Adobe nazyva rodinu "swear-display" (male pismeno + pomlcka).
   Kit deklaruje vahy 300–800 vc. kurziv + variantu "swear-display-cilati".
   Prohlizec stahne jen ty rezy, ktere se realne pouziji. */
@import url("https://use.typekit.net/dai8nzd.css");


/* =========================
   Inter Tight (body) – LOCAL, WOFF2
   ========================= */

@font-face {
    font-family: "Inter Tight";
    src: url("../../fonts/custom/InterTight-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Inter Tight";
    src: url("../../fonts/custom/InterTight-Medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Inter Tight";
    src: url("../../fonts/custom/InterTight-SemiBold.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Inter Tight";
    src: url("../../fonts/custom/InterTight-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}


/* =========================
   Space Mono (ceny / mono) – LOCAL, WOFF2
   ========================= */

@font-face {
    font-family: "Space Mono";
    src: url("../../fonts/custom/SpaceMono-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Space Mono";
    src: url("../../fonts/custom/SpaceMono-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}


/* =========================================================
   APPLICATION (Cassiopeia variables) – ZDROJ PRAVDY
   typography.css tyto promenne uz NEprepisuje, jen zrcadli.
   ========================================================= */

:root {
    --cassiopeia-font-family-body: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --cassiopeia-font-family-headings: "swear-display", Georgia, "Times New Roman", serif;

    /* mono stack – pouziva user.css (ceny) i utilita .ff-mono */
    --ff-mono: "Space Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* Fallback jistota */
body {
    font-family: var(--cassiopeia-font-family-body);
}

h1,h2,h3,h4,h5,h6,
.page-header h1 {
    font-family: var(--cassiopeia-font-family-headings);
}

/* Zabranit syntetickemu fake bold/italic – Swear ma realne rezy */
h1,h2,h3,h4,h5,h6,
.typo-h1,.typo-h12,.typo-h2,.typo-h3,.typo-h4 {
    font-synthesis: none;
}

/* Utility */
.ff-mono {
    font-family: var(--ff-mono) !important;
}

/* Volitelne: ozdobna swashova varianta z kitu (nepouziva se automaticky)
   Pouziti v HTML: <span class="ff-swear-cilati">Text</span> */
.ff-swear-cilati {
    font-family: "swear-display-cilati", var(--cassiopeia-font-family-headings) !important;
}
