/* ─────────────────────────────────────────────────────────────
   nav.css — Netprobe / Navigation
   Fully independent.
───────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
  --nav-h: 64px;

  --nav-bg:         #0e0e10;
  --nav-border:     #222228;
  --nav-brand-text: #f2f0ed;
  --nav-tag-text:   #6b9e5e;
  --nav-tag-border: rgba(107,158,94,.30);
  --nav-mark-bg:    #1a3018;
  --nav-link-idle:  #808090;
  --nav-link-hover: #f0eeeb;
  --nav-underline:  #7aaa6a;

  --serif: 'Instrument Serif', Georgia, serif;
  --sans:  'Space Grotesk', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 48px;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border);
  gap: 32px;
}

/* ── Brand ──────────────────────────────────────────────── */
.nav-brand {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-brand-mark {
  width: 32px;
  height: 32px;
  background: var(--nav-mark-bg);
  border-radius: 8px;
  border: 1px solid rgba(122,170,106,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-brand-name {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--nav-brand-text);
  letter-spacing: .01em;
  line-height: 1;
}

.nav-brand-tag {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--nav-tag-text);
  padding: 3px 8px;
  border: 1px solid var(--nav-tag-border);
  border-radius: 3px;
  line-height: 1;
}

/* ── Links ──────────────────────────────────────────────── */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--nav-link-idle);
  text-decoration: none;
  padding: 8px 16px;
  position: relative;
  transition: color .18s ease;
}

/* Underline drawn via pseudo-element */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 16px;
  right: 16px;
  height: 1.5px;
  background: var(--nav-underline);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .22s ease;
}

.nav-link:hover {
  color: var(--nav-link-hover);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

/* GitHub icon link */
.nav-gh {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  color: #505060;
  text-decoration: none;
  transition: color .18s ease;
  margin-left: 6px;
}

.nav-gh:hover {
  color: #d0cec8;
}

.nav-gh svg {
  display: block;
  width: 17px;
  height: 17px;
  fill: currentColor;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav { padding: 0 24px; }
  .nav-link { font-size: 13px; padding: 8px 12px; }
  .nav-link::after { left: 12px; right: 12px; }
}

@media (max-width: 480px) {
  .nav-brand-tag { display: none; }
  .nav-link { font-size: 13px; }
}