/* ============================================================
   Modern Day Disciple. Visual enhancement layer.
   Atmosphere, photography, chakra motif, and gentle motion.
   Loaded after styles.css so these rules refine what is there.
   ============================================================ */

/* ----- Paper grain. A whisper of texture over the whole page ----- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Keep real content above the grain veil. */
main,
.site-footer {
  position: relative;
  z-index: 2;
}

/* ----- Chakra rule. A hair-thin green to violet line ----- */
.chakra-rule {
  display: block;
  width: 76px;
  height: 2px;
  border-radius: 2px;
  background: var(--chakra);
  margin: 1.5rem 0 0;
}
.center .chakra-rule,
.chakra-rule.is-center {
  margin-left: auto;
  margin-right: auto;
}

/* ----- Botanical sprout, drawn in a single weight ----- */
.sprout-divider {
  width: 52px;
  height: 32px;
  display: block;
  margin: 0 auto 1.5rem;
  fill: none;
  stroke: #8fb89c;
  stroke-width: 1.4;
  stroke-linecap: round;
  opacity: 0.85;
}

.seam-sprout {
  display: flex;
  justify-content: center;
  padding: 3.5rem 0 0;
}
.seam-sprout .sprout-divider {
  stroke: var(--green);
  width: 60px;
  height: 38px;
}

/* ----- Scroll reveal -----
   Only hidden when JavaScript is present (html.js). Without JS, every
   [data-reveal] element stays fully visible. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1s cubic-bezier(0.16, 0.7, 0.3, 1),
    transform 1s cubic-bezier(0.16, 0.7, 0.3, 1);
  will-change: opacity, transform;
}
.js [data-reveal].in {
  opacity: 1;
  transform: none;
}
[data-reveal][data-delay="1"] {
  transition-delay: 0.12s;
}
[data-reveal][data-delay="2"] {
  transition-delay: 0.24s;
}
[data-reveal][data-delay="3"] {
  transition-delay: 0.36s;
}

/* ============================================================
   PHOTOGRAPHIC HERO (home)
   ============================================================ */
.hero-photo {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 7rem 0 5rem;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

/* Soft veil so the cream headline stays legible. Muted, never stark.
   Anchored to the left, where the text column sits, so the lake stays
   visible on the right. */
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
      102deg,
      rgba(18, 32, 26, 0.74) 0%,
      rgba(18, 32, 26, 0.5) 36%,
      rgba(18, 32, 26, 0.2) 68%,
      rgba(18, 32, 26, 0.32) 100%
    ),
    linear-gradient(
      180deg,
      rgba(18, 32, 26, 0.12) 0%,
      rgba(18, 32, 26, 0.18) 55%,
      rgba(18, 32, 26, 0.46) 100%
    );
}

/* Drifting aura of heart green and crown violet over the canopy. */
.hero-aura {
  position: absolute;
  inset: -20%;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
      38% 40% at 30% 35%,
      rgba(61, 122, 85, 0.32) 0%,
      rgba(61, 122, 85, 0) 70%
    ),
    radial-gradient(
      34% 38% at 74% 62%,
      rgba(92, 79, 163, 0.28) 0%,
      rgba(92, 79, 163, 0) 70%
    );
  mix-blend-mode: screen;
  animation: aura-drift 26s ease-in-out infinite alternate;
}
@keyframes aura-drift {
  0% {
    transform: translate3d(-3%, -2%, 0) scale(1);
  }
  50% {
    transform: translate3d(2%, 3%, 0) scale(1.08);
  }
  100% {
    transform: translate3d(4%, -3%, 0) scale(1.04);
  }
}

.hero-photo .hero-content {
  position: relative;
  z-index: 2;
}
.hero-photo .eyebrow {
  color: #a7cdb4;
}
.hero-photo .hero-title {
  color: #f4f7f4;
}
.hero-photo .hero-text {
  color: #e4ebe5;
}
.hero-photo .btn-ghost {
  border-color: rgba(244, 247, 244, 0.7);
  color: #f4f7f4;
}
.hero-photo .btn-ghost:hover {
  background: rgba(244, 247, 244, 0.12);
  color: #fff;
}

/* ============================================================
   PHOTO BANDS (verse breather, closing sign-off)
   ============================================================ */
