/* ═══════════════════════════════════════
   CM DINSMORE — style.css v3
   Nav fix: --nav-h variable used everywhere
   ═══════════════════════════════════════ */

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

:root {
  --ink:         #13100c;
  --ink-deep:    #0c0a07;
  --parchment:   #f4ede3;
  --aged:        #d3c6b0;
  --gold:        #b8924a;
  --gold-light:  #d2aa68;
  --gold-dim:    rgba(184,146,74,0.28);
  --rust:        #8b3a2a;
  --steel:       #6a9abf;
  --steel-dim:   rgba(106,154,191,0.25);
  --nav-h:       96px;   /* single source of truth for nav height */
  --font-display:'Cinzel', serif;
  --font-body:   'Cormorant Garamond', serif;
  --font-alt:    'EB Garamond', serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h); /* anchors land below nav */
}

body {
  background: var(--ink);
  color: var(--parchment);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.72;
  overflow-x: hidden;
}

/* grain overlay */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 9000;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23g)' opacity='.04'/%3E%3C/svg%3E");
  opacity: .5;
}

/* ─── NAVIGATION ─────────────────────────────── */
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 4rem;
  background: rgba(13,10,7,.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(184,146,74,.1);
}
.nav-logo {
  font-family: var(--font-display); font-size: .8rem;
  letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold); text-decoration: none;
  flex-shrink: 0;
}
.nav-links { display: flex; flex-direction: row; align-items: center; gap: 0; list-style: none; }
.nav-links li { display: inline-flex; align-items: center; }
.nav-sep { color: rgba(184,146,74,.45); font-size: .75rem; padding: 0 1rem; pointer-events: none; }
.nav-links a {
  font-family: var(--font-alt); font-size: .82rem;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--parchment); text-decoration: none;
  position: relative; transition: color .3s;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--gold);
  transform: scaleX(0); transition: transform .3s ease; transform-origin: left;
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold-light); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

/* ─── HERO (homepage only – full viewport) ─── */
/* Hero is the FIRST element; it starts at top:0 and uses
   padding-top equal to nav-h so content sits below nav.     */
.hero-wrap {
  position: relative; overflow: hidden;
  min-height: 100vh;
  display: grid; grid-template-columns: 54% 46%;
}
.hero-bg  { position: absolute; inset: 0; z-index: 0; }
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  filter: none;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to right,  rgba(13,10,7,.98) 45%, rgba(13,10,7,.55) 72%, transparent 100%),
    linear-gradient(to bottom, rgba(13,10,7,.5)   0%, transparent 18%);
}
.hero-left {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; justify-content: center;
  /* top padding = nav height + breathing room */
  padding: calc(var(--nav-h) + 5rem) 3.5rem 5rem 5rem;
}
.hero-right {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: flex-end;
  padding: calc(var(--nav-h) + 5rem) 5rem 5rem 2rem;
}

.hero-eyebrow {
  font-family: var(--font-display); font-size: .62rem;
  letter-spacing: .4em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.8rem;
  display: flex; align-items: center; gap: 1rem;
}
.hero-eyebrow::before { content: ''; display: block; width: 2.4rem; height: 1px; background: var(--gold); }

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  font-weight: 400; line-height: 1.06; letter-spacing: .04em;
  color: var(--parchment);
}
.hero-name em {
  display: block; font-family: var(--font-body); font-style: italic;
  font-size: clamp(1rem, 1.8vw, 1.55rem); font-weight: 300;
  color: var(--aged); letter-spacing: .1em; margin-top: .55rem;
}
.hero-rule { width: 4.5rem; height: 1px; background: linear-gradient(to right, var(--gold), transparent); margin: 1.8rem 0; }
.hero-tagline {
  font-family: var(--font-body); font-style: italic;
  font-size: 1.08rem; color: var(--aged); max-width: 30rem; line-height: 1.88;
  margin-bottom: 2.6rem;
}
.hero-tags { display: flex; flex-direction: column; gap: .55rem; margin-bottom: 3rem; }
.hero-tag {
  display: inline-flex; align-items: center; gap: .75rem;
  font-family: var(--font-display); font-size: .62rem;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold-light); width: fit-content;
}
.hero-tag::before { content: '◆'; font-size: .4rem; color: var(--rust); }

