/* ── Shared nav styles — single source of truth ─────────────────────
   Injected into every HTML page by scripts/inject-nav.mjs at build time.
   Blog pages also get this from BlogLayout.astro (is:global) as fallback.
──────────────────────────────────────────────────────────────────────── */

:root {
  --clay:     #c4532b;
  --clay-d:   #a4421f;
  --honey:    #cf9b46;
  --chalk:    rgba(247,242,233,0.96);
  --chalk-2:  rgba(247,242,233,0.58);
  --hairline-d: rgba(247,242,233,0.10);
  --r-sm:  8px;
  --display: 'Inter Tight', system-ui, sans-serif;
  --t-fast: 140ms;
  --ease:   cubic-bezier(0.32,0.72,0,1);
}

nav.topnav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 64px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(28, 24, 20, 0.92);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--hairline-d);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--chalk);
  font-weight: 600;
  font-size: 15px;
  font-family: var(--display);
  text-decoration: none;
  letter-spacing: -0.015em;
}
.nav-mark {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, var(--clay), var(--honey));
  border-radius: 7px;
  display: grid; place-items: center;
  box-shadow: 0 2px 12px rgba(196,83,43,0.4);
  flex-shrink: 0;
}
.nav-mark svg { width: 14px; height: 14px; }

.nav-links {
  display: flex; gap: 6px; list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  padding: 7px 12px;
  border-radius: 7px;
  color: var(--chalk-2);
  font-size: 14px;
  text-decoration: none;
  transition: all var(--t-fast) var(--ease);
}
.nav-links a:hover { color: var(--chalk); background: rgba(247,242,233,0.06); }

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

/* Override any existing btn styles for consistency */
nav.topnav .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all var(--t-fast) var(--ease);
}
nav.topnav .btn--ghost {
  background: transparent;
  color: var(--chalk-2);
}
nav.topnav .btn--ghost:hover {
  color: var(--chalk);
  background: rgba(247,242,233,0.08);
}
nav.topnav .btn--primary {
  background: var(--clay);
  color: white;
}
nav.topnav .btn--primary:hover {
  background: var(--clay-d);
  color: white;
}

@media (max-width: 768px) {
  nav.topnav { padding: 0 20px; height: 56px; }
  .nav-links  { display: none; }
}
