.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0.45rem 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.nav .nav__container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}

.nav ul {
  list-style-type: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.1rem 0.2rem;
  padding: 0;
}

.nav a,
.nav [role="link"] {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.2rem 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.nav a:hover,
.nav [role="link"]:hover {
  color: var(--accent-dark);
  background: var(--accent-soft);
  text-decoration: none;
}

/* Current page marker: soft accent fill plus a solid underline so it stays
   visible without the hover cursor. */
.nav a.is-active,
.nav [role="link"].is-active {
  color: var(--accent-dark);
  background: var(--accent-soft);
  box-shadow: inset 0 -2px 0 var(--accent);
}

/* The one deliberate retro flourish: a monospace wordmark with a blinking
   block cursor, straight out of the sundul bubble. */
.site-title {
  font-family: var(--mono);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink);
  text-decoration: none;
}

.site-title strong {
  font-weight: 800;
}

.site-title::after {
  content: "\258C";
  margin-left: 0.15rem;
  color: var(--accent);
  animation: cursor-blink 1.05s steps(1) infinite;
}

@keyframes cursor-blink {
  50% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-title::after {
    animation: none;
  }
}
