/*
  Local font-face definitions extracted from:
  styles/ohmz-generic-v3.d053f41d172e.css

  Goal: keep the SAME font-family names that the design system uses,
  but point all sources to local files under ../fonts/.

  Notes:
  - The original bundle sometimes uses remote + local fallback sources.
    Here we use local only.
  - This file assumes your project structure:
      styles/ohmz-fonts.css
      fonts/<font-files>
*/

/* =====================
   MetricXS (typo4)
   ===================== */

@font-face {
  font-family: "MetricXS";
  src: url("../fonts/MetricXS-Thin.woff2") format("woff2"),
       url("../fonts/MetricXS-Thin.woff") format("woff");
  font-weight: 100;
  font-style: normal;
  font-stretch: 100%;
  font-display: swap;
}

@font-face {
  font-family: "MetricXS";
  src: url("../fonts/MetricXS-Light.woff2") format("woff2"),
       url("../fonts/MetricXS-Light.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-stretch: 100%;
  font-display: swap;
}

@font-face {
  font-family: "MetricXS";
  src: url("../fonts/MetricXS-Regular.woff2") format("woff2"),
       url("../fonts/MetricXS-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-stretch: 100%;
  font-display: swap;
}

@font-face {
  font-family: "MetricXS";
  src: url("../fonts/MetricXS-Medium.woff2") format("woff2"),
       url("../fonts/MetricXS-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-stretch: 100%;
  font-display: swap;
}

@font-face {
  font-family: "MetricXS";
  src: url("../fonts/MetricXS-Semibold.woff2") format("woff2"),
       url("../fonts/MetricXS-Semibold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-stretch: 100%;
  font-display: swap;
}

@font-face {
  font-family: "MetricXS";
  src: url("../fonts/MetricXS-Bold.woff2") format("woff2"),
       url("../fonts/MetricXS-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-stretch: 100%;
  font-display: swap;
}

@font-face {
  font-family: "MetricXS";
  src: url("../fonts/MetricXS-Black.woff2") format("woff2"),
       url("../fonts/MetricXS-Black.woff") format("woff");
  font-weight: 900;
  font-style: normal;
  font-stretch: 100%;
  font-display: swap;
}

/* =====================
   Metric “named faces”
   ===================== */

@font-face {
  font-family: "Metric Light";
  src: url("../fonts/Metric-Light.woff2") format("woff2"),
       url("../fonts/Metric-Light.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-stretch: 100%;
  font-display: swap;
}

@font-face {
  font-family: "Metric Regular";
  src: url("../fonts/Metric-Regular.woff2") format("woff2"),
       url("../fonts/Metric-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-stretch: 100%;
  font-display: swap;
}

@font-face {
  font-family: "Metric Medium";
  src: url("../fonts/Metric-Medium.woff2") format("woff2"),
       url("../fonts/Metric-Medium.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-stretch: 100%;
  font-display: swap;
}

@font-face {
  font-family: "Metric Semibold";
  src: url("../fonts/Metric-SemiBold.woff2") format("woff2"),
       url("../fonts/Metric-SemiBold.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-stretch: 100%;
  font-display: swap;
}

/* Official bundle maps Metric Bold + Metric Black to Metric-Web-* */
@font-face {
  font-family: "Metric Bold";
  src: url("../fonts/Metric-Web-Bold.woff2") format("woff2"),
       url("../fonts/Metric-Web-Bold.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-stretch: 100%;
  font-display: swap;
}

@font-face {
  font-family: "Metric Black";
  src: url("../fonts/Metric-Web-Black.woff2") format("woff2"),
       url("../fonts/Metric-Web-Black.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-stretch: 100%;
  font-display: swap;
}

/* =====================
   Simple Regular
   ===================== */

@font-face {
  font-family: "Simple Regular";
  src: url("../fonts/OHMzSimple-Regular.woff2") format("woff2"),
       url("../fonts/OHMzSimple-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* =====================
   OHMzGraphik (typo5)
   ===================== */

@font-face {
  font-family: "OHMzGraphik";
  /* Fallback mapping:
     Official bundle uses OHMzGraphik-Thin-Web (100). Closest file in repo: Extralight.
  */
  src: url("../fonts/OHMzGraphik-Extralight-Web.woff2") format("woff2");
  font-weight: 100;
  font-style: normal;
  font-stretch: 100%;
  font-display: swap;
}

@font-face {
  font-family: "OHMzGraphik";
  /* Fallback mapping:
     Official bundle uses OHMzGraphik-Light-Web (300). Closest file in repo: Extralight.
  */
  src: url("../fonts/OHMzGraphik-Extralight-Web.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-stretch: 100%;
  font-display: swap;
}

@font-face {
  font-family: "OHMzGraphik";
  src: url("../fonts/OHMzGraphik-Regular-Web.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-stretch: 100%;
  font-display: swap;
}

@font-face {
  font-family: "OHMzGraphik";
  src: url("../fonts/OHMzGraphik-Medium-Web.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-stretch: 100%;
  font-display: swap;
}

@font-face {
  font-family: "OHMzGraphik";
  src: url("../fonts/OHMzGraphik-Semibold-Web.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-stretch: 100%;
  font-display: swap;
}

@font-face {
  font-family: "OHMzGraphik";
  src: url("../fonts/OHMzGraphik-Bold-Web.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-stretch: 100%;
  font-display: swap;
}

@font-face {
  font-family: "OHMzGraphik";
  /* Fallback mapping:
     Official bundle uses OHMzGraphik-Black-Web (900). Closest file in repo: Bold.
  */
  src: url("../fonts/OHMzGraphik-Bold-Web.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-stretch: 100%;
  font-display: swap;
}

@font-face {
  font-family: "OHMzGraphik";
  /* Fallback mapping:
     Official bundle uses OHMzGraphikCondensed-Light-Web (300, stretch 75%).
     Closest file in repo: XXCondensed Extralight.
  */
  src: url("../fonts/OHMzGraphikCondensed-Extralight-Web.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-stretch: 75%;
  font-display: swap;
}

@font-face {
  font-family: "OHMzGraphik";
  src: url("../fonts/OHMzGraphikCondensed-Bold-Web.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-stretch: 75%;
  font-display: swap;
}

/* =====================
   OHMz Glyphicons
   ===================== */

@font-face {
  font-family: "ohmz-icons";
  /* woff2-only (your repo currently has only .woff2) */
  src: url("../fonts/ohmz-icons.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/*
  Font substitution notes:
  - Metric Black   -> Metric-Web-Black (CORRECTED)
  - Simple Regular    -> OHMzSimple-Regular (CORRECTED)
  - Graphik Thin/Light-> OHMzGraphik-Extralight-Web (CORRECTED)
  - Graphik Black     -> OHMzGraphik-Bold-Web (CORRECTED)
  - XXCondensed Light -> OHMzGraphikCondensed-Extralight-Web (CORRECTED)
  - Glyphicons        -> woff2-only (CORRECTED PATH)
*/
