/* The editor's pictures on the pages: posters, the "host" who stands in a closing panel, and a figure beside a heading.
   Pictures on his dark backdrop use mix-blend-mode:lighten, so the backdrop disappears into the page. */

/* posters: one picture, words at the bottom */
.posters{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--s6)}
.poster{margin:0;position:relative;border-radius:var(--radius);overflow:hidden;border:1px solid var(--rule);background:var(--black);aspect-ratio:3/4;
  transition:transform .25s var(--ease),border-color .25s,box-shadow .25s}
.poster:hover{transform:translateY(-4px);border-color:rgb(95 227 238 / .6);box-shadow:0 20px 60px -30px rgb(95 227 238 / .45)}
.poster img{width:100%;height:100%;object-fit:cover}
.poster figcaption{position:absolute;left:0;right:0;bottom:0;display:grid;gap:.3rem;padding:5rem 1.4rem 1.4rem;
  background:linear-gradient(transparent,rgb(12 11 17 / .9) 58%)}
.poster small{font-size:.8rem;font-weight:600;color:var(--accent-ink)}
.poster b{font-size:1.5rem;letter-spacing:-.015em}
.poster span{color:var(--ink-2);font-size:.95rem;line-height:1.45}

/* two columns: a poster and the content beside it */
.duo{display:grid;grid-template-columns:minmax(0,.6fr) minmax(0,1.4fr);gap:clamp(1.5rem,4vw,3.5rem);align-items:center}
.duo h2{margin-bottom:var(--s8)}
.duo .ways{max-width:none;margin:0}

/* the host: he stands at the left of a closing panel, feet below its edge */
.close--host{grid-template-columns:minmax(0,2.3fr) minmax(0,4fr) minmax(0,5fr)}
.host{position:relative;align-self:end;margin:0 0 calc(-1 * clamp(1.5rem,4vw,3.5rem))}
.host img{width:100%;height:auto;max-height:27rem;object-fit:cover;object-position:top;mix-blend-mode:lighten;
  -webkit-mask-image:linear-gradient(#000 78%,transparent);mask-image:linear-gradient(#000 78%,transparent)}

/* a figure beside a heading */
.say{display:flex;align-items:center;justify-content:center;gap:clamp(1rem,3vw,2.5rem);margin-bottom:clamp(2rem,4vw,3.25rem)}
.say h2{max-width:14ch}
.say__pic img{width:clamp(7.5rem,13vw,11rem);height:auto;aspect-ratio:2/2.5;object-fit:cover;object-position:top;mix-blend-mode:lighten;
  -webkit-mask-image:linear-gradient(#000 70%,transparent);mask-image:linear-gradient(#000 70%,transparent)}

/* the chapter pages under the posters */
.inside-book{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:clamp(1.5rem,4vw,3.5rem);align-items:center;margin-top:clamp(2rem,5vw,4rem)}
.inside-book img{width:100%;height:auto;border-radius:14px;border:1px solid var(--rule-2);box-shadow:0 30px 80px -40px rgb(0 0 0 / .9)}
.inside-book div{display:grid;gap:var(--s4)}
.inside-book p{color:var(--ink-2)}

@media (max-width:62rem){
  .posters{grid-template-columns:1fr;max-width:24rem;margin-inline:auto}
  .duo,.inside-book{grid-template-columns:1fr}
  .duo .poster{max-width:20rem;margin-inline:auto}
  .close--host{grid-template-columns:1fr}
  .host{order:-1;margin:0 auto calc(-1 * var(--s4));width:11rem}
  .host img{max-height:13rem}
}
@media (max-width:40rem){
  .say{flex-direction:column;text-align:center;gap:var(--s4)}
  .say h2{max-width:none}
}
