:root {
  --ink: #1f2b23;
  --soft-ink: #2f3c31;
  --cream: #f6f1e7;
  --blush: #d8ccba;
  --rose: #b08a3a;
  --sage: #3c4b3f;
  --gold: #c89b3c;
  --white: #ffffff;
  --shadow: 0 30px 70px rgba(20, 27, 22, 0.18);
  --card-border: 1px solid rgba(200, 155, 60, 0.2);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Nunito", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top, #efe2d1 0%, #e1d1bc 45%, #d1bea7 100%);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

main {
  position: relative;
  z-index: 1;
}

h1,
h2,
h3 {
  font-family: "Cormorant Garamond", serif;
  margin: 0;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 600;
}

h3 {
  font-size: 1.4rem;
  font-weight: 600;
}

p {
  margin: 0;
  color: var(--soft-ink);
  font-size: 1.02rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.82rem;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.name-divider {
  color: var(--gold);
  padding: 0 0.35rem;
}

.subtitle {
  font-size: 1.15rem;
  max-width: 680px;
  margin-top: 1rem;
}


.hero {
  padding: clamp(3rem, 8vw, 6rem) clamp(1.5rem, 6vw, 5rem) 2.5rem;
}

.hero-content {
  max-width: 1100px;
  margin: 0 auto;
}

.stream-shell {
  margin-top: 2rem;
}

.stream-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 26px;
  padding: clamp(1.5rem, 3vw, 2.2rem);
  box-shadow: var(--shadow);
  border: var(--card-border);
  backdrop-filter: blur(8px);
}

.stream-frame {
  position: relative;
  padding-top: 56.25%;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, #f6e2d8, #efe4d8);
}

.stream-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.stream-note {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--soft-ink);
}

.section {
  padding: clamp(2.5rem, 7vw, 5rem) clamp(1.5rem, 6vw, 5rem);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 2.5rem;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.about-card {
  background: var(--white);
  border-radius: 18px;
  padding: 1.5rem;
  border: var(--card-border);
  box-shadow: 0 18px 32px rgba(60, 48, 44, 0.08);
}

.timeline {
  background: linear-gradient(180deg, rgba(216, 204, 186, 0.6), rgba(246, 241, 231, 0.98));
}

.story-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.story-card {
  display: grid;
  grid-template-columns: minmax(0, 360px) 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 1.75rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  border: var(--card-border);
  box-shadow: 0 22px 40px rgba(60, 48, 44, 0.1);
}

.story-card:nth-child(even) {
  grid-template-columns: 1fr minmax(0, 360px);
}

.story-card:nth-child(even) .story-photo {
  order: 2;
}

.story-card:nth-child(even) .story-text {
  order: 1;
  text-align: right;
}

.story-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.story-image {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: 20px;
  display: block;
  box-shadow: 0 16px 32px rgba(60, 48, 44, 0.14);
}

.story-date {
  font-size: 0.98rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.gallery {
  background: linear-gradient(180deg, rgba(246, 241, 231, 0.98), rgba(216, 204, 186, 0.55));
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
}

.gallery-item {
  min-height: 200px;
  border-radius: 20px;
  border: 1px solid rgba(176, 108, 79, 0.2);
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 16px 30px rgba(60, 48, 44, 0.08);
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 4 / 3;
}

.gallery-empty {
  margin-top: 1.5rem;
  text-align: center;
  color: var(--soft-ink);
  font-size: 0.95rem;
}

.scripture {
  background: linear-gradient(180deg, rgba(246, 241, 231, 0.98), rgba(216, 204, 186, 0.55));
}

.scripture-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.scripture-card {
  margin: 0;
  padding: 1.5rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  border: var(--card-border);
  box-shadow: 0 18px 32px rgba(31, 43, 35, 0.12);
}

.scripture-card p {
  font-size: 1rem;
  color: var(--soft-ink);
}


.comforting-words {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.05rem;
  color: var(--soft-ink);
}

.slideshow-cta {
  padding-top: 0;
}

.slideshow-card {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  border: var(--card-border);
  box-shadow: var(--shadow);
  display: grid;
  gap: 1.5rem;
}

.slideshow-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.slideshow-note {
  font-size: 0.95rem;
  color: var(--soft-ink);
}

.btn-primary,
.btn-ghost {
  border: none;
  border-radius: 999px;
  padding: 0.7rem 1.6rem;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: var(--gold);
  color: #241c12;
  box-shadow: 0 14px 26px rgba(200, 155, 60, 0.3);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.9);
  color: var(--soft-ink);
  border: 1px solid rgba(200, 155, 60, 0.35);
}

.btn-primary:hover,
.btn-ghost:hover {
  transform: translateY(-2px);
}

.btn-primary:disabled,
.btn-ghost:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.slideshow {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slideshow[hidden] {
  display: none;
}

.slideshow-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 28, 23, 0.9);
}

