/* Shared public-site typography. Preserve the existing brand font and visual design. */
:root {
  --nw-type-caption: 0.8125rem;
  --nw-type-small: 0.875rem;
  --nw-type-card: 0.9375rem;
  --nw-type-body: 1rem;
  --nw-type-lead: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --nw-type-title: clamp(2.25rem, 1.75rem + 2.5vw, 3.5rem);
  --nw-type-section: clamp(1.75rem, 1.25rem + 1.5vw, 2.5rem);
  --nw-type-muted: #59657b;
  --nw-type-accent: #0c7487;
}

body {
  font-size: var(--nw-type-body);
  line-height: 1.65;
}

body :is(button, input, select, textarea) {
  font-family: var(--font-sans);
}

/* A compact heading scale keeps the hero distinctive and inner pages composed. */
body h1.hero-title {
  font-size: clamp(2.25rem, 1.75rem + 3vw, 4rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.035em;
  max-width: 18ch;
}

body :is(.subpage-hero, .legal-hero) h1 {
  font-size: var(--nw-type-title);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

body :is(.sec-title, .section-heading h2, .seo-split h2, .final-cta h2, .final-card h2) {
  font-size: var(--nw-type-section);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

/* Keep the five homepage section headings quieter than the hero and closing CTA. */
body.home-light main h2.sec-title {
  font-size: clamp(1.75rem, 1.25rem + 1.5vw, 2.25rem);
}

body .hosting-category > h2,
body .hosting-config h2 {
  font-size: clamp(1.5rem, 1.25rem + 0.75vw, 1.875rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

body :is(.dep, .plan, .do-card, .how, .comparison-grid) h3,
body .link-card :is(h2, h3) {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.015em;
}

body .ops-item h4 {
  font-size: 1.0625rem;
  line-height: 1.4;
}

body :is(.hero-sub, .hero-lede),
body .subpage-hero p:not(.eyebrow),
body .legal-hero > p,
body .hosting-intro > p:not(.eyebrow) {
  font-size: var(--nw-type-lead);
  line-height: 1.7;
  max-width: 65ch;
  text-wrap: pretty;
}

body .hero-sub {
  max-width: 640px;
}

body .hero-inner {
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

body :is(.sec-lead, .final-card .sub, .prose p, .who-band p) {
  font-size: 1.0625rem;
  line-height: 1.75;
  text-wrap: pretty;
}

body :is(.triad .t p, .dep p, .ops-item p, .plan p.desc, .plan li, .do-card p, .how p) {
  font-size: var(--nw-type-card);
  line-height: 1.65;
}

body .triad .t .k {
  font-size: var(--nw-type-card);
  line-height: 1.4;
}

body :is(.plan .who, .chip span) {
  font-size: var(--nw-type-small);
  line-height: 1.6;
  color: var(--nw-type-muted);
}

body :is(.chip b, .mig-item, .do-link) {
  font-size: var(--nw-type-card);
  line-height: 1.5;
}

body :is(.sec-eyebrow, .eyebrow, .plan-tag, .do-tag) {
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.1em;
}

body :is(.sec-eyebrow, .eyebrow, .plan-tag) {
  color: var(--nw-type-accent);
}

body :is(.pill-tag, .region, .plan-flag) {
  font-size: var(--nw-type-caption);
  line-height: 1.5;
}

/* Shared control metrics keep navigation, language choices and CTAs aligned. */
body .nav-links a,
body .hosting-nav a {
  font-size: var(--nw-type-card);
  font-weight: 500;
  line-height: 1.5;
}

body :is(.btn, .button),
body a.nav-cta {
  min-height: 46px;
  font-size: var(--nw-type-card);
  font-weight: 600;
  line-height: 1.4;
}

body .btn.lg {
  min-height: 50px;
  font-size: var(--nw-type-body);
}

body .nw-languages summary {
  min-height: 42px;
  font-size: var(--nw-type-small);
  font-weight: 500;
  line-height: 1.4;
}

body .nw-languages li a {
  font-family: inherit;
  font-size: var(--nw-type-card);
  line-height: 1.5;
}

/* Long-form copy and service terms stay comfortable to read. */
body .legal-document h2 {
  font-size: clamp(1.25rem, 1.125rem + 0.5vw, 1.5rem);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

body .legal-document :is(p, ul) {
  max-width: 75ch;
  font-size: var(--nw-type-body);
  line-height: 1.8;
}

body .faq-list summary {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.5;
}

body .faq-list details p {
  font-size: var(--nw-type-body);
  line-height: 1.75;
}

body :is(.hosting-note, .hosting-category small, .hosting-contact, .hosting-review-links),
body .hosting-review .hosting-checkout-details p {
  font-size: var(--nw-type-small);
  line-height: 1.75;
}

body .hosting-category :is(th, td) {
  font-size: var(--nw-type-card);
  line-height: 1.65;
}

body .hosting-summary {
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
}

/* Supporting text remains legible without competing with the main content. */
body :is(.footer-brand p, .fcol nav a, .footer-group a, .site-footer > div > p) {
  font-size: var(--nw-type-small);
  line-height: 1.65;
}

body .fcol h4,
body .footer-group > span,
body .details-card dt {
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.09em;
  color: var(--nw-type-muted);
}

body :is(.footer-brand .copy, .footer-base, .footer-base a, .site-footer-base, .site-footer .footer-legal) {
  font-size: var(--nw-type-caption);
  line-height: 1.7;
  color: var(--nw-type-muted);
}

body .footer-brand .copy {
  max-width: 38ch;
}

body .footer-grid {
  grid-template-columns: minmax(220px, 1.5fr) minmax(130px, 1fr) minmax(120px, 1fr)
    minmax(85px, 0.7fr) minmax(160px, 1.1fr) minmax(80px, 0.6fr);
  column-gap: 24px;
}

body :is(.footer-base, .fcol, .footer-group) {
  overflow-wrap: anywhere;
}

body :is(.fcol, .footer-group) a[href^="mailto:"] {
  overflow-wrap: normal;
}

@media (min-width: 681px) and (max-width: 1100px) {
  body .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 880px) {
  body .nav .nav-links a {
    font-size: var(--nw-type-body);
    line-height: 1.5;
  }
}

@media (max-width: 680px) {
  body .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  body h1.hero-title {
    font-size: clamp(2rem, 1rem + 5vw, 2.5rem);
    line-height: 1.15;
  }

  body .nw-languages summary {
    font-size: var(--nw-type-caption);
  }

  body .hero-sub {
    font-size: var(--nw-type-body);
  }
}

@media (max-width: 380px) {
  body .fcol:has(a[href^="mailto:"]) {
    grid-column: 1 / -1;
  }
}
