/* ============================================================
 * 自托管字体（Roboto / Montserrat）
 *
 * 参考站整站 CSS 里只按「字体名」引用：
 *   --e-global-typography-primary-font-family: "Roboto"
 *   --e-global-typography-4353ebc-font-family: "Montserrat"
 * 但它既没有加载 Google Fonts，也没有内联 @font-face —— 也就是
 * 完全依赖访客本机已安装这两个字体。站长自己的浏览器装了，所以
 * 他看到的和普通访客看到的并不一样。
 *
 * 这里把同款字体自托管，让所有浏览器渲染结果都与设计意图一致。
 * 字重对应关系来自参考站 CSS 实际使用值：
 *   Roboto   400 / 500 / 600 / 700 / 400italic
 *   Montserrat 400 / 500 / 600 / 700
 * ============================================================ */

/* ---------- Roboto ---------- */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/Roboto-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/Roboto-Medium.woff2') format('woff2');
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/Roboto-Medium.woff2') format('woff2');
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/Roboto-Bold.woff2') format('woff2');
}
@font-face {
  font-family: 'Roboto';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/Roboto-Italic.woff2') format('woff2');
}

/* ---------- Montserrat ---------- */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/Montserrat-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/Montserrat-Medium.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/Montserrat-SemiBold.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/Montserrat-Bold.woff2') format('woff2');
}

/*
 * 度量对齐兜底。
 * 参考站 body 内置样式用的是 Arial（latin 度量），而 .elementor-kit-179
 * 用 Roboto。当 Roboto/Montserrat 未就绪时，用 size-adjust 让回退字体的
 * 字面宽度贴近 Roboto，避免 FOUT 期间布局抖动导致的高度跳动。
 */
@font-face {
  font-family: 'Roboto Fallback';
  src: local('Arial'), local('Helvetica'), local('Liberation Sans');
  size-adjust: 100%;
  ascent-override: 92.5%;
  descent-override: 24.5%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Montserrat Fallback';
  src: local('Arial'), local('Helvetica'), local('Liberation Sans');
  size-adjust: 96%;
  ascent-override: 96.8%;
  descent-override: 25.1%;
  line-gap-override: 0%;
}
