/* The floating nav: lockup, the shop clock, links, sign in, early access.
   It takes its tokens from body[data-stage], which day.js moves through the
   day, so it turns dark with the page at dusk. */

.nav {
  position: fixed; z-index: 50;
  top: 16px; left: 0; right: 0;
  padding-inline: 16px;
  pointer-events: none;
}
.nav-pill {
  pointer-events: auto;
  display: flex; align-items: center; gap: 20px;
  max-width: 1200px; height: 64px; margin-inline: auto;
  padding: 0 12px 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--ink);
  transition: background-color .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.nav.is-scrolled .nav-pill {
  background: var(--glass);
  border-color: var(--line-soft);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 10px 30px -18px rgba(20,29,35,.35);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
}

/* The lockup: the logo hung in front of the teal tile, a third taller than
   it, so its strings and foot break out over the edges. */
.lockup { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-height: 44px; min-width: 44px; }
.lockup-tile {
  position: relative; flex: none;
  width: 30px; height: 30px; border-radius: 7px;
  background: var(--teal);
}
.lockup-logo {
  position: absolute; left: 50%; top: 50%;
  height: 133%; width: auto; aspect-ratio: 695 / 845;
  transform: translate(-50%, -50%);
  color: var(--logo-lining);
  overflow: visible;
}
[data-stage="dusk"] .lockup-logo, [data-stage="night"] .lockup-logo {
  filter: drop-shadow(0 0 2px rgba(255,255,255,.55)) drop-shadow(0 0 5px rgba(255,255,255,.18));
}
.wordmark { font-family: var(--font-word); font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }

/* The shop clock. */
.nav-time {
  display: inline-flex; align-items: center; gap: 10px;
  padding-left: 18px; border-left: 1px solid var(--line);
  font-size: 14px;
}
#clock { font-weight: 500; letter-spacing: .02em; }
#sign { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.sign-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.sign-moon { width: 13px; height: 13px; display: none; color: var(--accent); }
#sign[data-state="after"] .sign-dot { display: none; }
#sign[data-state="after"] .sign-moon { display: block; }

.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a, .nav-signin {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 12px;
  color: var(--muted); text-decoration: none; font-size: 15px; border-radius: 999px;
  transition: color .2s var(--ease);
}
.nav-links a:hover, .nav-signin:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 6px; }
.nav-cta .short { display: none; }
.nav-menu {
  display: none; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: transparent; color: var(--ink);
  align-items: center; justify-content: center;
}
.nav-menu svg { width: 22px; height: 22px; }

/* The menu sheet, under 900px. */
.nav-sheet {
  pointer-events: auto;
  width: min(100% - 32px, 480px); margin: 88px auto 0; padding: 12px;
  border: 1px solid var(--line-soft); border-radius: var(--r-panel);
  background: var(--surface); color: var(--ink);
  box-shadow: var(--shadow-card);
}
.nav-sheet::backdrop { background: rgba(20,29,35,.28); }
.nav-sheet nav { display: flex; flex-direction: column; }
.nav-sheet nav a {
  display: flex; align-items: center; min-height: 52px; padding: 0 16px;
  font-size: 20px; font-weight: 600; text-decoration: none; border-radius: 14px;
}
.nav-sheet nav a:hover { background: var(--surface-2); }
.nav-sheet-close {
  position: absolute; top: 12px; right: 12px; width: 44px; height: 44px;
  border: 0; border-radius: 50%; background: var(--surface-2); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.nav-sheet-close svg { width: 20px; height: 20px; }

@media (max-width: 899px) {
  .nav-links, .nav-signin { display: none; }
  .nav-time { margin-left: auto; }
  .nav-cta .long { display: none; }
  .nav-cta .short { display: inline; }
  .nav-menu { display: inline-flex; }
  .nav-pill { gap: 12px; padding-left: 14px; }
}
@media (max-width: 479px) {
  .wordmark { display: none; }
  .nav-time { border-left: 0; padding-left: 0; }
  .sign-text { display: none; }
}
