/* First class: the doorway opening, the walk-in (four marks on one line), the floor shot, what to expect, the hand-off. */

.spread { padding-block: calc(var(--measure-band) * 0.7); }

/* Doorway: the opening, words at seven columns, the tall door picture at five */
.doorway { padding-top: calc(var(--measure-edge) + 1rem); padding-bottom: calc(var(--measure-band) * 0.7); }
@container (min-width: 48rem) {
  .overture-floor { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
}
.doorway .overture-lead { max-width: 36rem; margin-bottom: 0; }
.doorway .still img {
  max-height: calc(100vh - 11rem);
  max-height: calc(100svh - 11rem);
  object-position: 50% 60%;
}

/* The walk-in: .walkin holds four .stop answers; each carries a .stop-mark and a line down to the next one */
.walkin { --walk-gap: clamp(2rem, 6vh, 3.5rem); gap: var(--walk-gap); }
.stop { position: relative; display: grid; gap: var(--measure-gap); align-items: start; }
@container (min-width: 48rem) {
  .stop { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
}
.stop-head h2 { margin-bottom: 0.3em; }
.stop-where { margin: 0; font-weight: 600; }
.stop-mark {
  position: absolute; z-index: 1;
  left: -2.9rem; top: calc(var(--step-h2) * 0.5 - 0.3rem);
  width: 2rem; height: 0.6rem;
}
.stop::after {
  content: ""; position: absolute;
  left: -1.975rem; width: 0.15rem;
  top: calc(var(--step-h2) * 0.5);
  height: calc(100% + var(--walk-gap));
  background: var(--tone-soil);
}
.stop:last-child::after { display: none; }

/* Marks are solid without script; with script they start as an outline and fill when .arrived */
.walkin .spike-pending { background-color: var(--tone-tape); }
.js .walkin .spike-pending { background-color: var(--tone-olive); }
.js .walkin .arrived .spike-pending { background-color: var(--tone-tape); }

.stop .score-text { max-width: none; }
.stop .score-text a { font-weight: 600; }

/* Floor shot: one wide photograph, out to the gutter */
.floorshot { padding: calc(var(--measure-band) * 0.7) 0.5rem 0; }
.floorshot img { aspect-ratio: 4 / 3; object-position: 50% 62%; }
@container (min-width: 48rem) {
  .floorshot img { aspect-ratio: 2.1 / 1; max-height: 78vh; max-height: 78svh; }
}
.floorshot .still-line { padding-inline: calc(var(--measure-edge) - 0.5rem); max-width: 44rem; }

/* What a beginner can expect */
.beginner { align-items: start; }
.beginner-lead p { max-width: 30rem; }
.beginner-pull { font-size: clamp(1.25rem, 0.9rem + 1.4vw, 1.9rem); margin-top: 1.4rem; line-height: 1.2; }
.beginner-habits { gap: 2rem; }
.beginner-habits li::before { top: calc(var(--step-h3) * 0.5 - 0.1rem); }
.beginner-habits h3 { margin-bottom: 0.3em; }
.beginner-habits p { margin: 0; max-width: 36rem; }
.beginner-habits a { font-weight: 600; }

/* Hand-off: two bare type links, then the email and the phone */
.onward { align-items: start; }
.onward-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.6rem; }
.onward-list a {
  display: inline-flex; align-items: center; gap: 0.5em; min-height: 2.75rem;
  font: 800 clamp(1.4rem, 1rem + 1.8vw, 2.4rem)/1.1 var(--face-display);
  text-decoration: none;
}
.onward-list a:hover { text-decoration: underline; text-decoration-thickness: 0.1em; text-underline-offset: 0.18em; }
.onward-list a:hover .spike { transform: rotate(-4deg) translateX(0.3em); }
.onward-list p { margin: 0.3rem 0 0; max-width: 30rem; }
.onward-reach p { max-width: 26rem; }
.reach-mail {
  flex-direction: column; align-items: flex-start; gap: 0.7rem;
  font-size: clamp(0.95rem, 0.7rem + 0.8vw, 1.3rem); overflow-wrap: anywhere;
}
.reach-phone { margin: 1.2rem 0 0; display: grid; gap: 0.2rem; }
.reach-phone a {
  display: inline-flex; align-items: center; min-height: 2.75rem; justify-self: start;
  font: 800 var(--step-h3)/1.1 var(--face-display);
}
.reach-hours { font-size: var(--step-small); }

/* Phone: the margin keeps room for the marks on the walk only */
@container (max-width: 40rem) {
  .spread, .doorway { padding-inline: 1.25rem; }
  .walkin { padding-left: 3.5rem; }
  .floorshot .still-line { padding-inline: 1.25rem; }
  .doorway .overture-lead { font-size: var(--step-body); }
}

@media (prefers-reduced-motion: reduce) {
  .js .walkin .spike-pending { background-color: var(--tone-tape); }
}
