/* Base reset (keep only what's used across pages) */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Segoe UI, Roboto, Arial, sans-serif;
  min-height: 100vh;
  color: #1d1d1f;
  line-height: 1.5;
  background: #ffffff;
}

/* Shared header/navigation (from root index.html) */
:root {
  --header-h: 56px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: rgba(255, 255, 255, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}
.site-header .nav {
  height: var(--header-h);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #1d1d1f;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.brand-logo { height: 28px; width: auto; display: block; }
.nav-menu {
  list-style: none;
  display: flex;
  gap: 18px;
}
.nav-menu a {
  text-decoration: none;
  color: #1d1d1f;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 999px;
  transition: background-color 0.2s ease, transform 0.15s ease;
}
.nav-menu a:hover {
  background: rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

/* Mobile overlay menu (Apple-like) */
.nav-toggle {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.12);
  background: #fff;
  color: #111;
  place-items: center;
  cursor: pointer;
}
.nav-toggle svg { width: 18px; height: 18px; }

@media (max-width: 860px) {
  .nav-menu { display: none; }
  .nav-toggle { display: inline-grid; }
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  z-index: 2000;
  display: none;
}
.mobile-menu.open { display: block; }
.mobile-menu .mm-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 18px 20px 40px;
}
.mobile-menu .mm-header {
  height: var(--header-h);
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.mobile-menu .mm-close {
  width: 36px; height: 36px; border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.12);
  background: #fff; color: #111; display: grid; place-items: center; cursor: pointer;
}
.mobile-menu nav ul { list-style: none; padding: 12px 6px; }
.mobile-menu nav li { border-bottom: 1px solid rgba(0,0,0,0.08); }
.mobile-menu nav a {
  display: block;
  padding: 18px 6px;
  font-size: 28px;
  text-decoration: none;
  color: #1d1d1f;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* lock body scroll when menu open */
body.menu-open { overflow: hidden; }