/* ============================================================
   For Nanditha — with all my love.
   Mobile-first. No build step.
   ============================================================ */

:root {
  --cream:      #fbf5ec;
  --cream-2:    #f3e9d8;
  --blush:      #e2929e;
  --rose:       #c46476;
  --wine:       #6f1f33;
  --gold:       #b8945a;
  --gold-soft:  #d8b87a;
  --ink:        #3a2a2a;
  --ink-soft:   #6c5757;

  --serif:  "Cormorant Garamond", "Iowan Old Style", "Times New Roman", serif;
  --sans:   "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --script: "Great Vibes", "Brush Script MT", cursive;

  --container: 1100px;
  --shadow-soft: 0 30px 80px -30px rgba(111, 31, 51, 0.35);
}

* { box-sizing: border-box; min-width: 0; }
html, body { margin: 0; padding: 0; max-width: 100%; }

/* belt-and-braces: no horizontal scroll anywhere on the page */
html { overflow-x: clip; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { overflow-x: clip; }

@supports not (overflow: clip) {
  html, body { overflow-x: hidden; }
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.7;
  letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* ---------- shared bits ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container.narrow { max-width: 720px; }
.center { text-align: center; }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .35em;
  font-size: 12px;
  font-weight: 500;
  color: var(--rose);
  margin: 0 0 18px;
}
.eyebrow.center { display: block; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--wine);
  line-height: 1.15;
  margin: 0 0 22px;
}

h2 { font-size: clamp(28px, 6vw, 50px); }
h3 { font-size: clamp(20px, 3vw, 24px); }

p { margin: 0 0 18px; color: var(--ink); font-weight: 300; }
p em { font-style: italic; color: var(--wine); font-weight: 400; }

.script {
  font-family: var(--script);
  font-weight: 400;
  color: var(--wine);
}

/* ---------- floating hearts canvas ---------- */
#hearts {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
  opacity: .55;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100svh;
  min-height: 620px;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  isolation: isolate;
}

.hero__image {
  position: absolute;
  inset: -4%;
  background-size: cover;
  background-position: center 35%;
  background-repeat: no-repeat;
  z-index: -2;
  animation: kenburns 24s ease-in-out infinite alternate;
  filter: saturate(1.05) contrast(1.02);
}
@keyframes kenburns {
  0%   { transform: scale(1.05) translate3d(0,0,0); }
  100% { transform: scale(1.18) translate3d(-1.5%, -1%, 0); }
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(0,0,0,0) 0%, rgba(0,0,0,.35) 70%, rgba(0,0,0,.55) 100%),
    linear-gradient(180deg, rgba(111,31,51,.25) 0%, rgba(0,0,0,.30) 60%, rgba(20,5,10,.55) 100%);
  z-index: -1;
}

.hero__content {
  text-align: center;
  padding: 0 24px;
  max-width: 900px;
  position: relative;
  z-index: 1;
}

.hero .eyebrow {
  color: rgba(255,255,255,.85);
  font-weight: 400;
}

.hero__title {
  font-family: var(--script);
  color: #fff;
  margin: 6px 0 22px;
  font-size: clamp(72px, 18vw, 168px);
  line-height: 1;
  font-weight: 400;
  text-shadow: 0 4px 30px rgba(0,0,0,.35);
}
.hero__title .script {
  display: inline-block;
  color: #fff;
}

.hero__sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 2.4vw, 24px);
  color: rgba(255,255,255,.94);
  max-width: 34ch;
  margin: 0 auto;
  line-height: 1.5;
}

/* scroll cue */
.scroll-cue {
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  margin-top: 48px;
  width: 26px;
  height: 44px;
  border: 1.5px solid rgba(255,255,255,.7);
  border-radius: 20px;
  position: relative;
}
.scroll-cue span {
  display: block;
  width: 3px;
  height: 8px;
  margin-top: 7px;
  background: #fff;
  border-radius: 2px;
  animation: scrolldot 1.8s ease-in-out infinite;
}
@keyframes scrolldot {
  0%   { transform: translateY(0);    opacity: 1; }
  60%  { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0);    opacity: 0; }
}

