@media (prefers-reduced-motion: no-preference) {
  h2 {
    transition: font-weight 1.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  .ribbon-track {
    animation: ribbon 40s linear infinite;
  }
  :where(.js) :where(.beat) .copy,
  :where(.js) :where(.beat) .toy {
    transition:
      opacity 1s,
      transform 1.1s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  :where(.js) :where(.beat) .toy {
    transition-delay: 0.15s;
    transition-duration: 1.2s;
  }
  :where(.js) :where(.beat):not(.seen) .copy {
    opacity: 0;
    transform: translateY(60px);
  }
  :where(.js) :where(.beat):not(.seen) h2 {
    font-weight: 120;
  }
  :where(.js) :where(.beat):not(.seen) .toy {
    opacity: 0;
    transform: translateY(90px) rotate(7.5deg);
  }
  :where(.postmark).thump,
  .return-stamp {
    animation: thump 0.45s cubic-bezier(0.3, 1.5, 0.5, 1);
  }
  :where(.js) .postcard {
    transition:
      opacity 0.5s,
      transform 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.2);
  }
  :where(.js) :where(.postcard):not(.dealt) {
    opacity: 0;
    transform: translateX(40px);
  }
  .tracker {
    transition:
      opacity 0.25s,
      scale 0.25s;
  }
  .promo-link {
    transition: text-decoration-color 0.3s;
  }
  .switch {
    transition: background 0.25s;
  }
  :where(.switch)::after {
    transition: left 0.25s cubic-bezier(0.3, 0.7, 0.2, 1.3);
  }
}
@keyframes ribbon {
  to {
    transform: translateX(-50%);
  }
}
