/* Prelo — the complete self-hosted family. THIS is the file that declares the
   faces; it is loaded from head.html alongside styles.css. Nothing else should
   carry an @font-face for Prelo (styles.css used to hold a duplicate set, which
   meant a "fix" applied here silently did nothing).

   Five weights, each with a matching italic. There is NO semibold in this
   family — `font-weight: 600` cannot be honoured and CSS will silently snap it
   to Bold. Use the --font-weight-* tokens in styles.css instead of raw numbers.

   Source: the client's own legacy AEM repo (RSMUS_ACM
   ui.frontend/src/main/webpack/resources/fonts/prelo), converted TTF → WOFF2.
   Verified against the previously shipped Prelo-Bold.woff2: identical metrics. */

/* 300 — Light */
@font-face {
  font-family: Prelo;
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("/styles/fonts/Prelo-Light.woff2") format("woff2");
}

/* NOT declared: italic 300 (Prelo-LightItalic).
   h1-h3 are Light, so any <em>/<i> inside a heading matches italic 300. Giving
   it a real face cost 48.8 KiB on EVERY page measured (/, /about, /careers) to
   serve, on /about, a single link. Without this face, italic 300 falls back to
   italic 400 (Prelo-BookItalic), which is already on the wire and is exactly
   what main renders today — so omitting it changes no pixels and saves the
   download. styles/fonts/Prelo-LightItalic.woff2 is kept in the repo: the file
   is the converted master, and restoring the face is uncommenting six lines. */

/* 400 — Book (body copy) */
@font-face {
  font-family: Prelo;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/styles/fonts/Prelo-Book.woff2") format("woff2");
}

@font-face {
  font-family: Prelo;
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/styles/fonts/Prelo-BookItalic.woff2") format("woff2");
}

/* 500 — Medium */
@font-face {
  font-family: Prelo;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/styles/fonts/Prelo-Medium.woff2") format("woff2");
}

@font-face {
  font-family: Prelo;
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("/styles/fonts/Prelo-MediumItalic.woff2") format("woff2");
}

/* 700 — Bold */
@font-face {
  font-family: Prelo;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/styles/fonts/Prelo-Bold.woff2") format("woff2");
}

@font-face {
  font-family: Prelo;
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url("/styles/fonts/Prelo-BoldItalic.woff2") format("woff2");
}

/* 900 — Black */
@font-face {
  font-family: Prelo;
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("/styles/fonts/Prelo-Black.woff2") format("woff2");
}

@font-face {
  font-family: Prelo;
  font-style: italic;
  font-weight: 900;
  font-display: swap;
  src: url("/styles/fonts/Prelo-BlackItalic.woff2") format("woff2");
}
