/* ============================================================
   Save the Date — Michie & Charlie
   Following the Figma design: sage-green ground, forest-green
   type, Corben (display) + Sorts Mill Goudy (serif body).
   ============================================================ */
:root {
  --bg:      #f3f2ee;   /* soft warm gray */
  --ink:     #010101;   /* near-black — headline, date, closing */
  --green:   #5c7945;   /* olive/sage — captions */
  --accent:  #01973d;   /* bright green — eyebrow, button */
  --gray:    #424c4b;   /* (unused) */
  --card:    #ffffff;
  --radius:  12px;
  --maxw:    1100px;
}

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

body {
  font-family: "Sorts Mill Goudy", Georgia, serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Layout ---------- */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 5.5rem) clamp(1.25rem, 5vw, 2rem);
}
.section__title {
  font-family: "Corben", serif;
  font-weight: 400;
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  line-height: 1.1;
  text-align: center;
  margin-bottom: 1rem;
}

/* ---------- HERO ---------- */
.hero {
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-start;
  text-align: center;
  gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(2rem, 6vh, 4rem) clamp(1.25rem, 6vw, 3rem) clamp(.5rem, 1.5vw, 1rem);
}
.hero__head { position: relative; display: flex; flex-direction: column; align-items: center; gap: clamp(.75rem, 2vw, 1.5rem); }

/* ---------- Hand-drawn doodles ---------- */
.doodle { display: block; height: auto; pointer-events: none; user-select: none; }
.doodle--sun { width: clamp(72px, 9vw, 116px); aspect-ratio: 145 / 54.6; height: auto; margin-bottom: -.25rem; }
.doodle--squiggle {
  position: absolute; width: clamp(34px, 4vw, 56px);
  right: clamp(-8px, -1vw, 4px); top: 58%;
}
.hero__cta { position: relative; display: inline-flex; align-items: center; }
.doodle--arrow {
  position: absolute; right: 100%; top: 50%; transform: translateY(-50%) rotate(48deg);
  margin-right: 2.5rem;
  width: clamp(58px, 7.2vw, 94px);
  aspect-ratio: 91.0933 / 96.0871; height: auto;
}
.doodle--hearts { width: clamp(88px, 11vw, 140px); aspect-ratio: 145 / 144; height: auto; margin: .75rem auto 0; }

@media (max-width: 720px) { .doodle--squiggle { display: none; } }
.hero__eyebrow {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-size: clamp(.7rem, 1.3vw, 1rem);  /* smaller */
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
}
.hero__title {
  font-family: "Corben", serif;
  font-weight: 400;
  color: var(--ink);
  font-size: clamp(2.4rem, 8.8vw, 7.7rem);  /* up to ~123px */
  line-height: 1.1;
  letter-spacing: -.01em;
  max-width: 16ch;
}
.hero__meta {
  font-size: clamp(.9rem, 1.8vw, 1.3rem);  /* smaller */
  line-height: 1.5;
}
.hero__meta p { margin: 0; }

/* ---------- Outlined button (Add to calendar) ---------- */
.btn-cal {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-size: clamp(.8rem, 1.4vw, 1.05rem);
  text-transform: uppercase;
  letter-spacing: .03em;
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  padding: .5em 1em;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, transform .15s ease;
}
.btn-cal:hover { background: var(--accent); color: var(--bg); }

/* ---------- Photo strip (pinned horizontal scroll) ---------- */
.hscroll { position: relative; margin-top: 16px; }   /* total height set by JS */
.hscroll__sticky {
  position: sticky; top: 0;
  height: 100svh;
  display: flex; align-items: center;
  overflow: hidden;
}
.filmstrip__track {
  display: flex; align-items: flex-start; gap: 16px; list-style: none;
  padding: 0 clamp(2rem, 6vw, 6rem);
  will-change: transform;
}

.photo-card {
  scroll-snap-align: center;
  flex: 0 0 auto;            /* size to the image's natural ratio */
  background: #fff;          /* polaroid frame */
  padding: 12px;   /* even frame */
  border-radius: 0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .1);   /* subtle lift */
}
/* each photo: its own height + a vertical stagger (higher/lower) */
/* portraits (1,3,5,7,9,10,11,12) sized up; landscapes (2,4,6) & square (8) kept;
   margin-tops spread wider for a more scattered, varied stagger */
