/* PRIGLO — Kazakh UI typography.
   Only the interface with <html lang="kk"> changes. Invitation designs keep
   their own chosen fonts, regardless of the language of the site or invitation.
   Uses the existing local Literata file: no third-party request, no new asset. */
@font-face {
  font-family: "Literata";
  src: url("/assets/fonts/literata.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

/* Marketing, catalogue, contact page, navigation, and account interface. */
html[lang="kk"] :is(
  .air-home,
  .air-catalog-page,
  .contact-page.air-contact-v45,
  .air-site-header,
  .air-site-footer,
  .my-collection-shell,
  .account-shell,
  .auth-page
) {
  font-family: "Literata", Georgia, serif !important;
}

/* Production CSS sets Manrope on some individual headlines and buttons.
   Override those text elements only, not the invitation/template artwork. */
html[lang="kk"] :is(
  .air-home,
  .air-catalog-page,
  .contact-page.air-contact-v45,
  .air-site-header,
  .air-site-footer,
  .my-collection-shell,
  .account-shell,
  .auth-page
) :is(
  h1, h2, h3, h4, h5, h6,
  p, span, small, strong, b, em, li,
  a, button, label, input, textarea, select, summary
) {
  font-family: "Literata", Georgia, serif !important;
}

/* Keep the PRIGLO brand wordmark consistent with RU/EN. */
html[lang="kk"] :is(
  .air-site-header, .air-site-footer, .editor-topbar
) .brand,
html[lang="kk"] :is(
  .air-site-header, .air-site-footer, .editor-topbar
) .brand span {
  font-family: "PRIGLO Manrope", "DM Sans", sans-serif !important;
}

/* Editor interface, excluding the live invitation preview and font samples. */
html[lang="kk"] .priglo-create-v2 :is(
  .editor-topbar, .editor-tabs, .editor-panel, .priglo-mobile-actions
) {
  font-family: "Literata", Georgia, serif !important;
}
html[lang="kk"] .priglo-create-v2 :is(
  .editor-topbar, .editor-tabs, .priglo-mobile-actions
) :is(a, button, span, strong) {
  font-family: "Literata", Georgia, serif !important;
}
html[lang="kk"] .priglo-create-v2 .editor-panel :is(
  h1, h2, h3, h4, p, label, input, textarea, select, summary
) {
  font-family: "Literata", Georgia, serif !important;
}

/* Standalone information and legal pages are explicitly marked on <body>.
   No such marker is present on guest invitation pages. */
html[lang="kk"] body.priglo-static-page,
html[lang="kk"] body.priglo-static-page :is(
  h1, h2, h3, h4, h5, h6,
  p, span, small, strong, b, em, li, a,
  button, label, input, textarea, select, summary
) {
  font-family: "Literata", Georgia, serif !important;
}
html[lang="kk"] body.priglo-static-page :is(.brand, .brand span, .pr-info-brand, .pr-info-brand span) {
  font-family: "DM Sans", Arial, sans-serif !important;
}

/* The serif needs slightly more breathing room than the former sans-serif.
   Keep original layouts, colours, sizes, and button styling intact. */
html[lang="kk"] .air-home :is(.air-hero h1, .air-section-intro h2, .air-final h2),
html[lang="kk"] .air-catalog-page .page-head h1,
html[lang="kk"] .contact-page.air-contact-v45 :is(h1, h2) {
  letter-spacing: -0.025em;
  line-height: 1.16;
  overflow-wrap: break-word;
}
