/**
 * Global footer — Work, About (center); icon links (right); brand + © (left).
 * Right column aligns with .nav-inner / “About” (same --page-inline gutter).
 * Spec: docs/SITE_FOOTER.md
 */
.site-footer {
  padding: 38px 0;
  padding-bottom: calc(38px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: #000000;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer .wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--page-inline);
  width: 100%;
  box-sizing: border-box;
}

.site-footer .footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-6);
  min-height: 44px;
}

.site-footer .footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  grid-column: 1;
  justify-self: start;
}

.site-footer .footer-logo {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.35px;
  color: #ffffff;
  text-decoration: none;
  line-height: 1.1;
}

.site-footer .footer-logo span {
  color: #ffffff;
}

.site-footer .footer-logo:hover {
  opacity: 0.82;
}

.site-footer .footer-copy {
  margin: 0;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.3;
}

.site-footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

/* Reset global header `nav { … }` rules (fixed bar + white bg) on footer links */
.site-footer .footer-links--nav {
  grid-column: 2;
  justify-self: center;
  position: static;
  top: auto;
  left: auto;
  right: auto;
  bottom: auto;
  z-index: auto;
  height: auto;
  transform: none;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  box-shadow: none;
  justify-content: center;
  gap: var(--space-7);
}

.site-footer .footer-links--icons {
  grid-column: 3;
  justify-self: end;
  justify-content: flex-end;
  gap: var(--space-3);
}

.site-footer .footer-links--nav > a {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: color 0.15s;
}

.site-footer .footer-links--nav > a:hover {
  color: #ffffff;
}

.site-footer .footer-link--with-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  line-height: 1;
  border-radius: 6px;
  transition: background 0.15s ease, color 0.15s ease;
}

.site-footer .footer-link--with-icon:hover {
  background: rgba(255, 255, 255, 0.08);
}

.site-footer .footer-link--with-icon:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.site-footer .footer-icon {
  display: block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer .footer-link--with-icon:hover .footer-icon {
  color: #ffffff;
}

@media (max-width: 640px) {
  .site-footer .footer-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: var(--space-5);
    min-height: 0;
  }

  .site-footer .footer-brand {
    grid-column: 1;
    align-items: center;
    justify-self: center;
  }

  .site-footer .footer-links--nav {
    grid-column: 1;
    justify-self: center;
  }

  .site-footer .footer-links--icons {
    grid-column: 1;
    justify-self: center;
    justify-content: center;
  }
}
