/* ═══════════════════════════════════════════
   SHARED.CSS — Global tokens, nav, footer
   L.M. Gwen Author Site
═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=IM+Fell+English:ital@0;1&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Cinzel:wght@400;600;700&display=swap');

/* ── Tokens ── */
:root {
  --ink:        #0b0a0d;
  --ink-2:      #13111a;
  --parchment:  #f0e8d8;
  --cream:      #e2d5be;
  --mist:       #b8b0a0;
  --gold:       #c9a84c;
  --gold-lt:    #e8c97a;
  --gold-dim:   rgba(201,168,76,0.18);
  --moss:       #1e2d1a;
  --twilight:   #16112a;
  --text:       #cfc4b0;
  --text-dim:   #b5a78f;
  --border:     rgba(201,168,76,0.15);
  --border-hover: rgba(201,168,76,0.4);
  --nav-h:      76px;
  --sans:       'Cinzel', serif;
  --serif:      'Cormorant Garamond', serif;
  --display:    'IM Fell English', serif;
}

/* ── Reset ── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.1rem;
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}
img { display:block; max-width:100%; }
a { color: inherit; text-decoration: none; }

/* ── Noise overlay ── */
body::before {
  content:'';
  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.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events:none; z-index:9990; opacity:.4;
}

/* ── Custom cursor ── */
.cur-dot {
  position:fixed; width:7px; height:7px;
  background:var(--gold); border-radius:50%;
  pointer-events:none; z-index:9999;
  transform:translate(-50%,-50%);
  mix-blend-mode:screen;
  transition:transform .08s;
}
.cur-ring {
  position:fixed; width:26px; height:26px;
  border:1px solid rgba(201,168,76,.35); border-radius:50%;
  pointer-events:none; z-index:9998;
  transform:translate(-50%,-50%);
}

/* ══════════════════════════
   NAVIGATION
══════════════════════════ */
.site-nav {
  position:fixed; top:0; left:0; right:0; z-index:500;
  height:var(--nav-h);
  display:flex; align-items:center; justify-content:space-between;
  padding:0 3rem;
  transition:background .5s, border-color .5s;
  border-bottom: 1px solid transparent;
}
.site-nav.scrolled {
  background:rgba(11,10,13,.9);
  backdrop-filter:blur(14px);
  border-color: var(--border);
}

/* Logo */
.nav-logo {
  display:flex; align-items:center; gap:.75rem;
  text-decoration:none;
}
.nav-logo-img {
  width:44px; height:44px;
  border:1px solid var(--border);
  border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background:rgba(201,168,76,.06);
  overflow:hidden;
  transition:border-color .3s;
  flex-shrink:0;
}
.nav-logo-img img {
  width:34px; height:38px;
  object-fit:contain;
}
.nav-logo:hover .nav-logo-img { border-color:var(--gold); }
.nav-logo-text {
  font-family:var(--sans);
  font-size:.85rem;
  font-weight:600;
  letter-spacing:.15em;
  color:var(--gold);
  text-transform:uppercase;
  line-height:1.3;
}

/* Nav links */
.nav-links {
  display:flex; gap:2.5rem; list-style:none;
  align-items:center;
}
.nav-links a {
  font-family:var(--serif);
  font-size:1rem;
  font-weight:600;
  letter-spacing:.06em;
  color:var(--mist);
  text-transform:uppercase;
  position:relative;
  transition:color .3s;
  padding-bottom:2px;
}
.nav-links a::after {
  content:'';
  position:absolute; bottom:0; left:0; right:100%;
  height:1px; background:var(--gold);
  transition:right .35s ease;
}
.nav-links a:hover,
.nav-links a.active { color:var(--gold-lt); }
.nav-links a:hover::after,
.nav-links a.active::after { right:0; }

/* Nav social icons */
.nav-social {
  display:flex; gap:1rem; align-items:center;
}
.nav-social a {
  display:flex; align-items:center; justify-content:center;
  width:32px; height:32px;
  color:var(--text-dim);
  transition:color .3s, transform .3s;
}
.nav-social a:hover { color:var(--gold); transform:translateY(-2px); }
.nav-social svg { width:17px; height:17px; fill:currentColor; }

/* Hamburger (mobile) */
.nav-burger {
  display:none; flex-direction:column; gap:5px;
  background:none; border:none; cursor:pointer; padding:4px;
}
.nav-burger span {
  display:block; width:22px; height:1px;
  background:var(--mist); transition:all .3s;
}

