/* Frontend only. Reveal effects use finite WAAPI animations, never hidden states. */
.hero-photo > img { transform-origin: 50% 60%; }

/* Comfortable touch targets for the legal links and the existing member access. */
.footer-legal-nav .wp-block-navigation-item__content,
.footer-info > nav > a,
.existing > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .wp-block-button.button > .wp-block-button__link,
  a.button {
    transition: transform 180ms ease, background-color 180ms ease;
  }
}

/* Avoid the persistent hover lift left behind by touch browsers. */
@media (hover: none), (pointer: coarse) {
  .wp-block-button.button-primary > .wp-block-button__link:hover,
  .wp-block-button.button-dark > .wp-block-button__link:hover,
  .wp-block-button.button-outline > .wp-block-button__link:hover,
  a.button:hover {
    transform: none;
  }
  .wp-block-button.button-primary > .wp-block-button__link:hover,
  a.button-primary:hover { background: var(--orange); }
  .wp-block-button.button-dark > .wp-block-button__link:hover,
  a.button-dark:hover { background: var(--ink); color: var(--paper); }
  .wp-block-button.button-outline > .wp-block-button__link:hover,
  a.button-outline:hover { background: transparent; color: var(--ink); }
}

@media (prefers-reduced-motion: no-preference) {
  .wp-block-button.button > .wp-block-button__link:active,
  a.button:active {
    transform: scale(.98);
  }
}

@media (max-width: 700px) {
  /* Compact enough for the restaurant photo and the invitation to share the view. */
  .hero { gap: 26px; }
  .hero .lead { max-width: 34ch; }
  .mobile-join.is-visible {
    padding-bottom: max(10px, env(safe-area-inset-bottom));
  }
  .mobile-join .wp-block-button__link,
  .mobile-join > a.button { touch-action: manipulation; }
  .footer-legal-nav .wp-block-navigation-item__content { min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  .wp-block-button.button > .wp-block-button__link,
  a.button {
    transition: none !important;
    transform: none !important;
  }
}

@media print {
  html { scroll-behavior: auto !important; }
  .mobile-join { display: none !important; }
  .wp-block-button.button > .wp-block-button__link,
  a.button { transition: none !important; }
}
