/* Statement band: the words turn from light grey to ink as the reader scrolls through it (js/scrub.js).
   Without the script, or with reduced motion, the whole sentence is ink. */

.scrub {
  padding: clamp(16px, 3vw, 40px) 0 clamp(72px, 9vw, 128px);
}

.scrub-text {
  max-width: 22ch;
  margin: 0;
  font-size: clamp(1.75rem, 3.6vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: pretty;
}

@media (max-width: 640px) {
  .scrub-text {
    max-width: none;
  }
}

.scrub-text[data-armed] .scrub-word {
  --w: clamp(0, calc(var(--scrub, 0) * var(--n) - var(--i)), 1);
  color: color-mix(in srgb, var(--ink) calc(var(--w) * 100%), #cfcdc9);
}
