/* Shared site footer. The markup lives in src/partials/footer.html and is
   copied into every public page by `node scripts/sync-footer.mjs`.
   Pages set their own --paper / --ink / --muted; the fallbacks cover the
   legal pages, which only define --bg. */
.footer{
  --f-paper:var(--paper,var(--bg,#F4F3EF));
  --f-ink:var(--ink,#1B1F27);
  --f-muted:var(--muted,#5C616B);
  --f-link:#5C616B;
  --f-accent:var(--accent-700,#C8161B);
  --f-pad:var(--pad,clamp(20px,5vw,40px));
  --f-ease:var(--ease,cubic-bezier(.2,.7,.2,1));
  background:var(--f-paper);color:var(--f-muted);border-top:1px solid rgba(27,31,39,.08);
  padding:64px 0 40px;position:relative;z-index:1;overflow:hidden;line-height:1.6}
.footer__inner{position:relative;z-index:1;width:100%;max-width:1180px;margin:0 auto;padding-inline:var(--f-pad)}
.footer__grid{display:grid;grid-template-columns:repeat(4,1fr);gap:32px}
.footer__col-title{font-family:"JetBrains Mono","Geist Mono",ui-monospace,monospace;font-size:11px;
  text-transform:uppercase;letter-spacing:.09em;font-weight:600;color:var(--f-muted);margin:0 0 14px}
.footer__col a{display:block;font-size:14px;line-height:1.9;color:var(--f-link);
  text-decoration:none;transition:color .12s var(--f-ease)}
.footer__col a:hover{color:var(--f-accent);text-decoration:none}
.footer__block{position:absolute;border-radius:2px;z-index:0;pointer-events:none;
  animation:footerFloat 24s ease-in-out infinite}
@keyframes footerFloat{
  0%,100%{transform:translate(0,0) rotate(0deg)}
  25%{transform:translate(12px,-18px) rotate(3deg)}
  50%{transform:translate(-8px,8px) rotate(-2deg)}
  75%{transform:translate(16px,12px) rotate(5deg)}
}
.footer__bottom{margin-top:40px;padding-top:24px;border-top:1px solid rgba(27,31,39,.08);
  display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px}
.footer__copyright{font-family:"JetBrains Mono","Geist Mono",ui-monospace,monospace;font-size:12px;letter-spacing:.02em;color:var(--f-link)}
.footer__socials{display:inline-flex;align-items:center;gap:0.25rem}
.footer__socials a{display:inline-flex;align-items:center;justify-content:center;
  width:2rem;height:2rem;border-radius:0.375rem;color:var(--f-muted);
  transition:color .12s var(--f-ease),background .12s var(--f-ease)}
.footer__socials a:hover{color:var(--f-accent);background:rgba(27,31,39,.05)}
.footer__socials svg{width:1.05rem;height:1.05rem}
.footer__legal{display:inline-flex;align-items:center;gap:14px;flex-wrap:wrap;min-width:0}
.footer__soc2{display:inline-flex;flex:0 0 auto;line-height:0}
.footer__soc2 img{display:block;width:46px;height:46px}
@media (max-width:980px){
  .footer__grid{grid-template-columns:1fr 1fr;gap:28px 20px}
}
@media (max-width:640px){
  /* on a phone the columns fill the footer, so the blocks would land on link text */
  .footer__block{display:none}
  .footer__grid{gap:24px 16px}
  .footer__bottom{flex-direction:column;align-items:flex-start}
}
@media (prefers-reduced-motion:reduce){
  .footer__block{animation:none}
}
