/* About: the owner's words read across the seam. Order: layout, type, colour, motion. Desk first. */

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

/* The held teacher picture runs right up to the seam. */
.hall-teacher { padding: 1.25rem 0 var(--tda-beat) var(--tda-edge); }

/* The owner's lines: each has a 16:9 tile slot at its left. */
.sayso { display: grid; gap: clamp(1rem, 2.4vh, 1.75rem); margin-top: var(--tda-beat); }
.sayso-line {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 0.9rem;
  align-items: start;
}
.sayso-line::before {
  content: "";
  width: 2.4rem;
  aspect-ratio: 16 / 9;
  margin-top: 0.35em;
  transform-origin: left center;
}

/* Passages about the work. */
.passage { max-width: 38rem; }
.passage > * + * { margin-top: 0.9em; }
.passage-tape { margin-top: var(--tda-beat); }
.scene > .passage + .passage { margin-top: 2.5rem; }

@media (max-width: 48rem) {
  .hall-teacher { padding: 0.75rem var(--tda-edge) 0; }
  .sayso-line { grid-template-columns: 1.8rem 1fr; gap: 0.7rem; }
  .sayso-line::before { width: 1.8rem; margin-top: 0.33em; }
  .scene > .passage + .passage { margin-top: 2rem; }
}

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

.sayso-line {
  font-family: var(--tda-voice);
  font-weight: 650;
  font-size: clamp(1.625rem, 2.8vw, 2.5rem);
  line-height: 1.2;
}
.js .sayso-line:not(.sayso-line-lit) { font-weight: 400; }
.passage .chapter-small { margin-bottom: 0.2em; }

@media (prefers-reduced-motion: reduce) {
  .js .sayso-line:not(.sayso-line-lit) { font-weight: 650; }
}

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

.sayso-line { color: var(--tda-bark); }
.sayso-line::before { background: var(--tda-blue); }
.js .sayso-line:not(.sayso-line-lit)::before { opacity: 0; transform: scaleX(0.2); }

@media (prefers-reduced-motion: reduce) {
  .js .sayso-line:not(.sayso-line-lit)::before { opacity: 1; transform: none; }
}

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

.sayso-line { transition: font-weight 180ms linear; }
.sayso-line::before { transition: opacity 180ms linear, transform 180ms ease-out; }
