/* ============================================================
   Footer — the deepest blue, closing the page.

   After a run of paper sections the page needs a floor, and the
   footer is it: the darkest ground on the site, so the last thing
   under the reader is solid rather than another white sheet.
   ============================================================ */

.footer {
  background: var(--bg);
  color: var(--muted);
  padding-top: clamp(4rem, 8vw, 6rem);
  padding-bottom: 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.8fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
}

.footer__brand .brand { margin-bottom: 1.5rem; }
.footer__story {
  font-size: var(--t-small);
  line-height: 1.8;
  color: var(--muted);
  max-width: 42ch;
}

.footer__title {
  font-size: var(--t-micro);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.footer__links { display: grid; gap: 0.85rem; }
.footer__links a {
  font-size: var(--t-small);
  color: var(--muted);
  transition: color 0.4s var(--ease), padding-left 0.4s var(--ease);
}
@media (hover: hover) {
  .footer__links a:hover { color: var(--fg); padding-left: 6px; }
}

.footer__contact { display: grid; gap: 0.9rem; }
.footer__contact a, .footer__contact p {
  font-size: var(--t-small);
  line-height: 1.7;
  color: var(--muted);
  transition: color 0.4s var(--ease);
}
@media (hover: hover) { .footer__contact a:hover { color: var(--fg); } }

.footer__socials { margin-top: 1.75rem; display: flex; gap: 0.65rem; }
.footer__socials .social { width: 38px; height: 38px; }
.footer__socials .social svg { width: 15px; height: 15px; }

.footer__divider {
  height: 1px;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  background: var(--rule);
}

.footer__bottom {
  margin-top: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: var(--t-micro);
  letter-spacing: 0.06em;
  color: var(--muted);
}
.footer__legal { display: flex; gap: 1.5rem; }
.footer__legal a { transition: color 0.4s var(--ease); }
@media (hover: hover) { .footer__legal a:hover { color: var(--fg); } }

@media (max-width: 899px) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 559px) {
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}
