@font-face {
  font-family: "S-Core Dream";
  src: url("../fonts/SCDream4.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "S-Core Dream";
  src: url("../fonts/SCDream6.otf") format("opentype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "S-Core Dream";
  src: url("../fonts/SCDream7.otf") format("opentype");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

body,
button,
input,
select,
textarea,
.site-header,
main,
.site-footer {
  font-family: "S-Core Dream", "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/*
 * The live theme previously mixed 700–900 numeric weights. Normalize ordinary
 * navigation, copy, forms, tables, cards and numbers to the approved Regular
 * face, then opt only the approved emphasis tiers back in below.
 */
.site-header *,
main *,
.site-footer * {
  font-weight: 400 !important;
}

main :where(h2, h3, h4, h5, h6, strong, b),
.site-header :where(.header-cta, .menu-toggle, .menu-close),
main :where(
  .button,
  .rb-button,
  .rebuild-button,
  button[type="submit"],
  input[type="submit"],
  .eyebrow,
  .section-kicker,
  .rebuild-eyebrow,
  .panel-kicker,
  .post-meta,
  .resource-meta,
  .quick-number,
  .route-step,
  .rb-status,
  .rebuild-form-notice
),
.site-footer :where(strong, b, .footer-advisory a) {
  font-weight: 700 !important;
}

main :where(h1, .hero h1, .page-header h1, .rb-page-header h1, .rb-market-hero h1) {
  font-weight: 800 !important;
}

/* Keep form and table content comfortably legible after the face change. */
main :where(input, select, textarea, table, th, td) {
  letter-spacing: -0.01em;
}

@media (max-width: 1120px) {
  .site-nav__primary {
    gap: 14px;
  }

  .site-nav a {
    font-size: 12px;
  }
}

@media (max-width: 520px) {
  body {
    letter-spacing: -0.01em;
  }

  main :where(h1, .hero h1, .page-header h1, .rb-page-header h1, .rb-market-hero h1) {
    letter-spacing: -0.05em;
  }
}