/* ============================================================
   LETTER
   ============================================================ */
.letter {
  padding: 120px 0 100px;
  background: radial-gradient(ellipse at top, #fff8ed 0%, var(--cream) 60%);
  position: relative;
}
.letter::before, .letter::after {
  content: "";
  display: block;
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 36px;
  opacity: .55;
}
.letter::after { margin: 40px auto 0; }

.letter h2 {
  font-style: italic;
  text-align: center;
}
.letter p {
  text-align: center;
  font-size: clamp(18px, 2vw, 21px);
}
.letter .signoff {
  font-family: var(--script);
  font-size: 42px;
  color: var(--rose);
  margin-top: 28px;
}

/* ============================================================
   FEATURE — portrait of her + text
   ============================================================ */
.feature {
  padding: 90px 0;
  background: linear-gradient(180deg, var(--cream) 0%, #f6ead9 100%);
}
.feature__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
.feature__img {
  margin: 0;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  position: relative;
  background: #efe2cd;
}
.feature__img::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 4px;
  pointer-events: none;
}
.feature__img img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 1.6s ease;
}
.feature__img:hover img { transform: scale(1.03); }

.feature__text h2 { font-style: italic; }
.feature__text p { font-size: clamp(17px, 1.8vw, 19px); }

@media (min-width: 820px) {
  .feature { padding: 130px 0; }
  .feature__grid {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
  }
}

/* ============================================================
   LITTLE THINGS — the everyday moments
   ============================================================ */
