/* Home. The list that crosses itself off. */
.home { --step: 55svh; }
html.snap-list { scroll-snap-type: y proximity; }

/* ---- 1 The list ---------------------------------------------------------- */
.list-run { position: relative; }
.list-snap { display: none; position: absolute; left: 0; width: 1px; height: 1px; top: calc(var(--i) * var(--step)); scroll-snap-align: start; }
.list-run.is-live { height: calc(100svh - var(--head) + 7 * var(--step)); }
.list-run.is-live .list-snap { display: block; }
.list-stage {
  --item: min(10vw, max(1.6rem, calc((100svh - var(--head) - min(24svh, 45vw) - 15rem) / 8.8)));
  display: grid; grid-template-columns: var(--margin) minmax(0, 1fr);
  grid-template-areas: ". top" ". list"; align-content: start; row-gap: .75rem;
  padding-block: 1rem 1.5rem; overflow: hidden;
  background-color: var(--paper);
  background-image: linear-gradient(var(--sticker), var(--sticker));
  background-repeat: no-repeat; background-position: var(--margin) 0; background-size: .125rem 100%;
}
.is-live .list-stage { position: sticky; top: var(--head); height: calc(100svh - var(--head)); }
.list-count {
  grid-area: top; justify-self: start; align-self: start; padding: .25rem var(--gut) 0;
  font-size: .75rem; letter-spacing: .09em; text-transform: uppercase; color: var(--pen);
}
.list-shot {
  grid-area: top; justify-self: end; position: relative; margin-right: var(--gut);
  width: min(24svh, 45vw); aspect-ratio: 1;
}
.list-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--paper); visibility: hidden; }
.list-shot img.is-on { visibility: visible; }
.list-body { grid-area: list; min-width: 0; padding-inline: var(--gut); }
.list-lines { border-top: var(--hair) solid var(--rule); }
.list-item, .list-head {
  font-family: var(--display); font-weight: 400; font-size: var(--item); line-height: 1;
  letter-spacing: -.045em; padding: .1em 0 .04em; border-bottom: var(--hair) solid var(--rule);
}
.list-head { color: var(--ink); }
.list-sub { margin-top: 1rem; font-size: .875rem; line-height: 1.5; max-width: 40em; }
.list-btn { margin-top: 1rem; }
@media (min-width: 60rem) {
  .list-stage {
    --item: min(5.4vw, max(2rem, calc((100svh - var(--head) - 12rem) / 8.8)));
    grid-template-columns: var(--margin) minmax(0, 1fr) 38vw;
    grid-template-areas: "count list shot"; align-content: center; padding-block: 1.5rem;
  }
  .list-count { grid-area: count; justify-self: end; padding: .6rem 1rem 0 .75rem; text-align: right; }
  .list-shot { grid-area: shot; justify-self: start; align-self: center; width: 44vw; margin-right: 0; }
  .list-sub { font-size: .9375rem; }
}

/* ---- Shared section titles ------------------------------------------------- */
.home-title { padding-bottom: .08em; margin-bottom: calc(var(--line) * .5); }
.aisles-home, .week-home, .nn, .total { padding-block: calc(var(--line) * 1.5); }

/* ---- 2 The aisles ----------------------------------------------------------- */
.aisle-line { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.aisle-line:hover .t-l, .aisle-line:focus-visible .t-l { color: var(--pen); }
.aisle-n { flex: none; font-family: var(--mono); font-size: .75rem; letter-spacing: .06em; color: var(--ink-soft); }
.aisle-go { padding-top: 1.25rem; }

/* ---- 3 Necessities & novelties --------------------------------------------- */
.nn-cols, .nn-pairs li { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem var(--gut); }
.nn-cols { padding-bottom: .75rem; border-bottom: var(--hair) solid var(--rule); }
.nn-cols p:last-child, .nn-pairs .t-l:last-child { color: var(--pen); }
.nn-shot { margin: 1.5rem 0; }
.nn-shot img { aspect-ratio: 3 / 2; }
.nn-pairs { border-top: var(--hair) solid var(--rule); }
.nn-pairs li { padding: .25em 0 .15em; border-bottom: var(--hair) solid var(--rule); align-items: end; }
.nn-close { padding-top: 1.25rem; font-size: .875rem; letter-spacing: .06em; text-transform: uppercase; }
@media (min-width: 60rem) {
  .nn-shot { width: 78%; margin-inline: auto; }
}

/* ---- 4 One trip ----------------------------------------------------------- */
.trip-sheet { padding-block: calc(var(--line) * 1.5) var(--line); }
.trip-title span { display: block; padding: .06em 0 .04em; border-bottom: var(--hair) solid var(--rule); }
.trip-row img { aspect-ratio: 21 / 9; }

/* ---- 5 On the list this week -------------------------------------------------- */
.week-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: calc(var(--line) * .5) var(--gut); }
.week-tile a { display: block; }
.week-cap { display: flex; gap: .75rem; align-items: flex-start; padding-top: .75rem; border-top: var(--hair) solid var(--rule); margin-top: .75rem; }
.week-cap .tick { width: 1.5rem; height: 1.5rem; }
.week-name { display: block; font-size: .9375rem; line-height: 1.4; }
.week-tile a:hover .week-name { color: var(--pen); text-decoration: underline; text-underline-offset: .22em; }
.week-call { display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem; aspect-ratio: 1; padding: 1rem 0; }
@media (min-width: 60rem) {
  .week-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .week-tile:nth-child(3n + 2) { margin-top: calc(var(--line) * .5); }
}

/* ---- 6 Visit ------------------------------------------------------------------ */
.visit-home { padding-block: calc(var(--line) * 1.5); }
.visit-in { display: grid; gap: calc(var(--line) * .75) var(--gut); }
.visit-shot img { aspect-ratio: 16 / 9; }
.visit-lines dl { border-top: var(--hair) solid var(--ink); }
.visit-row { display: grid; grid-template-columns: 5rem minmax(0, 1fr); gap: 1rem; align-items: baseline; padding: .9rem 0; border-bottom: var(--hair) solid var(--ink); }
.visit-row dd { overflow-wrap: anywhere; }
.visit-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.75rem; }
@media (min-width: 60rem) {
  .visit-in { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; }
}

/* ---- 7 The total ------------------------------------------------------------------ */
.total-in { max-width: 34rem; }
.total-sum { padding-top: 1rem; font-size: .9375rem; letter-spacing: .06em; text-transform: uppercase; }
.total-mark { margin-top: 1.5rem; font-family: var(--display); font-size: clamp(2.5rem, 9vw, 7rem); line-height: 1; letter-spacing: -.05em; text-transform: uppercase; }
