:root {
  --bg: #f7f5ef;
  --bg-warm: #faf8f2;
  --ink: #0a0a0a;
  --ink-soft: #4a4a4a;
  --ink-muted: #8b8680;
  --line: #e6e2d6;
  --accent: #ff4d2b;
  --accent-dark: #d93810;
  --accent-soft: #fff0eb;
  --success: #10b981;
  --card: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.serif { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; }

/* Floating navbar */
.floating-nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 999px;
  padding: 6px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0,0,0,.04);
  display: flex;
  align-items: center;
  gap: 4px;
  max-width: calc(100vw - 32px);
}
.nav-link {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: all .2s;
  text-decoration: none;
}
.nav-link:hover { background: rgba(0,0,0,.05); color: var(--ink); }
.nav-divider { width: 1px; height: 18px; background: rgba(0,0,0,.08); margin: 0 4px; }
.nav-cta {
  background: var(--ink);
  color: white !important;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: all .2s;
  text-decoration: none;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--accent); transform: scale(1.03); }

/* Mobile menu */
.mobile-menu-btn {
  width: 36px; height: 36px;
  border-radius: 999px;
  background: transparent;
  border: none;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
  transition: background .15s;
}
.mobile-menu-btn:hover { background: rgba(0,0,0,.05); }
.mobile-menu-panel {
  position: fixed;
  top: 72px;
  left: 16px; right: 16px;
  z-index: 49;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  padding: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  display: none;
  flex-direction: column;
  gap: 2px;
  animation: menuFade .18s ease both;
}
.mobile-menu-panel.open { display: flex; }
.mobile-menu-panel a {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  transition: background .15s;
}
.mobile-menu-panel a:hover { background: rgba(0,0,0,.05); }
@keyframes menuFade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 639px) {
  .mobile-menu-btn { display: flex; }
  .floating-nav {
    left: 12px;
    right: 12px;
    transform: none;
    max-width: none;
    width: auto;
    justify-content: space-between;
    padding: 6px 6px 6px 4px;
  }
  .floating-nav .nav-cta { display: none; }
}

/* Footer */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,.5);
}
