/* ── Site navigation ────────────────────────────────────────────── */

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  margin: 0 auto;
  width: min(1200px, 96vw);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.nav-logo {
  width: 16px;
  height: 16px;
}

/* theme-aware logo swap */
[data-theme="dark"] .nav-logo-light,
[data-theme="light"] .nav-logo-dark {
  display: none;
}
[data-theme="dark"] .nav-logo-dark,
[data-theme="light"] .nav-logo-light {
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  text-decoration: none;
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 400;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  transition: color 120ms ease;
}

.nav-link:hover {
  color: var(--ink);
}

.nav-link[aria-current="page"] {
  color: var(--ink);
}

/* ── Theme toggle ──────────────────────────────────────────────── */

.nav-theme-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-left: 6px;
  padding: 0;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink-muted);
  font-size: 14px;
  cursor: pointer;
  transition: color 120ms ease;
}

.nav-theme-btn:hover {
  color: var(--ink);
}

/* ── Responsive ────────────────────────────────────────────────── */

@media (max-width: 640px) {
  .site-nav {
    padding: 8px 16px;
  }
}
