/* ==========================================================================
   Eleições — fonts

   ABU DHABI MEDIA, the licensed family for this package, served from inside it
   the same way the L-Bar serves Cairo: a playout engine has no network, and
   nothing here resolves off-box.

   TWO CUTS ONLY — Regular and Bold. There is no heavy, so the display lines
   that the artwork set in a black weight (TEXAS, ELECTORAL VOTE, the big seat
   numbers) resolve to Bold. The second `@font-face` below claims the whole
   700-900 range for the Bold file on purpose: without it a rule asking for 900
   gets a SYNTHETIC bold — the browser smears the outline sideways — which is
   heavier than Bold but a different letterform, and it shows on air. Better an
   honest Bold than a fake black.

   The metrics that matter, read out of the TTFs rather than guessed:

     unitsPerEm      1000
     sCapHeight      0.686
     hhea asc/desc   1.050 / 0.460   (sum 1.510, no line gap)
     USE_TYPO_METRICS is OFF, so Chrome lays out on those hhea values

   With `line-height: 1` that puts the cap top 0.109em below the box top — the
   half-leading is negative here, because ascent + descent is larger than the
   em. `--el-cap` and `--el-cap-shift` in tokens.css carry those two numbers and
   nothing else in the package needs to know.
   ========================================================================== */

@font-face {
  font-family: "Abu Dhabi Media";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("../assets/fonts/AbuDhabiMedia-Regular.ttf") format("truetype");
}

/* 700 THROUGH 900: see the note above — this is what stops a synthetic black. */
@font-face {
  font-family: "Abu Dhabi Media";
  font-style: normal;
  font-weight: 700 900;
  font-display: block;
  src: url("../assets/fonts/AbuDhabiMedia-Bold.ttf") format("truetype");
}

/* --- the fallback ---------------------------------------------------------
   Helvetica Neue LT Pro Condensed, kept for a box that has no licence for the
   family above. `data-type="condensed"` on the stage switches to it along with
   its own metrics.
   -------------------------------------------------------------------------- */

@font-face {
  font-family: "Helvetica Neue LT Pro";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("../assets/fonts/HelveticaNeueLTPro-Cn.otf") format("opentype");
}

@font-face {
  font-family: "Helvetica Neue LT Pro";
  font-style: normal;
  font-weight: 700 900;
  font-display: block;
  src: url("../assets/fonts/HelveticaNeueLTPro-BdCn.otf") format("opentype");
}
