/* Shared footer. The homepage's full-bleed placement is a deliberate variant. */
.site-footer {
  background: var(--ink-800);
  color: var(--paper-1);
  padding: 40px 7vw 24px;
}
.footer-top,
.footer-bottom {
  max-width: 1376px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  gap: 48px;
}
.footer-identity p { font-size: 13px; color: #C0C8C3; margin-top: 20px; }
.footer-navigation { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px; }
.footer-navigation h3 {
  font: 560 10px var(--mono, 'Geist Mono', monospace);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #C0C8C3;
  margin-bottom: 16px;
}
.footer-navigation a { display: block; font-size: 12px; margin-bottom: 12px; text-decoration: none; }
.footer-navigation a:hover { text-decoration: underline; }
.footer-bottom { border-top: 1px solid #4D5852; padding-top: 18px; margin-top: 32px; font-size: 11px; color: #959F98; }

/* Homepage footer sits inside the main container; its pseudo-element spans the viewport. */
.unified-home .site-footer {
  position: relative;
  isolation: isolate;
  display: block;
  padding: 40px 0 24px;
  border: 0;
  margin: 0;
}
.unified-home .site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  left: calc((100% - 100vw) / 2);
  right: calc((100% - 100vw) / 2);
  background: var(--ink-800);
  z-index: -1;
}
.unified-home .footer-top { max-width: none; margin: 0; align-items: start; gap: 64px; padding-bottom: 40px; }
.unified-home .footer-identity .brand { font-size: 22px; line-height: 1.3; }
.unified-home .footer-identity p { font: 400 13px/1.7 var(--font-sans); color: var(--theme-dark-muted); margin: 20px 0 0; letter-spacing: .008em; }
.unified-home .footer-navigation h3 { font: 560 10px/1.5 var(--font-mono); letter-spacing: .06em; color: var(--theme-dark-muted); margin: 0 0 16px; }
.unified-home .footer-navigation a { font: 400 12px/1.6 var(--font-sans); color: var(--theme-paper); margin: 0 0 12px; }
.unified-home .footer-bottom { max-width: none; gap: 24px; margin: 0; font: 400 11px/1.5 var(--font-sans); color: #959F98; }
.unified-home .site-footer .brand,
.unified-home .site-footer a:link,
.unified-home .site-footer a:visited { color: var(--theme-paper); }
.unified-home .site-footer a:hover { text-decoration: underline; }
.unified-home .site-footer .brand,
.unified-home .site-footer .brand:hover { text-decoration: none; }
.unified-home .site-footer .footer-navigation a:hover { color: var(--theme-paper); text-underline-offset: 4px; }
.unified-home .site-footer .link-arrow { margin-left: 3px; vertical-align: -2px; }

/* Explicit SVG geometry prevents inherited page illustration styles affecting footer icons. */
.site-footer .footer-navigation .arrow {
  display: inline-block;
  width: 13px;
  height: 13px;
  max-width: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -2px;
  margin-left: 4px;
}
.footer-bottom-right,
.footer-socials { display: flex; align-items: center; gap: 20px; }
.footer-socials { gap: 14px; }
.site-footer .footer-socials a,
.unified-home .site-footer .footer-socials a { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; color: inherit; }
.site-footer .footer-socials svg { display: block; width: 17px; height: 17px; fill: currentColor; stroke: none; }
.site-footer .footer-socials a:hover { color: var(--paper-0); }

@media (max-width: 767px) {
  .unified-home .footer-top { flex-direction: column; gap: 32px; }
  .unified-home .footer-navigation { width: 100%; gap: 24px; }
  .unified-home .footer-bottom { flex-wrap: wrap; }
}
@media (max-width: 700px) {
  .site-footer { padding: 32px 24px 20px; }
  .footer-top { flex-direction: column; gap: 32px; }
  .footer-navigation { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .footer-bottom { gap: 20px; }
}
