/* index.html: the rehearsal room, the contents page, and the walk to the door.
   The corner plates, consent oval, offer stamp and footer are site.css and are not touched here. */

/* First screen: one photograph filling the window, olive band at its foot */
.countin {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  height: 100vh;
  height: 100svh;
  min-height: 28rem;
}
.countin-shot { min-height: 0; overflow: hidden; }
.countin-shot img, .countin-shot video {
  display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 58%;
}
.countin-band {
  background: var(--tone-olive);
  display: grid; gap: 0.7rem 1.6rem; align-items: end;
  padding: clamp(1rem, 2.2vw, 1.7rem) var(--measure-edge)
           max(4.1rem, calc(3.4rem + env(safe-area-inset-bottom)));
}
.countin-title { margin: 0; line-height: 0.97; }
.countin-title span { display: block; }
.countin-say { display: grid; gap: 0.45rem; align-content: end; }
.countin-motto { margin: 0; font: 800 clamp(1.15rem, 1rem + 0.85vw, 1.6rem)/1.1 var(--face-display); }
.countin-where { margin: 0; max-width: 28rem; font-size: var(--step-small); line-height: 1.5; }
.countin-mail {
  justify-self: start; display: inline-flex; align-items: center; min-height: 2.75rem;
  font-weight: 600; font-size: var(--step-body);
}
@container (min-width: 48rem) {
  .countin-band { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
}

/* The contents page: three questions, each starting at a strip of tape that slides toward it */
.running, .spread { padding-block: calc(var(--measure-band) / 2); }
.running { max-width: var(--measure-page); margin-inline: auto; padding-inline: var(--measure-edge); }
.running-head { margin-bottom: 0.35em; }
.running-intro { max-width: 46rem; margin-bottom: clamp(1rem, 3vh, 2rem); }
.running-list { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(1.1rem, 2.6vh, 2rem); }
.running-item { display: grid; gap: 0.3rem 1.6rem; }
.running-question {
  display: grid; grid-template-columns: 1.6rem 1.7rem minmax(0, 1fr);
  align-items: baseline; gap: 0.6rem;
  font: 800 clamp(1.55rem, 1rem + 2.3vw, 3.1rem)/1.03 var(--face-display);
  text-decoration: none;
}
.running-count { font: 600 0.95rem/1 var(--face-text); }
.running-tape { width: 1.6rem; height: 0.5rem; transform: rotate(-4deg); align-self: center; }
.running-question:hover .running-words,
.running-question:focus-visible .running-words {
  text-decoration: underline; text-decoration-color: var(--tone-tape);
  text-decoration-thickness: 0.09em; text-underline-offset: 0.15em;
}
.running-item:hover .running-tape,
.running-question:focus-visible .running-tape { transform: rotate(-4deg) translateX(0.5rem); }
.running-line { margin: 0; font-size: var(--step-body); max-width: 30rem; }
.running-more {
  justify-self: start; display: inline-flex; align-items: center; min-height: 2.75rem;
  font-weight: 600; font-size: var(--step-body);
}
@container (min-width: 52rem) {
  /* question and blurb share row one, first baselines together; the link sits under the blurb */
  .running-item { grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); align-items: baseline; }
  .running-question { grid-column: 1; grid-row: 1; grid-template-columns: 2.4rem 2.2rem minmax(0, 1fr); gap: 0.7rem; }
  .running-tape { width: 2.3rem; height: 0.55rem; }
  .running-line { grid-column: 2; grid-row: 1; }
  .running-more { grid-column: 2; grid-row: 2; }
}

/* Spreads: small additions to the shared editorial grid */
.spread h2 { margin-bottom: 0.3em; }
.fits-say { margin: 0; font-size: calc(var(--step-body) * 1.12); max-width: 44rem; }
.stage-say {
  margin-top: 0.8rem; max-width: 34rem; color: var(--tone-chalk);
  font: 800 clamp(1.15rem, 0.9rem + 1.05vw, 1.7rem)/1.14 var(--face-display);
}
.door-where { font-size: var(--step-body); line-height: 1.55; margin-bottom: 0.55rem; }
.door-hours { font-size: var(--step-body); max-width: 28rem; }
.door-ways { font-size: var(--step-body); max-width: 28rem; margin-top: 0.8rem; }

/* Cost: the white line runs the height of the bench photograph, its link on the photograph's foot */
.cost-side {
  display: flex; flex-direction: column; justify-content: space-between;
  gap: 1.2rem;
}
.cost-side .ask-link { align-self: flex-start; }
.cost-pull { font-size: clamp(1.75rem, 0.5rem + 3.9vw, 4.25rem); line-height: 1.12; }

/* First class: two photographs with one foot line, the notes between them, the link on that line */
.first-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--measure-gap); }
.first-notes { display: flex; flex-direction: column; }
.first-notes .ask-link { align-self: flex-start; margin-top: auto; }
@container (min-width: 48rem) {
  .first-row {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: auto auto;
    column-gap: var(--measure-gap); row-gap: 0.6rem;
  }
  .first-shot { grid-row: 1 / span 2; display: grid; grid-template-rows: subgrid; }
  .first-shot img { height: 100%; }
  .first-shot .still-line { margin-top: 0; }
  .first-door { grid-column: 1 / span 4; }
  .first-notes { grid-column: 5 / span 4; grid-row: 1; }
  .first-floor { grid-column: 9 / span 4; }
}
