/* --- "curtain reveal" footer, à la Jitter: footer is fixed to the
   viewport bottom and the page content is a lifted layer scrolling
   over it, so the footer looks like it was there all along. --- */

.site-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  background: var(--footer-bg);
  color: var(--footer-ink);
  overflow: hidden;
}

.site-footer__grain {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.site-footer__seal {
  position: absolute;
  top: 50%;
  right: -3rem;
  width: 16rem;
  transform: translateY(-50%) rotate(8deg);
  opacity: 0.14;
  pointer-events: none;
}

.site-footer__top {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-7);
  padding-block: var(--space-8) var(--space-6);
}

.site-footer__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--bg);
  margin-bottom: var(--space-4);
}

.site-footer__logo img {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
}

.site-footer__tagline {
  font-style: italic;
  max-width: 20rem;
  color: var(--footer-ink);
}

.site-footer__heading {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bg);
  margin-bottom: var(--space-4);
}

.site-footer__col ul {
  list-style: none;
  margin: 0 0 var(--space-5);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.site-footer__col a {
  transition: color var(--dur-fast) var(--ease-editorial), padding-left var(--dur-fast) var(--ease-editorial);
}

.site-footer__col a:hover {
  color: var(--bg);
  padding-left: 0.35rem;
}

.site-footer__hand {
  font-family: var(--font-hand-2);
  font-size: 1.35rem;
  color: var(--bg);
}

.site-footer__social {
  display: flex;
  gap: 0.75rem;
}

.site-footer__social a {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--footer-line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.03em;
}

.site-footer__social a:hover {
  border-color: var(--bg);
  color: var(--bg);
}

.site-footer__bottom {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-5);
  border-top: 1px solid var(--footer-line);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.02em;
}

.site-footer__credit {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 0.9rem;
}

@media (max-width: 55rem) {
  .site-footer__top {
    grid-template-columns: 1fr 1fr;
  }
  .site-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 34rem) {
  .site-footer__top {
    grid-template-columns: 1fr;
  }
  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
