/*
 * Story page styles
 * Extracted from story.html to keep HTML lean and maintainable.
 */
/* Story page styles (cinematic love letter) */

/* Prevent horizontal overflow on the entire page */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

/* ─────────────────────────────────────────────────────────────────────────────
   FULL-SCREEN CINEMATIC HERO
   ─────────────────────────────────────────────────────────────────────────────── */
.story-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* Keep the hero flush with the fixed header without hardcoding pixels. */
  margin-top: calc(-1 * var(--header-height));
  padding-top: var(--header-height);
}

.story-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.story-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.story-hero-overlay {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(180deg, 
      rgba(10, 10, 8, 0.3) 0%,
      rgba(10, 10, 8, 0.1) 30%,
      rgba(10, 10, 8, 0.2) 60%,
      rgba(10, 10, 8, 0.85) 100%
    );
  z-index: 1;
}

.story-hero-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(10, 10, 8, 0.5) 100%);
  z-index: 2;
}

.story-hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: var(--space-2xl);
  max-width: 900px;
}

.story-hero-kicker {
  font-family: var(--font-accent);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: var(--color-gold);
  margin-bottom: var(--space-lg);
  opacity: 0;
  animation: heroSlideUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}

.story-monogram {
  margin-bottom: var(--space-lg);
  opacity: 0;
  animation: heroSlideUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}

.story-monogram .monogram {
  width: 140px;
  height: 140px;
  filter: drop-shadow(0 0 30px rgba(201, 162, 39, 0.4));
}

.story-hero-title {
  font-family: 'Pinyon Script', cursive;
  font-size: clamp(3.5rem, 10vw, 7rem);
  color: var(--color-white);
  line-height: 1;
  margin-bottom: var(--space-sm);
  text-shadow: 
    0 2px 20px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(201, 162, 39, 0.3);
  opacity: 0;
  animation: nameReveal 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.story-hero-title .name {
  display: block;
}

.story-hero-title .amp {
  font-family: 'Baskerville', 'Didot', serif;
  font-style: italic;
  font-size: 0.45em;
  opacity: 1;
  display: block;
  margin: 0.1em 0;
  color: var(--color-gold);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
  .story-monogram .monogram {
    width: 100px;
    height: 100px;
  }
}

.story-hero-subtitle {
  font-family: var(--font-body);
  font-size: var(--text-xl);
  color: rgba(255, 255, 255, 0.85);
  font-weight: 300;
  max-width: 600px;
  margin: 0 auto var(--space-xl);
  line-height: var(--leading-relaxed);
  opacity: 0;
  animation: heroSlideUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.9s forwards;
}

.story-hero-scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-gold);
  font-family: var(--font-accent);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  opacity: 0;
  animation: heroSlideUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 1.3s forwards;
}

.story-hero-scroll svg {
  width: 24px;
  height: 24px;
  animation: float 2s ease-in-out infinite;
}

/* ─────────────────────────────────────────────────────────────────────────────
   MAIN STORY CONTAINER
   ─────────────────────────────────────────────────────────────────────────────── */
.story-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-lg);
}

/* ─────────────────────────────────────────────────────────────────────────────
   TIMELINE DESIGN
   Elegant vertical timeline with connected chapters
   ─────────────────────────────────────────────────────────────────────────────── */
.timeline {
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    var(--color-gold-light) 5%,
    var(--color-gold) 50%,
    var(--color-gold-light) 95%,
    transparent 100%
  );
  transform: translateX(-50%);
}

/* ─────────────────────────────────────────────────────────────────────────────
   CHAPTER STYLING
   Each chapter is a story block with unique layout
   ─────────────────────────────────────────────────────────────────────────────── */
.chapter {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 100px 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-3xl);
  align-items: start;
  scroll-margin-top: calc(var(--header-height) + var(--space-xl));
}

.chapter:nth-child(odd) .chapter-content {
  grid-column: 1;
  text-align: right;
}

.chapter:nth-child(odd) .chapter-visual {
  grid-column: 3;
}

.chapter:nth-child(even) .chapter-content {
  grid-column: 3;
  text-align: left;
}

.chapter:nth-child(even) .chapter-visual {
  grid-column: 1;
  grid-row: 1;
}

/* Timeline Node */
.chapter-node {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: var(--space-md);
  position: relative;
}

.chapter-number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cinzel', serif;
  font-size: var(--text-lg);
  color: var(--color-charcoal);
  font-weight: 600;
  box-shadow: 
    0 0 0 4px var(--color-bg-primary),
    0 0 20px rgba(201, 162, 39, 0.4);
  position: relative;
  z-index: 2;
}

.chapter-number::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid var(--color-gold-light);
  opacity: 0.5;
}

/* Chapter Content */
.chapter-content {
  padding: var(--space-xl);
  background: var(--color-bg-overlay);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-soft);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.chapter-content:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}

.chapter-label {
  font-family: var(--font-accent);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--color-gold);
  margin-bottom: var(--space-xs);
}

.chapter-title {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--color-text-primary);
  margin-bottom: var(--space-md);
  line-height: 1.2;
}

.chapter-date {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 8px 16px;
  background: var(--gradient-gold-soft);
  border: 1px solid var(--color-gold-light);
  border-radius: var(--radius-full);
  font-family: var(--font-accent);
  font-size: var(--text-xs);
  color: var(--color-gold-dark);
  letter-spacing: 0.1em;
  margin-bottom: var(--space-md);
}

.chapter-heading {
  font-family: 'Marcellus', serif;
  font-size: var(--text-xl);
  color: var(--color-text-primary);
  margin-bottom: var(--space-md);
}

