/* ═══════════════════════════════════════════
   SOPHIE MAE — Shared Stylesheet
   ═══════════════════════════════════════════ */

:root {
  --ink: #1c2118;
  --cream: #f4f0e8;
  --green: #6b7c62;
  --green-light: #8a9b7a;
  --green-pale: #b8c4ae;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'Cormorant Garamond', serif;
  cursor: none;
  overflow-x: hidden;
}

/* ─── CURSOR ─── */
.cursor {
  width: 12px; height: 12px; background: var(--green); border-radius: 50%;
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%); transition: transform 0.1s ease; mix-blend-mode: multiply;
}
.cursor-ring {
  width: 36px; height: 36px; border: 1.5px solid var(--green); border-radius: 50%;
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%); transition: width 0.3s, height 0.3s; opacity: 0.6;
}

/* ─── NAV ─── */
nav.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem 3rem;
  background: rgba(244,240,232,0.97);
  border-bottom: 1px solid rgba(28,33,24,0.08);
  backdrop-filter: blur(8px);
}
.nav-logo {
  font-family: 'GFS Didot', 'Didot', serif;
  font-size: 1.6rem; font-weight: 400; font-style: normal;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
}
.nav-logo span { color: var(--green); }
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
  font-family: 'Space Mono', monospace; font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 0.14em;
  text-decoration: none; color: var(--ink);
  position: relative; padding-bottom: 2px; transition: color 0.3s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 1px; background: var(--green); transition: width 0.3s;
}
.nav-links a:hover { color: var(--green); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--green); }
.nav-links a.active::after { width: 100%; }

/* ─── PAGE HERO (inner pages) ─── */
.page-hero {
  min-height: 40vh; padding-top: 80px;
  display: flex; align-items: flex-end;
  padding-bottom: 4rem; padding-left: 4rem; padding-right: 4rem;
  position: relative; overflow: hidden;
}
.page-hero-dark { background: #1c2118; }
.page-hero-light { background: var(--cream); }
.page-hero-content { position: relative; z-index: 2; }

/* ─── SHARED TYPOGRAPHY ─── */
.section-label {
  font-family: 'Space Mono', monospace; font-size: 1rem;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--green); margin-bottom: 1.2rem;
  display: flex; align-items: center; gap: 1rem;
}
.section-label::before { content: ''; display: block; width: 40px; height: 1px; background: var(--green); }
.section-label-pale { color: var(--green-pale); }
.section-label-pale::before { background: var(--green-pale); }

.section-title {
  font-family: 'Italiana', serif;
  font-size: clamp(3.2rem, 6vw, 5.5rem);
  font-weight: 400; line-height: 1.05; margin-bottom: 2rem;
}
.section-title .title-green { color: var(--green); font-style: italic; }

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-block; background: var(--green); color: var(--cream);
  font-family: 'Space Mono', monospace; font-size: 0.75rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  padding: 1.1rem 2.4rem; text-decoration: none;
  border: 2px solid var(--green); transition: background 0.3s, transform 0.2s;
}
.btn-primary:hover { background: var(--ink); border-color: var(--ink); transform: translate(-2px,-2px); }
.btn-outline {
  display: inline-block; border: 2px solid var(--ink); color: var(--ink);
  font-family: 'Space Mono', monospace; font-size: 0.75rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  padding: 1.1rem 2.4rem; text-decoration: none;
  transition: background 0.3s, color 0.3s, transform 0.2s;
}
.btn-outline:hover { background: var(--ink); color: var(--cream); transform: translate(-2px,-2px); }

/* ─── MARQUEE ─── */
.marquee-strip { background: var(--green); padding: 0.9rem 0; overflow: hidden; white-space: nowrap; }
.marquee-inner { display: inline-flex; animation: marquee 22s linear infinite; }
.marquee-item {
  font-family: 'Cormorant Garamond', serif; font-size: 1.1rem;
  font-style: italic; color: var(--cream); padding: 0 2.5rem; letter-spacing: 0.05em;
}
.marquee-dot { color: rgba(244,240,232,0.4); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ─── FOOTER ─── */
footer.site-footer {
  background: #1c2118; color: var(--cream); padding: 2.5rem 4rem;
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid rgba(107,124,98,0.2);
}
.footer-logo {
  font-family: 'GFS Didot', 'Didot', serif; font-size: 1.5rem;
  font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; color: var(--cream);
}
.footer-logo span { color: var(--green); }
.footer-center { display: flex; flex-direction: column; gap: 0.5rem; align-items: center; }
.footer-social { display: flex; gap: 2rem; }
.footer-social a {
  font-family: 'Space Mono', monospace; font-size: 0.65rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; color: rgba(244,240,232,0.6); transition: color 0.3s;
}
.footer-social a:hover { color: var(--green); }
.footer-copy { font-family: 'Space Mono', monospace; font-size: 0.58rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(244,240,232,0.3); text-align: center; margin-top: 0.3rem; }
.footer-nav { display: flex; gap: 2rem; }
.footer-nav a { font-family: 'Space Mono', monospace; font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; color: rgba(244,240,232,0.5); transition: color 0.3s; }
.footer-nav a:hover { color: var(--green); }

/* ─── LIGHTBOX ─── */
.lightbox {
  position: fixed; inset: 0; background: rgba(28,33,24,0.97); z-index: 9990;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.lightbox.active { opacity: 1; pointer-events: all; }
.lightbox img, .lightbox video { max-width: 92vw; max-height: 92vh; object-fit: contain; }
.lightbox-close {
  position: absolute; top: 2rem; right: 2rem;
  font-family: 'Space Mono', monospace; font-size: 0.7rem;
  color: var(--cream); letter-spacing: 0.15em; text-transform: uppercase;
  cursor: none; opacity: 0.6; transition: opacity 0.2s;
}
.lightbox-close:hover { opacity: 1; }

/* ─── GRAIN ─── */
body::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 9997; opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat; background-size: 200px 200px;
}

/* ─── ANIMATIONS ─── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s cubic-bezier(0.25,0.46,0.45,0.94), transform 0.8s cubic-bezier(0.25,0.46,0.45,0.94); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── RESPONSIVE ─── */
@media (max-width: 1000px) {
  nav.site-nav { padding: 1rem 1.5rem; }
  .nav-links { gap: 1.2rem; }
  .nav-links a { font-size: 0.68rem; }
  .page-hero { padding-left: 1.5rem; padding-right: 1.5rem; }
  footer.site-footer { flex-direction: column; gap: 1.5rem; text-align: center; padding: 2rem 1.5rem; }
}