.little {
  padding: 110px 0 110px;
  background:
    radial-gradient(ellipse at center, #fbe4dc 0%, #f6ead9 70%);
  position: relative;
}
.little::before {
  content: "";
  display: block;
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 36px;
  opacity: .55;
}
.little h2 {
  font-style: italic;
  margin-bottom: 44px;
}
.little .poem {
  font-family: var(--serif);
  font-size: clamp(18px, 2.3vw, 23px);
  font-style: italic;
  color: var(--ink);
  line-height: 1.55;
  margin: 0 auto 26px;
  max-width: 36ch;
  font-weight: 400;
}
.little .poem:last-child {
  margin-top: 14px;
  margin-bottom: 0;
}
.little .poem em {
  color: var(--rose);
  font-style: italic;
}

/* ============================================================
   GALLERY — focused carousel (one photo at a time, no crop)
   ============================================================ */
.gallery {
  padding: 120px 0 110px;
  background: linear-gradient(180deg, #f6ead9 0%, var(--cream) 100%);
}

.carousel {
  position: relative;
  margin: 56px auto 0;
  max-width: 100%;
  padding: 0;
}

.ctrack {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  outline: none;
  /* contain horizontal scrolling so it doesn't bleed to the page */
  overscroll-behavior-x: contain;
}
.ctrack::-webkit-scrollbar { display: none; }

.slide {
  flex: 0 0 100%;
  width: 100%;
  scroll-snap-align: center;
  margin: 0;
  padding: 0 6vw;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide__frame {
  width: 100%;
  max-width: 880px;
  height: clamp(360px, 68vh, 760px);
  background: #efe2cd;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 30px 60px -25px rgba(111,31,51,.45);
  overflow: hidden;
  position: relative;
}
.slide__frame::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 3px;
  pointer-events: none;
  z-index: 2;
}
.slide__frame img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* caption sits over the bottom of the photo, with a soft fade for legibility */
.slide figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 70px 22px 22px;
  background: linear-gradient(
    to top,
    rgba(0,0,0,.78) 0%,
    rgba(0,0,0,.55) 45%,
    rgba(0,0,0,0) 100%
  );
  color: #fff;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(17px, 2.2vw, 22px);
  text-align: center;
  line-height: 1.45;
  letter-spacing: .005em;
  text-shadow: 0 1px 8px rgba(0,0,0,.5);
  pointer-events: none;
  z-index: 3;
}

@media (min-width: 720px) {
  .slide figcaption {
    padding: 90px 28px 28px;
  }
}

/* arrows */
.cbtn {
  position: absolute;
  top: clamp(180px, 34vh, 380px);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(111,31,51,.2);
  background: rgba(255,255,255,.85);
  color: var(--wine);
  font-size: 28px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 8px 20px -8px rgba(111,31,51,.35);
  transition: background .25s ease, transform .25s ease, color .25s ease;
  z-index: 4;
  -webkit-tap-highlight-color: transparent;
}
.cbtn span { transform: translateY(-2px); }
.cbtn:hover { background: var(--rose); color: #fff; }
.cbtn:active { transform: scale(.94); }
.cbtn--prev { left: 8px; }
.cbtn--next { right: 8px; }
.cbtn[disabled] { opacity: .35; cursor: default; }

@media (min-width: 720px) {
  .cbtn--prev { left: 18px; }
  .cbtn--next { right: 18px; }
  .cbtn { width: 52px; height: 52px; font-size: 32px; }
}

/* dots + counter */
.cdots {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px auto 6px;
  max-width: 90%;
}
.cdot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(196,100,118,.3);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background .3s, transform .3s;
}
.cdot.is-active {
  background: var(--rose);
  transform: scale(1.5);
}
.ccount {
  text-align: center;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 6px 0 0;
}

/* ============================================================
   PROMISE
   ============================================================ */
.promise {
  padding: 130px 0 120px;
  background: radial-gradient(ellipse at top, #fff5e6 0%, var(--cream) 70%);
  position: relative;
}
.promise::before {
  content: "♥";
  display: block;
  text-align: center;
  font-size: 24px;
  color: var(--rose);
  margin-bottom: 24px;
  opacity: .8;
}
.promise .vow {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 2.1vw, 22px);
  line-height: 1.6;
  color: var(--ink);
  max-width: 38ch;
  margin: 0 auto 28px;
  font-weight: 400;
}
.promise .vow--lead {
  font-size: clamp(24px, 3.2vw, 32px);
  color: var(--wine);
  margin-bottom: 38px;
  max-width: 22ch;
}
.promise .vow--close {
  font-size: clamp(22px, 2.8vw, 28px);
  color: var(--wine);
  margin-top: 12px;
  margin-bottom: 30px;
  max-width: 24ch;
}
.promise .signature {
  font-family: var(--script);
  font-size: clamp(48px, 6vw, 68px);
  color: var(--rose);
  margin: 18px 0 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
.foot {
  text-align: center;
  padding: 70px 24px 90px;
  background: #2a0f17;
  color: #f3d8c8;
}
.foot .script {
  font-size: clamp(42px, 6vw, 68px);
  color: #fff;
  margin: 0 0 6px;
}
.foot .eyebrow {
  color: var(--gold-soft);
  margin: 0 0 30px;
}
.foot .totop {
  display: inline-block;
  color: #f3d8c8;
  text-decoration: none;
  border-bottom: 1px solid rgba(243,216,200,.4);
  padding-bottom: 2px;
  font-size: 13px;
  letter-spacing: .15em;
  text-transform: uppercase;
  transition: color .3s ease, border-color .3s ease;
}
.foot .totop:hover {
  color: #fff;
  border-color: #fff;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 1.1s cubic-bezier(.2,.7,.2,1) var(--d, 0s),
    transform 1.1s cubic-bezier(.2,.7,.2,1) var(--d, 0s);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .hero__image { animation: none; transform: scale(1.05); }
  .reveal { opacity: 1; transform: none; }
  #hearts { display: none; }
  .ctrack { scroll-behavior: auto; }
}
