:root {
  --type-font-display: "Syne", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --type-font-body: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --type-font-mono: "DM Mono", ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  --type-size-display: clamp(2.2rem, 4.4vw, 4.2rem);
  --type-size-editorial: clamp(2rem, 3.8vw, 3.4rem);
  --type-size-h2: clamp(1.55rem, 2.8vw, 2.4rem);
  --type-size-h3: clamp(1.05rem, 1.3vw, 1.25rem);
  --type-size-h4: clamp(1rem, 1.1vw, 1.125rem);
  --type-size-h5: 1rem;
  --type-size-h6: .9rem;
  --type-leading-display: 1.14;
  --type-leading-editorial: 1.24;
  --type-leading-heading: 1.25;
  --type-leading-body: 1.68;
  --type-tracking-display: -0.025em;
  --type-tracking-heading: -0.012em;
  --type-prose-measure: 68ch;
}

body {
  line-height: var(--type-leading-body);
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--type-font-display);
  line-height: var(--type-leading-heading);
  max-height: none;
  overflow: visible;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: manual;
  text-wrap: balance;
  padding-block: .08em;
}

main h1, .hero h1 {
  font-size: var(--type-size-display);
  line-height: var(--type-leading-display);
  letter-spacing: var(--type-tracking-display);
}

main h2 {
  font-size: var(--type-size-h2);
  line-height: var(--type-leading-heading);
  letter-spacing: var(--type-tracking-heading);
}

main h3 {
  font-size: var(--type-size-h3);
  line-height: var(--type-leading-heading);
}

main h4 { font-size: var(--type-size-h4); }
main h5 { font-size: var(--type-size-h5); }
main h6 { font-size: var(--type-size-h6); }

p, li, dd, figcaption, summary {
  text-wrap: pretty;
}

.hero p, .intro, .detail, .section-sub, .hero-sub {
  max-width: var(--type-prose-measure);
}

a.button, .btn-primary, .btn-secondary, .plan-cta, .nav-cta {
  max-width: 100%;
  line-height: 1.3;
  text-align: center;
  overflow-wrap: break-word;
}

img, svg, video, canvas {
  max-width: 100%;
}

@media (max-width: 720px) {
  :root {
    --type-size-display: clamp(2rem, 9.5vw, 2.9rem);
    --type-size-editorial: clamp(1.75rem, 8vw, 2.5rem);
    --type-size-h2: clamp(1.45rem, 7vw, 2rem);
  }

  .nav-links {
    column-gap: 1rem;
    row-gap: .75rem;
  }
}
