/*
 * marketing-fonts-bn.css - the Bangla alphabet for a page that is read in Bangla (W-04).
 *
 * Linked from views/layouts/marketing.php only when the visitor's language is `bn`, and loaded after
 * marketing-fonts.css, so it replaces that file's `--font` stack. An English reading of the same page
 * therefore downloads one Bengali face (the shell's two Bangla lines); a Bangla reading downloads the
 * alphabet it actually sets paragraphs in.
 *
 * The set is the whole practical Bengali alphabet - letters, signs, vowel signs, digits, the currency
 * sign - rather than the characters the current templates happen to contain, because a post or a page
 * added later must not change shape halfway through a sentence. The conjunct-forming features
 * (akhn, blwf, cjct, half, pstf, rkrf, rphf, vatu ...) are kept exactly as in the source file, so every
 * conjunct shapes identically to the full font the portals use.
 *
 * Regenerate (fontTools, once):
 *
 *   pyftsubset public/assets/fonts/noto-sans-bengali-400-bengali.woff2 --flavor=woff2 --no-hinting \
 *       --desubroutinize \
 *       --layout-features=akhn,blwf,blws,ccmp,cjct,fina,half,init,locl,mark,medl,mkmk,nukt,pres,pstf,psts,rkrf,rphf,abvs,blhs,dist,haln,rtla,valt \
 *       --unicodes=U+0980-099F,U+09BC-09D7,U+09DC-09E3,U+09E6-09FF,U+0964-0965,U+200C-200D,U+20B9,U+25CC \
 *       --output-file=public/assets/fonts/noto-sans-bengali-400-site.woff2
 *
 * The 700 face is the same command against noto-sans-bengali-700-bengali.woff2. The source files stay in
 * place: the portals keep using them through fonts.css, unchanged.
 */

@font-face {
    font-family: 'Noto Sans Bengali Site';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/assets/fonts/noto-sans-bengali-400-site.woff2') format('woff2');
}

@font-face {
    font-family: 'Noto Sans Bengali Site';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/assets/fonts/noto-sans-bengali-700-site.woff2') format('woff2');
}

@font-face {
    font-family: 'Noto Sans Bengali Site';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/assets/fonts/noto-sans-bengali-700-site.woff2') format('woff2');
}

/* Overrides the stack in marketing-fonts.css: a Bangla reading page sets its text in the Bengali family. */
:root {
    --font: 'Inter Site', 'Noto Sans Bengali Site', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
}
