/* Be Vietnam Pro (SIL OFL 1.1) — self-hosted, Vietnamese + Latin subsets.
   Chi giu 2 weight: 400 (text) va 800 (tieu de).
   500/600 da duoc remap ve 400/700 trong ee88.css nen khong can file rieng.
   6 file thay vi 15 -> giam ~180 KB va LCP text ve dung truc tiep. */

/* --------------------------------------------------------------------------
   Fallback metric-compatible truoc @font-face that.

   Ly do: LCP element cua trang chu la TEXT (hero__sub / hero__title). Voi
   font-display:swap, webfont den sau se VE LAI chinh node do, browser ghi
   them mot LCP entry moi, va LCP bi day len thoi diem font xong — thoi diem
   ve font, khong phai thoi diem hien thi noi dung.

   Do do thuc te tren trang chu (mobile 390px, Slow 4G 150ms / 1.6 Mbps, CPU x4,
   5 lan moi cau hinh — xem .build/font_lab.py):

       font-display: swap   + fallback metric  ->  LCP 2596 ms
       font-display: optional + fallback metric -> LCP 2304 ms
       bo webfont (chi fallback)               -> LCP 2164 ms

   => Dung `optional`. Webfont van duoc dung ngay tu lan visit sau (da cache),
   nhung lan dau trinh duyet ve bang fallback va KHONG ve lai, nen LCP khong
   con phu thuoc tai font.

   Fallback "ao" co dung CHIEU CAO KY TU cua Be Vietnam Pro, do
   .build/font_metrics.py tinh truc tiep tu file font that bang fontTools
   (size-adjust + ascent/descent-override), nen khi webfont co the hien thi
   thi kich thuoc chu khong doi -> CLS = 0.
   -------------------------------------------------------------------------- */

/* --- 800 (heading) -------------------------------------------------------- */
@font-face {
    font-family: 'Bevn Fallback 800';
    src: local('Arial'), local('Liberation Sans');
    size-adjust: 95.74%;
    ascent-override: 100%;
    descent-override: 26.5%;
    line-gap-override: 0%;
}

/* --- 400 (body) ----------------------------------------------------------- */
@font-face {
    font-family: 'Bevn Fallback 400';
    src: local('Arial'), local('Liberation Sans');
    size-adjust: 95.74%;
    ascent-override: 100%;
    descent-override: 26.5%;
    line-gap-override: 0%;
}

@font-face {
    font-family: 'Be Vietnam Pro';
    font-style: normal;
    font-weight: 400;
    font-display: optional;
    src: url('/fonts/bevn-vietnamese-400.woff2') format('woff2');
    unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
    font-family: 'Be Vietnam Pro';
    font-style: normal;
    font-weight: 400;
    font-display: optional;
    src: url('/fonts/bevn-latin-ext-400.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-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Be Vietnam Pro';
    font-style: normal;
    font-weight: 400;
    font-display: optional;
    src: url('/fonts/bevn-latin-400.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: 'Be Vietnam Pro';
    font-style: normal;
    font-weight: 800;
    font-display: optional;
    src: url('/fonts/bevn-vietnamese-800.woff2') format('woff2');
    unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
    font-family: 'Be Vietnam Pro';
    font-style: normal;
    font-weight: 800;
    font-display: optional;
    src: url('/fonts/bevn-latin-ext-800.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-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Be Vietnam Pro';
    font-style: normal;
    font-weight: 800;
    font-display: optional;
    src: url('/fonts/bevn-latin-800.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;
}
