/* About page: the sentence that lights as it is read, plus section layout over the lived-room ground */

.about-words, .about-sec { min-height: 0; padding-top: 3.5rem; padding-bottom: 3.5rem; }
.about-sec { padding-top: 2.5rem; }

/* Ground crops differ per screen so the same room is seen from three corners */
.about-words .stage__ground img { object-position: 30% 50%; }
.about-sec--hand .stage__ground img { object-position: 80% 40%; }
.about-sec--pay .stage__ground img { object-position: 10% 60%; }
.about-sec--place .stage__ground img { object-position: 60% 30%; }

/* Opening: keep the arch clear of the sill on narrow screens */
.about .opening .sill { padding-bottom: 2rem; }
.about .opening__arch { margin-top: 1rem; }
@media (min-width: 60rem) {
  .about .opening .sill { grid-row: 1; }
  .about .opening__arch { grid-row: 1; margin-top: 0; }
}

/* The owner's words: set large, dim until read */
.words { padding-bottom: 2.5rem; }
.words .t-2 { max-width: 62rem; margin-inline: auto; }
.words__text { max-width: 62rem; margin-inline: auto; }
.words__text p {
  margin: 0;
  font-size: clamp(1.5rem, 1rem + 1.9vw, 2.6rem);
  line-height: 1.45;
}
.words .rule, .words > .t-small { max-width: 62rem; margin-inline: auto; }
.words .rule { margin-top: 2rem; margin-bottom: 1.25rem; }
.words > .t-small { margin-bottom: 0; }

/* Dimmed only when script is running; without it everything is full ink.
   58% ink on cream keeps large type above 3:1 */
.js .words .line {
  color: color-mix(in srgb, var(--ink) 58%, var(--cream));
  transition: color .8s var(--drift);
}
.js .words .line.is-lit { color: var(--ink); }
@media (prefers-reduced-motion: reduce) {
  .js .words .line { color: var(--ink); }
}

/* Section sills and the pictures beside them */
.about-sec .sill { align-self: end; }
.about-sec .sill p + p { margin-top: 0; }

@media (min-width: 60rem) {
  .about-sec .sill { grid-row: 1; }
  .about-sec .snap {
    grid-row: 1; grid-column: 9 / span 4; width: min(100%, 24rem);
    justify-self: center; align-self: end; margin: 0;
  }
  .about-sec--place .sill { grid-column: 6 / span 7; }
  .about-sec--place .snap { grid-column: 2 / span 3; }
  .about-sec--hand .snap { z-index: 5; }
  .about-sec--hand .snap--cross { margin-bottom: -6rem; }
  .about-sec--hand { z-index: 2; }
  .about-sec--pay .sill { grid-column: 6 / span 7; }
}

/* Moss sticker beside the Medicaid section */
.about-sticker {
  width: 9rem; height: 9rem; font-size: 1.125rem; transform: rotate(-7deg);
  justify-self: start; margin-left: .5rem;
}
@media (min-width: 60rem) {
  .about-sticker { grid-row: 1; grid-column: 2 / span 3; align-self: end; justify-self: center; margin: 0 0 3rem; }
}

/* Phone: one snapshot per panel, alternating */
@media (max-width: 59.99rem) {
  .about-sec .snap { margin-top: 1rem; margin-bottom: .5rem; }
  .about-sec--place .snap { margin-left: 0; margin-right: auto; }
  .about-sec--hand .snap { margin-left: auto; margin-right: 0; }
  .words__text p { line-height: 1.5; }
}
