:root {
  --site-nav-bg: #fbfbfd;
  --site-nav-border: #e5e9f2;
  --site-nav-text: #1d2b39;
  --site-nav-muted: #6b7280;
  --site-nav-accent: #1c4ed8;
  --site-nav-accent-soft: #e6edff;
}

.site-header {
  background: var(--site-nav-bg);
  border-bottom: 1px solid var(--site-nav-border);
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 1px 0 rgba(11, 16, 24, 0.04);
}

.site-header--demo {
  position: static;
  margin-bottom: 1rem;
}

.site-header__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.85rem clamp(1rem, 4vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo {
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--site-nav-text);
  text-decoration: none;
}

.site-nav {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
}

.site-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  color: var(--site-nav-muted);
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.site-nav__link:hover,
.site-nav__link:focus-visible {
  color: var(--site-nav-text);
  border-color: rgba(12, 22, 36, 0.08);
}

.site-nav__link[aria-current="page"] {
  color: var(--site-nav-accent);
  background: var(--site-nav-accent-soft);
  border-color: rgba(28, 78, 216, 0.25);
  font-weight: 600;
}

@media (max-width: 700px) {
  .site-header__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