/* Mobile drawer */
.nav-drawer {
  display:none; position:fixed;
  top:var(--nav-h); left:0; right:0;
  background:rgba(11,10,13,.97);
  backdrop-filter:blur(20px);
  border-bottom:1px solid var(--border);
  padding:2rem;
  z-index:490;
  flex-direction:column; gap:1.5rem;
}
.nav-drawer.open { display:flex; }
.nav-drawer a {
  font-family:var(--serif);
  font-size:1.2rem;
  letter-spacing:.15em;
  color:var(--mist);
  text-transform:uppercase;
  text-decoration:none;
  padding:.5rem 0;
  border-bottom:1px solid var(--border);
  transition:color .3s;
}
.nav-drawer a:hover { color:var(--gold); }

/* ══════════════════════════
   FOOTER
══════════════════════════ */
.site-footer {
  border-top:1px solid var(--border);
  padding:2.5rem 3rem;
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:1.5rem;
  margin-top:auto;
}
.footer-newsletter {
  width:100%;
  border:1px solid var(--border-hover);
  background:linear-gradient(135deg, rgba(201,168,76,.06), rgba(22,17,42,.14));
  padding:1.4rem 1.6rem;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1.5rem;
}
.footer-newsletter-title {
  font-family:var(--display);
  font-size:1.4rem;
  color:var(--parchment);
}
.footer-newsletter p {
  font-size:1rem;
  color:var(--text-dim);
}
.footer-newsletter .btn { flex-shrink:0; }
.footer-logo {
  font-family:var(--sans);
  font-size:.85rem;
  font-weight:600;
  letter-spacing:.15em;
  color:var(--gold);
  text-transform:uppercase;
}
.footer-links {
  display:flex; gap:2rem; list-style:none;
}
.footer-links a {
  font-size:.95rem;
  font-weight:600;
  letter-spacing:.06em;
  color:var(--text-dim);
  text-transform:uppercase;
  transition:color .3s;
}
.footer-links a:hover { color:var(--gold); }
.footer-social {
  display:flex; gap:1rem; align-items:center;
}
.footer-social a {
  color:var(--text-dim);
  transition:color .3s, transform .3s;
  display:flex; align-items:center;
}
.footer-social a:hover { color:var(--gold); transform:translateY(-2px); }
.footer-social svg { width:16px; height:16px; fill:currentColor; }
.footer-copy {
  width:100%;
  font-size:.9rem;
  color:var(--text-dim);
  text-align:center;
}

/* ══════════════════════════
   SHARED COMPONENTS
══════════════════════════ */
.page-wrap {
  padding-top:var(--nav-h);
  min-height:100vh;
  display:flex;
  flex-direction:column;
}

/* Eyebrow label */
.eyebrow {
  font-family:var(--sans);
  font-size:.85rem;
  font-weight:600;
  letter-spacing:.18em;
  color:var(--gold);
  text-transform:uppercase;
  display:flex; align-items:center; gap:.8rem;
}
.eyebrow::before {
  content:''; display:block;
  width:30px; height:1px; background:var(--gold);
  flex-shrink:0;
}

/* Section title */
.section-title {
  font-family:var(--display);
  font-size:clamp(2rem, 4vw, 3.2rem);
  color:var(--parchment);
  line-height:1.1;
  margin-bottom:1.5rem;
}
/* Buttons */
.btn {
  display:inline-flex; align-items:center; gap:.6rem;
  font-family:var(--sans);
  font-size:1rem;
  font-weight:600;
  letter-spacing:.08em;
  text-transform:uppercase;
  text-decoration:none;
  padding:.85rem 1.8rem;
  cursor:pointer;
  border:none;
  transition:all .35s ease;
  white-space:nowrap;
}
.btn-gold {
  background:var(--gold); color:var(--ink);
}
.btn-gold:hover {
  background:var(--gold-lt);
  box-shadow:0 0 28px rgba(201,168,76,.3);
  transform:translateY(-1px);
}
.btn-outline {
  background:transparent; color:var(--gold);
  border:1px solid rgba(201,168,76,.45);
}
.btn-outline:hover {
  background:var(--gold-dim);
  border-color:var(--gold);
  transform:translateY(-1px);
}

/* Reveal animation */
.reveal {
  opacity:0; transform:translateY(24px);
  transition:opacity .8s ease, transform .8s ease;
}
.reveal.in { opacity:1; transform:translateY(0); }
.reveal.d1 { transition-delay:.1s; }
.reveal.d2 { transition-delay:.2s; }
.reveal.d3 { transition-delay:.3s; }
.reveal.d4 { transition-delay:.45s; }
.reveal.d5 { transition-delay:.6s; }

/* ══════════════════════════
   RESPONSIVE
══════════════════════════ */
@media (max-width: 860px) {
  .site-nav { padding:0 1.5rem; }
  .nav-links { display:none; }
  .nav-burger { display:flex; }
  .nav-social { display:none; }
}
@media (max-width: 540px) {
  .site-footer { flex-direction:column; text-align:center; padding:2rem 1.5rem; }
  .footer-newsletter { flex-direction:column; text-align:center; }
  .footer-links { flex-wrap:wrap; justify-content:center; gap:1rem; }
}