/* The home font faces are registered by home-type.css on every document. */
html.orbit[data-orbit-page]:not([data-orbit-page="home"]) :is(main, [role="dialog"]:has(form)) {
  --foreground: #121214;
  --muted-foreground: #5f5e66;
  --site-note: color-mix(in srgb, #8e8c93 25%, var(--muted-foreground));
  --site-font: 'Inter Tight', Manrope, Arial, sans-serif;
  --site-label-font: 'JetBrains Mono', monospace;
  --site-copy-width: 760px;
  --site-h2: clamp(34px, 4.6vw, 68px);
  color: var(--foreground);
  font-family: var(--site-font);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.55;
}

html.orbit[data-orbit-page][data-orbit-theme="dark"]:not([data-orbit-page="home"]) :is(main, [role="dialog"]:has(form)) {
  --foreground: #f4f3ed;
  --muted-foreground: #cfcfd6;
  --site-note: #b4b3bc;
}

html.orbit[data-orbit-page]:not([data-orbit-page="home"]) main h1 {
  font-family: var(--site-font);
  font-size: clamp(38px, 5vw, 72px) !important;
  font-weight: 600 !important;
  line-height: 1.04 !important;
  letter-spacing: -.045em !important;
  text-wrap: balance;
}

html.orbit[data-orbit-page]:not([data-orbit-page="home"]) main h2,
html.orbit[data-orbit-page]:not([data-orbit-page="home"]) main :is(#lead-form, #site-lead, #faq) h2 {
  font-family: var(--site-font);
  font-size: var(--site-h2) !important;
  font-weight: 600 !important;
  line-height: 1.02 !important;
  letter-spacing: -.045em !important;
  text-wrap: balance;
}

html.orbit[data-orbit-page]:not([data-orbit-page="home"]) main h3:not(:has(button)) {
  font-family: var(--site-font);
  font-size: 24px !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  letter-spacing: -.02em !important;
}

html.orbit[data-orbit-page]:not([data-orbit-page="home"]) main :is(
  p, .prose li, .holgo-article li, .article-teaser li, table td
),
html.orbit[data-orbit-page]:not([data-orbit-page="home"]) main #faq [role="region"] {
  font-size: 17px;
  line-height: 1.55;
}

html.orbit[data-orbit-page]:not([data-orbit-page="home"]) main p {
  max-inline-size: min(100%, var(--site-copy-width));
}

html.orbit[data-orbit-page]:not([data-orbit-page="home"]) main :is(
  .text-muted-foreground, .article-source, .article-sources li
) {
  color: var(--muted-foreground);
}

html.orbit[data-orbit-page]:not([data-orbit-page="home"]) main :is(
  .focus-small, .focus-kicker, .article-teaser-kicker, .article-toc summary,
  .uppercase.tracking-wide, .bp-kicker, .focus-directory-number, .focus-directory-label,
  .focus-directory-columns, .focus-calc-related > span:first-child,
  .faq-hub-kicker, .orbit-hero [class*="rounded-full"][class*="text-xs"]
) {
  font: 500 12px/1.3 var(--site-label-font) !important;
  letter-spacing: .1em !important;
  text-transform: uppercase;
}

/* Article headings follow the same hierarchy at a scale suited to the reading column. */
html.orbit[data-orbit-page]:not([data-orbit-page="home"]) main .holgo-article h2 {
  font-size: clamp(28px, 3.2vw, 42px) !important;
  line-height: 1.1 !important;
}

html.orbit[data-orbit-page]:not([data-orbit-page="home"]) main .holgo-article h3 {
  font-size: 24px !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
}

html.orbit[data-orbit-page]:not([data-orbit-page="home"]) main .article-sources li,
html.orbit[data-orbit-page]:not([data-orbit-page="home"]) main .article-source {
  color: var(--site-note);
  font-size: 14px;
}

html.orbit[data-orbit-page]:not([data-orbit-page="home"]) :is(main, [role="dialog"]:has(form)) :is(
  input:not([type="checkbox"], [type="radio"], [type="range"]), textarea, select
) {
  font-family: var(--site-font);
  font-size: 16px;
}

html.orbit[data-orbit-page]:not([data-orbit-page="home"]) [role="dialog"]:has(form) h2 {
  font-family: var(--site-font);
}

html.orbit[data-orbit-page]:not([data-orbit-page="home"]) main :is(
  .orbit-case-card h2, .orbit-directory-card h2, .focus-directory-row h2,
  .focus-calc-heading h2, .remont-catalog-card h2, .bp-card h2
) {
  font-size: 24px !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  letter-spacing: -.02em !important;
}

html.orbit[data-orbit-page]:not([data-orbit-page="home"]) main :is(.orbit-hero p, .focus-directory-top > p) {
  font-size: 17px !important;
  line-height: 1.55 !important;
}

html.orbit[data-orbit-page]:not([data-orbit-page="home"]) main .focus-directory-top > p {
  max-width: 560px !important;
}

html.orbit[data-orbit-page]:not([data-orbit-page="home"]) main .orbit-case-story :is(p, li) {
  max-inline-size: var(--site-copy-width);
  font-size: 17px;
  line-height: 1.55;
}

html.orbit[data-orbit-page]:not([data-orbit-page="home"]) main :is(.orbit-hero, .orbit-section) h2 {
  max-inline-size: min(100%, 1100px);
}

/* Price columns keep their digits together while work names can wrap at 320px. */
html.orbit[data-orbit-page]:not([data-orbit-page="home"]) main .site-audit-table td:not(.num) {
  overflow-wrap: anywhere;
}

html.orbit[data-orbit-page]:not([data-orbit-page="home"]) main .site-audit-table td {
  font-size: clamp(14px, 2vw, 16px);
}

/* Catalogue descriptions and estimates remain readable in their compact layouts. */
html.orbit[data-orbit-page]:not([data-orbit-page="home"]) main .focus-directory-outcome p {
  font-size: 17px !important;
  line-height: 1.55 !important;
}

html.orbit[data-orbit-page]:not([data-orbit-page="home"]) main .focus-directory-fit p {
  font-size: 15px !important;
  line-height: 1.55 !important;
}

html.orbit[data-orbit-page]:not([data-orbit-page="home"]) main :is(
  .focus-directory-entry-type, .focus-calc-service-copy > span, .focus-calc-price,
  .focus-calc-quantity, .focus-calc-included
) {
  font-size: 13px;
  line-height: 1.5;
}

html.orbit[data-orbit-page]:not([data-orbit-page="home"]) main .focus-calc-service-copy strong {
  font-size: 15px;
  line-height: 1.5;
}

html.orbit[data-orbit-page]:not([data-orbit-page="home"]) main form label:not(:has(input[type="checkbox"])) {
  font-size: 14px !important;
}

@media (max-width: 360px) {
  html.orbit[data-orbit-page]:not([data-orbit-page="home"]) main h1 {
    font-size: clamp(30px, 10vw, 36px) !important;
    hyphens: auto;
  }
}
