/* The site's additions to the package's doppla-reveal.css, for the markup
   in partials/reveal.njk. Loaded on pages that set reveal: true. */

/* the package's CSS draws the wordmark in Ink; follow the page's text
   colour instead, so it reads in dark mode */
.doppla-reveal__wordmark {
  color: var(--doppla-ink);
}

/* Held at its start until the page has loaded (see partials/reveal.njk).
   The package's CSS sets each part's animation with the shorthand, which
   would set them running; these selectors outrank it. */
.reveal-waiting .doppla-reveal__red,
.reveal-waiting .doppla-reveal__blue,
.reveal-waiting .doppla-reveal__red-grad,
.reveal-waiting .doppla-reveal__blue-grad,
.reveal-waiting .doppla-reveal__wordmark {
  animation-play-state: paused;
}

/* The reveal plays once per session (section 09). After the first page
   load in a session, base.njk adds .reveal-seen, and the finished lockup
   shows straight away. */
.reveal-seen .doppla-reveal__red,
.reveal-seen .doppla-reveal__blue,
.reveal-seen .doppla-reveal__red-grad,
.reveal-seen .doppla-reveal__blue-grad,
.reveal-seen .doppla-reveal__wordmark {
  animation: none;
  opacity: 1;
  transform: none;
}

/* the hole opens through an <animate> element, which a class cannot stop;
   like the package's reduced-motion rule, this needs !important */
.reveal-seen .doppla-reveal__hole {
  r: 12px !important;
}