.chapter-text {
  color: var(--color-text-secondary);
  font-size: var(--text-base);
  line-height: var(--leading-loose);
  margin-bottom: var(--space-md);
}

.chapter-text:last-child {
  margin-bottom: 0;
}

.chapter-text .highlight {
  color: var(--color-text-primary);
  font-weight: 500;
}

.chapter-text .quote {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  color: var(--color-gold-rich);
  font-size: 1.1em;
}

/* Chapter Visual (optional image/element) */
.chapter-visual {
  position: relative;
}

.chapter-image {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-medium);
  border: 3px solid var(--color-white);
}

/* ─────────────────────────────────────────────────────────────────────────────
   FULL-WIDTH PHOTO MOMENTS
   Cinematic photo breaks between chapters
   ─────────────────────────────────────────────────────────────────────────────── */
.photo-moment {
  position: relative;
  width: 100%;
  max-width: 100vw;
  margin-top: var(--space-3xl);
  margin-bottom: var(--space-3xl);
  overflow: hidden;
}

.photo-moment-inner {
  position: relative;
  height: 80vh;
  min-height: 500px;
  max-height: 900px;
  overflow: hidden;
}

.photo-moment-bg {
  position: absolute;
  inset: 0;
  display: flex;
}

.photo-moment-bg img {
  flex: 1;
  object-fit: cover;
}

.photo-moment-overlay {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(180deg, 
      rgba(10, 10, 8, 0.6) 0%,
      rgba(10, 10, 8, 0.2) 40%,
      rgba(10, 10, 8, 0.2) 60%,
      rgba(10, 10, 8, 0.6) 100%
    );
}

.photo-moment-quote {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xl);
  overflow: hidden;
}

.photo-moment-quote blockquote {
  font-family: 'Pinyon Script', cursive;
  font-size: clamp(2rem, 5vw, 4rem);
  color: var(--color-white);
  text-shadow: 
    0 2px 10px rgba(0, 0, 0, 0.8),
    0 4px 20px rgba(0, 0, 0, 0.5);
  max-width: 800px;
  width: 100%;
  line-height: 1.3;
  margin: 0 auto;
}

/* Photo Grid Within Moments */
.photo-moment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  height: 100%;
}

.photo-moment-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.photo-moment-grid img:hover {
  transform: scale(1.05);
  z-index: 2;
  position: relative;
}

/* 2-column photo moment variant */
.photo-moment-duo {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4px;
  height: 100%;
}

.photo-moment-duo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ─────────────────────────────────────────────────────────────────────────────
   LOVE NOTE STYLING
   Special callout for romantic quotes
   ─────────────────────────────────────────────────────────────────────────────── */
.love-note {
  position: relative;
  padding: var(--space-2xl);
  margin: var(--space-2xl) auto;
  max-width: 700px;
  background: 
    linear-gradient(135deg, 
      rgba(255, 253, 245, 0.9) 0%, 
      rgba(255, 250, 240, 0.85) 100%
    );
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-gold-light);
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  text-align: center;
}

.love-note::before {
  content: '❦';
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.5rem;
  color: var(--color-gold);
  background: var(--color-bg-primary);
  padding: 0 var(--space-md);
}

.love-note-text {
  font-family: 'Pinyon Script', cursive;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--color-charcoal);
  line-height: 1.4;
}

/* ─────────────────────────────────────────────────────────────────────────────
   CULTURAL PROVERBS SECTION
   Enhanced wisdom section with cultural motifs
   ─────────────────────────────────────────────────────────────────────────────── */
.proverbs-section {
  position: relative;
  padding: var(--space-3xl) var(--space-lg);
  margin: var(--space-3xl) 0;
  text-align: center;
}

.proverbs-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 1px;
  background: var(--gradient-gold);
}

.proverbs-header {
  margin-bottom: var(--space-2xl);
}

.proverbs-kicker {
  font-family: var(--font-accent);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--color-gold);
  margin-bottom: var(--space-sm);
}

.proverbs-title {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--color-text-primary);
}

.proverbs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-xl);
  max-width: 1000px;
  margin: 0 auto;
}

.proverb-card {
  position: relative;
  padding: var(--space-2xl);
  background: var(--color-bg-overlay);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border-light);
  text-align: center;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.proverb-card:hover {
  transform: translateY(-6px);
}

.proverb-lang {
  font-family: var(--font-accent);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-gold);
  margin-bottom: var(--space-md);
}

.proverb-text {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: var(--text-xl);
  color: var(--color-text-primary);
  margin-bottom: var(--space-md);
  line-height: var(--leading-relaxed);
}

.proverb-translation {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ─────────────────────────────────────────────────────────────────────────────
   FINAL CTA SECTION
   Romantic call-to-action
   ─────────────────────────────────────────────────────────────────────────────── */
.story-cta {
  position: relative;
  text-align: center;
  padding: var(--space-3xl) var(--space-lg);
  background: var(--color-bg-overlay);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border-light);
  margin: var(--space-2xl) auto;
  max-width: 700px;
}

.story-cta-title {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--color-text-primary);
  margin-bottom: var(--space-md);
}

.story-cta-text {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xl);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.story-cta-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* ─────────────────────────────────────────────────────────────────────────────
   DECORATIVE ELEMENTS
   ─────────────────────────────────────────────────────────────────────────────── */
.decorative-flourish {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin: var(--space-2xl) 0;
  color: var(--color-gold);
  opacity: 0.6;
}

.decorative-flourish::before,
.decorative-flourish::after {
  content: '';
  width: 60px;
  height: 1px;
  background: var(--gradient-gold);
}
