/* The People's Music School, where is it? Four doors hung on the wall, then the big chalk plan. Order: the hang, the plan, the desk, the way out. */

/* ---------- the hang of four doors (phone first: a two-column masonry) ---------- */
.the-lot-band { padding-block: 0 var(--the-seam); }
.the-lot {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
.the-lot-words {
  grid-column: 1 / -1;
  padding: clamp(1.25rem, 4vh, 2.25rem) var(--the-edge) 0.5rem;
}
.the-lot-title { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.5rem); line-height: 1.08; }
.the-mark-line { display: block; }
.the-mark-step { padding-left: clamp(1.5rem, 7vw, 3.5rem); }
.the-mark-city {
  display: block; margin-top: 0.5rem;
  padding-left: clamp(2.5rem, 14vw, 6rem);
  font-size: clamp(1.25rem, 0.9rem + 1.3vw, 1.75rem); line-height: 1.2;
}
.the-lot-words .the-scene { margin-top: 1rem; }

.the-lot .the-print { position: relative; }
.the-lot .the-print img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; aspect-ratio: auto;
}
.the-lot-a { grid-column: 1; grid-row: 2 / span 2; }
.the-lot-b { grid-column: 2; grid-row: 2; aspect-ratio: 3 / 2; z-index: 2; }
.the-lot-c { grid-column: 2; grid-row: 3; aspect-ratio: 1; }
.the-lot-d { grid-column: 1 / -1; grid-row: 4; aspect-ratio: 16 / 9; }
.the-lot-note { grid-column: 1 / -1; grid-row: 5; margin: 0; padding: 0.25rem var(--the-edge) 0; }

/* the stamp, pressed where hallway, doorway and stairwell prints meet */
.the-stamp-pin {
  position: absolute; left: 0; bottom: 0;
  width: 5.5rem; --the-sum: 2rem;
  transform: translate(-50%, 50%) rotate(-8deg);
}

/* ---------- the big plan ---------- */
.the-survey-grid {
  display: grid; grid-template-columns: minmax(0, 1fr);
  gap: 1rem var(--the-seam);
  padding-inline: var(--the-edge);
}
.the-survey-ask { max-width: 30rem; }
.the-survey-lead { margin: 0; max-width: 36rem; }
.the-plan-big {
  width: min(100%, 30rem, calc((100vh - 7rem) * 0.75));
  background: var(--the-denim);
}
.the-lake { font-family: var(--the-voice); fill: var(--the-chalk); }

.the-doors { margin: 0; padding: 0; list-style: none; }
.the-entry {
  display: grid; grid-template-columns: 2.75rem minmax(0, 1fr);
  column-gap: 0.9rem; padding-block: 0.75rem;
}
.the-entry-no { font: 400 clamp(2.25rem, 1.8rem + 1.6vw, 3.25rem) / 1 var(--the-stencil); }
.the-entry p { margin: 0.35rem 0 0; max-width: 34rem; }
.the-entry .the-hood { margin-top: 0; color: var(--the-gleam); font-size: 1rem; }
.the-site-name { font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.4rem); line-height: 1.1; }
.the-site-name a {
  display: inline-flex; align-items: center; min-height: 2.75rem;
  text-decoration: underline 0.125rem var(--the-brass); text-underline-offset: 0.22em;
  transition: color var(--the-quick);
}
.the-site-name a:hover, .the-site-name a:focus-visible { color: var(--the-gleam); }
.the-entry .the-arrange {
  display: flex; flex-wrap: wrap; align-items: center; column-gap: 0.3em;
}
.the-arrange a {
  display: inline-flex; align-items: center; min-height: 2.75rem;
  text-decoration: underline 0.0625rem; text-underline-offset: 0.2em;
}
.the-arrange a:hover { text-decoration: underline 0.125rem var(--the-brass); }

/* ---------- the office line ---------- */
.the-desk-grid {
  display: grid; grid-template-columns: minmax(0, 1fr);
  gap: 1rem var(--the-seam);
  padding-inline: var(--the-edge);
}
.the-desk-text p { max-width: 36rem; }
.the-desk-text p:last-child { margin-bottom: 0; }
.the-reach { display: grid; gap: 0.25rem; align-content: center; justify-items: start; min-width: 0; }
.the-reach .the-brass {
  font-size: clamp(1rem, 0.4rem + 2vw, 1.65rem);
  overflow-wrap: anywhere;
}

/* the way out */
.the-doors-page .the-door { padding-top: var(--the-seam); }

/* ---------- the hang opens out into the full wall ---------- */
@container band (min-width: 52rem) {
  .the-lot {
    grid-template-columns: repeat(24, minmax(0, 1fr));
    grid-template-rows: repeat(8, 1fr);
    gap: var(--the-seam);
    min-height: clamp(34rem, calc(100vh - 8.25rem), 52rem);
  }
  .the-lot-words { grid-column: 1 / span 9; grid-row: 1 / span 5; }
  .the-lot .the-print { aspect-ratio: auto; }
  .the-lot-a { grid-column: 10 / span 7; grid-row: 1 / span 6; }
  .the-lot-b { grid-column: 17 / -1; grid-row: 1 / span 3; }
  .the-lot-c { grid-column: 17 / -1; grid-row: 4 / span 5; }
  .the-lot-d { grid-column: 1 / span 9; grid-row: 6 / span 3; }
  .the-lot-note { grid-column: 10 / span 7; grid-row: 7 / span 2; align-self: start; padding: 0.25rem 0 0; }
  .the-stamp-pin { width: 8.25rem; --the-sum: 2.8rem; }

  .the-survey-grid { grid-template-columns: repeat(24, minmax(0, 1fr)); align-items: start; }
  .the-survey-ask { grid-column: 1 / span 14; grid-row: 1; max-width: none; }
  .the-plan-hold { grid-column: 1 / span 11; grid-row: 2 / span 2; align-self: stretch; }
  .the-plan-big { position: sticky; top: 4.5rem; width: min(100%, 34rem, calc((100vh - 7rem) * 0.75)); }
  .the-survey-lead { grid-column: 13 / -1; grid-row: 2; }
  .the-doors { grid-column: 13 / -1; grid-row: 3; }

  .the-desk-grid { grid-template-columns: repeat(24, minmax(0, 1fr)); }
  .the-desk-grid > .the-stencil { grid-column: 1 / span 13; grid-row: 1; }
  .the-desk-text { grid-column: 1 / span 11; grid-row: 2; }
  .the-reach { grid-column: 14 / -1; grid-row: 1 / span 2; }
}
