/* Pap’pote animated logo (lib/brand-logo.js): living chrome over the brand image.
   - a light streak crosses the chrome every ~7 s,
   - a soft glow breathes behind the tile,
   - the drop-shaped apostrophe sways a little.
   Hover / tap (:active, .is-tapped set by logo-anim.js): faster + brighter glow.
   prefers-reduced-motion: no motion at all, sharp static logo. */
.pp-logo{display:inline-block;overflow:visible;aspect-ratio:1/1;flex:none;vertical-align:middle;
  --pp-logo-glow:#a99bff;transition:filter .35s ease}
html[data-theme="dark"] .pp-logo{--pp-logo-glow:#c4b8ff}
.pp-logo .pp-logo-gc{stop-color:var(--pp-logo-glow)}
.pp-logo-glow{opacity:.18;animation:ppLogoGlow 4.8s ease-in-out infinite}
html[data-theme="dark"] .pp-logo-glow{opacity:.3}
.pp-logo-shine{animation:ppLogoShine 7.2s cubic-bezier(.45,0,.2,1) 1.2s infinite}
.pp-logo-sheen{opacity:.55}
html[data-theme="dark"] .pp-logo-sheen{opacity:.7}
/* rotates around the drop's head (512-px artwork units) */
.pp-logo-drop{transform-box:view-box;transform-origin:380px 108px;animation:ppLogoDrop 3.6s ease-in-out infinite}
@keyframes ppLogoGlow{0%,100%{opacity:.14}50%{opacity:.42}}
@keyframes ppLogoShine{0%{transform:translateX(0)}22%,100%{transform:translateX(900px)}}
@keyframes ppLogoDrop{0%,100%{transform:rotate(-4deg)}50%{transform:rotate(4deg) translateY(2px)}}
html[data-theme="dark"] .pp-logo-glow{animation-name:ppLogoGlowDark}
@keyframes ppLogoGlowDark{0%,100%{opacity:.25}50%{opacity:.6}}

/* Hover (mouse) and tap (touch): the chrome comes alive. */
@media (hover:hover){
  :is(a,button):hover > .pp-logo,.pp-logo:hover{filter:drop-shadow(0 0 .18em var(--pp-logo-glow))}
  :is(a,button):hover > .pp-logo .pp-logo-shine,.pp-logo:hover .pp-logo-shine{animation-duration:1.6s;animation-delay:0s}
  :is(a,button):hover > .pp-logo .pp-logo-glow,.pp-logo:hover .pp-logo-glow{animation-duration:1.2s}
  :is(a,button):hover > .pp-logo .pp-logo-drop,.pp-logo:hover .pp-logo-drop{animation-duration:1.1s}
}
:is(a,button):active > .pp-logo,.pp-logo:active,.pp-logo.is-tapped{filter:drop-shadow(0 0 .22em var(--pp-logo-glow))}
:is(a,button):active > .pp-logo .pp-logo-shine,.pp-logo:active .pp-logo-shine,.pp-logo.is-tapped .pp-logo-shine{animation-duration:1.4s;animation-delay:0s}
:is(a,button):active > .pp-logo .pp-logo-glow,.pp-logo:active .pp-logo-glow,.pp-logo.is-tapped .pp-logo-glow{animation-duration:1s}
:is(a,button):active > .pp-logo .pp-logo-drop,.pp-logo:active .pp-logo-drop,.pp-logo.is-tapped .pp-logo-drop{animation-duration:.9s}

@media (prefers-reduced-motion:reduce){
  .pp-logo,.pp-logo *{animation:none!important;transition:none!important}
  .pp-logo-sheen{display:none}
  .pp-logo-glow{opacity:0!important}
  .pp-logo,.pp-logo.is-tapped,:is(a,button):is(:hover,:active) > .pp-logo,.pp-logo:is(:hover,:active){filter:none!important}
}
