

@font-face {
  font-family: 'Inter Fallback';
  font-style: normal;
  font-weight: 400 700;
  src: local('Arial'), local('Helvetica'), local('Liberation Sans'), local('Arimo');
  size-adjust: 107.19%;
  ascent-override: 90.49%;
  descent-override: 22.39%;
  line-gap-override: 0%;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/inter-400-normal-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: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/inter-400-normal-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: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/jetbrains-mono-400-normal-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: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/jetbrains-mono-400-normal-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: 'Newsreader';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/newsreader-400-normal-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: 'Newsreader';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/newsreader-400-normal-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;
}



/* ── Subset cyrillic + greek (thêm 24/11/2026, Huyền soạn) ── */
@font-face có
   unicode-range chồng nhau thì khối KHAI BÁO SAU thắng. (Đúng cái lý do đã
   ghi trong chú thích nhóm vietnamese hôm qua.)

   Em đã dò chồng lấn bằng máy, có đúng 3 chỗ:

     1. cyrillic  ↔ vietnamese   chồng U+0301  (dấu sắc tổ hợp)
        → Nếu chèn cyrillic SAU vietnamese thì U+0301 bị kéo sang tệp
          cyrillic, tức là gỡ mất một phần bản vá tiếng Việt hôm qua.
          Chèn TRƯỚC thì vietnamese vẫn thắng. Ảnh hưởng nhỏ (chữ Việt
          thường dùng ký tự dựng sẵn U+1EA0-1EF9) nhưng không có lý do
          gì phải chịu.

     2. cyrillic-ext ↔ latin-ext  chồng U+20B4  (₴ hryvnia Ukraina)
        → Chèn cyrillic-ext SAU latin-ext là ĐÚNG ý muốn: ₴ lấy từ tệp
          cyrillic-ext. Vị trí đề xuất đã thoả.

     3. cyrillic-ext ↔ cyrillic   chồng U+0490-0491 (Ґґ), U+04B0-04B1 (Ұұ)
        → Giữ nguyên thứ tự cyrillic-ext TRƯỚC cyrillic như dưới đây,
          giống hệt thứ tự fontsource/Google vẫn phát. Đừng đảo.

   Chồng lấn chỉ xét trong CÙNG font-family — Inter và JetBrains Mono
   không đụng nhau.

   ── NGUỒN — đã pin bằng TRÙNG BYTE với tệp đang chạy ──────────────────────
   Em tải tệp latin + vietnamese đang chạy trên ihatecalculator.com về rồi
   so md5 với từng bản ứng viên, nên không phải đoán bản nào:

     Inter            = @fontsource-variable/inter@5.3.0   biến thể `wght`
                        (latin + vietnamese live đều TRÙNG BYTE)
     JetBrains Mono   = xem ghi chú — live đang là GSTATIC v24, không phải
                        fontsource. Có 2 phương án, đọc `fonts-ghi-chu.md`.
     Newsreader       = @fontsource-variable/newsreader@5.3.0 biến thể `standard`
                        (latin + vietnamese live đều TRÙNG BYTE)

   ── 🔴 NEWSREADER KHÔNG CÓ MẶT Ở ĐÂY — KHÔNG PHẢI EM QUÊN ─────────────────
   Newsreader KHÔNG có bộ chữ Cyrillic và Hy Lạp. Không tồn tại để tải.
   Xác nhận từ 3 nguồn độc lập: API fontsource, metadata.json của gói npm,
   và CSS do Google Fonts phát trực tiếp — cả ba đều chỉ liệt kê
   latin / latin-ext / vietnamese.
   Em KHÔNG thay bằng font khác. Cần anh và Sếp quyết, xem `fonts-ghi-chu.md`.

   ── 🔴 JETBRAINS MONO KHÔNG CÓ `greek-ext` ────────────────────────────────
   Chỉ có cyrillic / cyrillic-ext / greek. Không có greek-ext (U+1F00-1FFF,
   là chữ Hy Lạp đa trọng âm — tiếng Hy Lạp hiện đại ở trang /el/ dùng đơn
   trọng âm, nằm trong `greek`, nên ảnh hưởng gần như bằng không).
   ═══════════════════════════════════════════════════════════════════════════ */


/* ── Inter — cyrillic, cyrillic-ext, greek, greek-ext ─────────────────────── */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/inter-400-normal-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/inter-400-normal-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/inter-400-normal-greek-ext.woff2') format('woff2');
  unicode-range: U+1F00-1FFF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/inter-400-normal-greek.woff2') format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}


/* ── JetBrains Mono — cyrillic, cyrillic-ext, greek ────────────────────────
   (không có greek-ext — font không hỗ trợ, xem đầu tệp) */

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/jetbrains-mono-400-normal-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/jetbrains-mono-400-normal-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/jetbrains-mono-400-normal-greek.woff2') format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}


/* ── Newsreader — KHÔNG CÓ KHỐI NÀO ────────────────────────────────────────
   Font không có bộ chữ Cyrillic/Hy Lạp. Chủ ý để trống, không phải thiếu sót.
   ───────────────────────────────────────────────────────────────────────── */

/* ── Subset `vietnamese` (thêm 24/11/2026) ───────────────────────────────────
   Đo trên /vi/rubiks-cube-solver.html: 806 glyph (ạ ả ấ ế ệ ộ ợ ự …) KHÔNG lấy
   được từ Inter vì hai subset latin + latin-ext chỉ có 8/90 chữ của dải
   U+1EA0–1EF9 ⇒ trình duyệt vá từng chữ bằng font máy (Arial phóng 107% qua
   'Inter Fallback'), 99/217 phần tử bị trộn hai font trong cùng một từ — đúng
   cái "nét đậm nét nhạt, nét to nét nhỏ". Cùng họ, cùng bản 4.001 với hai tệp
   đang dùng; là font biến thiên wght 100–900 nên đậm là đậm THẬT.
   Đặt SAU latin-ext có chủ ý: dải trùng nhau thì khai báo sau thắng, để mọi chữ
   Việt lấy từ MỘT tệp. Trang không có chữ Việt thì không tải tệp này. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/inter-400-normal-vietnamese.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+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/jetbrains-mono-400-normal-vietnamese.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+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/newsreader-400-normal-vietnamese.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+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
