:root {
  --reading-width: 900px;
  --wide-width: 1200px;
}

.site-header .brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  line-height: 1.15;
}

.header-logo {
  display: block;
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 2.75rem;
  border-radius: .55rem;
}

@media (max-width: 520px) {
  .site-header .brand span { max-width: 10rem; }
}

.page-introduction {
  max-width: 72ch;
  font-size: clamp(1rem, 1.35vw, 1.16rem);
  line-height: 1.7;
}

body[data-page-type="service"] .hero,
body[data-page-type="about"] .hero,
body[data-page-type="contact"] .hero,
body[data-page-type="privacy"] .hero {
  grid-template-columns: minmax(0, var(--reading-width));
  padding-inline: max(5vw, calc((100vw - var(--reading-width)) / 2));
}

body:not([data-page-type="home"]) .hero-copy {
  width: 100%;
  max-width: var(--reading-width);
}

.content > section:not(.home-services):not(.cta),
.content > .service-photo,
.content > .editorial-cta {
  width: min(100%, var(--reading-width));
  margin-right: auto;
  margin-left: auto;
}

body[data-page-type="service"] .content > section:not(.cta) {
  padding-bottom: 2.4rem;
  border-bottom: 1px solid rgba(7, 43, 52, .12);
}

body[data-page-type="service"] .content > section h2 {
  max-width: 32ch;
  margin-bottom: .8rem;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  line-height: 1.25;
}

.related-services {
  padding: 1.6rem;
  border: 1px solid rgba(7, 43, 52, .12);
  border-radius: .8rem;
  background: rgba(255, 255, 255, .6);
}

.related-services a {
  font-weight: 750;
  text-underline-offset: .18em;
}

.editorial-cta {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
  margin-top: 2.5rem;
  margin-bottom: 3rem;
  padding: 1.5rem;
  border-left: 5px solid var(--accent);
  border-radius: .65rem;
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(7, 43, 52, .08);
}

.editorial-cta p {
  margin: 0;
  max-width: 58ch;
}

.editorial-cta > div {
  display: flex;
  flex: 0 0 auto;
  gap: .8rem;
  align-items: center;
}

.editorial-cta .text-link {
  font-weight: 800;
}

.content > .cta {
  width: min(100%, var(--reading-width));
  margin-right: auto;
  margin-left: auto;
}

@media (max-width: 760px) {
  body[data-page-type] .hero {
    padding-inline: 1rem;
  }

  .page-introduction {
    font-size: 1rem;
  }

  .editorial-cta,
  .editorial-cta > div {
    align-items: stretch;
    flex-direction: column;
  }

  .editorial-cta .button,
  .editorial-cta .text-link {
    text-align: center;
  }
}
