/* Product page: a split opening, one bite cut in the picture, and the slip
   plate hung under it. Builds on site.css. */

/* head: name and note left, the cut picture running to the right edge,
   the slip plate starting on the line where the picture ends. ---------- */
.phead{padding-top:calc(var(--chrome) + 6.75rem);padding-bottom:var(--band)}
.phead__in{display:grid;gap:var(--gap);padding-inline:var(--gut);
  grid-template-columns:minmax(0,1fr);
  grid-template-areas:"text" "fig" "copy" "slip"}
/* the text column: on a phone its two blocks take their own grid rows */
.phead__col{display:contents}
.phead__text{grid-area:text;min-width:0}
.phead__fig{grid-area:fig;min-width:0}
.phead__copy{grid-area:copy;min-width:0}
.phead__slip{grid-area:slip;min-width:0;display:flex;flex-direction:column}
.phead h1{font-size:clamp(2.3rem,5.6vw,4.5rem);max-width:20ch;margin-bottom:.28em;overflow-wrap:break-word}
.phead__note{margin:0 0 1em;font-size:1.125rem;line-height:1.45;max-width:42rem}
.phead__note strong{font-weight:600}
.phead__text .lede{max-width:38rem;margin:0}
.phead__copy p{max-width:36rem}
.phead__copy > :last-child{margin-bottom:0}

/* the figure: one caption line on the ground, then the picture, cut with
   a single bite out of its top edge and a bowed foot — the same knife as
   the rest of the site, its own coordinates per product (--bite-x, -w,
   -d and --bow), its own crop (--px, --py). --------------------------- */
.pfig{--bite-x:52%;--bite-w:13%;--bite-d:8%;--bow:2.4%;--px:50%;--py:46%;
  margin:0;display:flex;flex-direction:column;min-width:0}
.bite{display:flex;align-items:center;gap:.5rem;margin:0 0 .6rem;font-size:var(--small);line-height:1.3}
.pcut{position:relative;flex:1 1 auto;min-height:0;overflow:hidden;background:var(--straw-2);
  aspect-ratio:4/3;
  clip-path:polygon(0 0,
    calc(var(--bite-x) - var(--bite-w)) 0,
    calc(var(--bite-x) - var(--bite-w) * .82) var(--bite-d),
    calc(var(--bite-x) + var(--bite-w) * .82) var(--bite-d),
    calc(var(--bite-x) + var(--bite-w)) 0,
    100% 0,
    100% calc(100% - var(--bow)),
    98.2% 100%,
    1.8% 100%,
    0 calc(100% - var(--bow)))}
.pcut img{width:100%;height:100%;object-fit:cover;object-position:var(--px) var(--py)}

/* press target, added by script --------------------------------------- */
.pcut__open{position:absolute;inset:0;z-index:2;width:100%;height:100%;padding:0;background:none;border:0;cursor:zoom-in}
.pcut__open:focus-visible{outline:3px solid var(--blue);outline-offset:-.5rem;border-radius:0}

/* the slip: a plate trimmed by hand, no two corners the same, deep
   padding, rows spread down the column so it fills beside the copy ---- */
.slip__h{font-size:var(--h3);margin:1.1rem 0 .55rem}
.slip{margin:0;padding:1.5rem 1.75rem 1.65rem;background:var(--straw-2);
  display:flex;flex-direction:column;justify-content:space-between;gap:.35rem;
  clip-path:polygon(0 1.05rem,
    1.6rem 0,
    calc(100% - 1.3rem) .3rem,
    100% 1.25rem,
    calc(100% - .3rem) calc(100% - 1.15rem),
    calc(100% - 2rem) 100%,
    1.2rem calc(100% - .4rem),
    0 calc(100% - 1.45rem))}
.slip__row{display:grid;grid-template-columns:8rem minmax(0,1fr);gap:.15rem 1rem;padding-block:.45rem}
.slip dt{font-weight:600}
.slip dd{margin:0;font-size:var(--read);line-height:1.4}
@media (max-width:30rem){.slip__row{grid-template-columns:minmax(0,1fr);gap:.1rem}}

@media (min-width:60rem){
  .phead{padding-top:calc(var(--chrome) + 7.25rem)}
  .phead__in{
    padding-left:max(var(--gut),calc((100% - 78rem) / 2));
    padding-right:0;
    column-gap:clamp(1.75rem,4vw,3.5rem);
    row-gap:calc(var(--gap) * 1.15);
    grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);
    /* the headline, the lede and the body copy stand as one unbroken
       column beside the picture and the slip plate hung under it */
    grid-template-areas:"text fig" "text slip";
    align-items:start}
  .phead__col{display:flex;flex-direction:column;gap:var(--gap);grid-area:text;
    min-width:0;padding-top:clamp(1.25rem,4vh,2.75rem)}
  .phead__fig{align-self:stretch;min-height:clamp(15rem,32vh,24rem)}
  .phead__fig .pcut{aspect-ratio:auto;flex:1 1 auto}
  .phead__slip{align-self:stretch}
  .phead__slip .slip{flex:1 1 auto}
}

/* hand-off links band ---------------------------------------------------- */
.go{display:grid;gap:var(--gap);align-items:start}
@media (min-width:60rem){.go{grid-template-columns:minmax(0,1fr) minmax(0,2fr);align-items:center}}
.go h2{margin-bottom:.3em}
.go__links{display:flex;flex-direction:column;gap:.35rem}
.go__links a{display:inline-flex;align-items:center;min-height:44px;width:fit-content;font-size:clamp(1.2rem,2.4vw,1.75rem);line-height:1.2;text-decoration:underline;text-decoration-thickness:.06em;text-underline-offset:.16em}
.go__links a:hover{text-decoration-thickness:.13em}

/* leading on: three other products, decidedly different widths, each
   crop set on its own goods -------------------------------------------- */
.next{list-style:none;margin:1.5rem 0 0;padding:0;display:grid;gap:var(--gap);align-items:start}
@media (min-width:48rem){
  .next{grid-template-columns:1.35fr 1fr .8fr}
  .next li:nth-child(2) .cut{aspect-ratio:1/1}
  .next li:nth-child(3) .cut{aspect-ratio:4/5}
}
.next__a{display:block;text-decoration:none}
.next__a .cut{aspect-ratio:4/3}
.next__a .cut img{object-position:var(--pos,50% 50%);transform:scale(var(--zoom,1));transform-origin:var(--pos,50% 50%)}
.next__name{margin:.7rem 0 .15rem;font-size:var(--h3)}
.next__a:hover .next__name{text-decoration:underline;text-decoration-thickness:.05em;text-underline-offset:.14em}
.next__meta{display:block;font-size:var(--small);line-height:1.4}

/* the picture, opened large -------------------------------------------- */
.zoom{padding:0;border:0;background:var(--ink);color:var(--ground);border-radius:var(--edge);max-width:96vw;max-height:96vh;overflow:auto}
.zoom::backdrop{background:rgba(38,32,15,.84)}
.zoom[open]{animation:zin var(--fade) var(--ease)}
@keyframes zin{from{opacity:0}to{opacity:1}}
.zoom__in{padding:.9rem;display:grid;gap:.8rem;justify-items:start}
.zoom img{width:auto;height:auto;max-width:calc(96vw - 2rem);max-height:76vh}

@media (prefers-reduced-motion:reduce){
  .next__a .cut img{transform:none}
  .zoom[open]{animation:none}
}