.slideshow-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slideshow-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #101510;
  transition: opacity 1s ease;
  position: relative;
  z-index: 0;
}

.slideshow-image.is-fading {
  opacity: 0;
}

.slideshow-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 14, 12, 0.65) 0%, rgba(10, 14, 12, 0.15) 55%, rgba(10, 14, 12, 0.7) 100%);
  pointer-events: none;
  z-index: 1;
}

.slideshow-caption {
  position: absolute;
  bottom: 6%;
  left: 6%;
  transform: none;
  width: min(700px, 70vw);
  text-align: left;
  z-index: 2;
}

.slideshow-text {
  font-family: "Great Vibes", cursive;
  font-size: clamp(1.8rem, 3.6vw, 3.2rem);
  color: #f6efe2;
  text-shadow:
    -2px -2px 0 rgba(15, 18, 16, 0.9),
    2px -2px 0 rgba(15, 18, 16, 0.9),
    -2px 2px 0 rgba(15, 18, 16, 0.9),
    2px 2px 0 rgba(15, 18, 16, 0.9),
    0 8px 18px rgba(0, 0, 0, 0.45);
}



.legacy {
  padding-bottom: 4rem;
}

.legacy-card {
  max-width: 780px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 26px;
  padding: clamp(2rem, 5vw, 3rem);
  border: 1px solid rgba(199, 160, 109, 0.3);
  box-shadow: var(--shadow);
  text-align: center;
}

.legacy-card .closing {
  margin-top: 1.5rem;
  font-style: italic;
  color: var(--rose);
}

.footer {
  padding: 2.5rem 1.5rem 3rem;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(91, 74, 69, 0.8);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.petal-layer {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.petal {
  position: absolute;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle at 35% 35%, rgba(200, 155, 60, 0.35), rgba(200, 155, 60, 0));
  border-radius: 50%;
  opacity: 0.55;
  filter: blur(1px);
  animation: float 64s ease-in-out infinite alternate;
  will-change: transform;
}

.petal:nth-child(1) {
  top: 10%;
  left: 5%;
  width: 260px;
  height: 260px;
  animation-duration: 78s;
  animation-delay: -10s;
}

.petal:nth-child(2) {
  top: 40%;
  left: 75%;
  width: 200px;
  height: 200px;
  animation-duration: 72s;
  animation-delay: -22s;
}

.petal:nth-child(3) {
  top: 70%;
  left: 10%;
  width: 180px;
  height: 180px;
  animation-duration: 68s;
  animation-delay: -18s;
}

.petal:nth-child(4) {
  top: 15%;
  left: 55%;
  width: 240px;
  height: 240px;
  animation-duration: 82s;
  animation-delay: -26s;
}

.petal:nth-child(5) {
  top: 60%;
  left: 45%;
  width: 210px;
  height: 210px;
  animation-duration: 76s;
  animation-delay: -14s;
}

.petal:nth-child(6) {
  top: 85%;
  left: 70%;
  width: 190px;
  height: 190px;
  animation-duration: 70s;
  animation-delay: -30s;
}

.petal:nth-child(7) {
  top: 25%;
  left: 30%;
  width: 230px;
  height: 230px;
  animation-duration: 74s;
  animation-delay: -16s;
}

.petal:nth-child(8) {
  top: 50%;
  left: 90%;
  width: 170px;
  height: 170px;
  animation-duration: 86s;
  animation-delay: -12s;
}

@keyframes float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(36px, -40px, 0) scale(1.08);
  }
}

@media (max-width: 820px) {
  .story-card {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .story-card:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .story-card:nth-child(even) .story-photo,
  .story-card:nth-child(even) .story-text {
    order: initial;
    text-align: left;
  }

  .slideshow-caption {
    bottom: 5%;
    left: 5%;
    width: 85vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .petal {
    animation: none;
  }
}
