/* Shared navigation overlay — all pages. */

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(27, 24, 20, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: nav-bg-in 240ms var(--ease-out);
}
@keyframes nav-bg-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.nav-drawer {
  position: absolute;
  top: 0; right: 0;
  width: min(340px, 100vw);
  height: 100%;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  animation: nav-slide-in 300ms var(--ease-out);
  overflow-y: auto;
}
@keyframes nav-slide-in {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}

.nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 245, 232, 0.08);
  flex: 0 0 auto;
}

.nav-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: url('../design-system/assets/avatar.jpg') center / cover, var(--ink-soft);
}

.nav-close {
  width: 40px; height: 40px;
  background: rgba(255, 245, 232, 0.08);
  border: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--cream);
  transition: background 200ms var(--ease-out);
}
.nav-close:hover { background: rgba(255, 245, 232, 0.16); }
.nav-close:focus-visible,
.nav-link:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 4px;
}
.nav-close svg { display: block; }

.nav-links {
  display: flex;
  flex-direction: column;
  padding: 40px 24px 24px;
  flex: 1;
}

.nav-link {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: rgba(255, 245, 232, 0.35);
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 245, 232, 0.06);
  transition: color 160ms var(--ease-out);
}
.nav-link:last-child { border-bottom: none; }
.nav-link:hover     { color: var(--cream); }
.nav-link.is-current { color: var(--orange); }

.nav-tagline {
  padding: 24px;
  color: rgba(255, 245, 232, 0.50);
  border-top: 1px solid rgba(255, 245, 232, 0.08);
  flex: 0 0 auto;
  display: block;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
