/* Mossman's: the front page. Runs in the order the page is read: window, yellow index, petrol handover, find the shop. */

/* --measure-crop is the crop the window photograph shares with the buffet edge. --measure-crop-phone keeps the
   whole plate in the phone picture. --measure-top is the height of the header band above the window.
   --measure-notice is the height of the cookie band on a desk screen, taken off the window while it shows. */
:root {
  --measure-crop: 0% 100%;
  --measure-crop-phone: 0% 100%;
  --measure-top: 4.75rem;
  --measure-notice: 3.5rem;
}

/* First window, desk: the photograph runs straight down from the header to a solid yellow band at the bottom
   edge of the window. The band carries every word of the opening - h1, slogan, Visit tab - on its own ground. */
.set-window {
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--measure-top));
  height: calc(100svh - var(--measure-top));
  min-height: 26rem;
}
@media (min-width: 48em) {
  body:has(#optional:not([hidden])) .set-window {
    height: calc(100vh - var(--measure-top) - var(--measure-notice));
    height: calc(100svh - var(--measure-top) - var(--measure-notice));
  }
}
.fill-window {
  position: relative;
  flex: 1 1 auto;
  min-height: 9rem;
  overflow: hidden;
  background: var(--tone-char);
}
.fill-window img, .fill-window video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--measure-crop);
  filter: grayscale(1);
}
/* The words stand at rest, at full opacity, on their own solid ground: no script moves or fades them. */
.seat-trade {
  position: relative;
  z-index: 1;
  order: 2;
  flex: none;
  padding-block: clamp(0.9rem, 2.5vh, 1.5rem);
  background: var(--tone-floor);
}
.seat-trade, .seat-trade h1, .seat-trade .say-slogan, .lay-trade, .stack-trade {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}
.lay-trade {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.9rem 2rem;
}
.stack-trade { flex: 1 1 20rem; display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; }

/* Phone: the words stay on top in a tight band, so the h1 reads under the notices. The picture below is a
   box of its own shape, wide enough for the photograph to show the whole plate, and it ends inside the window. */
@media (max-width: 47.99em) {
  .set-window { height: auto; min-height: 0; }
  .fill-window { flex: none; aspect-ratio: 5 / 4; max-height: 60vh; min-height: 0; }
  .fill-window img, .fill-window video { object-position: var(--measure-crop-phone); }
  .seat-trade { order: 0; padding-block: 0.4rem 0.6rem; }
  .lay-trade { align-items: center; gap: 0.4rem 1rem; }
  .stack-trade { flex: 1 1 100%; gap: 0.25rem; }
  .say-slogan { font-size: 1.0625rem; line-height: 1.3; max-width: none; }
  .seat-trade .press-tab { min-height: 2.75rem; padding: 0.45rem 1.3rem 0.55rem 1rem; font-size: 1rem; }
}

/* Index text that sits past the number column: .tell-landing lines up with the row descriptions. */
.tell-landing {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  max-width: 46rem;
  padding-left: calc(var(--measure-number) + 1rem);
}
.tell-landing > .list-specs { width: 100%; }

/* First index beside the picture gutter: the words take the whole column that is left, and the gutter is as tall
   as the group, so no bare ground is left under the photograph. */
.pair-index { align-items: stretch; }
.pair-index > .stack-parts { flex: 1 1 22rem; }
.pair-index > .hold-photo { flex: 0 1 34%; align-self: stretch; }
.pair-index > .hold-photo img {
  flex: 1 1 0;
  height: auto;
  min-height: 0;
  object-position: 50% 50%;
}
@media (max-width: 47.99em) {
  .pair-index > .hold-photo img { flex: none; height: auto; aspect-ratio: 4 / 3; }
}

/* Row 02: four dish lines in the listing serif, name column then the line. */
.list-dishes { display: flex; flex-direction: column; padding: 0; list-style: none; }
.list-dishes li { display: flex; flex-wrap: wrap; gap: 0 1rem; padding-block: 0.15rem; }
.say-dish { flex: 0 0 10.5rem; text-decoration: underline; text-decoration-color: var(--tone-bar); text-decoration-thickness: 0.125rem; text-underline-offset: 0.22em; }

/* The owner speaking: .hold-saying stacks the label over .say-owner. */
.hold-saying { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; min-width: 0; }
.say-owner { max-width: 34rem; font-family: var(--face-board); font-size: var(--step-row); line-height: 1.3; }

/* Petrol handover: .land-spread keeps the band padding of .pad-band, so the 03 heading has the same room
   above it as the heading on the yellow block before. */
.name-landing { display: flex; align-items: baseline; gap: 1rem; }

/* Petrol gutter: .stack-gutter holds the buffet (.crop-spread, same crop as the window) over the spoon (.crop-spoon). */
.stack-gutter { display: flex; flex-direction: column; gap: var(--measure-part); }
.pair-gutter > .stack-gutter { flex: 0 1 36%; min-width: min(18rem, 100%); }
.crop-spread { object-position: var(--measure-crop); }
@media (max-width: 47.99em) {
  .pair-gutter > .stack-gutter { flex-basis: 100%; }
  .crop-spread { aspect-ratio: 3 / 2; }
  .crop-spoon { aspect-ratio: 2 / 1; }
}
/* Desk: the gutter is exactly as tall as the words and rows beside it. The two photographs share that height,
   so the gutter ends on the rule that closes row 04 and no petrol field is left under the rows. */
@media (min-width: 48em) {
  .land-spread .pair-gutter {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 40%);
    align-items: stretch;
  }
  .land-spread .pair-gutter > .stack-gutter { min-width: 0; }
  .stack-gutter > .hold-photo { flex: 1 1 0; }
  .stack-gutter > .hold-photo img {
    flex: 1 1 0;
    height: auto;
    min-height: 8rem;
  }
}

/* Row 05: address, hours and the actions in the same three-column grid as rows 01-04. */
.row-visit { align-items: flex-start; }
.row-visit .tell-row {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem clamp(1.5rem, 4vw, 3rem);
}
.tell-visit {
  flex: 1 1 11rem;
  display: flex;
  flex-direction: column;
  min-width: 0;
  font-style: normal;
  font-size: var(--step-read);
  line-height: 1.4;
}
.tell-hours { flex: 1 1 13rem; min-width: 0; font-size: var(--step-read); line-height: 1.4; }
.row-visit .act-row { flex-direction: column; align-items: flex-end; gap: 0.1rem; }
@media (max-width: 40em) {
  .row-visit .act-row { align-items: flex-start; }
}

/* Rows 06 and 07 stand in the same list as row 05: one rule between rows, a fact in the middle, the link at right. */
