/* ── NAVIGATION ──────────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 239, 228, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}

.site-nav.scrolled {
  box-shadow: 0 4px 24px var(--shadow);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1rem, 5vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-mark {
  width: 36px;
  height: 36px;
  border: 2px solid var(--rust);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--rust);
  letter-spacing: -0.04em;
  background: var(--rust-pale);
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}

.nav-logo-sub {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--ink-soft);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.4em 0.8em;
  border-radius: 3px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--rust);
  background: var(--rust-pale);
}

.nav-links a.active {
  font-weight: 500;
}

/* Hamburger for mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

@media (max-width: 780px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--beige);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    gap: 0.5rem;
    box-shadow: 0 8px 24px var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 0.85rem; padding: 0.6em 1em; }
  .nav-toggle { display: flex; }
  .site-nav { position: relative; }
}

/* ── FOOTER ──────────────────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  color: var(--parchment);
  padding: 3rem 0;
  margin-top: 6rem;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1rem, 5vw, 3rem);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 0.5rem;
}

.footer-tagline {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink-soft);
  letter-spacing: 0.1em;
}

.footer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: right;
}

.footer-nav a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--parchment);
  text-transform: uppercase;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.footer-nav a:hover { opacity: 1; color: var(--amber-light); }

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--ink-soft);
  letter-spacing: 0.08em;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(200,186,162,0.2);
  grid-column: 1 / -1;
}

@media (max-width: 600px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav { text-align: left; }
}
