/* ==========================================================================
   ABOUT — the About page, on Page; How it works borrows its title and
   opening (.otb-about__title, .otb-about__intro).
   Markup: templates/node/node--page--about.html.twig,
   templates/node/node--page--how-it-works.html.twig.

   The body is staff-edited HTML cut at its headings: the first section
   opens the page (its heading is the headline, its first paragraph the
   standfirst) and the other sections close the page side by side.
   ========================================================================== */

/* The node title is the label over the body's own headline. */
.otb-about__title {
  margin-bottom: var(--space-4);
  font-family: var(--font-family-base);
}

.otb-about .otb-notice {
  margin-bottom: var(--space-8);
}

/* ---------- OPENING SECTION ---------- */

.otb-about__intro {
  overflow-wrap: break-word;
}

.otb-about__intro > h2:first-child {
  max-width: 16em;
  margin: 0 0 var(--space-8);
  font-size: var(--font-size-display-s);
  font-weight: var(--font-weight-light);
  line-height: var(--line-height-display);
  letter-spacing: var(--letter-spacing-display);
}

.otb-about__intro > :where(p, ul, ol, h3) {
  max-width: 680px;
  margin: 0 0 var(--space-5);
  font-size: var(--font-size-md);
  line-height: 1.7;
}

.otb-about__intro > h2:first-child + p {
  max-width: 760px;
  margin-bottom: var(--space-6);
  font-family: var(--font-family-display);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-light);
  line-height: 1.45;
}

/* A pull quote under the opening text. */
.otb-about__intro blockquote {
  max-width: 860px;
  margin: var(--space-10) 0 0;
  padding: var(--space-6) 0 0;
  border-top: 2px solid var(--color-text-primary);
}

.otb-about__intro blockquote p {
  margin: 0 0 var(--space-4);
  font-family: var(--font-family-display);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-light);
  line-height: 1.35;
}

.otb-about__intro blockquote cite {
  display: block;
  color: var(--color-text-muted);
  font-family: var(--font-family-base);
  font-size: var(--font-size-2xs);
  font-style: normal;
  font-weight: var(--font-weight-semibold);
  line-height: 1.4;
  letter-spacing: var(--letter-spacing-eyebrow);
  text-transform: uppercase;
}

/* Links in the body read as links without relying on colour. */
.otb-about :where(.otb-about__intro, .otb-about__section) a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

/* ---------- CLOSING SECTIONS ---------- */

.otb-about__more {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: var(--space-10) var(--space-6);
  margin-top: var(--space-16);
}

.otb-about__section {
  padding-top: var(--space-5);
  border-top: 2px solid var(--color-text-primary);
  overflow-wrap: break-word;
}

.otb-about__section > h2 {
  margin: 0 0 var(--space-4);
}

.otb-about__section > :where(p, ul, ol, blockquote) {
  margin: 0 0 var(--space-4);
}

.otb-about__section > :last-child {
  margin-bottom: 0;
}

@media (min-width: 769px) {
  .otb-about__intro > h2:first-child {
    font-size: var(--font-size-display-l);
  }

  .otb-about__intro > h2:first-child + p {
    font-size: var(--font-size-xl);
  }

  .otb-about__intro blockquote p {
    font-size: var(--font-size-h2);
  }

  .otb-about__more {
    margin-top: var(--space-24);
  }
}
