/* Computer Modern Unicode (CMU) webfont setup
   Files expected in the SAME folder as this CSS:
   cmunrm.ttf  cmunti.ttf  cmunbx.ttf  cmunbi.ttf
   cmunss.ttf  cmunsi.ttf  cmunsx.ttf  cmunso.ttf  cmunsl.ttf
   cmunttb.ttf cmuntti.ttf cmunttx.ttf
   (plus many others you have; we only wire the common ones)
*/

/* ===== CMU Serif (Roman) ===== */
@font-face {
  font-family: "CMU Serif";
  font-style: normal;
  font-weight: 400;
  src: url("cmunrm.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "CMU Serif";
  font-style: italic;
  font-weight: 400;
  src: url("cmunti.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "CMU Serif";
  font-style: normal;
  font-weight: 700;
  src: url("cmunbx.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "CMU Serif";
  font-style: italic;
  font-weight: 700;
  src: url("cmunbi.ttf") format("truetype");
  font-display: swap;
}
/* Optional: map 'oblique' requests to the slanted cuts you have */
@font-face {
  font-family: "CMU Serif";
  font-style: oblique;
  font-weight: 400;
  src: url("cmunoti.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "CMU Serif";
  font-style: oblique;
  font-weight: 700;
  src: url("cmunobx.ttf") format("truetype");
  font-display: swap;
}
/* Optional: if mdBook asks for 300/600/800, alias to nearest real weight */
@font-face {
  font-family: "CMU Serif";
  font-style: normal;
  font-weight: 300;
  src: url("cmunrm.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "CMU Serif";
  font-style: italic;
  font-weight: 300;
  src: url("cmunti.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "CMU Serif";
  font-style: normal;
  font-weight: 600;
  src: url("cmunbx.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "CMU Serif";
  font-style: italic;
  font-weight: 600;
  src: url("cmunbi.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "CMU Serif";
  font-style: normal;
  font-weight: 800;
  src: url("cmunbx.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "CMU Serif";
  font-style: italic;
  font-weight: 800;
  src: url("cmunbi.ttf") format("truetype");
  font-display: swap;
}

/* ===== CMU Sans Serif (optional, for UI bits) ===== */
@font-face {
  font-family: "CMU Sans";
  font-style: normal;
  font-weight: 300; /* Light */
  src: url("cmunsl.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "CMU Sans";
  font-style: normal;
  font-weight: 400;
  src: url("cmunss.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "CMU Sans";
  font-style: italic;
  font-weight: 400;
  src: url("cmunsi.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "CMU Sans";
  font-style: normal;
  font-weight: 700; /* Bold */
  src: url("cmunsx.ttf") format("truetype");
  font-display: swap;
}
/* Some themes ask for oblique instead of italic */
@font-face {
  font-family: "CMU Sans";
  font-style: oblique;
  font-weight: 400;
  src: url("cmunso.ttf") format("truetype");
  font-display: swap;
}

/* ===== CMU Typewriter (monospace for code) ===== */
/* You don’t have cmuntt.ttf; use the available cuts as closest matches */
@font-face {
  font-family: "CMU Typewriter";
  font-style: normal;
  font-weight: 400;
  src: url("cmuntx.ttf") format("truetype"); /* extended/regular-ish */
  font-display: swap;
}
@font-face {
  font-family: "CMU Typewriter";
  font-style: italic;
  font-weight: 400;
  src: url("cmuntti.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "CMU Typewriter";
  font-style: normal;
  font-weight: 700;
  src: url("cmuntb.ttf") format("truetype");
  font-display: swap;
}
