/* ============================================================
   nav.css — the site's signature element: a nav bar where every
   link is drawn as though it's wired together by one hand-drawn
   line (see the connector SVG in each page's header). Hovering a
   link grows it and lights it up; the connector reacts too.
   ============================================================ */

.topbar {
  position: relative;
  z-index: 3;
  padding: 22px 32px 0;
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 2px;
  color: var(--accent);
}

.brand img {
  width: 28px;
  height: 28px;
  image-rendering: pixelated;
  border: 2px solid var(--accent);
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: var(--fg-dim);
}

.user-chip img {
  width: 26px;
  height: 26px;
  border: 2px solid var(--fg-dim);
  image-rendering: pixelated;
}

/* the wobbly connector line + the links sitting on it */
.nav-wire {
  position: relative;
  height: 74px;
}

.nav-wire svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.nav-wire svg path {
  fill: none;
  stroke: var(--grid-line);
  stroke-width: 2;
  transition: stroke var(--transition-speed) ease;
}

.nav-links {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 46px;
  align-items: flex-end;
  height: 100%;
  padding-bottom: 12px;
  list-style: none;
}

.nav-links a {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--fg);
  padding: 6px 10px;
  border: 2px solid transparent;
  transition: transform var(--transition-speed) ease,
              color var(--transition-speed) ease,
              border-color var(--transition-speed) ease,
              background var(--transition-speed) ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.14);
}

.nav-links li {
  list-style: none;
}
