/**
 * Active frontend font contract.
 *
 * Q01: Latin proportional typography starts with Merriweather Variable.
 * Simplified Chinese then falls through by role to Source Han Sans CN
 * Variable for sans/UI text and Source Han Serif CN Variable for
 * literary/reading text. Code also starts with Merriweather, with Source Han
 * Sans CN Variable covering Chinese glyphs that Merriweather does not contain.
 *
 * The bundled Merriweather files are the upstream variable Roman and Italic
 * builds. They expose real wght 300-900, wdth 87-112 and opsz 7-144 axes, so
 * intermediate weights do not need browser-synthesized Merriweather faces.
 * The Source Han CN variable fonts expose a real wght 250-900 axis, so CJK
 * intermediate weights such as 450 are also rendered from real interpolation.
 */

@import './merriweather.css';

@font-face {
  font-family: 'Source Han Sans CN VF';
  src: url('/assets/youxin/theme/frontend/fonts/SourceHanSansCN-Variable.woff2') format('woff2');
  font-weight: 250 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Source Han Serif CN VF';
  src: url('/assets/youxin/theme/frontend/fonts/SourceHanSerifCN-Variable.woff2') format('woff2');
  font-weight: 250 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-sans: Merriweather, 'Source Han Sans CN VF', system-ui;
  --font-serif: Merriweather, 'Source Han Serif CN VF', serif;
  --font-body: var(--font-sans);
  --font-code: Merriweather, 'Source Han Sans CN VF', monospace;
}
