@charset "UTF-8";
/* ============================================================
   FIX MY TEETH — THE SCROLLER

   A continuous marquee of short terms on hairline rules: the
   engraved index laid on its side. It carries information the page
   could not otherwise fit without becoming a list of lists.

   No library, no JavaScript. The row is printed twice and shifted
   by exactly -50%, which is what makes the loop seamless.

   It fades out at both edges rather than stopping at a hard border,
   so the row reads as continuing past the page rather than being
   clipped by it.
   ============================================================ */

.scroller {
  --scroller-speed: 60s;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding-block: 0;

  /* The edges dissolve instead of cutting. */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
  mask-image: linear-gradient(
    to right,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
}

.scroller-track {
  display: flex;
  width: max-content;
}

.scroller-row {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: none;
}

.scroller-row li {
  display: flex;
  align-items: center;
  white-space: nowrap;
  padding-inline: clamp(1.1rem, 2.4vw, 2rem);
  padding-block: clamp(0.85rem, 1.8vw, 1.15rem);
  font-family: var(--body);
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--text);
}

/* The divider is the hairline rule, drawn between terms rather than
   around them — a schedule, not a row of chips. */
.scroller-row li + li,
.scroller-row + .scroller-row li:first-child {
  border-left: 1px solid var(--rule);
}

@media (prefers-reduced-motion: no-preference) {
  .scroller-track {
    animation: fmt-marquee var(--scroller-speed) linear infinite;
  }

  /* Reading a term is a reason to stop the row. */
  .scroller:hover .scroller-track {
    animation-play-state: paused;
  }
}

@keyframes fmt-marquee {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

/* No motion: an ordinary scrollable strip. The terms are still all
   there, they simply stay put until pushed. */
@media (prefers-reduced-motion: reduce) {
  .scroller {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .scroller-track {
    animation: none;
  }

  /* The duplicate row is decorative once nothing moves. */
  .scroller-row[aria-hidden="true"] {
    display: none;
  }
}

/* ---- On the Ink ground ---- */

.band-ink .scroller,
.scroller-ink {
  border-top-color: var(--on-ink-rule);
  border-bottom-color: var(--on-ink-rule);
}

.band-ink .scroller-row li {
  color: var(--on-ink-soft);
}

.band-ink .scroller-row li + li,
.band-ink .scroller-row + .scroller-row li:first-child {
  border-left-color: var(--on-ink-rule);
}

/* ---- A second, quieter register ----

   Where the terms are a specialism rather than a consequence, they
   set in the inscriptional face — the same device the seal uses. */
.scroller-caps .scroller-row li {
  font-family: var(--caps);
  font-size: clamp(0.72rem, 1.3vw, 0.86rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Terms that describe how the work is done rather than what is treated.
   Gold measures 6.62:1 on Ink, so it is a legitimate text colour here — the
   one ground where that is true. */
.scroller-row li.is-accent {
  color: var(--gold);
}
