/* Footer, Mishka version (Figma "Frame 2147259764", 1514 wide). A white card with the social links
   and copyright; below it the footer slides up to reveal Mishka sitting on the grass under a blue
   sky, "Please throw her a ball". The game itself is fetch2.js. Sizes are design px / 1514 × 100vw.
   Builds on doormat.css (the card's base styles and the pull handle). */
@font-face { font-family: "Footer Parceh"; src: url("assets/home-nov19/Parceh.otf"); font-display: swap; }

/* ----- the card ----- */
.site-shared-footer.footer-v2 {
  padding: 8.256vw 4.65vw 0 3.95vw;           /* the rule sits 125px down */
  border-radius: 0 0 .784vw .784vw;
  background: #fff;
  color: #000;
  box-shadow: 0 .261vw .34vw #00000040;
  font: 500 clamp(13px, 1.291vw, 20px)/1.1 "Footer Instrument Sans", sans-serif;
  letter-spacing: -.015em;
}
.footer-v2 .footer-links {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding: 2.68vw 0 7.93vw;                    /* FOLLOW 41px under the rule; 120px under the links */
  border-top: max(1px, .0646vw) solid #000;
}
/* The thin rule above the footer info, as on the about page. (The dark pages' footer rule is a faint
   white line, invisible on this white card, so it's overridden here.) */
body .site-shared-footer.footer-v2 .footer-links { border-top: 1px solid #0000002e; padding-top: 2.68vw; }
.footer-v2 .footer-label {
  margin: 0 0 1.744vw;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: uppercase;
}
.footer-v2 nav { display: flex; flex-wrap: wrap; gap: 0 3.34vw; }
.footer-v2 a,
.footer-v2 .footer-copy {
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: none;
}
.footer-v2 a { text-decoration: underline; text-decoration-thickness: from-font; text-underline-position: from-font; }
.footer-v2 a:hover, .footer-v2 a:focus-visible { text-decoration-thickness: 2px; }
.footer-v2 .footer-copy {
  display: flex;
  align-items: center;
  gap: .52em;
  margin: 0 0 .71vw;
  white-space: nowrap;
}
.footer-v2 .footer-copy svg { width: .9em; height: .9em; flex: none; }
.footer-v2 .doormat-handle { position: absolute; left: 50%; bottom: .6vw; transform: translateX(-50%); }

/* ----- the reveal: sky and grass (it tucks 26px up under the card's rounded corners) ----- */
.footer-v2 + .doormat-reveal {
  aspect-ratio: 1514 / 422;
  margin-top: -1.717vw;
  background: linear-gradient(#78bef9 70.38%, #4d9b38 70.38%);
}
.footer-v2 + .doormat-reveal .fetch-scene {
  aspect-ratio: 1514 / 422;
  background: linear-gradient(#78bef9 70.38%, #4d9b38 70.38%);
}
.fetch-title {
  position: absolute;
  top: 14.93%;
  left: calc(50% - .33vw);
  margin: 0;
  transform: translateX(-50%);
  color: #fff;
  font: 400 5.35vw/1.4 "Footer Parceh", Georgia, serif;
  white-space: nowrap;
  pointer-events: none;
}

/* ----- Mishka: every pose is drawn on the same 840 × 628 canvas, feet 14px above its bottom ----- */
.fetch-v2 .fetch-pose { inset: 0; left: 0; width: 100%; height: 100%; transform: none; }
.fetch-v2 .fetch-dog[data-pose="pickup"] .pose-pickup { visibility: visible; }   /* bowing down to pick up the ball */
.fetch-v2 .pose-sit { aspect-ratio: auto; }
/* Her shadow is traced from each pose (assets/footer/mishka/shadow-*.webp, same 840-wide canvas but
   660 tall so the blur isn't clipped): a dark contact patch under every paw, the back paws included,
   on a faint pool under her body. It sits inside .fetch-flip so it turns with her. */
.fetch-v2 .fetch-dog-shadow {
  inset: 0 auto auto 0; width: 100%; height: calc(100% * 660 / 628);
  border-radius: 0; filter: none;
  background: url("assets/footer/mishka/shadow-sit.webp") 0 0 / 100% 100% no-repeat;
}
.fetch-v2 .fetch-dog[data-pose="run-1"] .fetch-dog-shadow { background-image: url("assets/footer/mishka/shadow-run-1.webp"); }
.fetch-v2 .fetch-dog[data-pose="run-2"] .fetch-dog-shadow { background-image: url("assets/footer/mishka/shadow-run-2.webp"); }
.fetch-v2 .fetch-dog[data-pose="fetch"] .fetch-dog-shadow { background-image: url("assets/footer/mishka/shadow-fetch.webp"); }
.fetch-v2 .fetch-dog[data-pose="pickup"] .fetch-dog-shadow { background-image: url("assets/footer/mishka/shadow-pickup.webp"); }
.fetch-v2 .fetch-tail {
  left: 59.52%;
  top: 57.9%;
  width: 24.88%;
  transform-origin: 0% 70%;
  transform: rotate(-10deg);
}
.fetch-v2.is-wagging .fetch-tail { animation: mishka-wag .3s ease-in-out infinite; }
.fetch-v2.is-excited .fetch-tail { animation-duration: .18s; }
@keyframes mishka-wag { 0%, 100% { transform: rotate(-24deg); } 50% { transform: rotate(6deg); } }
.fetch-v2 .fetch-ball-shadow { background: #00000038; }
/* "pull the ball back and let go", beside the ball while someone points at it or pulls it back. */
.fetch-v2 .fetch-hint {
  z-index: 4;
  color: #fff;
  font: italic 400 clamp(13px, 1.19vw, 18px)/1.2 "Footer Montreal", Arial, sans-serif;
  letter-spacing: -.01em;
  text-shadow: 0 1px 2px #0000002e;
  text-align: left;
  transition: opacity .25s;
}

/* Phones: a taller box, so there is room to throw. */
@media (max-width: 600px) {
  .site-shared-footer.footer-v2 { padding-inline: 20px; }
  .footer-v2 .footer-links { flex-direction: column; align-items: flex-start; gap: 28px; padding-top: 24px; padding-bottom: 72px; }
  .footer-v2 .footer-label { margin-bottom: 14px; }
  body .site-shared-footer.footer-v2 .footer-links { padding-top: 24px; }
  .footer-v2 nav { gap: 0 24px; }
  .footer-v2 .footer-copy { margin: 0; }
  .footer-v2 + .doormat-reveal, .footer-v2 + .doormat-reveal .fetch-scene { aspect-ratio: 4 / 3; }
  .fetch-title { top: 9%; font-size: 8.6vw; }
}
@media (prefers-reduced-motion: reduce) {
  .fetch-v2.is-wagging .fetch-tail { animation: none; }
}