.photoband {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 52vh;
  padding: 7rem 0;
}
.photoband-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.photoband-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photoband-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(18, 32, 26, 0.46) 0%,
    rgba(18, 32, 26, 0.52) 100%
  );
}
.photoband-content {
  position: relative;
  z-index: 2;
}

.verse {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.7rem, 3.6vw, 2.7rem);
  line-height: 1.4;
  color: #f1f5f2;
  max-width: 22ch;
  margin: 1.5rem auto 0;
}

/* A verse that must never wrap. Scales with the viewport so it stays on
   one line down to small phones. */
.verse-1line {
  max-width: none;
  white-space: nowrap;
  font-size: clamp(1.3rem, 4.8vw, 2.6rem);
}

/* Full-image band: show the whole photograph (no cover crop, no parallax
   zoom) with the verse centered over it. */
.photoband.is-fullimg {
  min-height: 0;
  padding: 0;
  display: block;
}
.photoband.is-fullimg .photoband-media {
  position: relative;
  inset: auto;
}
.photoband.is-fullimg .photoband-media img {
  height: auto;
  transform: none !important;
}
.photoband.is-fullimg .photoband-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.verse-cite {
  display: block;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #9ec7ab;
  margin-top: 1.75rem;
}

/* Closing sign-off over the misted forest */
.photoband-closing {
  min-height: 60vh;
  text-align: center;
}
.photoband-closing .closing-line {
  color: #f1f5f2;
  position: relative;
  z-index: 2;
}
.photoband-closing .sprout-divider {
  position: relative;
  z-index: 2;
  stroke: #a7cdb4;
}

/* ============================================================
   PHOTOGRAPHIC POST HERO
   ============================================================ */
.post-hero {
  position: relative;
  height: 56vh;
  min-height: 360px;
  overflow: hidden;
  margin-bottom: -6rem; /* let the title card lift over the image */
}
.post-hero-media {
  position: absolute;
  inset: 0;
}
.post-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
}
.post-hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(18, 32, 26, 0.28) 0%,
    rgba(18, 32, 26, 0.2) 45%,
    var(--bg) 100%
  );
}
.post.has-hero .post-header {
  position: relative;
  z-index: 2;
  background: var(--bg);
  border-radius: 14px;
  padding: 2.75rem 2rem 2.25rem;
  box-shadow: 0 30px 60px -40px rgba(22, 40, 32, 0.45);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* ----- Refined cards: chakra hairline border on hover ----- */
.invite-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 1px;
  background: var(--chakra);
  opacity: 0;
  transition: opacity 0.3s ease;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}
.invite-card:hover::before {
  opacity: 0.7;
}

/* ----- Page header banner image (Digital Scrolls) ----- */
.page-header-media {
  margin: 2.75rem 0 0;
}
.page-header-media img {
  display: block;
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 30px 60px -42px rgba(22, 40, 32, 0.5);
}

/* ----- Pull quote ----- */
.pullquote-band {
  padding: 6.5rem 0;
}
.pullquote {
  margin: 0;
  position: relative;
}
.pullquote::before {
  content: "\201C";
  display: block;
  font-family: var(--serif);
  font-size: 4.5rem;
  line-height: 0.5;
  color: var(--green);
  opacity: 0.5;
  margin-bottom: 0.75rem;
}
.pullquote p {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.7rem, 3.4vw, 2.7rem);
  line-height: 1.42;
  color: var(--anchor);
  max-width: 22ch;
  margin: 0 auto;
}
.pullquote cite {
  display: block;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green);
  margin-top: 1.75rem;
}

/* ----- Editorial type polish: ligatures and old-style numerals ----- */
.prose,
.hero-text,
.page-lead {
  font-feature-settings: "liga" 1, "onum" 1, "kern" 1;
}
.hero-title,
.page-title,
.post-title,
.feature-title {
  font-feature-settings: "liga" 1, "dlig" 1, "kern" 1;
}

/* ============================================================
   RESPONSIVE TUNING FOR THE PHOTO LAYER
   ============================================================ */
@media (max-width: 820px) {
  .hero-photo {
    min-height: 88vh;
    padding: 5rem 0 4rem;
  }
  .photoband {
    min-height: 46vh;
    padding: 5rem 0;
  }
  .post-hero {
    height: 42vh;
    min-height: 280px;
    margin-bottom: -4rem;
  }
  .post.has-hero .post-header {
    padding: 2rem 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-aura {
    animation: none;
  }
  [data-parallax] {
    transform: none !important;
  }
}
