/* Canonical site footer — one footer, every page. An ink block with a thick
   top border: copyright left, links centre, square social buttons right, then
   the physics-pill band below. Markup from tools/lib/site-chrome.mjs. Tokens
   from theme.css. */

footer.site-footer {
  position: relative;
  z-index: 1;
  margin-top: var(--section-y);
  background: var(--ink);
  color: var(--paper);
  border-top: var(--bw-3) solid var(--ink);
  padding: 0;
  font-family: var(--font-body);
}

footer.site-footer .footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem 2rem;
  flex-wrap: wrap;
  padding: 1.8rem clamp(1.1rem, 4vw, 2.5rem);
}

footer.site-footer .footer-copy {
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.02em;
  margin: 0;
  flex: none;
  white-space: nowrap;
}
footer.site-footer .footer-copy span { color: var(--yellow); }

footer.site-footer .footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.6rem;
  flex-wrap: wrap;
  list-style: none;
  margin: 0 auto;
  padding: 0;
}
footer.site-footer .footer-links a {
  position: relative;
  color: var(--paper);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.01em;
  white-space: nowrap;
  padding: 3px 0;
}
footer.site-footer .footer-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-fast) var(--ease-out);
}
footer.site-footer .footer-links a:hover::after,
footer.site-footer .footer-links a:focus-visible::after { transform: scaleX(1); }

/* square social buttons — paper plate, ink glyph, hard shadow */
footer.site-footer .footer-socials { display: flex; gap: 10px; flex: none; }
footer.site-footer .footer-social {
  width: 38px; height: 38px;
  border-radius: var(--radius);
  background: var(--paper);
  border: var(--bw-2) solid var(--paper);
  box-shadow: 3px 3px 0 0 rgba(255, 255, 255, .25);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
  text-decoration: none;
  transition: transform var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out);
}
footer.site-footer .footer-social:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 0 rgba(255, 255, 255, .3);
}
footer.site-footer .footer-social:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 0 rgba(255,255,255,.25); }
footer.site-footer .footer-social svg { width: 17px; height: 17px; fill: currentColor; }
footer.site-footer .footer-social svg[stroke] { fill: none; stroke: currentColor; }

footer.site-footer .nav-logo, footer.site-footer .nav-logo-icon { display: none; }

/* ---------------------------------------------------------- physics band ---- */
/* Kept deliberately (owner's call). Pauses off-screen — see footer-physics.js.
   Pills get their background/size inline from the JS; border + square corners
   are ours. */
footer.site-footer .gm-physics {
  position: relative;
  width: 100%;
  min-height: 220px;
  overflow: hidden;
  background: var(--ink);
  border-top: 2px solid rgba(255, 255, 255, .1);
}
.gm-pill {
  position: absolute;
  top: 0; left: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 3px 3px 0 0 rgba(0, 0, 0, .55);
  white-space: nowrap;
  font-family: var(--font-display); font-weight: 700;
  line-height: 1; letter-spacing: .02em;
  opacity: 0; will-change: transform;
  user-select: none; -webkit-user-select: none;
}
.gm-physics.gm-static {
  display: flex; flex-wrap: wrap; gap: .6rem;
  align-items: center; justify-content: center;
  padding: 2rem 1rem; min-height: 0;
}
.gm-physics.gm-static .gm-pill { opacity: 1; position: static; }

@media (max-width: 920px) {
  footer.site-footer .footer-inner {
    flex-direction: column; align-items: center; text-align: center;
    padding: 1.5rem 1.1rem; gap: 1rem;
  }
  footer.site-footer .footer-links { gap: .8rem 1.2rem; margin: 0; }
  footer.site-footer .gm-physics { min-height: 180px; }
}
