/* Frame99 — shared site navigation styles
 * Loaded alongside assets/js/f99-nav.js (which injects the nav markup).
 * Lives outside any one page so new pages get the right styles by just
 * adding <link rel="stylesheet" href="/assets/css/f99-nav.css"> +
 * <div id="nav-mount" data-active="..."> + <script src=".../f99-nav.js">.
 *
 * Selectors are scoped to #main-nav so they can't leak onto subnavs or
 * any unrelated <nav> element later in the page (an earlier-era bare
 * `nav { ... }` selector caused exactly that problem).
 */

nav#main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 0 52px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background .4s, border-color .4s;
}
nav#main-nav.scrolled {
  background: rgba(12, 12, 10, 0.94);
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.07);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

#main-nav .nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
#main-nav .nav-logo-text {
  font-family: var(--mono, 'IBM Plex Mono', ui-monospace, monospace);
  font-size: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text, #f0ede6);
}

#main-nav .nav-right {
  display: flex;
  align-items: center;
  gap: 32px;
}

#main-nav .nav-links {
  display: flex;
  gap: 28px;
}
#main-nav .nav-links a {
  font-family: var(--mono, 'IBM Plex Mono', ui-monospace, monospace);
  font-size: 12px;
  font-weight: 400;
  color: var(--muted, #73726c);
  text-decoration: none;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: color .2s;
}
#main-nav .nav-links a:hover,
#main-nav .nav-links a.active {
  color: var(--text, #f0ede6);
}

#main-nav .nav-cta {
  font-family: var(--mono, 'IBM Plex Mono', ui-monospace, monospace);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 6px;
  border: 0.5px solid rgba(255, 255, 255, 0.2);
  color: var(--text, #f0ede6);
  text-decoration: none;
  transition: all .2s;
  white-space: nowrap;
}
#main-nav .nav-cta:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.35);
}

/* Mobile breakpoint — match the inline overrides used historically across
 * pages (nav padding tightens, links shrink, CTA hides on phone). */
@media (max-width: 760px) {
  nav#main-nav { padding: 0 20px; }
  #main-nav .nav-links { gap: 18px; }
  #main-nav .nav-links a { font-size: 11px; }
  #main-nav .nav-cta { display: none; }
}
