/* ============================================================
   Navigation
   ============================================================ */
.site-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 90px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 56px;
}

.nav-logo {
  display: flex;
  align-items: center;
  line-height: 0;
}

.nav-logo img {
  height: 52px;
  width: auto;
  display: block;
}

/* True horizontal centering, independent of the logo/actions widths on
   either side — not a flex space-between illusion. */
.nav-links {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 44px);
}

.nav-links a {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--accent);
}

/* "Found" tab gets its own glittery gold treatment — the archive's brand accent.
   Selector needs .nav-links prefixed to out-specificity the base `.nav-links a` rule. */
.nav-links .nav-found {
  position: relative;
  background: linear-gradient(100deg, #8a6a2e 0%, #e8cd8a 20%, #fff6df 32%, #e8cd8a 44%, #8a6a2e 62%, #8a6a2e 100%);
  background-size: 260% 100%;
  background-position: 100% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: found-tab-shimmer 6s ease-in-out infinite;
}

.nav-links .nav-found::before {
  content: "";
  position: absolute;
  top: -3px;
  left: -8px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #fff6df;
  box-shadow: 0 0 4px 1px rgba(232, 205, 138, 0.9);
  animation: found-tab-sparkle 2.6s ease-in-out infinite;
}

.nav-links .nav-found:hover,
.nav-links .nav-found:focus-visible {
  color: transparent;
  animation-duration: 2.4s;
}

@keyframes found-tab-shimmer {
  0%, 15% { background-position: 100% 50%; }
  85%, 100% { background-position: -160% 50%; }
}

@keyframes found-tab-sparkle {
  0%, 100% { opacity: 0; transform: scale(0.4); }
  50% { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .nav-links .nav-found { animation: none; background-position: 30% 50%; }
  .nav-links .nav-found::before { animation: none; opacity: 0; }
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-actions button {
  background: none;
  border: none;
  padding: 4px;
  color: var(--text-primary);
  cursor: pointer;
  line-height: 0;
  transition: color 0.3s ease;
}

.nav-actions button:hover,
.nav-actions button:focus-visible {
  color: var(--accent);
}

.nav-actions svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
}

/* Mobile: links collapse behind the menu button.
   NOTE: the mobile menu panel itself (what opens when the hamburger is
   tapped) hasn't gone through its own Creative Brief yet — navigation.js
   toggles an aria-expanded state now so the button is functional, but the
   panel's design is pending. */
@media (max-width: 860px) {
  .nav-links { display: none; }
}
