/* The Pointe: long-reading pages. Order: layout, type, colour, motion. Desk first. */

/* ================= LAYOUT ================= */

/* The hall half holds the title and the syllabus; the studio half carries the clauses. */
.hall-held { max-height: calc(100vh - var(--tda-lintel)); overflow-y: auto; }
.syllabus { counter-reset: tda-leaf; }
.syllabus li { counter-increment: tda-leaf; }
.syllabus a {
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  gap: 0.75rem;
  align-items: center;
  min-height: 2.75rem;
}
.syllabus a::before { content: counter(tda-leaf); display: grid; place-items: center; aspect-ratio: 16 / 9; }

.clauses { counter-reset: tda-clause; }
.clause { counter-increment: tda-clause; }
.scene > .clause + .clause { margin-top: clamp(2rem, 6vh, 3.5rem); }
.clause > * + * { margin-top: 1em; }
.clause p, .clause ul { max-width: 38rem; }
.clause h2 { display: grid; grid-template-columns: 2.6rem 1fr; gap: 0.75rem; align-items: center; }
.clause h2::before { content: counter(tda-clause); display: grid; place-items: center; aspect-ratio: 16 / 9; }
.clause .tile { margin-top: 0.5rem; }

/* The not-found doorway: the whole picture across the seam, sized to sit inside the window. */
.sill { width: min(100%, calc((100vh - 13rem) * 16 / 9)); margin-inline: auto; }

@media (max-width: 48rem) {
  .hall-held { max-height: none; overflow: visible; }
  .scene > .clause + .clause { margin-top: 2rem; }
  .sill .jamb { aspect-ratio: 16 / 9; }
  .sill .jamb img { width: 100%; transform: none; }
  .sill .jamb-studio { display: none; }
}

/* ================= TYPE ================= */

.stamp { font-size: 0.9rem; line-height: 1.4; }
.syllabus a { font-size: 0.9375rem; line-height: 1.3; text-decoration: none; }
.syllabus a:hover { text-decoration: underline; }
.syllabus a::before, .clause h2::before {
  font-family: var(--tda-counting);
  font-weight: 400;
  font-size: 0.9rem;
  line-height: 1;
}
.clause h2 {
  font-family: var(--tda-voice);
  font-weight: 650;
  font-size: clamp(1.5rem, 2.2vw, 1.875rem);
  line-height: 1.12;
}

/* ================= COLOUR ================= */

.hall-held { background: var(--tda-straw); }
.syllabus a::before, .clause h2::before { background: var(--tda-bark); color: var(--tda-straw); }
.syllabus a:hover::before, .clause:target h2::before { background: var(--tda-blue); }

/* ================= MOTION ================= */

.syllabus a::before, .clause h2::before { transition: background-color 150ms linear; }
