/* About and Contact share the homepage's neutral gallery, typography and rhythm. */
.sj-editorial-hero {
  padding-block: clamp(3rem, 7vw, 7rem) clamp(4rem, 8vw, 8rem);
}

.sj-editorial-hero h1 {
  font-size: var(--sj-display);
  font-weight: 700;
  max-width: 14ch;
}

.sj-editorial-lede {
  max-width: var(--sj-copy-max);
  color: var(--sj-muted);
  font-size: var(--sj-body-lg);
  margin-block: 2rem;
}

/* Photo bands (About: our approach, Contact: details): the photograph runs the full width of the screen
   behind the copy, darkened where the text is and faded out at the top and bottom. */
.sj-photo-band {
  position: relative;
  overflow: hidden;
  padding-block: var(--sj-section-space);
}

.sj-photo-band > .sj-wrap {
  position: relative;
  z-index: 1;
}

.sj-photo-band .sj-editorial-image {
  position: absolute;
  inset: 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 15%, #000 85%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 15%, #000 85%, transparent);
}

.sj-photo-band .sj-editorial-image img {
  height: 100%;
  object-fit: cover;
}

.sj-photo-band .sj-editorial-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(var(--sj-hero-fade), .3), rgba(var(--sj-hero-fade), .7));
}

.sj-editorial h2 {
  font-size: var(--sj-heading-1);
  font-weight: 650;
  max-width: 18ch;
}

.sj-about-story p,
.sj-contact-details p,
.sj-section-heading p {
  color: var(--sj-muted);
  max-width: 36rem;
  margin-top: 1.5rem;
}

.sj-editorial-image {
  margin: 0;
  overflow: hidden;
}

.sj-editorial-image img {
  display: block;
  width: 100%;
  height: auto;
}

.sj-team {
  border-top: 1px solid var(--sj-line);
  padding-block: var(--sj-section-space);
}

.sj-people {
  display: grid;
  gap: 3rem;
  margin-top: 3rem;
}

body.sp-public-home article.sj-person {
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.sj-person-photo {
  display: block;
  width: min(100%, 414px);
  height: auto;
  margin-bottom: 1.5rem;
}

.sj-person h3 {
  font-size: var(--sj-heading-2);
  font-weight: 650;
}

.sj-person p {
  max-width: 30rem;
  margin-top: 1rem;
  color: var(--sj-muted);
}

.sj-editorial-end {
  border-top: 1px solid var(--sj-line);
  padding-block: 4rem;
}

.sj-editorial-end .sj-link {
  margin-top: 1.5rem;
}

/* Testimonials: quotes under a thin rule, like the homepage principles. */
.sj-quotes {
  border-top: 1px solid var(--sj-line);
  padding-block: var(--sj-section-space);
}

.sj-quote-list {
  display: grid;
  gap: 3rem;
  margin-top: 4rem;
}

.sj-quote {
  margin: 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--sj-ink);
}

.sj-quote blockquote {
  margin: 0;
}

.sj-quote blockquote p {
  margin: 0;
  font-size: clamp(1.2rem, 1.6vw, 1.45rem);
  line-height: 1.45;
}

.sj-quote figcaption {
  margin-top: 1.5rem;
  color: var(--sj-muted);
  font-size: var(--sj-small);
}

.sj-quote figcaption strong {
  display: block;
  margin-bottom: .25rem;
  color: var(--sj-ink);
  font-size: 1rem;
}

/* Privacy: plain reading text under a thin rule. */
.sj-legal {
  border-top: 1px solid var(--sj-line);
  padding-block: var(--sj-section-space);
}

.sj-legal > * { max-width: var(--sj-copy-max); }

/* Padding, not margin: the homepage heading reset sets margin: 0 with higher specificity. */
.sj-editorial .sj-legal h2 {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.25;
  padding-top: 3.5rem;
}

.sj-editorial .sj-legal h2:first-child { padding-top: 0; }

.sj-legal p,
.sj-legal ul {
  color: var(--sj-muted);
  font-size: var(--sj-body-lg);
  margin: 1rem 0 0;
}

.sj-legal li + li { margin-top: .5rem; }

.sj-legal a {
  color: var(--sj-ink);
  text-decoration: underline;
  text-underline-offset: .2em;
}

.sj-legal .sj-legal-updated {
  margin-top: 3.5rem;
  font-size: var(--sj-small);
}

.sj-contact-details dl { margin: 2rem 0 0; }
.sj-contact-details dt { font-size: var(--sj-small); color: var(--sj-muted); }
.sj-contact-details dd { margin: .5rem 0 2rem; }
.sj-contact-details address { font-style: normal; line-height: 1.7; }

@media (min-width: 900px) {
  .sj-people { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* Wide screens: the copy keeps to the left half, where the gradient is darkest. */
  .sj-photo-band > .sj-wrap > * { max-width: min(36rem, 45vw); }

  .sj-photo-band .sj-editorial-image::after {
    background: linear-gradient(90deg,
      rgba(var(--sj-hero-fade), .9) 0%,
      rgba(var(--sj-hero-fade), .7) 40%,
      rgba(var(--sj-hero-fade), .15) 75%,
      rgba(var(--sj-hero-fade), 0) 100%);
  }
  .sj-quote-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