.hero-quote-block { max-width: 21rem; text-align: right; }
.hero-quote-block blockquote {
  font-family: var(--font-body); font-style: italic;
  font-size: 1.38rem; font-weight: 300;
  color: rgba(244,237,227,.56); line-height: 1.65; margin-bottom: 1rem;
}
.hero-quote-block cite {
  font-family: var(--font-display); font-size: .58rem;
  letter-spacing: .2em; color: var(--gold); text-transform: uppercase; font-style: normal;
}

/* ─── PAGE HERO (interior pages) ───────────────
   Starts at very top of viewport. The overlay darkens the
   top edge so the fixed nav reads cleanly over it.
   Content is pushed to the bottom of the banner.           */
.page-hero {
  position: relative; overflow: hidden;
  min-height: 52vh;
  /* top padding reserves space for nav; content flows to bottom */
  padding: calc(var(--nav-h) + 2rem) 5rem 4rem;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.page-hero-bg {
  position: absolute; inset: 0;
}
.page-hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.page-hero-bg svg { display: block; width: 100%; height: 100%; }
.page-hero-overlay {
  position: absolute; inset: 0;
  /* heavy dark at top (behind nav) → lighter mid → dark again at bottom */
  background:
    linear-gradient(to bottom,
      rgba(13,10,7,.88) 0%,
      rgba(13,10,7,.25) 45%,
      rgba(13,10,7,.85) 100%);
}
.page-hero-content { position: relative; z-index: 2; }

.page-eyebrow {
  font-family: var(--font-display); font-size: .62rem;
  letter-spacing: .38em; text-transform: uppercase;
  color: var(--gold); margin-bottom: .9rem;
  display: flex; align-items: center; gap: .8rem;
}
.page-eyebrow::before { content: ''; display: block; width: 1.8rem; height: 1px; background: var(--gold); }
.page-title {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 4.5vw, 3.7rem);
  font-weight: 400; letter-spacing: .06em;
  color: var(--parchment); line-height: 1.1; margin-bottom: .9rem;
}
.page-subtitle {
  font-style: italic; font-size: 1.12rem;
  color: var(--aged); max-width: 44rem; line-height: 1.75;
}

/* ─── SECTION HEADERS ─── */
.section-header {
  display: flex; align-items: center; gap: 1.3rem; margin-bottom: 2.8rem;
}
.section-num {
  font-family: var(--font-display); font-size: .58rem;
  letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold); opacity: .65; white-space: nowrap;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.85rem);
  font-weight: 400; letter-spacing: .08em; color: var(--parchment);
}
.section-rule { flex: 1; height: 1px; background: linear-gradient(to right, var(--gold-dim), transparent); }

/* ─── BUTTONS ─── */
.btn-gold {
  font-family: var(--font-display); font-size: .66rem;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink); background: var(--gold); border: none;
  padding: .82rem 2rem; cursor: pointer; text-decoration: none;
  display: inline-block; transition: background .3s, transform .2s;
}
.btn-gold:hover { background: var(--gold-light); transform: translateY(-1px); }

.btn-outline {
  font-family: var(--font-display); font-size: .66rem;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--aged); background: transparent;
  border: 1px solid var(--gold-dim); padding: .82rem 2rem;
  cursor: pointer; text-decoration: none; display: inline-block;
  transition: border-color .3s, color .3s, transform .2s;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold-light); transform: translateY(-1px); }

.btn-steel {
  font-family: var(--font-display); font-size: .66rem;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink); background: var(--steel); border: none;
  padding: .82rem 2rem; cursor: pointer; text-decoration: none;
  display: inline-block; transition: filter .3s, transform .2s;
}
.btn-steel:hover { filter: brightness(1.15); transform: translateY(-1px); }

