.footer .wrapper {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 12em;
}

.footer-row.contact {
  display: flex;
}

.footer-col.email {
  flex: 2;
}

.footer-col.email h2 {
  font-size: 3rem;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.footer-col.email h2:nth-child(1) {
  opacity: 0.35;
}

/* The email is a real mailto now; without this the global `p, a` rule would
   drop it to 0.75rem inside a 3rem heading. */
.footer-col.email h2 a {
  font-size: inherit;
  color: inherit;
  text-transform: none;
}

.footer-col.socials {
  flex: 1;
}

.footer .social {
  display: flex;
  gap: 1em;
  padding: 1em 0;
  border-top: 1px solid var(--border-dark);
}

.footer .outro h2 {
  font-family: var(--font-display);
  /* "Contact" measures 3.34x its own font-size in Bodoni Moda, so the
     template's 39vw ran to 130% of the viewport and the word was clipped to
     "Cont". Sizing it from the width actually available — the viewport less
     the wrapper's 2em either side — makes it span the line at every width
     instead of overflowing on wide screens and wrapping on narrow ones. */
  font-size: calc((100vw - 4rem) / 3.45);
  white-space: nowrap;
  letter-spacing: -0.025em;
  line-height: 100%;
}

@media (max-width: 900px) {
  .footer-row.contact {
    flex-direction: column;
    gap: 4em;
  }

  .footer-col.email h2 {
    font-size: 2rem;
  }

  .footer-row.outro {
    text-align: center;
  }

  .footer .outro h2 {
    position: relative;
    left: -0.05em;
    line-height: 60%;
  }
}
