:root {
  --bg: #fbf8f4;
  --bg-alt: #f3ece5;
  --ink: #2e2a27;
  --muted: #8a7f76;
  --accent: #a8707c;
  --gold: #b8975a;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  text-align: center;
  color: var(--accent);
  line-height: 1.1;
  margin-bottom: 3rem;
}
h2 span { font-style: italic; color: var(--muted); font-size: 0.7em; }

h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.8rem;
  line-height: 1.2;
  margin-bottom: 0.6rem;
}

section { padding: 6rem 16px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #2f2723;
  color: #fff;
  overflow: hidden;
}
.hero-photo {
  grid-column: 2;
  grid-row: 1;
  background: url("images/she-said-yes.jpg") center 35% / cover no-repeat;
  animation: fadein 2s ease both;
}
@keyframes fadein { from { opacity: 0; } }

.hero-text {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  justify-self: center;
  text-align: center;
  padding: 0 24px;
  animation: fadeup 1.6s ease both;
}
@keyframes fadeup { from { opacity: 0; transform: translateY(20px); } }

.eyebrow {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
}
h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(4rem, 8.5vw, 8rem);
  line-height: 1;
  letter-spacing: 0.01em;
}
.route {
  margin-top: 1.2rem;
  font-size: 0.85rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
}
.heart { color: #f2c4cc; margin: 0 0.4em; }
.date {
  font-family: var(--serif);
  font-size: 1.4rem;
  margin-top: 0.4rem;
  letter-spacing: 0.2em;
}
.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 25%;
  z-index: 2;
  transform: translateX(-50%);
  color: #fff;
  text-decoration: none;
  font-size: 1.4rem;
  opacity: 0.8;
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translate(-50%, 8px); } }

/* ---------- Letter ---------- */
.letter {
  max-width: 640px;
  margin: 0 auto;
  font-family: var(--serif);
  font-size: 1.4rem;
  line-height: 1.6;
}
.letter h2 { margin-bottom: 2rem; }
.letter p + p { margin-top: 1.2rem; }
.signature { text-align: right; font-style: italic; color: var(--accent); }

/* ---------- Story ---------- */
.story { background: var(--bg-alt); }
.chapter {
  max-width: 1000px;
  margin: 0 auto 5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.chapter:last-child { margin-bottom: 0; }
.chapter img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 20px 40px -20px rgba(60, 40, 30, 0.35);
}
.chapter img.wide { aspect-ratio: 4 / 3; object-position: center 60%; }
.chapter.reverse img { order: 2; }
.chapter-date {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.chapter-text p:last-child { color: #5a524c; font-size: 1.05rem; }

/* ---------- Journey ---------- */
.journey { text-align: center; }
.places {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}
.place-name {
  font-family: var(--serif);
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1;
}
.place-sub {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.4rem;
}
.distance {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--accent);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  white-space: nowrap;
}
.line { flex: 1; border-top: 1px dashed var(--accent); min-width: 20px; }
.journey-note {
  margin-top: 2.5rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--muted);
}

/* ---------- What's next ---------- */
.next { background: var(--bg-alt); }
.next-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.next-item {
  background: var(--bg);
  padding: 2.5rem 2rem;
  border-radius: 6px;
  text-align: center;
}
.next-num { font-family: var(--serif); color: var(--gold); font-size: 1.1rem; letter-spacing: 0.2em; }
.next-item p:last-child { color: #5a524c; }

/* ---------- Footer ---------- */
footer {
  text-align: center;
  padding: 5rem 16px 3rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-big {
  font-family: var(--serif);
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
  font-size: 2.2rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* ---------- Phones ---------- */
@media (max-width: 720px) {
  section { padding: 4rem 16px; }
  h2 { margin-bottom: 2rem; }
  .chapter { grid-template-columns: 1fr; gap: 1.5rem; margin-bottom: 3.5rem; }
  .chapter.reverse img { order: 0; }
  .chapter-text { text-align: center; }
  .places { flex-direction: column; gap: 1rem; }
  .distance { width: 60%; }
  .next-grid { grid-template-columns: 1fr; gap: 1rem; }
  .letter { font-size: 1.25rem; }
}

/* Hero on tablets and phones: full-bleed photo, text at the bottom */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-photo { grid-column: 1; grid-row: 1; }
  .hero::after {
    content: "";
    grid-column: 1; grid-row: 1;
    background: linear-gradient(to top, rgba(30,22,18,0.85) 0%, rgba(30,22,18,0.25) 45%, transparent 70%);
  }
  .hero-text { grid-column: 1; grid-row: 1; align-self: end; padding-bottom: 5.5rem; z-index: 1; }
  .hero h1 { font-size: clamp(3.6rem, 16vw, 6rem); }
  .scroll-cue { left: 50%; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
}
