/*
 * NYU Perstare — single global font definition for the CIMS site.
 *
 * This is the ONE place @font-face for Perstare should live. It is loaded by
 * every base template, so individual templates/components must NOT re-declare
 * @font-face — just use the family name "NYU Perstare" (or the utility classes
 * below). Font files live in cims_site/static/NYU_Font_Perstare/; paths here are
 * relative to /static/ui/css/.
 */

/* ---- Proportional (upright) ---- */
@font-face {
  font-family: "NYU Perstare";
  src: url("../../NYU_Font_Perstare/Static/Proportional/Upright/NYUPerstare-Thin.otf") format("opentype");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "NYU Perstare";
  src: url("../../NYU_Font_Perstare/Static/Proportional/Upright/NYUPerstare-Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "NYU Perstare";
  src: url("../../NYU_Font_Perstare/Static/Proportional/Upright/NYUPerstare-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "NYU Perstare";
  src: url("../../NYU_Font_Perstare/Static/Proportional/Upright/NYUPerstare-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "NYU Perstare";
  src: url("../../NYU_Font_Perstare/Static/Proportional/Upright/NYUPerstare-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "NYU Perstare";
  src: url("../../NYU_Font_Perstare/Static/Proportional/Upright/NYUPerstare-Black.otf") format("opentype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ---- Proportional (italic) ---- */
@font-face {
  font-family: "NYU Perstare";
  src: url("../../NYU_Font_Perstare/Static/Proportional/Italic/NYUPerstare-Italic.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "NYU Perstare";
  src: url("../../NYU_Font_Perstare/Static/Proportional/Italic/NYUPerstare-BoldItalic.otf") format("opentype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* ---- Condensed ---- */
@font-face {
  font-family: "NYU Perstare Condensed";
  src: url("../../NYU_Font_Perstare/Static/Condensed/Upright/NYUPerstareCondensed-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "NYU Perstare Condensed";
  src: url("../../NYU_Font_Perstare/Static/Condensed/Upright/NYUPerstareCondensed-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/*
 * Global default: make Perstare the site-wide font. Descendants inherit this,
 * so we deliberately do NOT use a universal `*` selector or `!important` here —
 * that would clobber icon fonts (Glyphicons, FontAwesome) which set their own
 * font-family. Elements that need a different face opt out explicitly.
 */
html,
body {
  font-family: "NYU Perstare", sans-serif;
}

/* ---- Utility classes ---- */
.ui-font-display {
  font-family: "NYU Perstare", sans-serif !important;
}

.ui-font-display-black {
  font-family: "NYU Perstare", sans-serif !important;
  font-weight: 900 !important;
}

.ui-font-condensed {
  font-family: "NYU Perstare Condensed", sans-serif !important;
}

/* Body copy is now Perstare too; kept as an explicit hook for existing markup. */
.ui-font-body {
  font-family: "NYU Perstare", sans-serif !important;
}
