/* Aisles. The index sheet on the left, one still life on the right that turns to the aisle you point at. */

.aisles-opening .opening-lede { max-width: 32em; }

/* The index and the photograph sit on the same sheet: list right of the margin rule, photo cropped by the screen edge. */
.aisles-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}
@media (min-width: 60rem) {
  .aisles-body {
    grid-template-columns: minmax(0, 1fr) min(32vw, 24rem);
    column-gap: var(--gut);
    padding-right: 0;
  }
}

/* One aisle per ruled line. */
.aisles-list { border-top: var(--hair) solid var(--rule); }
.aisle {
  padding: .55rem 0 .7rem;
  border-bottom: var(--hair) solid var(--rule);
}
.aisle-name {
  position: relative; display: inline-block; max-width: 100%;
  padding-bottom: .08em;
  font-family: var(--display); font-size: clamp(1.75rem, 4.4vw, 3.25rem);
  line-height: 1.02; letter-spacing: -.035em;
}
/* The set piece's pen: a blue stroke drawn beneath the name, never through it. */
.aisle-name::after {
  content: ""; position: absolute; left: -.03em; right: -.04em; bottom: 0;
  height: .09em; min-height: .125rem; border-radius: 1em;
  background: var(--pen); transform-origin: 0 50%; transform: scaleX(0);
  transition: transform .32s var(--pen-ease);
}
.aisle:hover .aisle-name::after,
.aisle:focus-within .aisle-name::after,
.aisle.is-here .aisle-name::after { transform: scaleX(1); }

/* The aisle's lines, in the till voice, indented under the name. */
.aisle-items {
  margin-top: .35rem;
  padding-left: clamp(.9rem, 2vw, 1.75rem);
}
.aisle-items li + li { margin-top: .15rem; }
.aisle-items a {
  display: inline-flex; align-items: center; gap: .55em; min-height: 2.75rem;
  font-size: .875rem; line-height: 1.45; letter-spacing: .03em; color: var(--ink-soft);
  text-decoration: underline; text-decoration-color: transparent;
  text-underline-offset: .3em; overflow-wrap: anywhere;
}
.aisle-items a::before { content: "\2013"; color: var(--pen); }
.aisle-items a:hover,
.aisle-items a:focus-visible { color: var(--pen); text-decoration-color: currentColor; }

/* The photographs: stacked in one grid cell, exactly one visible at a time, caption and all. */
.aisles-photos {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  order: -1;
  padding-bottom: 1.25rem;
}
@media (min-width: 60rem) {
  .aisles-photos {
    order: 0;
    position: sticky;
    top: calc(var(--head) + 1.5rem);
    align-self: start;
    padding-bottom: 0;
  }
}
.aisle-shot {
  grid-area: 1 / 1;
  margin: 0;
  visibility: hidden;
}
.aisle-shot.is-on { visibility: visible; }
.aisle-shot img {
  width: 100%; height: auto; aspect-ratio: 4 / 5;
  object-fit: cover; background: var(--paper);
}
.aisle-shot .cap { align-items: baseline; }
.cap-aisle { color: var(--pen); }

/* The last line of the sheet. */
.aisles-close { padding-block: calc(var(--line) * 1.25); }
.aisles-close-line {
  font-family: var(--display); font-size: clamp(1.6rem, 4.2vw, 3rem);
  line-height: 1.02; letter-spacing: -.035em; max-width: 22em;
}
.aisles-close-call { margin-top: 1.5rem; }
.aisles-close-call a {
  display: inline-flex; align-items: center; min-height: 2.75rem;
  font-family: var(--display); font-size: clamp(1.375rem, 5vw, 2.75rem);
  line-height: 1; letter-spacing: -.02em; color: var(--pen);
  text-decoration: underline; text-decoration-thickness: .07em;
  text-underline-offset: .18em; overflow-wrap: anywhere;
}
.aisles-close-call a:hover { text-decoration-thickness: .14em; }
