/* About: the lid marking and the walls that carry it. The chrome stays in site.css. */

/* ---------- shared pieces ---------- */

/* every screen of this page after the first keeps its breath short */
.the-tier { padding-block: clamp(1.5rem, 6vh, 4rem); }

/* first wall: the h1 is broken into two corners beside the first big print */
.the-porch-band { padding: clamp(1rem, 3vh, 1.75rem) 0 clamp(1.25rem, 4vh, 2.5rem); }
.the-porch { grid-template-rows: auto auto 1fr; }
.the-porch > h1 {
  display: contents;
  font-size: clamp(1.75rem, 1rem + 2.4vw, 3.25rem);
}
.the-porch-top, .the-porch-foot { grid-column: 2 / span 10; }
.the-porch-top { grid-row: 1; align-self: start; }
.the-porch-foot { grid-row: 3; align-self: end; }
.the-porch > .the-scene { --the-hang: 2 / span 10; --the-rung: 2; padding-top: 1rem; }
.the-porch-print { --the-hang: 12 / -1; --the-rung: 1 / span 3; --the-narrow: 1 / -1; }

/* the set piece: one stencil sentence, three lines, each starting one column further right */
.the-latch { padding-block: clamp(0.25rem, 2vh, 1.5rem); }
.the-lid {
  row-gap: 0.12em; margin: 0;
  font: 400 clamp(1.5rem, 0.9rem + 3.4vw, 3.5rem)/1.12 var(--the-stencil);
  letter-spacing: 0.02em; text-transform: lowercase;
}
.the-lid > span { display: block; overflow-wrap: anywhere; }
.the-lid > :nth-child(1) { --the-hang: 4 / span 14; }
.the-lid > :nth-child(2) { --the-hang: 5 / span 14; }
.the-lid > :nth-child(3) { --the-hang: 6 / span 14; }

/* how the work is done: a big print on the left, the plain account beside it */
.the-method-print { --the-hang: 1 / span 13; --the-rung: 1; --the-narrow: 1 / -1; }
.the-method { --the-hang: 15 / span 9; --the-rung: 1; }
.the-method h2, .the-words h2 { margin-bottom: 1rem; }
.the-method > p { max-width: 36rem; }
.the-method .the-tally { margin-top: 1.25rem; }

/* the school's own words, long, beside the bowings print */
.the-words { --the-hang: 2 / span 10; --the-rung: 1; align-self: center; }
.the-words > p { max-width: 36rem; }
.the-words-print { --the-hang: 12 / -1; --the-rung: 1; --the-narrow: 1 / -1; }

/* what the site refuses: captions hung down a stair beside one tall print */
.the-refusal-ask { --the-hang: 10 / span 14; --the-rung: 1; }
.the-stand-print { --the-hang: 1 / span 8; --the-rung: 2 / span 2; --the-shape: 2 / 3; --the-narrow: 1 / -1; }
.the-no-one { --the-hang: 10 / span 6; --the-rung: 2; }
.the-no-two { --the-hang: 17 / span 7; --the-rung: 2; }
.the-no-three { --the-hang: 13 / span 9; --the-rung: 3; align-self: end; }

/* hand-off: the two questions that follow, set large, beside a wide print */
.the-onward-text { --the-hang: 2 / span 10; --the-rung: 1; align-self: center; }
.the-onward-text > p { max-width: 34rem; margin-top: 0.9rem; }
.the-onward-text > .the-brass {
  display: flex; align-items: center; width: fit-content;
  min-height: 2.75rem;
  font-size: clamp(1.4rem, 1rem + 1.2vw, 2rem);
}
.the-onward-print { --the-hang: 12 / -1; --the-rung: 1; --the-narrow: 1 / -1; }

/* when the band is narrow: the corners of the h1 stack, the lid steps in a little, prints go full width */
@container band (max-width: 44rem) {
  .the-porch { grid-template-rows: none; }
  .the-porch-top, .the-porch-foot {
    grid-column: 1 / -1; grid-row: auto; align-self: start;
    padding-inline: var(--the-edge);
  }
  .the-porch > .the-scene { padding-top: 0.25rem; }
  .the-print-fill, .the-print-fill img { height: auto; }
  .the-stand-print { --the-shape: 4 / 3; }
  .the-lid > :nth-child(2) { padding-left: calc(var(--the-edge) + 0.7rem); }
  .the-lid > :nth-child(3) { padding-left: calc(var(--the-edge) + 1.4rem); }
  .the-no-three { align-self: start; }
}
