/* nav.css
 * Shared navigation styles for Obscure by Design.
 * Self-contained — loads its own fonts so it works correctly
 * on any page regardless of what other stylesheets are loaded.
 */

/* ── Font imports — loaded here so nav looks identical on all pages ── */
@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:ital,wght@0,400;0,600;1,400&family=Source+Sans+3:wght@300&display=swap');

/* ── Variables (safe to re-declare; subpages can override) ── */
:root {
  --ink:    #0e0c0a;
  --paper:  #f5f0e8;
  --amber:  #b8762a;
  --muted:  #7a6f62;
  --border: rgba(184, 118, 42, 0.25);
}

/* ── Nav bar ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 3rem;
  background: rgba(14, 12, 10, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  color: rgba(245, 240, 232, 0.4);
  text-transform: lowercase;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--amber);
  text-decoration: none;
  font-family: 'Crimson Text', serif;
  font-size: 1rem;
  letter-spacing: 0.06em;
  opacity: 0.75;
  transition: opacity 0.2s, color 0.2s;
  white-space: nowrap;
}

.nav-links a:hover {
  opacity: 1;
  color: var(--paper);
}

body {
  padding-top: 72px;
}

/* ── Responsive ── */
@media (max-width: 700px) {
  nav           { padding: 1rem 1.5rem; }
  .nav-links    { gap: 1.2rem; }
  .nav-links a  { font-size: 0.9rem; }
}
