@font-face {
  font-family: "Pretendard Variable";
  src: url("/assets/barit/fonts/PretendardVariable.woff2") format("woff2");
  font-style: normal;
  font-weight: 45 920;
  font-display: swap;
}

.barit-renewal {
  --barit-font: "Pretendard Variable", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  --at-ff-body: var(--barit-font);
  --at-ff-heading: var(--barit-font);
  --at-heading-font: var(--barit-font);
  --barit-type-note: .875rem;
  --barit-type-body: 1rem;
  --barit-type-heading: 1.75rem;
  --barit-type-title: 3rem;
  font-family: var(--barit-font);
}

.barit-renewal:lang(ko) {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.barit-archive-heading h1 {
  --barit-type-title: clamp(3rem, 5.6vw, 5.5rem);
  font-weight: 650;
  line-height: 1.04;
  letter-spacing: -.065em;
}

.barit-archive-heading > p {
  font-weight: 560;
  line-height: 1.55;
}

@layer barit-typography {
  .barit-renewal {
    font-size: var(--barit-type-body) !important;
  }

  .barit-renewal *,
  .barit-renewal ::before,
  .barit-renewal ::after,
  .barit-renewal ::marker,
  .barit-renewal ::placeholder {
    font-size: inherit !important;
  }

  .barit-renewal :where(h1) {
    font-size: var(--barit-type-title) !important;
  }

  .barit-renewal .barit-archive-heading > p,
  .barit-renewal .portfolio-editorial-intro {
    font-size: clamp(1rem, 1.4vw, 1.25rem) !important;
  }

  .barit-renewal :where(h2, h3, h4, h5, h6, .web-pricing-price) {
    font-size: var(--barit-type-heading) !important;
  }

  .barit-renewal :where(
    small, figcaption, time, dt, sup, sub, [aria-label="현재 위치"],
    .ba-label, .ba-title-row nav, .ba-step, .ba-working-list article > span, .ba-location address > span,
    .barit-footer-bottom, .barit-footer-company p, .ds-price-item-tag, .faq-category-count, .cs-portfolio-tag a,
    .strategy-reference a > span:first-child
  ) {
    font-size: var(--barit-type-note) !important;
  }

  .barit-renewal :where(button, input, select, textarea, summary, .accordion-header, .barit-footer h3) {
    font-size: var(--barit-type-body) !important;
  }

  @media (max-width: 767px) {
    .barit-renewal .barit-list-action { font-size: var(--barit-type-note) !important; }
  }
}

.barit-renewal :where(h1, h2, h3, h4, h5, h6) {
  overflow-wrap: anywhere;
}
