/* assets/css/main.css — WildernessVoice */

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

:root {
  --ink:       #1a1f2e;
  --parchment: #f5f0e8;
  --sage:      #8fa68c;
  --gold:      #c9a96e;
  --cream:     #faf8f4;
  --muted:     #6b7280;
  --warm-dark: #2c2418;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 3rem;
  background: transparent;
  transition: background 0.4s ease, backdrop-filter 0.4s ease;
}
nav.scrolled {
  background: rgba(250, 248, 244, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 169, 110, 0.2);
}
.nav-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.45rem;
  font-weight: 300;
  letter-spacing: 0.03em;
  color: var(--cream);
  text-decoration: none;
  transition: color 0.3s;
}
nav.scrolled .nav-name { color: var(--ink); }
.brand-voice {
  font-style: italic;
  font-weight: 500;
  color: var(--gold);
}
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(250,248,244,0.85);
  text-decoration: none;
  transition: color 0.3s;
}
nav.scrolled .nav-links a { color: var(--muted); }
.nav-links a:hover,
.nav-links a.active { color: var(--gold); }
nav.scrolled .nav-links a.active { color: var(--gold); }

.nav-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-menu-btn span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--cream);
  transition: background 0.3s;
}
nav.scrolled .nav-menu-btn span { background: var(--ink); }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 3rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    0deg, transparent, transparent 79px,
    rgba(201,169,110,0.045) 80px
  );
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(201,169,110,0.12) 0%, transparent 70%);
  top: -100px; right: -100px;
  pointer-events: none;
}
.hero-verse {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--gold);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 1s ease 0.3s forwards;
}
.hero-name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(3.8rem, 9vw, 8.5rem);
  line-height: 0.95;
  color: var(--cream);
  letter-spacing: -0.01em;
  opacity: 0;
  animation: fadeUp 1s ease 0.6s forwards;
}
.hero-name em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
}
.hero-tagline {
  margin-top: 2.5rem;
  max-width: 480px;
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(250,248,244,0.6);
  letter-spacing: 0.02em;
  opacity: 0;
  animation: fadeUp 1s ease 0.9s forwards;
}
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(250,248,244,0.35);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeUp 1s ease 1.4s forwards;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(201,169,110,0.6), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ── INNER PAGE HERO (faith, thoughts, photography) ── */
.page-hero {
  min-height: 45vh;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 6rem 3rem 4rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    0deg, transparent, transparent 79px,
    rgba(201,169,110,0.045) 80px
  );
  pointer-events: none;
}
.page-hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.page-hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.95;
  color: var(--cream);
}
.page-hero-title em {
  font-style: italic;
  color: var(--gold);
}
.page-hero-desc {
  margin-top: 1.5rem;
  max-width: 480px;
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(250,248,244,0.55);
}

/* ── THREAD CONNECTOR ── */
.thread {
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  margin: 0 auto;
  opacity: 0.4;
}

/* ── SHARED SECTION PATTERNS ── */
.section-eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.section-eyebrow::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.section-intro {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.9;
  color: var(--muted);
  max-width: 560px;
}

/* ── FAITH SECTION ── */
.faith-section {
  background: var(--ink);
  color: var(--cream);
  padding: 8rem 0;
}
.faith-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 3rem;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 6rem;
  align-items: start;
}
.faith-section .section-intro { color: rgba(250,248,244,0.6); }
.faith-cards { display: grid; gap: 1.5rem; }
.faith-card {
  border: 1px solid rgba(201,169,110,0.2);
  padding: 2rem;
  border-radius: 2px;
  transition: border-color 0.3s, background 0.3s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: block;
}
.faith-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s ease;
}
.faith-card:hover { background: rgba(201,169,110,0.04); border-color: rgba(201,169,110,0.45); }
.faith-card:hover::before { transform: scaleY(1); }
.card-ref {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.8rem;
  color: var(--gold);
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}
.card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--cream);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}
.card-excerpt {
  font-size: 0.85rem;
  line-height: 1.75;
  color: rgba(250,248,244,0.5);
  font-weight: 300;
}
.card-date {
  margin-top: 1.25rem;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: rgba(250,248,244,0.3);
  text-transform: uppercase;
}
.section-more {
  margin-top: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  transition: gap 0.3s;
}
.section-more:hover { gap: 1.1rem; }
.section-more::after { content: '→'; }

/* ── THOUGHTS SECTION ── */
.tech-section { background: var(--cream); padding: 8rem 0; }
.tech-inner { max-width: 1200px; margin: 0 auto; padding: 0 3rem; }
.tech-header {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 6rem;
  align-items: end;
  margin-bottom: 5rem;
}
.tech-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.tech-post {
  border-top: 1px solid rgba(26,31,46,0.12);
  padding-top: 1.5rem;
  transition: transform 0.2s;
  cursor: pointer;
  text-decoration: none;
  display: block;
}
.tech-post:hover { transform: translateY(-3px); }
.tech-tag {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.75rem;
}
.tech-post-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: 0.75rem;
  color: var(--ink);
}
.tech-post-excerpt {
  font-size: 0.83rem;
  line-height: 1.75;
  color: var(--muted);
  font-weight: 300;
}
.tech-post-date {
  margin-top: 1rem;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: rgba(26,31,46,0.35);
  text-transform: uppercase;
}

