/* Official MBU webfonts, supplied in the November 3, 2026 brand handoff.
   Originals and licensing provenance remain in the owner's asset package. */
@font-face {
  font-family: "PP Telegraf";
  src: url("assets/fonts/PPTelegraf-Ultrabold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PP Neue Montreal";
  src: url("assets/fonts/PPNeueMontreal-Book.woff2") format("woff2");
  font-weight: 350;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PP Neue Montreal";
  src: url("assets/fonts/PPNeueMontreal-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
/* Keep the website's approved CSS 400 mapping for Mono Book (metadata 350). */
@font-face {
  font-family: "PP Neue Montreal Mono";
  src: url("assets/fonts/PPNeueMontrealMono-Book.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PP Neue Montreal Mono";
  src: url("assets/fonts/PPNeueMontrealMono-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

body {
  font-family: var(--text);
  font-weight: 350;
  font-synthesis: none;
}
h1, h2, .info-content > h3:first-child {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.025em;
  text-wrap: balance;
  overflow-wrap: break-word;
}
h3, h4, strong, b,
.pill, .nav-sections, .languages button, .mobile-menu nav a,
.faq-question, .race-detail summary, .race-detail h4,
.entry-subtitle, .apply-lead, .sponsor-lead, .location-type,
.text-link, .info-links, .venue-details p:first-child {
  font-family: var(--text);
  font-weight: 500;
}
h3, h4, .race-facts h3, .race-detail summary {
  line-height: 1.15;
  text-wrap: balance;
}
.nav-sections a { line-height: 1.2; }
.pill, .faq-question, .sponsor-lead { line-height: 1.25; }
.about-intro, .entry-description, .entry-card ul,
.section-intro, .sponsor-paragraphs, .faq-answer p {
  line-height: 1.5;
}
.hero-manifesto {
  font-family: var(--text);
  font-weight: 500;
  line-height: 1.3;
  text-align: left;
  text-align-last: auto;
}
.hero-copyright, .footer-copyright, .languages,
.discover, .hero-place, .hero-playback, .tile-play,
.loop-rules, .number-side > span, .type-coordinates,
.location-type > small, figcaption,
.planning-stats span, .range-labels, .planning-tool label,
.entry-bottom p, .info-content .info-note {
  font-family: var(--mono);
  font-weight: 400;
}
.hero-place { white-space: normal; line-height: 1.5; }
.hero-date, .number-side strong, .number-middle > span,
.loop-facts, .facts-row > li:first-child,
.type-hour b, .type-loop b, .planning-stats output,
.planning-tool input[type=number], #lightbox-count {
  font-family: var(--mono);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.025em;
  line-height: 1.1;
}
.loop-facts { font-size: clamp(16px, 1.5vw, 28px); line-height: 1.4; }
.number-side strong { font-size: clamp(100px, 12vw, 230px); }
.number-last strong { font-size: clamp(100px, 11vw, 210px); }
.number-side { gap: 12px; }
.planning-stats { min-width: 0; }
.planning-stats > div { min-width: 0; }
.planning-stats output { font-size: clamp(30px, 4.5vw, 60px); }
.planning-tool label, .planning-stats span { line-height: 1.5; }
.hero-date { font-size: clamp(24px, 2.3vw, 44px); }

/* All identity marks stay outlined SVG artwork. */
.small-wordmark, .mini-mark {
  border: 0;
  border-radius: 0;
  padding: 0;
  flex-shrink: 0;
}
.small-wordmark { width: 90px; }
.mini-mark { display: block; width: 55px; min-width: 55px; }
.small-wordmark img, .mini-mark img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
.overlay-heading { min-width: 0; }
.overlay-heading h2 { line-height: 1.15; }
.mobile-menu nav a {
  display: block;
  font-size: clamp(26px, 6vw, 54px);
  line-height: 1.25;
  padding: 4px 0;
}

@media (max-width: 991px) {
  .number-side strong, .number-last strong {
    font-size: clamp(100px, 30vw, 230px);
    line-height: 1.1;
  }
  .hero-place { max-width: 300px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 767px) {
  h1, h2 { font-size: clamp(30px, 10vw, 60px); }
  .race-facts h3 { font-size: clamp(25px, 7vw, 36px); }
  .hero-place { font-size: 12px; }
  .hero-date { font-size: clamp(22px, 6vw, 36px); }
  .mini-mark { width: 43px; min-width: 43px; }
  .planning-stats output { font-size: clamp(24px, 7.4vw, 40px); }
  .planning-stats span { font-size: 11px; }
  .overlay-heading h2 { font-size: clamp(18px, 4.8vw, 24px); }
  .info-content > h3:first-child { font-size: clamp(30px, 8.8vw, 52px); }
  .race-detail summary { font-size: clamp(22px, 6vw, 28px); }
}

/* MBU navigation: utility labels in Mono; the open mobile menu in display type. */
.desktop-nav .nav-sections a,
.site-header .languages button,
.mobile-menu .languages button {
  font-family: var(--mono);
  font-weight: 400;
  letter-spacing: .025em;
}
.desktop-nav .nav-register,
.site-header .mobile-register,
.mobile-menu .menu-bottom > .pill {
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: .015em;
}
.mobile-menu nav a {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -.02em;
}
