/* JMP Local Fonts — DM Sans + Trirong + Inter */
/* 替代 fonts.googleapis.com，所有字体文件本地化 */
/* 2026-06-30: TTF → WOFF2 (节省 753.8 KB, 59%压缩率) */
/* 2026-06-30: 移除 Open Sans + Roboto @font-face (实际渲染使用Inter，二者仅为fallback字符串) */

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/dmsans-400.woff2') format('woff2');
}

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/dmsans-500.woff2') format('woff2');
}

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/dmsans-600.woff2') format('woff2');
}

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/dmsans-700.woff2') format('woff2');
}

@font-face {
  font-family: 'Trirong';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/trirong-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Trirong';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/trirong-700.woff2') format('woff2');
}

/* Inter — Variable Font (covers all weights 100-900) */
/* Replaces @import from fonts.googleapis.com in jmp-product-layout.php */
/* Spectra 319KB Inter dedup: jmp_pre_register_local_inter() via theme_json */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
}