/* ── PHOTOGRAPHY SECTION ── */
.photo-section { background: var(--warm-dark); padding: 8rem 0; color: var(--cream); }
.photo-inner { max-width: 1200px; margin: 0 auto; padding: 0 3rem; }
.photo-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 4rem;
}
.photo-section .section-intro { color: rgba(250,248,244,0.55); max-width: 400px; }
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 280px;
  gap: 0.75rem;
}
.photo-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: rgba(255,255,255,0.04);
}
.photo-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.85) saturate(0.9);
  transition: transform 0.6s ease, filter 0.6s ease;
}
.photo-item:hover img {
  transform: scale(1.04);
  filter: brightness(1) saturate(1.05);
}
.photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,31,46,0.8) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.4s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
}
.photo-item:hover .photo-overlay { opacity: 1; }
.photo-caption {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--cream);
}
.photo-meta {
  margin-top: 0.35rem;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: rgba(250,248,244,0.55);
}

/* ── FULL POST PAGE ── */
.post-body {
  max-width: 680px;
  margin: 6rem auto;
  padding: 0 2rem;
}
.post-body .post-header { margin-bottom: 3rem; }
.post-body .post-ref {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.9rem;
  color: var(--gold);
  margin-bottom: 1rem;
}
.post-body h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}
.post-body .post-date {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.post-content {
  font-size: 1.05rem;
  line-height: 1.95;
  color: #3a3f4e;
  font-weight: 300;
}
.post-content p { margin-bottom: 1.5rem; }
.post-content em { font-style: italic; color: var(--ink); }
.post-content strong { font-weight: 500; color: var(--ink); }
.post-content blockquote {
  border-left: 2px solid var(--gold);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--ink);
  background: var(--parchment);
}

/* ── ARCHIVE LIST (faith.php, thoughts.php) ── */
.archive-section {
  max-width: 860px;
  margin: 0 auto;
  padding: 6rem 2rem;
}
.archive-post {
  border-top: 1px solid rgba(26,31,46,0.1);
  padding: 2.5rem 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
}
.archive-post:hover { opacity: 0.75; }
.archive-ref {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.82rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.archive-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 0.6rem;
}
.archive-excerpt {
  font-size: 0.85rem;
  line-height: 1.75;
  color: var(--muted);
  font-weight: 300;
}
.archive-date {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  padding-top: 0.5rem;
}

/* ── ABOUT SECTION ── */
.about-section { background: var(--parchment); padding: 8rem 0; }
.about-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 3rem;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 6rem;
  align-items: center;
}
.about-portrait {
  aspect-ratio: 4/5;
  overflow: hidden;
  background: rgba(143,166,140,0.15);
}
.about-portrait img { width: 100%; height: 100%; object-fit: cover; }
.about-portrait-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0.75rem; color: var(--sage);
  border: 1px dashed rgba(143,166,140,0.3);
}
.about-portrait-placeholder span { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; }
.about-body {
  font-size: 1rem;
  line-height: 1.95;
  color: var(--muted);
  font-weight: 300;
  margin-bottom: 2rem;
}
.about-body em { font-style: italic; color: var(--ink); font-weight: 400; }
.pillars { display: flex; gap: 2rem; margin-top: 2.5rem; flex-wrap: wrap; }
.pillar { display: flex; flex-direction: column; gap: 0.4rem; }
.pillar-label { font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); font-weight: 500; }
.pillar-value { font-family: 'Cormorant Garamond', serif; font-size: 1.05rem; color: var(--ink); }

/* ── FOOTER ── */
footer {
  background: var(--ink);
  padding: 4rem 3rem;
  text-align: center;
}
.footer-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.4rem;
  font-weight: 300;
  color: var(--cream);
  letter-spacing: 0.03em;
  margin-bottom: 0.75rem;
}
.brand-voice-footer { font-style: italic; font-weight: 400; color: var(--gold); }
.footer-verse {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.9rem;
  color: rgba(250,248,244,0.4);
  margin-bottom: 2.5rem;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  list-style: none;
  margin-bottom: 3rem;
}
.footer-links a {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(250,248,244,0.4);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--gold); }
.footer-copy { font-size: 0.72rem; color: rgba(250,248,244,0.2); letter-spacing: 0.05em; }

/* ── REVEAL ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 1; }
}

/* ── MOBILE ── */
@media (max-width: 768px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--ink);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    z-index: 99;
  }
  .nav-links a { font-size: 1.2rem; color: var(--cream); }
  body.nav-open .nav-links { display: flex; }
  .nav-menu-btn { display: flex; }
  .hero, .page-hero { padding: 0 1.5rem; }
  .page-hero { padding: 6rem 1.5rem 3rem; }
  .faith-inner, .tech-header, .about-inner { grid-template-columns: 1fr; gap: 3rem; padding: 0 1.5rem; }
  .tech-posts { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 220px; }
  .photo-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .photo-inner, .tech-inner { padding: 0 1.5rem; }
  .archive-post { grid-template-columns: 1fr; gap: 0.5rem; }
  footer { padding: 3rem 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
