/* Self-hosted Poppins — replaces the Google Fonts CDN link (avoids blocked/slow Google domains for mainland China users) */
@font-face {
  font-family: 'Poppins';
  src: url('/static/fonts/Poppins-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('/static/fonts/Poppins-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('/static/fonts/Poppins-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('/static/fonts/Poppins-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('/static/fonts/Poppins-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('/static/fonts/Poppins-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('/static/fonts/Poppins-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'BiaoXiaoZhi WuJieHei';
  src: url('/static/fonts/BiaoXiaoZhi-WuJieHei.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* Size-matched fallback for Poppins (metrics vs Arial) — reduces layout shift when the
   webfont swaps in, per the "reduce CLS from font swap" Lighthouse suggestion. */
@font-face {
  font-family: 'Poppins Fallback';
  src: local('Arial');
  ascent-override: 191.73%;
  descent-override: 63.91%;
  line-gap-override: 18.26%;
  size-adjust: 54.76%;
}
