/* ==========================================================================
   NHÀ HẠT ÉTOFFE — LOCAL TYPOGRAPHY SYSTEM (v8.5.1)
   Brand Book 2026: Lora (tiêu đề) · Be Vietnam Pro (chữ thường) · JetBrains Mono (mã).

   Mỗi độ đậm = MỘT file woff2 tĩnh gộp latin + tiếng Việt (không tách
   unicode-range). Lý do: khi tách subset, chữ gốc và dấu rời có thể nằm ở
   hai file khác nhau, Safari/Firefox không ghép được dấu ("Câ´u").
   Mọi file giữ GPOS mark/mkmk + ccmp. Thay Fraunces (thiếu mark/mkmk).
   Font: SIL Open Font License 1.1 — xem assets/fonts/OFL-*.txt.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. LORA — TIÊU ĐỀ (500 / 600 / 700, nghiêng 500 / 600)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/lora-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/lora-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/lora-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/lora-500-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/lora-600-italic.woff2') format('woff2');
}

/* --------------------------------------------------------------------------
   2. BE VIETNAM PRO — CHỮ THƯỜNG & GIAO DIỆN
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/be-vietnam-pro-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/be-vietnam-pro-400-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/be-vietnam-pro-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/be-vietnam-pro-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/be-vietnam-pro-700.woff2') format('woff2');
}

/* --------------------------------------------------------------------------
   3. JETBRAINS MONO — MÃ MÀU, MÃ ĐƠN, SỐ ĐO
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-400.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-500.woff2') format('woff2');
}

/* --------------------------------------------------------------------------
   4. FALLBACK METRICS (SIZE-ADJUST) — GIẢM NHẢY BỐ CỤC (CLS)
   Đo trên chuỗi tiếng Việt mẫu: Lora 500 so với Georgia, Be Vietnam Pro 400 so với Arial.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Lora-Fallback';
  src: local('Georgia');
  size-adjust: 107%;
  ascent-override: 94%;
  descent-override: 25.6%;
  line-gap-override: 0%;
}

@font-face {
  font-family: 'BeVietnam-Fallback';
  src: local('Arial');
  size-adjust: 108.4%;
  ascent-override: 92.2%;
  descent-override: 24.4%;
  line-gap-override: 0%;
}
