/* Product page: poster opening, ledger, ready-made questions, closing band. Still: only link and outline states change. */
.band { padding-block: clamp(2rem, 6vh, 4rem); }
.pr-open { align-content: start; padding-top: clamp(0.75rem, 2.5vh, 2rem); row-gap: clamp(1rem, 2.5vh, 1.75rem); }
.pr-text { display: grid; gap: clamp(0.75rem, 1.8vh, 1.25rem); justify-items: start; align-content: start; }
.pr-title {
  font-size: clamp(2.25rem, 4.6vw, 4.25rem);
  line-height: 1.05;
}
.pr-text .lead { max-width: 30em; }

/* The three-pill strip: what it is, what it costs, what to ask. On phones the pills wrap onto rows inside the window. */
.pr-strip { width: 100%; min-width: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.pr-strip .pill { flex: 1 1 auto; }

/* The picture: on phones a 4 / 3 frame; on desk screens it runs the full height of the text and the cost panel */
.pr-pic { --frame: 4 / 3; }
.pr-frame { width: 100%; }
.pr-pic img { cursor: zoom-in; }

/* The zoom control: a small caption pill inside a 44px press area */
.pr-zoom {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0;
  border: 0;
  background: none;
}
.pr-zoom:hover .cap { text-decoration: underline; text-decoration-thickness: 0.1em; }

/* What it costs: a compact pale panel under the text */
.pr-price { padding: clamp(1.25rem, 2.2vw, 2rem); }
.pr-price > * + * { margin-top: 0.6rem; }
.pr-price .price { font-size: clamp(1.375rem, 2vw, 1.75rem); }
.pr-price .note { max-width: 34em; }
.pr-price a { color: var(--fg); }

/* What it is: copy beside the ledger, which stands on a pale panel */
.pr-copy { display: grid; gap: 1.25rem; align-content: start; }
.pr-copy .prose { max-width: 36em; }
.pr-ledger { align-self: start; }
.pr-ledger .name-title { margin-bottom: 0.5rem; }
.pr-ledger .facts { border-top: var(--line) dotted var(--fg); border-bottom: var(--line) dotted var(--fg); }
.pr-ledger .facts > div { font-size: 1.0625rem; padding-block: 0.65rem; }
.pr-ledger .facts dt { white-space: normal; }
.pr-ledger .facts dt::after { min-width: 1rem; }

/* What to ask: finished enquiries set as large italic lines between dotted rules */
.pr-ask__intro { display: grid; gap: 1rem; align-content: start; }
.pr-qs { display: grid; counter-reset: q; align-content: start; border-top: var(--line) dotted var(--ink); }
.pr-qs li { border-bottom: var(--line) dotted var(--ink); }
.pr-q {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  min-height: 3.5rem;
  padding-block: clamp(0.75rem, 1.8vh, 1.1rem);
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.5rem, 2.8vw, 2.5rem);
  line-height: 1.15;
  text-decoration: none;
}
.pr-q::before {
  counter-increment: q;
  content: counter(q);
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 0.09rem solid var(--fg);
  border-radius: 50%;
  font-family: var(--text);
  font-style: normal;
  font-size: 1rem;
  line-height: 1;
}
.pr-q:hover { text-decoration: underline; text-decoration-thickness: 0.06em; }

/* Closing band: one poster-scale heading, the hand-off pills, then the other products */
.pr-close {
  padding-top: clamp(3rem, 9vh, 6.5rem);
  row-gap: clamp(1.25rem, 3vh, 2rem);
  align-items: start;
}
.pr-close__title { font-size: clamp(2.75rem, 7vw, 6.5rem); line-height: 1.04; }
.pr-close .pill-row > * { flex: 1 1 15rem; }
.pr-close__cap { justify-self: start; margin-top: clamp(0.75rem, 2vh, 1.5rem); }

/* Other products: one aspect ratio, captions against their pictures */
.pr-rel { display: grid; gap: 0.5rem; align-content: start; }
.pr-rel__pic { display: block; }
.pr-rel__pic img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r);
}
.pr-rel .name-title { padding-inline: 0.25rem; }
.pr-rel__price { padding-inline: 0.25rem; font-size: 1.0625rem; }

/* Picture dialog */
.pr-dialog {
  width: min(92vw, 80rem);
  max-height: 92vh;
  padding: 0;
  border: var(--line) solid var(--ink);
  border-radius: clamp(1.5rem, 4vw, 3rem);
  background: var(--ground);
  color: var(--ink);
  overflow: auto;
}
.pr-dialog::backdrop { background: rgb(107 19 22 / 0.88); }
.pr-dialog__in { display: grid; gap: 0.75rem; padding: 0.75rem; justify-items: start; }
.pr-dialog__in img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: clamp(1rem, 3vw, 2.5rem);
}
.pr-dialog__x { font-size: 1rem; }

@media (min-width: 48rem) {
  .pr-open > .pr-text { grid-column: 1 / span 6; grid-row: 1; }
  .pr-open > .pr-price { grid-column: 1 / span 6; grid-row: 2; align-self: start; }
  .pr-open > .pr-pic {
    grid-column: 7 / span 6;
    grid-row: 1 / span 2;
    align-self: stretch;
    grid-template-rows: minmax(0, 1fr) auto;
  }
  .pr-open > .pr-pic .pr-frame { position: relative; min-height: 18rem; }
  .pr-open > .pr-pic .pr-frame img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
  }
  .pr-open--solo > .pr-text { grid-column: 1 / span 7; }
  .pr-open--solo > .pr-price { grid-column: 8 / span 5; grid-row: 1; }
  .pr-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; padding: 0; margin: 0; }
  .pr-what > .pr-copy { grid-column: 1 / span 7; }
  .pr-what > .pr-ledger { grid-column: 8 / span 5; }
  .pr-ask > .pr-ask__intro { grid-column: 1 / span 4; }
  .pr-ask > .pr-qs { grid-column: 5 / span 8; }
  .pr-close > .pr-rel {
    grid-column: span 4;
    grid-row: span 3;
    grid-template-rows: subgrid;
    row-gap: 0.5rem;
  }
  .pr-rel > .pr-rel__pic { grid-row: 1; }
  .pr-rel > .name-title { grid-row: 2; }
  .pr-rel > .pr-rel__price { grid-row: 3; }
}
@media (max-width: 47.99rem) {
  .pr-close { row-gap: 1.5rem; }
}
