/* ============================================================
   GLOBAL — reset, variables, header, nav, hamburger, mobile-nav
   Shared across all pages
   ============================================================ */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ── HEADER ── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 48px;
}

.site-name {
  font-family: 'PP Pangaia', Georgia, serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

.site-nav a {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s;
}

/* ── HAMBURGER ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  position: fixed;
  top: 20px; right: 20px;
  z-index: 300;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 20px;
  height: 1.5px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── MOBILE NAV ── */
.mobile-nav { display: none; }
.mobile-nav-close {
  display: none;
  position: fixed;
  top: 16px; right: 16px;
  z-index: 400;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

/* ── SKIP LINK ── */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 4px;
  z-index: 9999;
  padding: 8px 16px;
  background: #fff;
  color: #000;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  text-decoration: none;
  border-radius: 2px;
}

/* ── MOBILE ── */
@media (max-width: 768px) {
  .site-header { padding: 16px 20px; }
  .site-name { font-size: 15px; }
  .site-nav { display: none; }
  .hamburger { display: flex !important; }
  .hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .hamburger.open span:nth-child(2) { opacity: 0; }
  .hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 150;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
  }
  .mobile-nav.open { display: flex !important; }
  .mobile-nav-close { display: block !important; }
  .mobile-nav a {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
  }
}

/* ── PAGE TRANSITION — fade noir ── */
.page-transition {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 500ms ease;
}
.page-transition.fade-in  { opacity: 1; pointer-events: auto; }
.page-transition.fade-out { opacity: 0; pointer-events: none; }
