/* Public-site typography — loaded only via includes/head_pub.html */

:root {
  --pb-font-display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --pb-font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --pb-font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

body {
  font-family: var(--pb-font-sans);
  font-size: 1rem;
  line-height: 1.65;
}

@media (min-width: 768px) {
  body {
    font-size: 1.0625rem;
  }
}

/* —— Sans UI: nav, buttons, footer, forms —— */
.pb-btn,
.pb-btn-primary,
.pb-btn-secondary,
.pb-btn-ghost,
.pb-pub-header,
.pb-pub-header__link,
.pb-pub-header__mobile-link,
.pb-pub-footer,
.pb-pub-footer__title,
.pb-pub-footer__heading,
.pb-pub-footer__link,
.pb-pub-footer__copy,
.pb-pub-footer__copyright,
.pb-pub-skip-link,
.pb-help-search input,
.pb-help-search button,
.pb-blog-card h2,
.pb-blog-card h3,
.pb-blog-cta h2,
.pb-changelog-month__label,
.pb-changelog-item__card h3,
.pb-home-demo-card__title,
.pb-home-subheading,
.pb-pricing-faq summary,
.pb-pricing-faq .pb-pricing-faq-answer {
  font-family: var(--pb-font-sans);
}

.pb-btn,
.pb-btn-primary,
.pb-btn-secondary {
  font-weight: 600;
  letter-spacing: normal;
}

.pb-pub-header__link,
.pb-pub-header__mobile-link {
  font-weight: 500;
  letter-spacing: normal;
}

/* —— Eyebrow labels —— */
.pb-pub-eyebrow,
.pb-home-eyebrow {
  font-family: var(--pb-font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* —— Display: hero H1 —— */
.pb-display-hero {
  font-family: var(--pb-font-display);
  font-weight: 400;
  font-size: clamp(2.6125rem, 11.4vw, 3.8rem);
  line-height: 1;
  letter-spacing: -0.035em;
}

@media (min-width: 768px) {
  .pb-display-hero {
    font-size: clamp(3.325rem, 6.65vw, 5.9375rem);
    line-height: 0.98;
  }
}

.pb-display-hero.pb-display-section--major {
  font-size: clamp(2.75rem, 12vw, 4rem);
  line-height: 1;
}

@media (min-width: 768px) {
  .pb-display-hero.pb-display-section--major {
    font-size: clamp(3.5rem, 7vw, 6.25rem);
    line-height: 0.98;
  }
}

/* —— Display: section H2 —— */
.pb-display-section {
  font-family: var(--pb-font-display);
  font-weight: 400;
  font-size: clamp(2.1375rem, 4.275vw, 3.8rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.pb-display-section--major {
  font-size: clamp(2.25rem, 4.5vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
}

/* —— Display: page / article title —— */
.pb-display-title {
  font-family: var(--pb-font-display);
  font-weight: 400;
  font-size: clamp(2.5rem, 6vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

/* —— Blog, Help, Changelog article body —— */
.pb-blog-prose {
  font-family: var(--pb-font-sans);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 70ch;
}

@media (min-width: 768px) {
  .pb-blog-prose {
    font-size: 1.125rem;
  }
}

.pb-blog-prose h2 {
  font-family: var(--pb-font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.pb-blog-prose h3,
.pb-blog-prose h4 {
  font-family: var(--pb-font-sans);
  font-weight: 600;
  line-height: 1.2;
}

.pb-blog-prose blockquote {
  font-family: var(--pb-font-display);
  font-weight: 400;
  font-style: normal;
}

.pb-blog-prose pre,
.pb-blog-prose code {
  font-family: var(--pb-font-mono);
}

.pb-blog-prose a {
  font-weight: 500;
}

/* Blog / Help hero index titles share display treatment */
.pb-blog-hero .pb-display-title,
.pb-blog > header .pb-display-title {
  text-wrap: balance;
}

@media (prefers-reduced-motion: reduce) {
  .pb-display-hero,
  .pb-display-section,
  .pb-display-section--major,
  .pb-display-title {
    text-wrap: pretty;
  }
}
