/* Home: the Saturday contact sheet and the full shelf. Adds to site.css; the chrome is untouched. */

blockquote { margin: 0; }

/* The contact sheet: five frames on the dashed ground, the hours line above, the price band below. */
.sheet .strip {
  --strip-h: clamp(11rem, 38vh, 24rem);
  padding: 0.5rem 0.5rem 0;
  border: var(--line);
  border-bottom: 0;
}
.sheet .live { display: inline; }

/* Phone: the strip is inset past the pinned call tab so the first caption reads whole. */
@media (max-width: 47.99rem) {
  .sheet .strip { padding-left: 4.25rem; scroll-padding-left: 4.25rem; }
}

/* Set piece: the stroke draws left to right, then the silver band wipes in behind it at full height. */
.price { position: relative; background: var(--ground); border: var(--line); border-bottom: 0; }
.price__stroke { position: absolute; z-index: 1; inset: 0 0 auto 0; width: 100%; height: 0.25rem; }
.price__stroke line { stroke: var(--accent); stroke-width: 4; transition-duration: 0.6s; }
.price .band { clip-path: inset(0); transition: clip-path 0.7s var(--ease) 0.3s; }
.js .price__stroke[data-draw]:not(.is-drawn) + .band { clip-path: inset(0 100% 0 0); }

/* The owner speaking: a short silver stroke, then her words. */
.said { max-width: 34em; font-size: 1.1875rem; line-height: 1.55; }
.said::before { content: ""; display: block; width: 2.25rem; height: 0.125rem; margin-bottom: 0.6rem; background: var(--accent); }
/* In the shelf note the words stand in their own column; no stroke above them. */
.told > .said::before { display: none; }

/* Two-column text rows (the shelf note, the Saturday hand-off). */
.told { display: grid; gap: calc(var(--pad) * 1.25) calc(var(--pad) * 2); padding: var(--pad); }
.told h2 + .said { margin-top: 0.9rem; }
.next { display: flex; flex-wrap: wrap; gap: 0 1.75rem; margin-top: 0.75rem; }

/* One wine: name and style at the left, the price at the right, a line beneath. */
.shelf__hl { padding: var(--pad); }
.wine { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 1rem; align-items: start; padding: var(--pad); }
.wine .entry__name { grid-column: 1; justify-self: start; }
.wine__kind { grid-column: 1; }
.wine .entry__price { grid-column: 2; grid-row: 1 / span 2; padding-top: 0.55rem; }
.wine__line { grid-column: 1 / -1; max-width: 34em; margin-top: 0.6rem; }

/* Dry reds: one wide photograph over three entries. */
.reds__photo img { aspect-ratio: 3 / 2; }
.reds__list .wine + .wine { border-top: var(--line); }

/* Dry white: the photograph, then a solid panel top-aligned against it, the flash spill under its lower edge. */
.row__body.white { display: grid; gap: var(--pad); padding: var(--pad); background: none; }
.white__photo img { aspect-ratio: 6 / 7; }
.white__spill { align-self: start; }
.white__spill::before { inset: 18% -0.6rem -0.6rem 18%; }

/* Semi-sweet: the pair photographed together, two entries against it. */
.pair__list .wine + .wine { border-top: var(--line); }

/* Sweet: the portrait with the listing right beside it; name and price share one line. */
.sweet__text > * + * { margin-top: 0.9rem; }
.sweet .wine { padding: 0; grid-template-columns: auto minmax(0, 1fr); }
.sweet .wine__kind { grid-column: 1 / -1; }
.sweet .wine .entry__price { grid-row: 1; justify-self: start; }
.sweet .spill--left::before { inset: -0.6rem 30% 22% -0.6rem; }

/* Weddings: the Allée cropped wide, rental and deposit on two ruled lines. */
.row__body.wed { display: grid; }
.wed__photo img { aspect-ratio: 16 / 9; }
.wed__text { padding: var(--pad); }
.wed__text > * + * { margin-top: 0.9rem; }

@media (min-width: 48rem) {
  .told { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .told > :last-child { padding-left: calc(var(--pad) * 2); border-left: var(--line); }

  .reds__photo img { aspect-ratio: 5 / 2; }
  .reds__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .reds__list .wine + .wine { border-top: 0; border-left: var(--line); }

  .row__body.white { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: calc(var(--pad) * 1.5); align-items: start; }
  .white__photo { align-self: stretch; }
  .white__photo img { height: 100%; aspect-ratio: 3 / 2; }
  .white__spill::before { inset: 22% -0.6rem -2.5rem 18%; }

  .row__body.pair {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 8fr);
    grid-template-rows: auto 1fr;
    grid-template-areas: "hl photo" "list photo";
  }
  .pair__hl { grid-area: hl; }
  .pair__list { grid-area: list; }
  .pair__photo { grid-area: photo; border-left: var(--line); }

  .entry.sweet { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: calc(var(--pad) * 1.5); }

  .row__body.wed { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .wed__photo img { height: 100%; aspect-ratio: 2 / 1; }
  .wed__text { border-left: var(--line); }
}

@media print {
  .price .band { clip-path: none !important; }
}
