/* ═══════════════════════════════════════════════════════════
   SHARED DESIGN SYSTEM — profitableservant.media
   Canonical design tokens, nav, hamburger, mobile overlay,
   footer, grain overlay, and global animations.
═══════════════════════════════════════════════════════════ */

:root {
  --ink:       #0D0C0A;
  --ink2:      #141210;
  --parchment: #F7F3EC;
  --warm:      #E4D9C1;
  --gold:      #C8A55A;
  --gold-dim:  #7a6535;
  --gold-deep: #4a3c20;
  --serif:     'Cormorant Garamond', Georgia, serif;
  --sans:      'Instrument Sans', system-ui, sans-serif;
  --nav-h:     72px;
}

/* ─── GRAIN (SVG turbulence — zero CPU) ─────────────────── */
.psm-grain {
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 1; opacity: 0.5;
}
.psm-ambient {
  position: fixed; inset: -40%;
  background: radial-gradient(circle at 70% 20%, rgba(200,165,90,0.07), transparent 55%);
  pointer-events: none; z-index: 0;
}

/* ─── HAMBURGER BUTTON ───────────────────────────────────── */
.nav-hamburger {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 8px 4px; flex-direction: column; justify-content: center;
  gap: 5px; z-index: 201; flex-shrink: 0;
}
.nav-hamburger span {
  display: block; width: 22px; height: 1px;
  background: var(--parchment);
  transition: transform 0.35s ease, opacity 0.25s ease, background 0.2s;
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ─── MOBILE NAV OVERLAY ─────────────────────────────────── */
.nav-mobile {
  display: none;
  position: fixed; inset: 0; top: var(--nav-h);
  background: rgba(13,12,10,0.98);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 198;
  padding: 3rem 2rem 4rem;
  flex-direction: column;
  overflow-y: auto;
}
.nav-mobile.open { display: flex; }

.nav-mobile-link {
  font-family: var(--serif); font-size: clamp(1.8rem, 6vw, 2.4rem);
  font-weight: 300; color: rgba(247,243,236,0.85);
  text-decoration: none; letter-spacing: 0.02em;
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(247,243,236,0.06);
  transition: color 0.2s, padding-left 0.2s;
  display: block;
}
.nav-mobile-link:first-child { border-top: 1px solid rgba(247,243,236,0.06); }
.nav-mobile-link:hover,
.nav-mobile-link:active { color: var(--gold); padding-left: 0.5rem; }

.nav-mobile-rule {
  width: 32px; height: 1px; background: rgba(200,165,90,0.3);
  margin-top: auto; margin-bottom: 1.5rem;
}
.nav-mobile-tag {
  font-size: 0.62rem; letter-spacing: 0.26em; text-transform: uppercase;
  color: rgba(200,165,90,0.35); font-family: var(--sans);
}

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media(max-width: 680px) {
  :root { --nav-h: 60px; }
  .nav-links  { display: none !important; }
  .nav-hamburger { display: flex; }
}

@media(min-width: 681px) {
  .nav-mobile { display: none !important; }
}
