/* Footer: the invitation to make contact, and the notes on the site. */

.site-footer {
  margin-top: 5.5rem;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-inner {
  max-width: var(--w-content);
  margin: 0 auto;
  padding: 3.4rem 1.5rem 3rem;
}

.footer-inner h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
}

.footer-inner .footer-note {
  color: var(--muted);
  max-width: 46em;
  margin-bottom: 1.8rem;
}

.footer-email {
  font-family: var(--font-mono);
  font-size: 0.95rem;
}

.footer-links {
  margin-top: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

@media (max-width: 720px) {
  .footer-inner { padding: 2.75rem 1.15rem 2.5rem; }
  .footer-email { font-size: 0.85rem; overflow-wrap: break-word; }
  .footer-links { margin-top: 1.8rem; gap: 0.55rem; }
}

.footer-colophon {
  margin-top: 3rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* The small link at the end of the colophon row: the feed. */
.footer-colophon a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--hairline);
  transition: color 140ms ease, border-color 140ms ease;
}

.footer-colophon a:hover, .footer-colophon a:focus-visible {
  color: var(--accent-strong);
  border-bottom-color: var(--accent);
}
