/* Product page: one dish as a slip torn off the ledger. Builds on site.css. */

.kind { font-size: var(--t-prompt); line-height: 1.3; }

/* The dish name is the page's lead: 44 to 68px, and 56 to 64 on a desk screen. Set on the h1 and
   passed down to the span, so no other sheet can shrink it. */
.open__text h1 {
  margin-top: .6rem;
  font-size: clamp(2.5rem, 1.3rem + 4.2vw, 4rem);
  line-height: 1.08;
}
.dish__name {
  display: block;
  font-size: 1em;
  line-height: 1.08;
  overflow-wrap: break-word;
}
.dish__where {
  display: block; margin-top: .6rem;
  font: 400 var(--t-prompt)/1.3 var(--serif);
}
@media (min-width: 62rem) {
  .split.open { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
}

/* The photograph and its price stamp: the stamp sits clear above the picture, its right edge on the picture's right edge. */
.mountwrap { position: relative; }
.mountwrap--pic {
  display: flex; flex-direction: column; align-items: flex-end; gap: .75rem;
}
.mountwrap--pic .mount { width: 100%; }
.mountwrap .mount { margin: 0; }
.zoom {
  display: block; width: 100%;
  padding: 0; border: 0; background: none; color: inherit;
  cursor: zoom-in;
}

@property --a { syntax: '<angle>'; inherits: false; initial-value: 360deg; }
@keyframes around { from { --a: 0deg; } to { --a: 360deg; } }

.price-stamp {
  position: relative; z-index: 2;
  display: inline-flex; flex-direction: column; gap: .1rem;
  max-width: 15rem;
  padding: .7rem 1.1rem .6rem;
  background: var(--ground); color: var(--ink);
  font: 400 clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem)/1.15 var(--serif);
  font-variant-numeric: lining-nums;
  transform: rotate(2deg);
  transform-origin: 100% 100%;
}
.price-stamp::before {
  content: ""; position: absolute; inset: 0;
  border: var(--dash) dashed currentColor;
  pointer-events: none;
  -webkit-mask: conic-gradient(#000 var(--a), transparent 0);
  mask: conic-gradient(#000 var(--a), transparent 0);
  animation: around 1.2s var(--ease) both;
}
.ps__day { font: 400 var(--t-note)/1.1 var(--hand); }
.ps__ask { font-size: 1.125rem; line-height: 1.25; }

/* Opening hours: the week set as a handwritten figure beside the answer, not as a one-cell table. */
.hours {
  padding-block: .9rem 1rem;
  border-top: var(--dash) dashed var(--ink);
  border-bottom: var(--dash) dashed var(--ink);
}
.hours > * + * { margin-top: .35rem; }
.hours__days { font-size: var(--t-body); line-height: 1.3; }
.hours__time {
  font: 400 clamp(1.75rem, 1.2rem + 1.9vw, 2.625rem)/1.15 var(--hand);
  font-variant-numeric: lining-nums;
}

/* Ledger rows */
.facts dt { min-width: 0; }
.facts dt a { white-space: normal; }
.facts > div:first-child { border-top: var(--dash) dashed var(--ink); }
.page-product .row__a > .tear {
  width: 100%; max-width: none; margin-top: 1.5rem;
}

/* Leading on: three dishes on one top line and one shared height, the first taking the wider column. */
.more {
  --more-h: clamp(9rem, 22vw, 12.5rem);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem); align-items: start;
}
.more figure { min-width: 0; display: flex; flex-direction: column; }
.more figure > .plain { display: block; }
.more img {
  width: 100%; height: var(--more-h);
  object-fit: cover;
}
.more__1 { grid-column: 1 / -1; }
.more figcaption { padding-top: .6rem; line-height: 1.35; }
.more__price { display: block; font-size: var(--t-small); line-height: 1.4; }
@media (min-width: 62rem) {
  .more {
    --more-h: clamp(10rem, 16vw, 14rem);
    grid-template-columns: 1.7fr 1fr 1fr;
  }
  .more__1 { grid-column: auto; }
}

/* Larger picture */
.lightbox {
  width: min(92vw, 70rem); max-width: none;
  padding: 0; border: var(--dash) dashed var(--ink);
  background: var(--ground); color: var(--ink);
}
.lightbox::backdrop { background: rgba(0, 0, 0, .72); }
.lightbox__in { padding: 1rem; }
.lightbox img { width: 100%; height: auto; max-height: 70vh; object-fit: contain; }
.lightbox p { padding-top: .6rem; font-size: var(--t-small); line-height: 1.4; }
.lightbox .linkbtn { margin-top: .4rem; }

@media (max-width: 47.99rem) {
  .price-stamp { max-width: 12.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .price-stamp::before { animation: none !important; }
}
