/* Product page: the mark and the line. Builds on site.css tokens. */

.p-title { text-wrap: balance; margin-bottom: .35em; }
.p-title.long { font-size: calc(var(--fs-h1) * .86); }
.opening .lead { max-width: 34rem; }

/* Photograph */
.p-fig { margin-bottom: 0; }
.p-fig img, .zoom-btn img {
  width: 100%;
  aspect-ratio: 3 / 2;
  max-height: 38vh;
  object-fit: cover;
  border-radius: var(--r-photo);
  background: var(--rose-line);
}
.zoom-btn {
  display: block; width: 100%;
  padding: 0; border: 0;
  background: none; color: inherit;
  border-radius: var(--r-photo);
  cursor: zoom-in;
}
@media (min-width: 48rem) {
  .p-fig img, .zoom-btn img { aspect-ratio: 16 / 9; max-height: 36vh; }
}

/* Set piece: the scene line set alone, flush with the column, a tape mark laid just above it */
.p-say { font-size: var(--fs-h1); }
.p-say .tape { margin: 0 0 1rem; }
.scene {
  margin: 0 0 .8rem;
  font: 400 1em/1.3 var(--display);
  text-wrap: balance;
}
.say-act { font-size: var(--fs-body); }
.say-act .pill { font-size: var(--fs-body); padding-inline: 1.6rem; }
.say-q { margin: .9rem 0 0; max-width: 36rem; font-size: 1.125rem; line-height: 1.5; }

/* Body copy */
.p-body .lead + p { margin-top: 1.15em; }
.p-body p { max-width: 36rem; }

/* The facts: one pale plate in oxblood, its rows parted by hairlines, as the programs call sheet */
.p-facts .facts {
  display: grid;
  gap: 0;
  margin-bottom: 1.5rem;
  padding: clamp(1.1rem, 3vw, 1.6rem) clamp(1.35rem, 4.5vw, 2.25rem);
  border-radius: var(--r-panel);
  background: var(--rose); color: var(--ox);
}
.p-facts .facts > div {
  display: grid;
  gap: .1rem 1.25rem;
  padding-block: .75rem;
  border: 0;
  border-top: .0625rem solid var(--ox-line);
  border-radius: 0;
}
.p-facts .facts > div:first-child { padding-top: 0; border-top: 0; }
.p-facts .facts > div:last-child { padding-bottom: 0; }
.p-facts .facts dt { font-size: var(--fs-body); line-height: 1.45; }
.p-facts .facts dd { line-height: 1.45; }
.p-facts .facts :focus-visible { outline-color: var(--ox); }
.p-facts .facts ::selection { background: var(--ox); color: var(--rose); }
@media (min-width: 48rem) {
  .p-facts .facts > div {
    grid-template-columns: 8rem 1fr;
    column-gap: 1.5rem;
  }
}

/* Hand-off: previous and next, side by side as one beat, its heading across both */
.hop { display: grid; gap: .75rem; padding-bottom: 1.25rem; }
.hop h2 { margin-bottom: .2em; }
.hop-link {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.75rem;
  border: .125rem solid var(--rose);
  border-radius: 2.25rem;
  text-decoration: none;
}
.hop-link .tape {
  margin-right: 0;
  transition: width var(--quick) ease-out;
}
.hop-link:hover .tape, .hop-link:focus-visible .tape { width: calc(var(--tape-w) + var(--tape-grow) * .5); }
.hop-text { display: block; min-width: 0; }
.hop-link small { display: block; font-size: var(--fs-small); line-height: 1.4; }
.hop-name { display: block; font-size: var(--fs-cue); line-height: 1.35; }
.hop-link:hover .hop-name { text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .22em; }
@media (min-width: 48rem) {
  .hop { grid-template-columns: 1fr 1fr; column-gap: .75rem; }
  .hop h2 { grid-column: 1 / -1; }
  .hop-link {
    align-items: flex-start;
    border-radius: var(--r-pill);
    padding: .9rem 1.5rem;
  }
  .hop-link .tape { margin-top: 1.1rem; }
  .hop-name { font-size: var(--fs-body); }
}

/* Other programs: two pictures, one width, one crop, closed hard under the hand-off */
.p-more { padding-block: 0; }
.more-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
.more-item { margin: 0; min-width: 0; }
.more-item a { display: block; text-decoration: none; }
.more-item img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--r-photo);
  background: var(--rose-line);
}
.more-name { display: block; margin-top: .7rem; font-size: var(--fs-cue); line-height: 1.3; }
.more-item a:hover .more-name { text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .22em; }
.more-meta { display: block; margin-top: .2rem; font-size: var(--fs-body); line-height: 1.45; }
@media (min-width: 48rem) {
  .more-list { grid-template-columns: 1fr 1fr; }
}

/* The layout's cue list follows closely, so the lower half reads as one hand-off */
.page-product .next { padding-top: 1.5rem; }

/* Enlarged photograph (dialog is built by js/product.js) */
.zoom {
  width: min(62rem, 94vw);
  max-width: 94vw; max-height: 94vh;
  padding: 0; border: 0;
  border-radius: var(--r-panel);
  background: var(--ox); color: var(--rose);
  overflow: auto;
}
.zoom::backdrop { background: rgba(24, 3, 7, .86); }
.zoom-bar { display: flex; justify-content: flex-end; padding: .75rem .75rem .5rem; }
.zoom img {
  width: 100%; height: auto;
  max-height: 66vh;
  object-fit: contain;
  background: transparent;
}
.zoom-cap { margin: 0; padding: .75rem 1.75rem 1.25rem; font-size: var(--fs-small); line-height: 1.5; }
