/* One scale across the separate desktop and mobile page layouts. */
:root {
  --type-title: clamp(2.25rem, 1.65rem + 2.7vw, 4.5rem);
  --type-section: clamp(1.875rem, 1.4rem + 2vw, 3.5rem);
  --type-subheading: clamp(1.125rem, 1rem + .35vw, 1.375rem);
  --type-copy: clamp(1rem, .95rem + .25vw, 1.1875rem);
}

/* The imported page layouts contain important declarations of their own. */
@layer brand-typography {
  main h1,
  main:not(.reading-datenschutz) h2:not(.person-card h2, .team-empty h2) {
    font-family: TypoRound, sans-serif !important;
    font-weight: 400 !important;
    line-height: 1.1 !important;
  }

  main h1 { font-size: var(--type-title) !important; }
  main:not(.reading-datenschutz) h2:not(.person-card h2, .team-empty h2) {
    font-size: var(--type-section) !important;
  }

  main :is(h1, h2) span {
    font-size: inherit !important;
    line-height: inherit !important;
  }

  main :is(h3, .person-card h2, .team-empty h2) {
    font-size: var(--type-subheading) !important;
    line-height: 1.25 !important;
  }

  main :is(.opening-lead, .pm-desktop-intro, .svc-section-head > p:last-child),
  main p:not([class]):not(footer p, figcaption p, article p, form p) {
    font-size: var(--type-copy) !important;
  }
}
