/*
 * Self-hosted web fonts (offline, no external CDN / Google Fonts <link>).
 * Fonts: Bricolage Grotesque (600, 700) — heading/display
 *        Manrope (400, 500, 600) — body/UI
 * Subsets: latin + vietnamese (split by unicode-range for smaller payload,
 * browser only downloads the subset actually used on the page).
 * font-display: swap để tránh chặn render (tôn trọng Core Web Vitals / FOIT).
 *
 * GHI CHÚ QUAN TRỌNG — cả 2 font đều là VARIABLE FONT trên Google Fonts:
 * Google trả về CÙNG MỘT file woff2 cho mỗi subset dùng chung cho nhiều
 * weight (Bricolage Grotesque: 600 & 700 trỏ cùng 1 file / subset; Manrope:
 * 400, 500 & 600 trỏ cùng 1 file / subset). Vì vậy ở đây khai báo
 * `font-weight` dạng RANGE (vd. "600 700") trong MỘT @font-face duy nhất
 * cho mỗi subset, thay vì tải lặp file cho từng weight riêng lẻ — trình
 * duyệt tự nội suy (variable font instancing) đúng weight được yêu cầu.
 * Không cần file riêng cho 500/700 vì đã nằm trong cùng file range trên.
 *
 * BẢN WORDPRESS (2026-09-29): khác bản prototype DUY NHẤT ở đường dẫn
 * `url("../fonts/…")` — prototype đặt fonts.css ở `assets/` (cạnh thư mục
 * `fonts/`), còn child theme đặt ở `assets/css/`, nên `url("fonts/…")` cũ bị
 * trình duyệt tìm ở `assets/css/fonts/…` → 404 → rơi về font Lato của Flatsome.
 */

/* ---------- Bricolage Grotesque — weight 600–700 (heading) ---------- */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("../fonts/bricolage-grotesque-600-700-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: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("../fonts/bricolage-grotesque-600-700-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;
}

/* ---------- Manrope — weight 400–600 (body/UI) ---------- */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/manrope-400-600-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: "Manrope";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/manrope-400-600-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;
}

/*
 * Fallback stack (khi self-host lỗi hoặc font đang tải):
 * heading -> Sora, body -> Inter Tight (đã khoá ở CLAUDE.md §4).
 * Fallback KHÔNG self-host trong file này — chỉ dùng nếu Bricolage
 * Grotesque / Manrope không có sẵn trên máy/hệ thống hiển thị.
 */
:root {
  --font-heading: "Bricolage Grotesque", "Sora", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Manrope", "Inter Tight", ui-sans-serif, system-ui, sans-serif;
}
