/* Local Latin typography. Load after the preview layout, before CJK overrides.
   Fahkwang: Cadson Demak; IBM Plex Mono: IBM. Both bundled under SIL OFL 1.1. */
@font-face {
  font-family: "HM Fahkwang";
  src: url("./fonts/Fahkwang-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "HM Fahkwang";
  src: url("./fonts/Fahkwang-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "HM Plex Mono";
  src: url("./fonts/IBMPlexMono-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
.home-orbital-preview {
  --hm-sans: "HM Fahkwang", var(--hm-cjk-sans, "Noto Sans SC"), "Avenir Next", "Segoe UI", sans-serif;
  --hm-mono: "HM Plex Mono", var(--hm-cjk-sans, "Noto Sans SC"), "SFMono-Regular", Consolas, monospace;
  font-family: var(--hm-sans) !important;
  font-weight: 400;
  font-synthesis: none;
}
.home-orbital-preview :is(button, input, textarea, select, option, p, a,
  label, summary, li, dt, dd, figcaption, h1, h2, h3, h4, h5, h6) {
  font-family: var(--hm-sans) !important;
  font-synthesis: none;
}
/* Inline fragments inherit their semantic parent's face. This keeps a CJK
   display face intact while Blur Reveal temporarily wraps words in spans/b. */
.home-orbital-preview :is(span, b, strong, small, em, i),
.home-orbital-preview .hm-blur-unit {
  font-family: inherit !important;
}
.home-orbital-preview :is(h1, h2, h3, h4, h5, h6) {
  font-weight: 300 !important;
  letter-spacing: -.012em;
}
/* Old sheets contain font shorthand declarations on these section titles. */
.home-orbital-preview .sx .sx-title,
.home-orbital-preview .model-intro-center h2,
.home-orbital-preview .story-intro h2,
.home-orbital-preview .plans-intro h2,
.home-orbital-preview .open-top h2 {
  font-family: var(--hm-sans) !important;
  font-weight: 300 !important;
  letter-spacing: -.018em !important;
}
.home-orbital-preview .hero .hero-copy {
  max-width: 1040px;
}
.home-orbital-preview .hero .hero-copy h1.hm-hero-title {
  font-family: var(--hm-sans) !important;
  font-weight: 300 !important;
  font-size: clamp(44px, 5.6vw, 74px) !important;
  line-height: 1.12 !important;
  letter-spacing: .012em !important;
  word-spacing: .015em;
}
.home-orbital-preview .hm-hero-line {
  display: block;
  text-transform: uppercase;
}
.home-orbital-preview .hm-hero-phrase {
  display: inline-block;
  white-space: nowrap;
}
.home-orbital-preview .hm-hero-phrase--outline {
  color: transparent;
  -webkit-text-stroke: clamp(1px, .019em, 1.5px) #efb9d4;
}
.home-orbital-preview :is(code, pre, .open-code, .open-code *, .prompt-count, .sx-time, .sx-time *) {
  font-family: var(--hm-mono) !important;
  font-weight: 400;
}
.home-orbital-preview :is(.hero-copy > p, .composer textarea) { font-weight: 300; }
.home-orbital-preview :is(.mode-button b, .generate, .sx-cta, .plan-action, .hm-model-copy strong) {
  font-weight: 400 !important;
}
@media (max-width: 700px) {
  .home-orbital-preview .hero .hero-copy h1.hm-hero-title {
    font-size: clamp(34px, 10.9vw, 48px) !important;
    line-height: 1.17 !important;
  }
  .home-orbital-preview .composer .mode-button b { font-size: 11px !important; }
  .home-orbital-preview .hm-model-copy strong { letter-spacing: -.02em; }
}
