/* Home: the backyard opening, then the counter list. Phone first, read top to bottom. */

/* The backyard: note, whole photograph, the reserved sample strip, the owner's line. */
.backyard {
  display: grid;
  gap: .75rem;
  padding-block: .25rem 1.25rem;
}
.backyard .doorway { padding-block: .9rem .15rem; }
.backyard .doorway .jet,
.sample-slot {
  inline-size: 100%;
  max-inline-size: 24rem;
}
.backyard .doorway .jet {
  justify-content: flex-start;
  min-block-size: 3.5rem;
  font-size: 1.0625rem;
}
.backyard .panel-whole img,
.backyard .panel-whole video { max-block-size: 58vh; }

/* The set piece: an ochre slot the size of the blue action; vermilion pours across it once. */
.sample-slot {
  background: var(--ges-ochre);
  --ges-chamfer: .6rem;
}
.sample-band {
  display: flex;
  align-items: center;
  min-block-size: 3.5rem;
  padding: .5rem 1.15rem;
  background: var(--ges-vermilion);
  color: var(--ges-ochre);
  font-family: var(--ges-michroma);
  font-size: .9rem;
  line-height: 1.3;
  text-decoration: none;
  animation-delay: 240ms;
  --ges-chamfer: .6rem;
}

/* The owner speaking: a thick ochre edge, nothing else. */
.counter-word {
  margin: 0;
  padding-inline-start: .8rem;
  border-inline-start: var(--ges-coping) solid var(--ges-ochre);
  max-inline-size: 46ch;
}
.counter-word-last { margin-block: 1rem; }

/* Desk: the name stays at the photo's head; lead, action, quote and offer are one stack
   with even gaps, standing on the line of the mount's foot. The slack sits under the name. */
@media (min-width: 75em) {
  .backyard {
    grid-template-columns: 23rem minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto auto;
    column-gap: 2rem;
    row-gap: .75rem;
    padding-block-start: .75rem;
  }
  .backyard .doorway {
    grid-area: 1 / 1;
    grid-template-rows: minmax(0, 1fr) auto auto;
    gap: .75rem;
    padding-block: 0;
  }
  .backyard .doorway .nameplate { align-self: start; }
  .backyard .counter-word {
    grid-area: 2 / 1;
    font-size: 1.125rem;
  }
  .backyard .sample-slot { grid-area: 3 / 1; }
  .backyard .yard-view {
    grid-area: 1 / 2 / 4 / 3;
    grid-template-rows: minmax(0, 1fr);
  }
  .backyard .panel { display: grid; }
  .backyard .panel-whole img,
  .backyard .panel-whole video { max-block-size: none; }
}

/* The counter list: groups under thick ochre dividers, rows the width of the grid. */
.counter-list { padding-block-end: clamp(2.5rem, 7vh, 4.5rem); }
.rack { margin-block-start: 1.5rem; padding-block-end: .25rem; }
.rack:first-child { margin-block-start: .5rem; }
.aisle-sign {
  display: grid;
  gap: .35rem;
  padding-block-end: .6rem;
}
.aisle-sign p { max-inline-size: 68ch; }
.aisle-sign a,
.ticket-then a {
  display: inline-block;
  padding-block: .55rem;
}
.shelf-line { display: block; }
.shelf-line + .shelf-line { margin-block-start: .2rem; }

/* Row 06 answers the band: its marker grows and the free line carries a vermilion chip. */
.sample-ticket .pool-wall { font-size: 1.25em; }
.free-chip {
  display: inline-block;
  padding: .05rem .55rem;
  background: var(--ges-vermilion);
  color: var(--ges-ochre);
  white-space: nowrap;
  --ges-chamfer: .35rem;
}

/* Row 07 beside the storefront: address, hours and the year as index rows, key then value. */
.shop-fact {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  column-gap: .75rem;
  align-items: baseline;
}
.shop-fact + .shop-fact { margin-block-start: .3rem; }
.shop-view .panel img { aspect-ratio: 3 / 2; }
.door-keys {
  display: grid;
  gap: .5rem;
}
.door-keys .jet { min-block-size: 3.5rem; }

@media (min-width: 30em) {
  .door-keys { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 56em) {
  /* The sign sits on the ticket grid: the intro starts on the product column's edge. */
  .aisle-sign {
    grid-template-columns: 2.5rem 1.5rem minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1fr);
    column-gap: 1rem;
    align-items: baseline;
  }
  .aisle-sign > .nameplate { grid-column: 1 / 4; }
  .aisle-sign > p { grid-column: 4 / -1; }
  .aisle-sign-stacked { grid-template-columns: minmax(0, 1fr); }
  .aisle-sign-stacked > .nameplate,
  .aisle-sign-stacked > p { grid-column: 1 / -1; }
  .aisle-sign a,
  .ticket-then a { padding-block: .15rem; }
  .ticket.shop-ticket {
    grid-template-columns: 2.5rem 1.5rem minmax(0, 1fr);
    row-gap: .3rem;
  }
  .shop-ticket .ticket-name,
  .shop-ticket .ticket-then { grid-column: 3; }

  /* The shop block: the text column is as tall as the photo mount; quote and keys stand on its foot. */
  .shop-yard {
    grid-template-rows: auto auto;
    row-gap: .4rem;
    column-gap: clamp(1.5rem, 4vw, 3.5rem);
  }
  .shop-desk {
    grid-area: 1 / 1;
    align-self: stretch;
    display: flex;
    flex-direction: column;
  }
  .shop-desk .counter-word-last { margin-block: auto 1rem; }
  .shop-view {
    grid-column: 2;
    grid-row: 1 / 3;
    grid-template-rows: subgrid;
  }
  .shop-view .panel { display: grid; }
}
