/* =============================================================
   Site menu — shared across BOTH designs (lighthouse + daisy).
   Uses only tokens common to both token files: --cream, --ink,
   --ink-soft, --line, --gold, and the --font-* families.
   ============================================================= */

.nav-toggle {
  position: fixed;
  top: 14px;
  /* Align to the right edge of the ~760px "pamphlet" (sheet), not the browser
     corner. Falls back to 14px once the sheet fills the viewport. */
  right: max(14px, calc(50% - 380px));
  z-index: 60;
  width: 44px;
  height: 44px;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(74, 68, 60, 0.14);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.6px;
  background: var(--ink-soft);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle.is-open { background: #FFFDF7; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }
.nav-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.site-menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(251, 247, 238, 0.98);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: menu-in .22s ease;
}
.site-menu[hidden] { display: none; }
@keyframes menu-in { from { opacity: 0; } to { opacity: 1; } }

.menu-inner { text-align: center; padding: 24px; }
.menu-word {
  display: inline-block;
  font-family: var(--font-script);
  font-size: 44px;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
  margin-bottom: 34px;
}
.menu-word:hover { color: var(--gold); }

.menu-nav { list-style: none; margin: 0; padding: 0; }
.menu-nav li { margin: 0; }
.m-item {
  display: inline-block;
  padding: 11px 6px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 27px;
  letter-spacing: .3px;
  color: var(--ink);
  text-decoration: none;
}
.m-item:hover { color: var(--gold); }
.m-item.active { color: var(--gold); }
.m-item .soon {
  display: inline-block;
  vertical-align: middle;
  margin-left: 9px;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 8.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.m-item.is-soon { color: var(--ink-soft); }
.m-item.is-soon:hover { color: var(--gold); }

body.menu-open { overflow: hidden; }

@media (max-width: 600px) {
  .m-item { font-size: 24px; padding: 9px 6px; }
  .menu-word { font-size: 38px; margin-bottom: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-toggle span { transition: none; }
  .site-menu { animation: none; }
}

/* Narrow (640px) content pages: align the hamburger to their content edge */
body.narrow .nav-toggle { right: max(14px, calc(50% - 320px)); }
