/* Site header — one fixed strip of section links, shared by every width.
   scrollHintIntro.js animates it into place out of the hero's scroll hint. */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4em;
  padding: 0.65rem 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.02em;
}

/* The surface on its own layer, so the letters land on top of it and it can
   be revealed independently of them.
   No backdrop-filter here: it forces a compositor readback of the page
   behind it every frame, and this page already runs WebGL plus several
   canvases. A near-opaque fill reads the same and costs nothing. */
.site-header-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: color-mix(in srgb, var(--bg) 96%, transparent);
  border-bottom: 0.5px solid var(--border);
}

.site-header a {
  color: var(--text-secondary);
  text-decoration: none;
  text-transform: lowercase;
  white-space: nowrap;
}

.site-header a:hover {
  color: var(--text-primary);
  text-decoration: none;
}

.site-header a.is-active {
  color: var(--accent);
}

.site-header-sep {
  color: var(--border);
}

.site-header-top {
  display: flex;
  align-items: center;
  color: var(--text-secondary);
}

.site-header-top-icon {
  width: 9px;
  height: 13px;
}

/* a touch more room once there is room to spare */
@media (min-width: 861px) {
  .site-header {
    gap: 0.55em;
    font-size: 0.72rem;
    padding: 0.8rem 1rem;
  }
}
