/* ── Shared nav overlay styles ─────────────────────────────────── */
@keyframes nav-overlay-in {
  from { opacity: 0; transform: translateY(-0.4rem); }
  to   { opacity: 1; transform: translateY(0); }
}

#contact-overlay,
#about-overlay {
  position: fixed;
  /* sit just below the nav bar (nav at 67vh + ~4.7rem of padding + text) */
  top: 6.25rem;
  left: 0;
  right: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  padding: 0 2rem;
  pointer-events: auto;
  animation: nav-overlay-in 0.2s ease forwards;
  /* transition declared here so it's always active — .is-closing only changes target values */
  transition: opacity 0.2s ease, transform 0.2s ease;
}

#contact-overlay[hidden],
#about-overlay[hidden] {
  display: none;
}

#contact-overlay.is-closing,
#about-overlay.is-closing {
  animation: none;
  opacity: 0;
  transform: translateY(-0.4rem);
  pointer-events: none;
}

/* ── Contact: two links space-between ─────────────────────────── */
#contact-overlay {
  justify-content: center;
  gap: 2rem;
}

#contact-overlay a {
  font-family: 'Rama Gothic C', Impact, 'Arial Narrow', Arial, sans-serif;
  font-weight: 400;
  font-size: clamp(1.2rem, 2.2vw, 1.8rem);
  letter-spacing: 0.12em;
  color: var(--nav-text);
  text-decoration: none;
  mix-blend-mode: difference;
}

#contact-overlay a:hover {
  opacity: 0.7;
}

#contact-overlay a:focus-visible {
  outline: 1px solid var(--nav-text);
  outline-offset: 3px;
}

/* ── Shop: centered message ────────────────────────────────────── */
#about-overlay {
  justify-content: center;
}

#about-overlay span {
  font-family: 'Rama Gothic C', Impact, 'Arial Narrow', Arial, sans-serif;
  font-weight: 400;
  font-size: clamp(1.2rem, 2.2vw, 1.8rem);
  letter-spacing: 0.12em;
  color: var(--nav-text);
  mix-blend-mode: difference;
}

/* ── Mobile ────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  #contact-overlay,
  #about-overlay {
    top: 4rem;
    padding: 0 1.25rem;
  }

}
