/* Shared landing-page footer, independent of each page's reading width and theme. */
.footer {
  --public-footer-surface: black;
  --public-footer-text-primary: var(--dark-text-primary);
  --public-footer-text-secondary: var(--dark-text-secondary);

  margin-top: clamp(48px, 5vw, 80px);
  padding: 56px 0 40px;
  background: var(--public-footer-surface);
  color: var(--public-footer-text-primary);
  color-scheme: dark;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;
}

.footer > .wrap {
  width: min(100% - 48px, 1400px);
  margin-inline: auto;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 20px;
  row-gap: 36px;
}

.footer a { color: inherit; text-decoration: none; }
.footer a:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 60%, transparent);
  outline-offset: 2px;
  border-radius: 6px;
}
.footer__brand { grid-column: span 6; align-self: start; justify-self: start; }
.footer__brand a { display: block; border-radius: 6px; }
/* Align the icon's visible tile with the page edge and column headings. */
.footer__icon {
  display: block;
  width: 44px;
  height: 44px;
  max-width: none;
  margin: -2px;
  opacity: 0.92;
  transition: opacity 160ms ease;
}
.footer__brand a:hover .footer__icon { opacity: 1; }
.footer__col { grid-column: span 2; }
.footer__col h2 {
  margin: 0 0 12px;
  color: var(--public-footer-text-primary);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 20px;
}
.footer__col ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer__col li { margin: 0; padding: 0; }
.footer__col a {
  color: var(--public-footer-text-secondary);
  font-size: 14px;
  line-height: 24px;
  transition: color 140ms ease;
}
.footer__col a:hover { color: var(--public-footer-text-primary); }

@media (max-width: 760px) {
  .footer__brand { grid-column: 1 / -1; }
  .footer__col { grid-column: span 4; }
}

@media (max-width: 720px) {
  .footer > .wrap { width: min(100% - 32px, 1400px); }
}
