/* ---------- Site nav ----------
   Shared by index.html (in-page anchor links) and book.html (a
   couple of static links back to the site + a print button).

   Deliberately its OWN file, kept out of the Paged.js STYLESHEETS
   list in js/assemble-book.js. Paged.js injects the stylesheets it's
   given as global <style> tags for its own preview, and it unwraps
   @media print rules into always-on ones there (so its on-screen
   preview matches what will actually print) — but "global" means
   document-wide, not scoped to the content it's paginating. With
   .site-nav in base.css (which Paged.js does manage), the @media
   print rule below leaked out and hid the nav permanently, even on
   screen. Keeping nav styling in a file Paged.js never sees avoids
   that entirely. */
.site-nav{
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  padding: 1rem 1.5rem;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.site-nav a{
  text-decoration: none;
  color: var(--ink);
}
.site-nav .site-nav-name{
  font-family: var(--serif-display);
  font-size: 1.15rem;
}
.site-nav nav{
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}
.site-nav nav a.print-link{
  color: var(--accent);
}
.site-nav button{
  font: inherit;
  color: var(--accent);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  letter-spacing: 0.02em;
}
@media print{
  .site-nav{ display: none; }
}
