/* A few editorial moments inside the paper chapters; page covers keep their rhythm. */
@media (max-width: 700px) {
  body[data-mobile-story] [data-mobile-chapter-number] {
    display: inline-block;
    margin-right: 2px;
    color: inherit;
    font: italic 400 25px/1 var(--display);
    letter-spacing: -.04em;
    vertical-align: -.13em;
    opacity: .76;
  }
  body[data-mobile-story] [data-mobile-chapter-heading] .mobile-paper-rule {
    width: clamp(56px, 19vw, 80px);
  }
  body[data-mobile-story] [data-mobile-photo-wash] {
    position: relative;
    isolation: isolate;
  }
  body[data-mobile-story] .mobile-photo-wash {
    position: absolute;
    z-index: 1;
    display: block;
    overflow: hidden;
    pointer-events: none;
    user-select: none;
    mix-blend-mode: multiply;
    opacity: .8;
    background:
      linear-gradient(152deg, #77845416, transparent 24%),
      linear-gradient(0deg, #ad824a28, #ad824a0a 12%, transparent 24%);
  }
}
@media (max-width: 700px) and (prefers-reduced-motion: no-preference) {
  body[data-mobile-story-motion] [data-mobile-chapter]:not([data-mobile-story-seen]) {
    opacity: .62;
  }
  body[data-mobile-story-motion] [data-mobile-chapter][data-mobile-story-seen] {
    animation: mobile-chapter-ink 1.4s ease-in-out .12s both;
  }
  body[data-mobile-story-motion] .mobile-photo-wash:not([data-mobile-story-seen]) {
    opacity: 0;
  }
  body[data-mobile-story-motion] .mobile-photo-wash[data-mobile-story-seen] {
    animation: mobile-photo-wash 1.9s ease-in-out both;
  }
  body[data-mobile-story-paused] :is([data-mobile-chapter], .mobile-photo-wash) {
    animation-play-state: paused;
  }
  @supports (background-clip: text) or (-webkit-background-clip: text) {
    body[data-mobile-story-motion] [data-mobile-reading] {
      background-image: linear-gradient(100deg,
        var(--mobile-reading-ink) calc(var(--mobile-reading-progress, 120%) - 14%),
        var(--mobile-reading-wash) calc(var(--mobile-reading-progress, 120%) + 14%));
      background-clip: text;
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }
  }
  @keyframes mobile-chapter-ink {
    from { opacity: .62; }
    to { opacity: 1; }
  }
  @keyframes mobile-photo-wash {
    from { opacity: 0; }
    to { opacity: .8; }
  }
}
@media (forced-colors: active), (prefers-contrast: more) {
  body[data-mobile-story-motion] [data-mobile-reading] {
    background: none;
    -webkit-text-fill-color: currentColor;
  }
}
