/* ================= Site-wide feel =================
   Same language as tactile.css, for the components that existed before it: cards rise and glow, buttons swell,
   presses sink, focus rings ease in. Noticeable, never loud. Movement only when the visitor allows it
   (prefers-reduced-motion) and only with a real pointer for hover; colour changes stay for everyone.
   `body` in front of each selector lets this win over the older per-page hover rules. */
@media (prefers-reduced-motion: no-preference) {
  @media (hover: hover) and (pointer: fine) {
    /* Big cards: rise, border warms, soft glow */
    body :is(.pk, .path, .alt-card, .post, .rcard, .gcard, .texture, .sound-card, .latest):hover {
      transform: translateY(-6px); border-color: color-mix(in srgb, var(--moon) 40%, transparent);
      box-shadow: 0 28px 48px -24px rgba(0, 0, 0, .9), 0 0 0 1px color-mix(in srgb, var(--moon) 14%, transparent), 0 0 32px -10px color-mix(in srgb, var(--moon) 26%, transparent); }
    /* Small rows and tiles: a shorter rise */
    body :is(.hm, .trow, .noise-tab, .biz-feats a, .tjump a):hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--moon) 40%, transparent); }
    /* Buttons and chips swell a little (growing never pushes them out from under the pointer) */
    body :is(.btn, .chip, .tchip, .pbtn, .pk-chip, .share-btn, .a2hs):hover { transform: scale(1.04); }
    body .btn:not(.btn--primary):hover, body .chip:hover, body .pk-chip:hover, body .share-btn:hover { border-color: var(--moon); }
    body .btn--primary:hover { box-shadow: 0 0 0 3px color-mix(in srgb, var(--moon) 16%, transparent); }
    /* Footer and header links */
    body .site-footer a:not(.share-btn):hover { transform: translateX(5px); color: var(--moon); }
    body .social-row a:hover { transform: translateY(-5px) rotate(-6deg) scale(1.08); color: var(--moon); border-color: var(--moon); }
    body .nav a:hover { transform: translateY(-1px); color: var(--moon); }
    /* Arrows inside cards and links lean forward */
    body :is(.alt-card, .hm, .path, .pk):hover :is(.alt-card__go, .hm__go, .path__btn, .pk__btn) { transform: translateX(4px); }
    body .picks .pk-col:not([open]):hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--moon) 38%, transparent); box-shadow: 0 30px 54px -28px rgba(0, 0, 0, .95), 0 0 36px -12px color-mix(in srgb, var(--moon) 24%, transparent); }
    body .pk-col__head:hover .pk-col__chev { transform: translateY(3px) scale(1.1); background: color-mix(in srgb, var(--moon) 18%, transparent); }
    body .pk-col[open] .pk-col__head:hover .pk-col__chev { transform: rotate(180deg) translateY(3px) scale(1.1); }
  }
  /* Pressing sinks everything a clear step */
  body :is(.btn, .chip, .tchip, .pbtn, .pk-chip, .share-btn, .a2hs):active { transform: scale(.93); transition-duration: .08s; }
  body :is(.pk, .path, .alt-card, .post, .rcard, .gcard, .texture, .sound-card, .latest, .hm, .trow, .noise-tab):active { transform: scale(.96) translateY(0); transition-duration: .08s; }
  body .picks .pk-col:not([open]) { transition-property: transform, border-color, box-shadow; transition-duration: .45s; transition-timing-function: var(--ease-spring); }
  body .pk-col__chev { transition-timing-function: var(--ease-spring); }
  /* Keyboard focus: the ring eases out from the element instead of snapping on */
  :where(a, button, summary, input, select, textarea, [tabindex]) { transition-property: outline-offset; transition-duration: .2s; }
  :focus-visible { outline-offset: 5px; }
}
/* On touch, where there is no hover, the press itself answers */
@media (hover: none) and (prefers-reduced-motion: no-preference) {
  body :is(.pk, .path, .alt-card, .post, .rcard, .gcard, .texture, .sound-card, .latest, .hm, .btn, .chip, .pk-chip):active { background-color: var(--hover); }
}
:where(a, button, summary, input, select, textarea, [tabindex]):focus-visible { outline: 2px solid var(--moon); }
