/* Scrub! contact: the porch, the call notes, the desk facts and the last door */
:root {
  --sentence-size: clamp(1.5rem, 1.05rem + 1.7vw, 2.375rem);
  --term-width: 11rem;
  --porch-picture-height: 58vh;
}

/* ---------- SHARED PIECES ---------- */

/* First window: words and the doorstep picture, both standing on one baseboard rule */
.porch--band { display: grid; grid-template-areas: "words" "view" "sill"; gap: 1rem; padding-block: .25rem 0; }
.porch--words { grid-area: words; min-width: 0; }
.porch--view { grid-area: view; }
.porch--sill { grid-area: sill; }
.porch--view img { height: auto; aspect-ratio: 4 / 3; max-height: var(--porch-picture-height); }
.porch--actions { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.6rem; margin: .8rem 0 0; }
.porch--phone { font-size: 1.375rem; padding: .8rem 1.5rem; }

/* Call notes: the hall beside them opens the door of the chosen kind of clean */
.notes--run, .last--run, .desk--band { padding-block: calc(var(--storey) * .7); }
.notes--run, .last--run { --hall-width: 28%; }
.notes--hall, .last--hall { position: relative; }
.notes--hall .hall--plan, .last--hall .hall--plan { position: absolute; inset: 0; }
.notes--spread > p { max-width: 38rem; }
.notes--label { margin: 1.1rem 0 .15rem; font-weight: 700; }
.say--block { margin-top: 1.4rem; padding: 1.25rem 1.4rem 1rem; }
.say--line { margin: 0 0 .9rem; font: 500 var(--sentence-size) / 1.3 var(--plan-lettering); text-wrap: balance; }
.say--line [data-say-slot] { color: var(--biro); text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .18em; }
.say--actions { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1.6rem; margin: 0; }

/* Desk facts: hours and area on one side, what we ask on the other */
.desk--band { display: grid; grid-template-areas: "hours" "area" "asks"; column-gap: clamp(1.5rem, 4vw, 4rem); }
.desk--hours { grid-area: hours; }
.desk--area { grid-area: area; }
.desk--asks { grid-area: asks; }
.desk--band p { max-width: 36rem; }
.desk--print { margin-bottom: .4rem; }
.asks--rows { margin: 1rem 0; }
.asks--row { display: grid; grid-template-areas: "term" "detail"; padding: .65rem 0; }
.asks--term { grid-area: term; font-size: 1.1875rem; font-weight: 700; }
.asks--term::before { content: ""; display: inline-block; width: 1rem; height: var(--baseboard); margin-right: .5rem; vertical-align: .3em; background: var(--petrol); }
.asks--detail { grid-area: detail; }

/* Last door: the hall ends at the doorstep, the phone number is the final door */
.last--spread > p { max-width: 38rem; }
.last--door { margin: 1.2rem 0 0; }
.last--phone { padding: .85rem 1.6rem; font-size: 1.5rem; }
.last--links { display: flex; flex-wrap: wrap; gap: .8rem 1.4rem; margin: 1.1rem 0 0; }

/* ---------- DESK ---------- */
@media (min-width: 48rem) {
  .porch--band { grid-template-areas: "words view" "sill sill"; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(1.5rem, 4vw, 4rem); row-gap: 1.25rem; align-items: start; }
  .say--block { max-width: 46rem; }
  .desk--band { grid-template-areas: "hours asks" "area asks"; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-content: start; }
  .asks--row { grid-template-areas: "term detail"; grid-template-columns: var(--term-width) minmax(0, 1fr); column-gap: 1.5rem; }
}

/* ---------- BARE ELEMENTS ---------- */
dl, dt, dd, hr { margin: 0; }
