/* ─────────────────────────────────────────────────────────────────
   Shared site footer — one consistent footer across every page.

   Extracted from the homepage so all pages match. Uses the site's
   design tokens when a page defines them, with dark-theme fallbacks
   baked into every var() so the footer still renders correctly on
   pages that don't define the token set.
   ───────────────────────────────────────────────────────────────── */
footer {
  padding: 96px 32px 48px;
  border-top: 1px solid var(--hairline-soft, rgba(255, 255, 255, 0.06));
  background: radial-gradient(60% 80% at 50% 0%, rgba(165, 107, 255, 0.06), transparent 70%);
}
.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 48px 32px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 34ch;
}
.footer-brand-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--fg, #f5f5f7);
}
.footer-brand-mark img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  object-fit: cover;
}
.footer-tagline {
  font-size: 14px;
  color: var(--fg-secondary, #9a9aa5);
  line-height: 1.55;
}
/* San Francisco shout-out under the tagline. */
.footer-locale {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--fg-secondary, #9a9aa5);
}
.footer-locale .footer-bridge { font-size: 15px; line-height: 1; }
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-col-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-tertiary, #6e6e78);
  margin-bottom: 4px;
}
.footer-col a {
  font-size: 14px;
  color: var(--fg-secondary, #9a9aa5);
  text-decoration: none;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
}
.footer-col a:hover { color: var(--fg, #f5f5f7); }
/* Social row kept styled in case the accounts go live later; the
   markup is currently commented out in the footer. */
.footer-social {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-elev-1, rgba(255, 255, 255, 0.04));
  border: 1px solid var(--hairline, rgba(255, 255, 255, 0.10));
  display: grid;
  place-items: center;
  color: var(--fg-secondary, #9a9aa5);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.footer-social a:hover {
  background: var(--bg-elev-2, rgba(255, 255, 255, 0.07));
  border-color: var(--bg-elev-3, rgba(255, 255, 255, 0.12));
  color: var(--fg, #f5f5f7);
}
.footer-base {
  max-width: 1280px;
  margin: 64px auto 0;
  padding-top: 32px;
  border-top: 1px solid var(--hairline-soft, rgba(255, 255, 255, 0.06));
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  font-size: 12px;
  color: var(--fg-tertiary, #6e6e78);
  letter-spacing: -0.005em;
}
.footer-base .colophon-spacer { flex: 1; }
.footer-base .colophon-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-base .colophon-item a {
  color: var(--fg-secondary, #9a9aa5);
  text-decoration: none;
}
.footer-base .colophon-item a:hover { color: var(--fg, #f5f5f7); }
.footer-base .made-glyph {
  color: var(--vibe-pink, #ff3b7a);
  animation: heartpulse 2.6s ease-in-out infinite;
}
@keyframes heartpulse {
  0%, 100% { transform: scale(1); }
  45%      { transform: scale(1.18); }
  55%      { transform: scale(1.10); }
}
@media (prefers-reduced-motion: reduce) {
  .footer-base .made-glyph { animation: none; }
}
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 40px 24px; }
  .footer-grid .footer-col:nth-child(5) { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-base { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-base .colophon-spacer { display: none; }
}
