/* =========================================================================
   ON3 — the logo squishes when pressed (js/logo-press.js)
   Soft rubber: held, the wordmark squashes down under the finger; let go, it
   wobbles back into shape, and then the page goes home. Uses the `scale`
   property, so it sits on top of the header logo's hover lift and tilt.
   ========================================================================= */
.hdr__logo, .book-top__home { -webkit-tap-highlight-color: transparent; touch-action: manipulation; -webkit-user-select: none; user-select: none; }
.hdr__logo img, .book-top__logo { transform-origin: 50% 100%; transition: scale 110ms cubic-bezier(0.3, 0, 0.3, 1); }
.is-squished img, .is-squished .book-top__logo { scale: 1.07 0.8; }
.is-unsquished img, .is-unsquished .book-top__logo { animation: logo-jelly 560ms linear; }
@keyframes logo-jelly {
  0% { scale: 1.07 0.8; } 22% { scale: 0.95 1.12; } 42% { scale: 1.03 0.95; }
  62% { scale: 0.99 1.03; } 80% { scale: 1.005 0.99; } 100% { scale: 1 1; }
}
/* the hidden switch iPhones tick through (see js/logo-press.js) */
.logo-haptic { position: fixed; left: -100px; top: 0; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  .hdr__logo img, .book-top__logo { transition: none; }
  .is-squished img, .is-squished .book-top__logo { scale: none; }
  .is-unsquished img, .is-unsquished .book-top__logo { animation: none; }
}
