/* Parent quotes on the homepage and the Campaign 11 page. Scoped with
   :is(#c07Homepage, body) so the rules outrank both pages' own section
   styles; the Campaign 11 page lives inside #c07Homepage. */
/* Parent quotes, set the way the book sets a child's words: serif words, a
   dash and a name, a photo framed like a print on the page. The words that
   name the problem are in clay. No cards. */
:is(#c07Homepage, body) .parent-quotes { background:var(--paper); }
:is(#c07Homepage, body) .parent-quotes blockquote { margin:0; font-family:var(--font-serif); letter-spacing:-.01em; text-wrap:pretty; }
:is(#c07Homepage, body) .parent-quotes em { font-style:normal; color:#b8512f; }
:is(#c07Homepage, body) .parent-quote-name { margin:10px 0 0; font:400 13px/1.4 var(--font-sans); color:var(--muted); }
:is(#c07Homepage, body) .parent-quotes-lead { width:min(100% - 36px,520px); margin:0 auto; padding:40px 0 44px; }
:is(#c07Homepage, body) .parent-quotes h2 {
  margin:0 0 28px; color:var(--green); font:500 clamp(28px,8vw,40px)/1.08 var(--font-serif); letter-spacing:-.025em; text-wrap:balance;
}
/* On a phone the words wrap around the photo, as on a book page. */
:is(#c07Homepage, body) .parent-quotes-feature { display:flow-root; }
:is(#c07Homepage, body) .parent-quotes-feature .parent-photo { float:left; width:108px; margin:6px 18px 10px 0; }
:is(#c07Homepage, body) .parent-quotes-feature blockquote { color:var(--ink); font-size:22px; line-height:1.32; font-weight:400; }
/* A print on the page: white border, a slight tilt. */
:is(#c07Homepage, body) .parent-photo {
  margin:4px 0 0; aspect-ratio:4/5; overflow:hidden; border:5px solid #fffdf8; border-radius:3px;
  background:#e9ddcb; box-shadow:0 6px 18px rgb(31 42 36 / 16%); transform:rotate(-2.5deg);
}
:is(#c07Homepage, body) .parent-photo img { display:block; width:100%; height:100%; object-fit:cover; }
:is(#c07Homepage, body) .parent-photo.is-pending {
  display:flex; align-items:center; justify-content:center; padding:8px; color:#8c7f6c; font:400 11px/1.3 var(--font-sans); text-align:center;
}

/* The chorus: the same problem in other parents' words, on the dark band. */
:is(#c07Homepage, body) .parent-quotes-chorus { background:var(--green-dark); }
:is(#c07Homepage, body) .parent-quotes-chorus ul { display:grid; width:min(100% - 36px,520px); margin:0 auto; padding:14px 0; list-style:none; }
:is(#c07Homepage, body) .parent-quotes-chorus li { padding:22px 0; }
:is(#c07Homepage, body) .parent-quotes-chorus li + li { border-top:1px solid rgb(244 233 216 / 14%); }
:is(#c07Homepage, body) .parent-quotes-chorus blockquote { color:var(--paper); font-size:20px; line-height:1.38; }
:is(#c07Homepage, body) .parent-quotes-chorus em { color:#f0a483; }
:is(#c07Homepage, body) .parent-quotes-chorus .parent-quote-name { color:rgb(244 233 216 / 66%); }

:is(#c07Homepage, body) .parent-quote-byline { display:flex; align-items:center; gap:12px; margin-top:12px; }
:is(#c07Homepage, body) .parent-quote-byline .parent-photo { width:44px; flex:none; margin:0; border-width:2px; }
:is(#c07Homepage, body) .parent-quote-byline .parent-quote-name { margin:0; }

/* The one result closes it. */
:is(#c07Homepage, body) .parent-quotes-closer {
  display:grid; gap:0 16px; align-items:center;
  width:min(100% - 36px,520px); margin:0 auto; padding:36px 0 48px;
}
:is(#c07Homepage, body) .parent-quotes-closer:has(> .parent-photo) { grid-template-columns:84px minmax(0,1fr); }
:is(#c07Homepage, body) .parent-quotes-closer .parent-photo { transform:rotate(2deg); }
:is(#c07Homepage, body) .parent-quotes-closer blockquote { color:var(--ink); font-size:19px; line-height:1.35; }

@media(min-width:900px) {
  /* Wide screens: the heading beside the featured parent, the chorus in two columns. */
  :is(#c07Homepage, body) .parent-quotes-lead {
    display:grid; grid-template-columns:minmax(0,5fr) minmax(0,7fr); gap:64px; align-items:center;
    width:min(100% - 80px,1120px); padding:80px 0 72px;
  }
  :is(#c07Homepage, body) .parent-quotes h2 { margin:0; font-size:clamp(38px,3.6vw,48px); }
  :is(#c07Homepage, body) .parent-quotes-feature { display:grid; grid-template-columns:200px minmax(0,1fr); gap:0 36px; align-items:center; }
  :is(#c07Homepage, body) .parent-quotes-feature .parent-photo { float:none; width:auto; margin:0; }
  :is(#c07Homepage, body) .parent-quotes-feature blockquote { font-size:28px; }
  :is(#c07Homepage, body) .parent-quotes-chorus ul { grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 64px; width:min(100% - 80px,1120px); padding:36px 0; }
  :is(#c07Homepage, body) .parent-quotes-chorus li { padding:26px 0; }
  :is(#c07Homepage, body) .parent-quotes-chorus li:nth-child(2) { border-top:0; }
  :is(#c07Homepage, body) .parent-quotes-chorus blockquote { font-size:22px; }
  :is(#c07Homepage, body) .parent-quotes-closer:has(> .parent-photo) { grid-template-columns:110px minmax(0,1fr); }
  :is(#c07Homepage, body) .parent-quotes-closer { gap:0 28px; width:min(100% - 80px,720px); padding:64px 0 80px; }
  :is(#c07Homepage, body) .parent-quotes-closer blockquote { font-size:24px; }
}
