/* Central font registrations for local font assets. */

@font-face {
  font-family: "EB Garamond";
  src: url("EB_Garamond/EBGaramond-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* For Greek letters */
/* Typography note: Greek labels (Ω, Σ, α, β) used in the Yarn and Evolution panels
   should be rendered using EB Garamond at a bold/heavy weight (prefer `700` or `800`).
   The variable font faces registered above support these weights; prefer the
   variable-weight face (or the static bold/extra-bold fallbacks) to ensure
   consistent glyph shapes for Greek characters across platforms. */
@font-face {
  font-family: "EB Garamond";
  src: url("EB_Garamond/EBGaramond-Italic-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}


/* Static-weight fallbacks (improves compatibility and faster matching for common weights).
   These reference the shipped static TTFs under `style/EB_Garamond/static/`. */
@font-face { font-family: "EB Garamond"; src: url("EB_Garamond/static/EBGaramond-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("EB_Garamond/static/EBGaramond-Italic.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("EB_Garamond/static/EBGaramond-Medium.ttf") format("truetype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("EB_Garamond/static/EBGaramond-MediumItalic.ttf") format("truetype"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("EB_Garamond/static/EBGaramond-SemiBold.ttf") format("truetype"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("EB_Garamond/static/EBGaramond-SemiBoldItalic.ttf") format("truetype"); font-weight: 600; font-style: italic; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("EB_Garamond/static/EBGaramond-Bold.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("EB_Garamond/static/EBGaramond-BoldItalic.ttf") format("truetype"); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("EB_Garamond/static/EBGaramond-ExtraBold.ttf") format("truetype"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("EB_Garamond/static/EBGaramond-ExtraBoldItalic.ttf") format("truetype"); font-weight: 800; font-style: italic; font-display: swap; }

/* Imperial Script (decorative display face) */
@font-face {
  font-family: "Imperial Script";
  src: url("Imperial_Script/ImperialScript-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

