/*
  Sitewide footer. Dark navy (--color-navy-deep), bookending the header's
  navy bar - a deliberate choice made after weighing it against staying
  light like the rest of the page's paper-toned surface (which would
  have kept the wayfinder as the one dark exception per its own docblock
  self-critique note). Reuses the exact light-text opacities nav.css and
  wayfinder.css already established for text on this same dark chrome
  (rgba(243,245,246, 0.55-0.85)) rather than inventing new ones.
*/

.site-footer {
  background: var(--color-navy-deep);
  color: rgba(243, 245, 246, 0.85);
  margin-top: 3rem;
}

.site-footer__inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 4vw, 2rem) 2rem;
  display: grid;
  gap: 2.5rem;
}

.site-footer__identity {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.site-footer__name {
  font-family: var(--font-display);
  font-size: var(--fs-m);
  color: var(--color-field-white);
  margin: 0;
}
.site-footer__title {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  color: rgba(243, 245, 246, 0.6);
  margin: 0;
}

/* short, curated quick-links row - see footer.php for why this isn't a full sitemap */
.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
}
.footer-links a {
  color: rgba(243, 245, 246, 0.85);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
}
.footer-links a:hover {
  color: var(--color-field-white);
  text-decoration: underline;
}

/*
  .contact-info keeps its own light card styling from content.css
  unchanged (background: --color-field-raised, dark ink text) - against
  the navy surrounding it, that reads as a deliberate light card calling
  out the contact details, not an unstyled mistake. Not overridden here.
*/
.site-footer__contact {
  max-width: 24rem;
}

.site-footer__bottom {
  border-top: 1px solid rgba(243, 245, 246, 0.15);
  padding: 1rem clamp(1rem, 4vw, 2rem) 1.5rem;
}
.site-footer__copyright {
  max-width: 72rem;
  margin: 0 auto;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(243, 245, 246, 0.55);
}

/*
  Sitewide a:focus-visible/button:focus-visible outlines --color-oxblood
  (tokens.css) - measured 1.28:1 against --color-navy-deep, far under
  WCAG's 3:1 minimum for focus indicators, i.e. nearly invisible here.
  Scoped override, not a tokens.css change (that would need checking
  every other context oxblood's focus ring is used in - out of scope for
  this footer; wayfinder.css's tab focus ring has the same underlying
  gap against --color-bone-ink and should get the same fix separately).
*/
.site-footer a:focus-visible,
.site-footer button:focus-visible {
  outline-color: var(--color-field-white);
}

@media (min-width: 720px) {
  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "identity links"
      "contact  contact";
  }
  .site-footer__identity { grid-area: identity; }
  .footer-links { grid-area: links; justify-self: end; align-self: start; }
  .site-footer__contact { grid-area: contact; }
}
