.footer {
  background-color: var(--color-bg);
  border-block-start: 1px solid var(--color-subtle);
  padding-block: 1.75rem 0;
}

/* Mobile stacks; tablet shows the 3 link columns under the brand; desktop
   puts the brand as the leftmost column. */
.footer__inner {
  display: grid;
  gap: 1.4rem 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .footer__inner {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer__brand-block {
    grid-column: 1 / -1;
  }
}

@media (min-width: 860px) {
  .footer__inner {
    column-gap: 3rem;
    grid-template-columns: 1.7fr repeat(3, 1fr);
  }
  .footer__brand-block {
    grid-column: auto;
  }
}

.footer__brand-block {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer__tagline {
  color: var(--color-subtle-dark);
  font-size: 0.85rem;
  margin-block: 0;
  max-inline-size: 22rem;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

/* Bright heading over muted links, deliberately distinct — the eye scans
   categories first, then the quiet links brighten on hover. */
.footer__heading {
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  margin-block: 0 0.35rem;
  text-transform: uppercase;
}

.footer__link {
  color: var(--color-subtle-dark);
  font-size: 0.9rem;
  line-height: 1.35;
}

.footer__socials {
  display: flex;
  gap: var(--block-space);
  margin-block-start: 0.25rem;
}

.footer__social-link {
  display: inline-flex;

  .icon {
    block-size: 1.25rem;
    inline-size: 1.25rem;
  }
}

/* align-items: baseline pins privacy to the credit line's FIRST line, so the
   bar reads as a clean grid, not a floating link. */
.footer__bottom {
  align-items: baseline;
  border-block-start: 1px solid var(--color-subtle);
  display: flex;
  flex-wrap: wrap;
  gap: var(--block-space-half) 1.5rem;
  justify-content: space-between;
  margin-block-start: 1.4rem;
  padding-block: var(--block-space);
}

.footer__legal {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.footer__copy,
.footer__license {
  color: var(--color-subtle-dark);
  font-size: 0.75rem;
  line-height: 1.5;
  margin-block: 0;
}

/* Privacy sits in the colophon, not the link columns — match the fine print. */
.footer__bottom .footer__link {
  font-size: 0.75rem;
}

.footer__colophon {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  text-align: end;
}

.footer__made-with {
  align-items: center;
  color: var(--color-subtle-dark);
  display: flex;
  font-size: 0.75rem;
  gap: 0.3em;
  justify-content: end;
  line-height: 1.5;
  margin-block: 0;
}

.footer__heart {
  color: var(--color-negative);
}

@media (max-width: 559px) {
  .footer__bottom {
    justify-content: center;
    text-align: center;
  }

  .footer__colophon {
    align-items: center;
    text-align: center;
  }
}
