/* Bebas Neue by Dharma Type and Fontfabric (2014 family, including Cyrillic).
   The original font files and their SIL OFL license are served from ../fonts/. */
@font-face {
  font-family: "Bebas Neue CS16";
  src: url("../fonts/BebasNeue-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bebas Neue CS16";
  src: url("../fonts/BebasNeue-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
:root { --cs16-display: "Bebas Neue CS16", "Arial Narrow", sans-serif; }

/* The base sheet applies --cs16-font to links, spans and emphasized text.
   Switching the token on the heading also covers those nested text runs. */
.modern-site :is(.modern-wordmark, .cs-game-hero__watermark) {
  --cs16-font: var(--cs16-display);
  font-family: var(--cs16-display);
  font-synthesis: none;
}
html[data-theme] body.modern-v3 :is(h1, h2, h3, h4, h5, h6, [role="heading"],
  .sect-title, .cs-site-stats__card strong, #catalog-title):not(:where(
    .modern-sidebar *, [data-material-title], .modern-build-title,
    :has(> [data-material-title]), .ed-story-copy h3
  )) {
  --cs16-font: var(--cs16-display);
  font-family: var(--cs16-display);
  font-synthesis: none;
  letter-spacing: .018em !important;
  font-weight: 700 !important;
}
html[data-theme] .modern-site .modern-brand-v5 .modern-wordmark { gap: 2px; }
html[data-theme] .modern-site .modern-brand-v5 .modern-wordmark__title {
  font-size: clamp(32px, 2.7vw, 40px);
  line-height: .86;
  font-weight: 700;
  letter-spacing: .015em;
}
html[data-theme] .modern-site .modern-brand-v5 .modern-wordmark__subtitle {
  font-size: 11px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: .145em;
  padding-inline-start: 1px;
}
