/* Unified footer across all pages — matches homepage visual with base.css compatibility */

.site-footer {
  width: 100%;
  padding: clamp(48px, 8vw, 96px) clamp(16px, 4vw, 32px);
  border-top: 1px solid var(--rule);
  background: var(--paper);
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: "THE MUSEUM THAT NEVER EXISTED";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  font-family: var(--serif);
  font-size: clamp(48px, 12vw, 140px);
  font-weight: 400;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.03;
  overflow: hidden;
  white-space: nowrap;
}

.site-footer .footer-grid {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 64px);
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 6vw, 64px);
  text-align: center;
}

/* Quote section */
.site-footer .footer-quote {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.site-footer .quote-label {
  display: inline-block;
  margin: 0 auto;
  padding: 6px 12px;
  border: 1px solid var(--accent);
  border-radius: 9999px;
  background: transparent;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.site-footer blockquote {
  font-family: var(--serif);
  font-size: clamp(20px, 4vw, 32px);
  font-style: italic;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink);
  margin: 0;
}

.site-footer .quote-attr {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--grey);
  margin: 0;
}

/* Footer navigation */
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(20px, 4vw, 40px);
  font-family: var(--mono);
  font-size: clamp(11px, 1.2vw, 14px);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.site-footer nav a {
  color: var(--grey);
  text-decoration: none;
  transition: color 150ms ease;
  display: inline-block;
  padding: 12px 8px;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.site-footer nav a:hover {
  color: var(--accent-ink);
}

.site-footer nav a .stat {
  color: var(--accent-ink);
}

.site-footer nav a.loss-link {
  color: #ff8040;
}

.site-footer nav a.loss-link:hover {
  color: #ff8040;
}

/* Footer bottom section */
.site-footer .footer-bottom {
  border-top: 1px solid var(--rule);
  padding-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.site-footer .butterfly-mark {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 0 16px rgba(255, 87, 8, 0.75));
  transition: transform 150ms ease;
}

.site-footer .butterfly-mark:hover {
  transform: scale(1.1);
}

.site-footer .copyright {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.6;
  color: var(--grey);
  max-width: 45em;
}

.site-footer .top-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 16px;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--accent);
  border-radius: 9999px;
  background: transparent;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-ink);
  cursor: pointer;
  transition: all 150ms ease;
}

.site-footer .top-button:hover {
  background: var(--accent);
  color: var(--paper);
}

.site-footer .top-button:active {
  transform: scale(0.95);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .site-footer nav {
    gap: clamp(16px, 3vw, 24px);
    font-size: 10px;
  }

  .site-footer blockquote {
    font-size: clamp(18px, 3vw, 24px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-footer .butterfly-mark,
  .site-footer .top-button {
    transition: none;
  }
}
