/* Services: page-specific styles.

   The header used to say the body copy here was placeholder. It is not, and has
   not been for some time. Every word on this page is Kathy's except the one
   section that is still blocked on her, "Where the money goes", which is
   commented out in the markup rather than rendering Latin. */

/* The lime corner glow that used to sit behind this hero is gone, with every
   other gradient on the site. See the .page-hero comment in styles.css. */

/* The Wendy's Helping Hands photo is a tall 481x640 portrait, so cap it so the
   copy beside it isn't dwarfed. Never shown wider than its real pixel width. */
.work__figure img {
  max-height: 520px;
  object-fit: cover;
  object-position: center 35%;
}

/* The offset block hangs 26px past the frame on the right. Stacked, that is
   wider than the gutter and it would push the page sideways, so the frame is
   pulled in by the same amount. The caption has to clear the block underneath
   it as well, or it reads as a caption box. Same fix as .session__figure on
   Coaching and .partner-gallery on Partner. */
.work__figure .frame { margin-right: 26px; }
.work__figure figcaption { padding-top: 36px; }

@media (min-width: 901px) {
  /* Side by side the photo column is narrower than the container, so the block
     has the grid gap to hang into. */
  .work__figure .frame { margin-right: 0; }
  .work__figure figcaption { padding-top: 10px; }
}

/* How it works: the heading in its own column, the prose in the wider one, so
   the section uses the container instead of running a narrow column down the
   middle of it. Also used by the commented out "Where the money goes" section,
   which is why the class is not named after this one. */
.howitworks { display: grid; gap: var(--space-4); }
.howitworks .section-head { margin-bottom: 0; }
.howitworks__body p { color: var(--ink-soft); }
.howitworks__body p:last-child { margin-bottom: 0; }

@media (min-width: 900px) {
  .howitworks {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: var(--space-6);
    align-items: start;
  }
}

/* The run in lead in that replaced the three step headings. Italic Playfair at
   500 is the site's accent face, and 1.12em lifts it to roughly the body size
   to the eye, because Playfair has a smaller x height than Nunito Sans at the
   same point size. --ink against the --ink-soft sentence that follows is what
   makes it read as a lead in rather than as emphasis. */
.leadin {
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 500;
  font-size: 1.12em;
  color: var(--ink);
}

/* Working alongside Wendy's Helping Hands: a single statement on the green
   band. Not a two column grid, because there is one sentence to put in it.
   Every colour inside the band comes from the .section--green rules in
   styles.css. */
.alongside h2 { margin-bottom: var(--space-3); }
.alongside p {
  font-size: var(--fs-lead);
  line-height: 1.65;
  max-width: 56ch;
  margin-bottom: var(--space-1);
}
/* .link-arrow carries 4px of side padding to keep its tap target off the text
   above it. Here it is the only thing in its column, so that 4px reads as a
   misaligned left edge against the heading and the sentence. */
.alongside .link-arrow { padding-left: 0; }
