/* Plus Jakarta Sans is distributed under the SIL Open Font License.
   The accompanying licence is in fonts/PlusJakartaSans-OFL.txt. */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: italic;
  font-weight: 400 800;
  font-display: swap;
  src: url('/static/fonts/plus-jakarta-sans-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;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/static/fonts/plus-jakarta-sans-latin-normal.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;
}

/* The product uses one self-hosted typeface so every screen matches the
   reference UI without depending on a font CDN. */
@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 200 1000;
    font-display: swap;
    src: url('/static/fonts/nunito-latin-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Baloo 2';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('/static/fonts/baloo-2-latin-normal.woff2') format('woff2');
}

/* Inter Tight is distributed under the SIL Open Font License.
   The accompanying licence is in fonts/InterTight-OFL.txt.

   Self-hosted like the rest, so the no-font-CDN rule above still holds. This
   one is deliberately narrow in scope: it dresses the marketing hero slogan
   and nothing else, so it is exposed as its own token rather than folded into
   --font-display. A @font-face costs nothing until a rule references the
   family, so every page that does not use --font-slogan never fetches it. */
@font-face {
    font-family: 'Inter Tight';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/static/fonts/inter-tight-latin-wght-normal.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;
}

/* This shared contract takes precedence over older page-local token copies. */
html:root {
    --font-ui: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: var(--font-ui);
    --font-display: var(--font-ui);
    /* Falls back to the display face, so if the woff2 ever fails to load the
       slogan renders in Plus Jakarta Sans rather than a system default. */
    --font-slogan: 'Inter Tight', var(--font-display);
}

body {
    font-family: var(--font-ui);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

:where(h1, h2, h3) {
    font-family: var(--font-display);
}
