/*
 * fonts-local.css — self-hosted font faces for the CN build.
 *
 * Mirrors, weight-for-weight and style-for-style, the two origins stripped
 * from index.html by scripts/postbuild-cn.js for the China build
 * (fonts.googleapis.com / fonts.gstatic.com and cdn.jsdelivr.net), so no
 * mainland-China-blocked origin is referenced by the CN bundle.
 *
 * Files are latin-subset woff2, downloaded from google-webfonts-helper
 * (https://gwfh.mranftl.com) for DM Sans / Instrument Serif / JetBrains Mono,
 * and from the jsdelivr @fontsource/metropolis@5.0.3 package CSS for Metropolis.
 * All files live in this same directory (frontend/public/fonts/).
 */

/* ─── DM Sans (mirrors fonts.googleapis.com DM+Sans:ital,opsz,wght) ─── */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/fonts/dm-sans-300.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/dm-sans-400.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/dm-sans-400-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/dm-sans-500.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/dm-sans-600.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/dm-sans-700.woff2') format('woff2');
}

/* ─── Instrument Serif (mirrors fonts.googleapis.com Instrument+Serif:ital@0;1) ─── */
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/instrument-serif-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/instrument-serif-400-italic.woff2') format('woff2');
}

/* ─── JetBrains Mono (mirrors fonts.googleapis.com JetBrains+Mono:wght@400;500) ─── */
@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');
}

/* ─── Metropolis (mirrors cdn.jsdelivr.net/npm/@fontsource/metropolis@5.0.3) ─── */
@font-face {
  font-family: 'Metropolis';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/metropolis-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Metropolis';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/metropolis-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Metropolis';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/metropolis-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Metropolis';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/metropolis-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Metropolis';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/fonts/metropolis-800.woff2') format('woff2');
}
@font-face {
  font-family: 'Metropolis';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('/fonts/metropolis-900.woff2') format('woff2');
}
