/* ── Footer ───────────────────────────────────────────────────────── */
/* Continues the contact section's ground rather than starting a new
   band — the rule is the only separation the two need. */

footer {
  padding: 26px 8vw 30px;
  background: var(--grey-1);
  border-top: 1px solid var(--grey-2);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 14px 32px;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--grey-3);
  letter-spacing: 0.05em;
  grid-column: 1;
}

/* Reinforces the top nav's destinations — a footer that only decorates
   is a footer that wastes the last thing a visitor reads. */
.footer-nav {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 0;
}

.footer-nav a {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey-4);
  padding: 0 14px;
  transition: color var(--transition-base);
}

/* Separators drawn rather than typed, so they never wrap onto a line of
   their own or get read out by a screen reader. */
.footer-nav a + a {
  border-left: 1px solid var(--grey-2);
}

@media (hover: hover) and (pointer: fine) {
  .footer-nav a:hover {
    color: var(--white);
  }
}

.footer-nav a:last-child {
  padding-right: 0;
}

.footer-tagline {
  grid-column: 2;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--grey-3);
  font-style: italic;
  line-height: 1.7;
  text-align: right;
}

@media (max-width: 768px) {
  footer {
    padding: 28px 8vw 32px;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 18px;
  }
  .footer-copy,
  .footer-nav,
  .footer-tagline {
    grid-column: 1;
  }
  .footer-nav {
    justify-content: center;
    gap: 6px 20px;
  }
  /* Drawn separators strand themselves at the start of a wrapped line,
     so below this width the gap does the separating instead. */
  .footer-nav a + a {
    border-left: none;
  }
  .footer-nav a {
    padding: 0;
  }
  .footer-tagline {
    text-align: center;
  }
  /* Reading order puts the links above the sign-off on a narrow screen. */
  .footer-nav    { order: 1; }
  .footer-copy   { order: 2; }
  .footer-tagline{ order: 3; }
}
