/* 30 Day Habit — nav + footer. Single source of truth for every page. */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1.5px solid var(--ink);
}
.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
}
.logo, .nav-links a {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
}
.logo span { color: var(--orange); }

/* homepage: nav floats over the cover, turns solid once you scroll past it */
.has-cover .site-nav { position: fixed; left: 0; right: 0; background: transparent; border-bottom-color: transparent; color: var(--paper); transition: background .25s, color .25s, border-color .25s; }
.has-cover.scrolled .site-nav { background: var(--paper); color: var(--ink); border-bottom-color: var(--ink); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--orange); }
.nav-links .live-link { color: var(--orange); }
.nav-links .live-link::before {
  content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--orange); margin-right: 8px; vertical-align: 1px;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .25; } }

.site-footer { margin-top: 40px; }
.site-footer .wave { margin-bottom: 36px; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; padding-bottom: 52px; text-align: center; }
.footer-links { display: flex; gap: 30px; flex-wrap: wrap; justify-content: center; }
.footer-links a {
  font-size: 26px;
  color: var(--orange);
  text-underline-offset: 5px;
  text-decoration-thickness: 1.5px;
}
.footer-small { font-family: var(--mono); font-size: 12px; color: var(--ink-soft); margin: 0; }

@media (max-width: 640px) {
  .nav-links { gap: 16px; }
  .nav-links .hide-sm { display: none; }
  .logo, .nav-links a { font-size: 12px; }
}
