/*
 * Self-hosted fonts (I-116). These replace the Google Fonts stylesheet that
 * index.html used to load, so no font request leaves our own origin.
 *
 * Same families and weights Google served: Source Serif 4 600/700/800 for
 * headings, DM Sans 400/500/600/700 for body text. Latin subset, which covers
 * French accents and the oe ligature.
 *
 * Served from /fonts/ so the static legal pages in public/ can share them.
 *
 * Files taken from Fontsource (@fontsource/source-serif-4 5.3.1,
 * @fontsource/dm-sans 5.3.0) and copied in rather than added as dependencies.
 * Both fonts are SIL Open Font License 1.1; the licences sit beside the files.
 * To update: npm pack the packages and copy the matching *-latin-*-normal.woff2.
 */

@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/source-serif-4-latin-600-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/source-serif-4-latin-700-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/fonts/source-serif-4-latin-800-normal.woff2') format('woff2');
}

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

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

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

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