/* -------------------------------------------------
   DM Sans — minimal files + weight aliases
   Files you actually have: 400 regular, 400 italic, 700 regular
   400 & 500 -> 400
   600, 700 & 900 -> 700
-------------------------------------------------- */

/* Real files */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/wp-content/themes/trainingcamp-child/fonts/dm-sans/dm-sans-latin-400-normal.woff2') format('woff2');
}

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

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

/* Aliases (map requests to existing files) */

/* 500 -> 400 file */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/wp-content/themes/trainingcamp-child/fonts/dm-sans/dm-sans-latin-400-normal.woff2') format('woff2');
}

/* 600 -> 700 file */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/wp-content/themes/trainingcamp-child/fonts/dm-sans/dm-sans-latin-700-normal.woff2') format('woff2');
}

/* 900 -> 700 file */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('/wp-content/themes/trainingcamp-child/fonts/dm-sans/dm-sans-latin-700-normal.woff2') format('woff2');
}

/* Optional global guards (add once in any global CSS) */
html {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-synthesis-weight: none; /* don't fake 500/600 */
  font-synthesis-style: none;  /* don't fake italics */
}