.btn-steel-outline {
  font-family: var(--font-display); font-size: .66rem;
  letter-spacing: .2em; text-transform: uppercase;
  color: #88a4bc; background: transparent;
  border: 1px solid rgba(106,154,191,.28); padding: .82rem 2rem;
  cursor: pointer; text-decoration: none; display: inline-block;
  transition: border-color .3s, color .3s;
}
.btn-steel-outline:hover { border-color: var(--steel); color: #c4d4e4; }

.cta-row { display: flex; gap: 1.1rem; flex-wrap: wrap; }

/* ─── ORNAMENT ─── */
.ornament { text-align: center; color: var(--gold); opacity: .35; letter-spacing: .9rem; padding: .4rem 0; }

/* ─── FOOTER ─── */
footer {
  background: #0a0806;
  border-top: 1px solid rgba(184,146,74,.1);
  padding: 4rem 5rem 2.5rem;
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 3rem; align-items: start;
}
.footer-brand .footer-logo {
  font-family: var(--font-display); font-size: .88rem;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: .4rem;
}
.footer-brand .footer-sub { font-style: italic; font-size: .9rem; color: var(--aged); opacity: .45; }
.footer-orn { text-align: center; color: var(--gold); font-size: 1.2rem; opacity: .25; }
.footer-links { display: flex; flex-direction: column; align-items: flex-end; gap: .45rem; }
.footer-links a {
  font-family: var(--font-display); font-size: .56rem;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--aged); text-decoration: none; opacity: .45;
  transition: opacity .3s, color .3s;
}
.footer-links a:hover { opacity: 1; color: var(--gold-light); }
.footer-bottom {
  grid-column: 1/-1; border-top: 1px solid rgba(184,146,74,.07);
  padding-top: 1.8rem; display: flex; justify-content: space-between;
}
.footer-copy {
  font-family: var(--font-display); font-size: .52rem;
  letter-spacing: .17em; text-transform: uppercase;
  color: var(--parchment); opacity: .65;
}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in  { animation: fadeUp 1s   ease both; }
.delay-1  { animation-delay: .2s; }
.delay-2  { animation-delay: .4s; }
.delay-3  { animation-delay: .6s; }

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: rgba(184,146,74,.28); border-radius: 2px; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  nav { padding: 0 1.5rem; }
  .nav-links { gap: 1rem; }
  .nav-links a { font-size: .7rem; }
  .hero-wrap { grid-template-columns: 1fr; }
  .hero-right { display: none; }
  .hero-left { padding: calc(var(--nav-h) + 2.5rem) 2rem 3rem; }
  .page-hero { padding: calc(var(--nav-h) + 1.5rem) 2rem 3rem; }
  footer { grid-template-columns: 1fr; }
  .footer-links { align-items: flex-start; }
  .footer-orn { display: none; }
}

/* ─── PATREON SECTION ─── */
.patreon-section {
  background: linear-gradient(135deg, rgba(184,146,74,.06), rgba(139,58,42,.04));
  border-top: 1px solid rgba(184,146,74,.18);
  border-bottom: 1px solid rgba(184,146,74,.18);
  padding: 5rem 5rem;
  text-align: center;
}
.patreon-inner { max-width: 48rem; margin: 0 auto; }
.patreon-ornament { color: var(--gold); font-size: 1rem; opacity: .45; margin-bottom: 1.4rem; letter-spacing: .5rem; }
.patreon-heading {
  font-family: var(--font-display); font-size: clamp(1.4rem, 2.2vw, 2rem);
  font-weight: 400; letter-spacing: .1em; text-transform: uppercase;
  color: var(--parchment); margin-bottom: 1rem;
}
.patreon-text {
  font-family: var(--font-body); font-style: italic;
  font-size: 1.15rem; color: var(--aged); line-height: 1.8;
  margin-bottom: 2.2rem;
}
.patreon-btn {
  display: -webkit-inline-flex;
  display: inline-flex;
  -webkit-align-items: center;
  align-items: center;
  font-family: 'Cinzel', serif;
  font-size: .7rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #13100c !important;
  background: #b8924a !important;
  padding: 1rem 2.4rem;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
  -webkit-transition: background .3s;
  transition: background .3s;
  -webkit-appearance: none;
  appearance: none;
}
.patreon-btn:hover { background: #d2aa68 !important; color: #13100c !important; }
@media (max-width: 900px) {
  .patreon-section { padding: 4rem 2rem; }
}

/* ─── FOOTER PATREON LINK ─── */
.footer-patreon {
  font-family: var(--font-display); font-size: .56rem;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold-light) !important; text-decoration: none;
  opacity: .75 !important; transition: opacity .3s, color .3s;
  margin-top: .4rem;
  border-top: 1px solid rgba(184,146,74,.15);
  padding-top: .5rem;
}
.footer-patreon:hover { opacity: 1 !important; color: var(--gold-light) !important; }
