/* Shared site nav — single source of truth for the top bar on every page.
   Geometry copied from the homepage header (.top), which is the reference:
   sticky dark bar, content aligned to a centered 820px column with 28px
   insets, EB Garamond brand at 1.32rem, links right-aligned at 0.82rem.
   Load AFTER the page's inline <style> so these rules win ties. */

.site-nav{
  position: sticky;
  top: 0;
  z-index: 1200;
  display: block;
  margin: 0;
  padding: 0;
  background: #0a0a0a;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: none;
}
.site-nav.stuck{
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.site-nav-inner{
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 28px 14px;
}
.site-nav .brand{
  font-family: 'EB Garamond', Georgia, serif;
  font-weight: 500;
  font-size: 1.32rem;
  letter-spacing: -0.01em;
  color: #e8e8e8;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav .brand:hover{ color:#fff; text-decoration:none; }
.site-nav .links{
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
  border: 0;
}
.site-nav .links a{
  font-size: 0.82rem;
  font-weight: 500;
  color: #888;
  text-decoration: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-transform: none;
  transition: color .15s ease;
}
.site-nav .links a:hover,
.site-nav .links a[aria-current="page"]{ color:#e8e8e8; }

@media (max-width: 600px){
  .site-nav-inner{
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 16px 10px;
  }
  .site-nav .brand{ font-size: 1.18rem; }
  .site-nav .links{
    width: 100%;
    justify-content: space-between;
    gap: 6px 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .site-nav .links a{ font-size: 0.8rem; }
}
