/*
 * BxM.pl — Open Sans, self-hosted.
 *
 * Source: the exact Google Fonts stylesheet requested by index-intro-2026.tpl
 * (Open Sans v44). The original API maps weights 300, 400, 600, 700 and 800
 * to these variable WOFF2 files. Keeping the original Latin / Latin-ext
 * unicode ranges avoids fetching a character set that is not used by the
 * Polish site, while retaining Polish diacritics.
 *
 * License: SIL Open Font License 1.1 — see ../fonts/open-sans-2026/OFL.txt.
 */

/* Shared type roles, taken from the existing contact copy and main actions.
 * Components change their layout on small screens, not their font family. */
:root {
  --bxm-font-family: "Open Sans", Arial, sans-serif;
  --bxm-type-body: clamp(16px, 1.1vw, 20px);
  --bxm-type-support: clamp(15px, .94vw, 18px);
  --bxm-type-action: clamp(16px, 1vw, 18px);
  --bxm-type-heading-small: clamp(20px, 1.4vw, 27px);
  /* Editorial roles extracted from the homepage's existing final scale.
   * Shared by the homepage and About, independently of legacy root sizes. */
  --bxm-type-display: clamp(58px, 5.85vw, 108px);
  --bxm-type-section: clamp(58px, 5.25vw, 104px);
  --bxm-type-lead: clamp(19px, 1.35vw, 23px);
  --bxm-type-copy: clamp(19px, 1.28vw, 23px);
  --bxm-type-feature: clamp(30px, 2.15vw, 39px);
  --bxm-type-card: clamp(23px, 1.62vw, 30px);
  --bxm-leading-display: .98;
  --bxm-leading-section: 1.02;
  --bxm-leading-feature: 1.18;
  --bxm-leading-card: 1.2;
  --bxm-leading-copy: 1.58;
  --bxm-tracking-display: -.066em;
}

@media (max-width: 720px) {
  :root {
    --bxm-type-display: clamp(42px, 11vw, 58px);
    --bxm-type-section: clamp(38px, 9.2vw, 54px);
    --bxm-type-lead: 17px;
    --bxm-type-copy: 17px;
    --bxm-type-feature: 23px;
    --bxm-type-card: 23px;
    --bxm-leading-display: 1.025;
    --bxm-leading-section: 1.075;
    --bxm-leading-feature: 1.25;
    --bxm-leading-card: 1.28;
    --bxm-tracking-display: -.05em;
  }
}

@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/open-sans-2026/open-sans-v44-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: "Open Sans";
  font-style: normal;
  font-weight: 300 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/open-sans-2026/open-sans-v44-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: "Open Sans";
  font-style: italic;
  font-weight: 300 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/open-sans-2026/open-sans-v44-latin-ext-italic.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: "Open Sans";
  font-style: italic;
  font-weight: 300 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/open-sans-2026/open-sans-v44-latin-italic.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;
}
