/* Site footer, shared by about.html and the pages in /projects. */
.site-footer {
  display: grid; grid-template-rows: auto 1fr auto;
  /* One screen tall below the sticky header, so the whole footer shows at once. */
  min-height: min(calc(100vh - var(--header, 0px)), 960px);
  margin-top: 120px; padding: 20px var(--gutter, 24px) 16px;
  border-top: 1px solid rgba(0, 0, 0, .22);
  font-size: 13px; font-weight: 500;
}
.site-footer a { transition: opacity .2s; }
.site-footer a:hover { opacity: .55; }

.site-footer-info {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px;
}
.site-footer-info dt { color: var(--muted, #8d8d8a); }
.site-footer-info dd { margin-top: 2px; }

.site-footer-logo {
  position: relative; place-self: center;
  width: clamp(220px, 38vw, 720px);
  margin: 96px 0;
}
.site-footer-logo img { display: block; width: 100%; height: auto; }
.site-footer a.site-footer-logo:hover { opacity: 1; }
/* The i's dot, placed on the letters by the logo's own proportions. */
.site-footer-dot {
  position: absolute; left: 71.41%; top: 11.26%;
  width: 7.63%; aspect-ratio: 1; border-radius: 50%;
  background: var(--ink, #000);
  transform-origin: 50% 100%;
}
.site-footer-dot.is-bouncing { animation: footer-dot 1.2s both; }
@keyframes footer-dot {
  0%   { transform: translateY(-420%); animation-timing-function: cubic-bezier(.55, 0, 1, .45); }
  30%  { transform: translateY(0) scale(1.28, .72); animation-timing-function: ease-out; }
  35%  { transform: translateY(-10%) scale(.94, 1.08); animation-timing-function: cubic-bezier(0, .55, .45, 1); }
  54%  { transform: translateY(-160%) scale(1); animation-timing-function: cubic-bezier(.55, 0, 1, .45); }
  68%  { transform: translateY(0) scale(1.16, .84); animation-timing-function: cubic-bezier(0, .55, .45, 1); }
  81%  { transform: translateY(-55%) scale(1); animation-timing-function: cubic-bezier(.55, 0, 1, .45); }
  90%  { transform: translateY(0) scale(1.06, .94); animation-timing-function: cubic-bezier(0, .55, .45, 1); }
  95%  { transform: translateY(-14%) scale(1); animation-timing-function: cubic-bezier(.55, 0, 1, .45); }
  100% { transform: none; }
}

.site-footer-bar {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  font: 500 12px/1.2 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-variant-numeric: tabular-nums;
}
.site-footer-bar span { color: var(--muted, #8d8d8a); }

@media (max-width: 760px) {
  .site-footer { min-height: 0; margin-top: 80px; }
  .site-footer-info { grid-template-columns: 1fr 1fr; row-gap: 16px; }
  .site-footer-logo { width: 72vw; margin: 72px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .site-footer-dot.is-bouncing { animation: none; }
}