.photo-card:nth-child(1)  { --h: clamp(360px, 60vh, 600px); margin-top: 40px;  transform: rotate(-2.5deg); }  /* Yangshuo (L, focal) */
.photo-card:nth-child(2)  { --h: clamp(335px, 55vh, 560px); margin-top: 120px; transform: rotate(4deg);    }  /* Agra (P) */
.photo-card:nth-child(3)  { --h: clamp(300px, 49vh, 490px); margin-top: 20px;  transform: rotate(-1.5deg); }  /* Dolomites (L) */
.photo-card:nth-child(4)  { --h: clamp(330px, 55vh, 560px); margin-top: 125px; transform: rotate(0deg);    }  /* Tahoe (P) */
.photo-card:nth-child(5)  { --h: clamp(300px, 50vh, 500px); margin-top: 40px;  transform: rotate(3deg);    }  /* Cozumel (L) */
.photo-card:nth-child(6)  { --h: clamp(300px, 49vh, 490px); margin-top: 90px;  transform: rotate(0deg);    }  /* Ghost Ranch (L) */
.photo-card:nth-child(7)  { --h: clamp(330px, 55vh, 560px); margin-top: 30px;  transform: rotate(-4deg);   }  /* Ninh Binh (P) */
.photo-card:nth-child(8)  { --h: clamp(255px, 42vh, 417px); margin-top: 160px; transform: rotate(2.5deg);  }  /* Cenote / Dive (L, wide) */
.photo-card:nth-child(9)  { --h: clamp(335px, 55vh, 560px); margin-top: 45px;  transform: rotate(-3deg);   }  /* Sugartown (P) */
.photo-card:nth-child(10) { --h: clamp(300px, 50vh, 490px); margin-top: 120px; transform: rotate(3.5deg);  }  /* Who wore it better (sq) */
/* show each photo at its natural ratio, just bounded to a common height */
.photo-card__img img {
  display: block;
  height: var(--h, clamp(300px, 52vh, 520px));
  width: auto;
  max-width: 92vw;
  border-radius: 0;
}
.photo-card__cap {
  color: var(--ink);
  padding-top: 12px;
  text-align: left;
}
.photo-card__cap .cap { font-family: "Sorts Mill Goudy", serif; font-size: 0.875rem; }

/* arrows — overlaid on top of the photos */
.filmstrip__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 3; cursor: pointer;
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(14, 59, 18, .82); color: #fff;
  border: none; font-family: "Corben", serif; font-size: 1.7rem; line-height: 1;
  display: grid; place-items: center;
  box-shadow: 0 6px 18px rgba(14, 59, 18, .35);
  transition: background .15s ease, transform .15s ease;
}
.filmstrip__arrow:hover { background: var(--green); transform: translateY(-50%) scale(1.08); }
.filmstrip__arrow--prev { left: 10px; }
.filmstrip__arrow--next { right: 10px; }

@media (max-width: 720px) {
  .filmstrip__arrow { width: 44px; height: 44px; font-size: 1.4rem; }
}

/* ---------- Closing line ---------- */
.closing { text-align: center; padding-top: clamp(1rem, 3vw, 2rem); }
.closing__text { font-size: clamp(.9rem, 1.8vw, 1.25rem); line-height: 1.6; }

/* ---------- Keep in touch ---------- */
.touch { text-align: center; }
.touch__lead { font-size: clamp(1rem, 2.3vw, 1.35rem); max-width: 540px; margin: 0 auto 2rem; }
.touch__form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
  max-width: 560px; margin: 0 auto; text-align: left;
  background: var(--card); padding: 2rem;
  border: 2px solid var(--green); border-radius: var(--radius);
}
.field { display: flex; flex-direction: column; gap: .35rem; }
.field--wide { grid-column: 1 / -1; }
.field label { font-size: 1rem; }
.field .opt { opacity: .55; }
.field input, .field textarea {
  font-family: "Sorts Mill Goudy", serif; font-size: 1.05rem;
  padding: .65rem .8rem; border: 1.5px solid #c4cdba; border-radius: 6px;
  background: #fff; color: var(--green); resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green); }
.touch__form .btn-cal { grid-column: 1 / -1; }
.touch__status { grid-column: 1 / -1; text-align: center; min-height: 1.2em; }
.touch__status.ok  { color: var(--green); }
.touch__status.err { color: #9b4a2f; }

/* ---------- Credit ---------- */
.footer { text-align: center; padding: 2rem 1.25rem 3rem; }
.footer__credit {
  font-family: "Poppins", sans-serif;
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: .7;
}

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .touch__form { grid-template-columns: 1fr; }
}

/* ---------- Scroll progress indicator ---------- */
.scrollnav {
  position: fixed; z-index: 60;
  right: clamp(12px, 2.2vw, 30px);
  top: 50%; transform: translateY(-50%);
  pointer-events: none;
}
.scrollnav__track {
  position: relative;
  width: 34px;
  border-radius: 999px;
  background: rgba(252, 251, 247, .5);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(20, 18, 14, .12), inset 0 0 0 1px rgba(255, 255, 255, .6);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 0;
}
/* one item per section: initial content · carousel · footer */
.scrollnav__dot {
  position: relative; overflow: hidden;
  width: 6px; height: 6px; border-radius: 999px;
  background: rgba(40, 36, 30, .28);
  transition: height .35s cubic-bezier(.4, 0, .2, 1), background .25s ease;
}
.scrollnav__dot.is-active { background: var(--accent); }
/* carousel section: the dot stretches into a track holding a moving fill */
.scrollnav__dot.is-carousel { height: 34px; background: rgba(40, 36, 30, .18); }
.scrollnav__fill {
  position: absolute; left: 0; top: 0;
  width: 100%; height: 12px;
  border-radius: 999px;
  background: var(--accent);
  opacity: 0; transition: opacity .25s ease;
}
.scrollnav__dot.is-carousel .scrollnav__fill { opacity: 1; }
@media (max-width: 640px) { .scrollnav { display: none; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
