/* programs.html: a three-print opening with the question set once at top left, then the ladder as a staircase. */

/* opening: .the-start; the h1 is one block in the top left, the scene, a small print and the stamp sit under it,
   two large prints stand to the right over both rows */
.the-start {
  grid-template-rows: auto auto;
  padding-top: clamp(1rem, 3vh, 2rem);
  padding-inline: 0;
}
.the-start-words {
  --the-hang: 1 / span 12; --the-rung: 1;
  padding-left: var(--the-edge);
  font-size: clamp(2rem, 1rem + 2.8vw, 3.5rem);
  line-height: 1.08;
}
.the-start-a { --the-hang: 13 / span 5; --the-rung: 1 / span 2; }
.the-start-b { --the-hang: 18 / -1; --the-rung: 1 / span 2; }
.the-start-c { --the-hang: 1 / span 4; --the-rung: 2; }
.the-start-say { --the-hang: 5 / span 5; --the-rung: 2; align-self: start; padding-top: 0.5rem; }
.the-start .the-print img { max-height: 52vh; }
.the-start-stamp { --the-hang: 10 / span 3; --the-rung: 2; justify-self: center; align-self: end; }
.the-start-stamp .the-stamp-word, .the-start-stamp .the-stamp-sum { display: block; line-height: 1.15; white-space: nowrap; }

/* ladder head: heading and a short paragraph, running the width */
.the-climb-head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 0.75rem clamp(1.5rem, 4vw, 4rem); align-items: end;
  padding: 0 var(--the-edge) clamp(1.5rem, 4vh, 2.5rem);
}
.the-climb-head > p { margin: 0; max-width: 40rem; }
.the-climb-head a:hover { text-decoration-color: var(--the-brass); }

/* the ladder: one rung per row, print left and words right, each rung stepping two columns to the right */
.the-climb { row-gap: clamp(1.5rem, 4vh, 2.5rem); }
.the-climb > .the-hold {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--the-seam);
  align-items: end;
}
.the-climb .the-print img { max-height: 60vh; }
.the-hold[hidden] { display: none; }
.the-hold > a { display: block; text-decoration: none; }
.the-hold-words {
  display: grid; grid-template-columns: auto minmax(0, 1fr);
  column-gap: 1rem; align-items: baseline;
  min-width: 0;
  padding: 0.5rem var(--the-edge) 0.25rem 0.5rem;
}
.the-rung-mark {
  font: 400 clamp(2.5rem, 1.6rem + 3vw, 4.5rem)/1 var(--the-stencil);
  color: var(--the-chalk);
}
.the-hold h3 { font-size: clamp(1.125rem, 1rem + 0.5vw, 1.4rem); overflow-wrap: anywhere; }
.the-climb .the-hold h3 { font-size: clamp(1.375rem, 1.1rem + 1vw, 2rem); }
.the-hold h3 a { text-decoration: none; }
.the-hold h3 a:hover, .the-hold h3 a:focus-visible { text-decoration: underline 0.125rem var(--the-brass); text-underline-offset: 0.22em; }
.the-hold p { margin: 0.4rem 0 0; font-size: 1.0625rem; line-height: 1.5; }
.the-hold .the-hold-price { font-size: 0.95rem; }

/* the sparse row: three prints, captions straight under */
.the-spare .the-chalk { padding-inline: 0.25rem; }
.the-spare .the-chalk h3 a { text-decoration: none; }

/* a narrower band: each rung runs the width, the step kept as a small indent */
@container band (max-width: 62rem) {
  .the-climb > .the-hold {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    margin-left: calc(var(--the-step, 0) * 3%);
  }
}
@container band (max-width: 44rem) {
  .the-start-words { order: -2; font-size: clamp(2rem, 8.5vw, 2.75rem); }
  .the-start-say { order: -1; padding-top: 0; }
  .the-start .the-print img { max-height: 40vh; }
  .the-start-stamp {
    grid-column: 2; justify-self: end;
    width: 8.25rem; height: auto; aspect-ratio: auto; min-height: 8.25rem;
    padding: 1rem 0.75rem; gap: 0.2rem;
  }
  .the-climb-head { grid-template-columns: minmax(0, 1fr); }
  .the-climb > .the-hold { grid-template-columns: minmax(0, 1fr); margin-left: 0; padding-inline: 0; }
  .the-climb .the-hold-words { padding-inline: var(--the-edge); }
  .the-spare > .the-hold { grid-column: 1 / -1; padding-inline: 0; }
  .the-spare .the-chalk { padding-inline: var(--the-edge); }
}
