/* Site footer — floating card on page background */
.site-footer {
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --footer-card: rgba(255, 255, 255, 0.68);
  --footer-ink: #111111;
  --footer-muted: #5c6460;
  --footer-sage: #7f9888;
  --footer-sage-dark: #5f7768;
  --footer-line: rgba(17, 17, 17, 0.1);
  --footer-radius: clamp(20px, 3vw, 28px);
  --footer-surface: transparent;
  --footer-page-cream: #f7f5f0;
  --footer-page-gradient: url("assets/about-bg.png");
  background: var(--footer-surface);
  color: var(--footer-ink);
  font-family: var(--sans);
  font-weight: 300;
  padding: clamp(2rem, 5vh, 3rem) clamp(1.25rem, 4vw, 2.5rem) calc(clamp(2.5rem, 6vh, 4rem) + env(safe-area-inset-bottom, 0px));
}

/* Homepage — footer card sits on .page-photo shared background */
body:not(.about-page) .site-footer {
  background: transparent;
}

.site-footer__inner {
  width: min(100%, 1080px);
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 3rem);
  background: var(--footer-card);
  border: 1px solid rgba(17, 17, 17, 0.07);
  border-radius: var(--footer-radius);
  box-shadow: 0 16px 48px rgba(17, 17, 17, 0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(1.75rem, 3vw, 2.5rem);
}

.site-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--footer-ink);
  align-self: start;
}

.site-footer__mark {
  display: block;
  width: 2.35rem;
  height: 2.35rem;
}

.site-footer__name {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.site-footer__nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 2.5rem);
}

.site-footer__col-title {
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--footer-ink);
}

.site-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.site-footer__links a,
.site-footer__links button {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 0.88rem;
  color: var(--footer-muted);
  text-decoration: none;
  cursor: pointer;
  text-align: left;
  transition: color 0.2s ease;
}

.site-footer__links a:hover,
.site-footer__links button:hover {
  color: var(--footer-sage-dark);
}

.site-footer__panel {
  margin-top: clamp(1.5rem, 3vw, 2rem);
  background: var(--footer-panel);
  border-radius: var(--footer-radius);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  box-shadow: 0 8px 28px rgba(17, 17, 17, 0.05);
}

.site-footer__appstore {
  display: inline-flex;
  flex-shrink: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-footer__appstore:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.site-footer__appstore img {
  display: block;
  width: auto;
  height: 2.5rem;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.25rem;
}

.site-footer__legal a {
  font-size: 0.78rem;
  color: var(--footer-muted);
  text-decoration: none;
}

.site-footer__legal a:hover {
  color: var(--footer-sage-dark);
}

.site-footer__bottom {
  padding-top: clamp(1.75rem, 3vw, 2.5rem);
  border-top: 1px solid var(--footer-line);
}

.site-footer__tagline {
  margin: 0 0 0.35rem;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--footer-ink);
}

.site-footer__copy {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  color: var(--footer-muted);
}

.site-footer__disclaimer {
  margin: 0;
  max-width: 52rem;
  font-size: 0.72rem;
  line-height: 1.55;
  color: rgba(92, 100, 96, 0.9);
}

@media (hover: none) and (pointer: coarse) {
  .about-page {
    background-attachment: scroll;
  }
}

@media (max-width: 720px) {
  .site-footer__top {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .site-footer__panel {
    flex-direction: column;
    align-items: flex-start;
  }
}
