/*
  SITE BANNER — top ticker
*/
.site-banner {
  width: 100%;
  background: var(--accent-glow);
  border-bottom: 1px solid var(--accent-dim);
  overflow: hidden;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.site-banner__track {
  position: relative;
  height: 20px;
  width: 100%;
  max-width: var(--w-wide);
  overflow: hidden;
}
.site-banner__item {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--accent);
  letter-spacing: 0.04em;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 500ms ease, transform 500ms ease;
  pointer-events: none;
}
.site-banner__item.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.site-banner__item.is-leaving {
  opacity: 0;
  transform: translateY(-10px);
}

/*
  NAV — sticky header, site nav, theme toggle
*/

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.site-nav__inner {
  max-width: var(--w-wide);
  margin: 0 auto;
  padding: 0 var(--s6);
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s6);
}

/* ── LOGO ── */
.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--s2);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-sm);
  letter-spacing: 0.01em;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-logo__mark {
  color: var(--accent);
  line-height: 1;
}

.nav-logo:hover { opacity: 1; color: var(--accent); }

/* ── LINKS ── */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s1);
  list-style: none;
}

.nav-links a {
  display: block;
  padding: var(--s1) var(--s3);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-decoration: none;
  border-radius: var(--r-md);
  transition: color var(--ease), background var(--ease);
  letter-spacing: 0.01em;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--text);
  background: var(--bg-4);
  opacity: 1;
}

.nav-links a.active { color: var(--accent); }

/* ── RIGHT CONTROLS ── */
.nav-right {
  display: flex;
  align-items: center;
  gap: var(--s2);
}

.theme-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--r-md);
  color: var(--text-muted);
  border: 1px solid var(--border);
  transition: color var(--ease), border-color var(--ease), background var(--ease);
}

.theme-btn:hover {
  color: var(--text);
  border-color: var(--border-2);
  background: var(--bg-4);
}

/* ── MOBILE HAMBURGER ── */
.nav-ham {
  display: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--text-muted);
  border-radius: var(--r-md);
  transition: color var(--ease);
}
.nav-ham:hover { color: var(--text); }

@media (max-width: 720px) {
  .nav-links {
    display: none;
    position: fixed;
    inset: 53px 0 auto 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: var(--s3) var(--s6) var(--s4);
    gap: 2px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: var(--s3) var(--s4); }
  .nav-ham { display: flex; }
}
