/* Animesh & Anshul — black & white luxurious */
:root {
  --ink: #0b0b0b;
  --ink-soft: #3a3a3a;
  --mute: #7a756e;
  --paper: #f2efe9;
  --paper-2: #e8e4dc;
  --white: #fff;
  --line: rgba(11, 11, 11, 0.14);
  --line-dark: rgba(255, 255, 255, 0.16);
  --gold: #9c7c4a;
  --maroon: #6d1526;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --pad: clamp(1.25rem, 5vw, 6rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

/* ---------- type ---------- */
.display {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: 0.02em;
  margin: 0;
}
h2.section-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 2rem;
}
.eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 0 0 1.25rem;
  font-weight: 400;
}
.lede { font-size: clamp(1rem, 1.6vw, 1.15rem); color: var(--ink-soft); max-width: 60ch; }
.script { font-family: var(--serif); font-style: italic; font-weight: 300; }

/* ---------- layout ---------- */
section { padding: clamp(4rem, 10vw, 8.5rem) var(--pad); position: relative; }
.wrap { max-width: 1240px; margin: 0 auto; }
.dark { background: var(--ink); color: var(--paper); }
.dark .eyebrow, .dark .lede { color: #a9a39a; }
.dark a { color: var(--paper); }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.dark .rule { background: var(--line-dark); }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1rem var(--pad);
  transition: background .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease);
  color: var(--white); mix-blend-mode: normal;
}
.nav.solid {
  background: rgba(242, 239, 233, 0.92);
  backdrop-filter: blur(14px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}
.nav__mark { font-family: var(--serif); font-size: 1.1rem; letter-spacing: 0.3em; text-decoration: none; white-space: nowrap; }
.nav__links { display: flex; gap: clamp(1rem, 2.5vw, 2.2rem); align-items: center; }
.nav__links a:not(.btn) {
  font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase;
  text-decoration: none; opacity: .85; position: relative; padding: .35rem 0;
}
/* text links only — the button has its own fill animation and must not get an underline too */
.nav__links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: currentColor; transition: width .35s var(--ease);
}
.nav__links a:not(.btn):hover::after { width: 100%; }
.nav__links a:not(.btn):hover { opacity: 1; }
@media (max-width: 860px) { .nav__links a:not(.btn) { display: none; } }

/* ---------- buttons ---------- */
/* --fill is the colour that sweeps in; --fg-hover is the label colour once it has.
   Both are explicit: currentColor would make the fill track the label and cancel itself out. */
.btn {
  --fill: var(--ink);
  --fg-hover: var(--paper);
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .85rem 1.9rem; border: 1px solid currentColor; background: transparent;
  color: inherit; font-family: var(--sans); font-size: .7rem; font-weight: 400;
  letter-spacing: .26em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; position: relative; overflow: hidden; transition: color .4s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; background: var(--fill);
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.btn span { position: relative; z-index: 1; }
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn:hover { color: var(--fg-hover); }

/* outline buttons sitting on a dark surface invert the pair */
.dark .btn, .hero .btn { --fill: var(--paper); --fg-hover: var(--ink); }

/* filled variants carry their own colours — written at .dark .btn's specificity, and after it,
   so a dark section can't repaint their labels into their own backgrounds */
.btn.btn--solid {
  background: var(--ink); color: var(--paper); border-color: var(--ink);
  --fill: var(--maroon); --fg-hover: var(--paper);
}
.btn.btn--light {
  background: var(--paper); color: var(--ink); border-color: var(--paper);
  --fill: var(--maroon); --fg-hover: var(--paper);
}
.btn.btn--solid:hover, .btn.btn--light:hover { border-color: var(--maroon); }
.nav .btn { padding: .6rem 1.3rem; }

/* ---------- hero ---------- */
.hero { min-height: 100svh; display: grid; align-items: end; position: relative; color: var(--white); padding: 0; }
.hero__bg { position: absolute; inset: 0; overflow: hidden; }
.hero__bg img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.12) brightness(.82);
  transform: scale(1.06); animation: drift 24s var(--ease) infinite alternate;
}
@keyframes drift { to { transform: scale(1.14) translate3d(-1.5%, -1%, 0); } }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.15) 35%, rgba(0,0,0,.72) 100%);
}
.hero__inner { position: relative; z-index: 2; padding: clamp(5rem, 12vh, 8rem) var(--pad) clamp(2rem, 5vh, 3.5rem); width: 100%; }
.hero__names {
  font-size: clamp(2.9rem, 12vw, 10rem);
  text-transform: uppercase; letter-spacing: .04em; text-align: center;
  display: flex; align-items: center; justify-content: center; gap: clamp(.6rem, 2.5vw, 2rem);
  flex-wrap: wrap; text-shadow: 0 2px 40px rgba(0,0,0,.4);
}
.hero__amp { font-style: italic; font-weight: 400; text-transform: none; font-size: .86em; }
.hero__meta {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem;
  flex-wrap: wrap; margin-top: clamp(2rem, 8vh, 5rem);
  font-size: .72rem; letter-spacing: .26em; text-transform: uppercase;
}

/* countdown */
.countdown { display: flex; gap: clamp(1rem, 4vw, 2.75rem); justify-content: center; margin-top: 2.5rem; }
.countdown div { text-align: center; min-width: 54px; }
.countdown b { display: block; font-family: var(--serif); font-size: clamp(1.6rem, 4vw, 2.6rem); font-weight: 300; line-height: 1; }
.countdown span { font-size: .56rem; letter-spacing: .28em; text-transform: uppercase; opacity: .7; }

/* ---------- invitation / story ---------- */
.grid-3 { display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }
.frame { position: relative; z-index: 0; }
.frame img { width: 100%; aspect-ratio: 3/4; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.frame::after {
  content: ""; position: absolute; inset: 14px -14px -14px 14px; border: 1px solid var(--gold);
  z-index: -1; opacity: .55;
}

.names-card { text-align: center; }
.names-card h3 { font-family: var(--serif); font-weight: 300; font-size: clamp(2.4rem, 6vw, 4rem); margin: 0; letter-spacing: .03em; }
.names-card p { margin: .4rem 0; font-size: .86rem; color: var(--ink-soft); }
.names-card .amp { font-family: var(--serif); font-style: italic; font-size: 2rem; color: var(--gold); margin: 1.25rem 0; }

.ornament { display: flex; align-items: center; gap: 1rem; justify-content: center; margin: 2rem 0; color: var(--gold); }
.ornament i { height: 1px; background: currentColor; flex: 1; max-width: 120px; opacity: .5; }
.ornament b { font-size: .9rem; font-weight: 400; }

/* ---------- celebrations ---------- */
.day { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; padding: clamp(2.5rem, 6vw, 4rem) 0; }
.day + .day { border-top: 1px solid var(--line-dark); }
.day:nth-child(even) .day__media { order: -1; }
@media (max-width: 880px) { .day { grid-template-columns: 1fr; } .day:nth-child(even) .day__media { order: 0; } }
.day__media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; filter: grayscale(1) brightness(.9); transition: filter .7s var(--ease); }
.day__media:hover img { filter: grayscale(0) brightness(1); }
.day__label { font-family: var(--serif); font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 300; letter-spacing: .08em; text-transform: uppercase; margin: 0; }
.day__date { font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin: .5rem 0 2rem; }
.event { display: grid; grid-template-columns: 110px 1fr; gap: 1.25rem; padding: 1.1rem 0; border-top: 1px solid var(--line-dark); }
.event time { font-size: .78rem; letter-spacing: .14em; color: #bdb6ab; padding-top: .2rem; }
.event h4 { margin: 0 0 .25rem; font-family: var(--serif); font-size: 1.45rem; font-weight: 400; letter-spacing: .04em; }
.event p { margin: 0; font-size: .86rem; color: #a9a39a; max-width: 52ch; }
@media (max-width: 520px) { .event { grid-template-columns: 1fr; gap: .25rem; } }

/* ---------- split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 70vh; padding: 0; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }
.split img { width: 100%; height: 100%; min-height: 48vh; object-fit: cover; filter: grayscale(1) contrast(1.08); }
.split__text { display: flex; flex-direction: column; justify-content: center; padding: clamp(3rem, 8vw, 6rem); }

/* ---------- venue ---------- */
.venue { text-align: center; }
.venue h3 { font-family: var(--serif); font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 300; margin: 0 0 .75rem; letter-spacing: .04em; }
.venue address { font-style: normal; color: var(--mute); max-width: 48ch; margin: 0 auto 2.25rem; }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2px; padding: 0; }
.gallery a { display: block; overflow: hidden; position: relative; }
.gallery img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  filter: grayscale(1); transition: filter .8s var(--ease), transform 1.1s var(--ease);
}
.gallery a:hover img { filter: grayscale(0); transform: scale(1.06); }

/* ---------- faq ---------- */
.faq-grid { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: clamp(2rem, 6vw, 5rem); }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } }
details { border-top: 1px solid var(--line); padding: 1.3rem 0; }
details[open] summary { color: var(--maroon); }
summary {
  cursor: pointer; list-style: none; display: flex; gap: 1.25rem; align-items: baseline;
  font-family: var(--serif); font-size: clamp(1.1rem, 2vw, 1.45rem); font-weight: 400;
  transition: color .3s var(--ease);
}
summary::-webkit-details-marker { display: none; }
summary b { font-family: var(--sans); font-size: .68rem; font-weight: 400; letter-spacing: .2em; color: var(--gold); }
details p { margin: .85rem 0 0 2.6rem; font-size: .92rem; color: var(--ink-soft); max-width: 62ch; }

/* ---------- footer ---------- */
footer { padding: clamp(3rem, 8vw, 6rem) var(--pad) 2.5rem; }
.foot-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2.5rem; align-items: start; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-grid h4 { font-family: var(--serif); font-weight: 300; font-size: 1.1rem; letter-spacing: .2em; text-transform: uppercase; margin: 0 0 1rem; }
.foot-grid a { text-decoration: none; opacity: .8; }
.foot-grid a:hover { opacity: 1; }
.colophon {
  margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line-dark);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: .64rem; letter-spacing: .22em; text-transform: uppercase; color: #8a847b;
}

/* ---------- form ---------- */
.form-shell { max-width: 820px; margin: 0 auto; }
fieldset { border: 0; border-top: 1px solid var(--line); margin: 0 0 2.5rem; padding: 2.5rem 0 0; }
legend {
  font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 300;
  letter-spacing: .08em; text-transform: uppercase; padding: 0 1.25rem 0 0;
}
legend small { display: block; font-family: var(--sans); font-size: .72rem; letter-spacing: .06em; text-transform: none; color: var(--mute); margin-top: .4rem; max-width: 58ch; line-height: 1.6; }
.field { margin: 0 0 1.75rem; }
.field > label, .field > .lbl {
  display: block; font-size: .66rem; letter-spacing: .26em; text-transform: uppercase;
  color: var(--mute); margin-bottom: .6rem;
}
.req { color: var(--maroon); }
input[type=text], input[type=tel], input[type=email], input[type=datetime-local], textarea, select {
  width: 100%; padding: .9rem 0; border: 0; border-bottom: 1px solid var(--line);
  background: transparent; font-family: var(--sans); font-size: 1rem; font-weight: 300;
  color: var(--ink); border-radius: 0; transition: border-color .3s var(--ease);
}
input:focus, textarea:focus, select:focus { outline: 0; border-bottom-color: var(--ink); }
textarea { resize: vertical; min-height: 92px; line-height: 1.7; }
select { appearance: none; cursor: pointer; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem; }
@media (max-width: 640px) { .two { grid-template-columns: 1fr; } }

.choice { display: grid; gap: .75rem; }
.choice label {
  display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem 1.35rem;
  border: 1px solid var(--line); cursor: pointer; transition: border-color .3s var(--ease), background .3s var(--ease);
}
.choice label:hover { border-color: var(--ink); }
.choice input { margin: .3rem 0 0; accent-color: var(--maroon); flex: none; }
.choice input:checked ~ div { color: var(--ink); }
.choice label:has(input:checked) { border-color: var(--ink); background: rgba(11,11,11,.035); }
.choice strong { display: block; font-weight: 400; font-size: .95rem; }
.choice small { color: var(--mute); font-size: .8rem; line-height: 1.6; }

.drop {
  border: 1px dashed var(--line); padding: 2rem 1.5rem; text-align: center;
  transition: border-color .3s var(--ease), background .3s var(--ease); cursor: pointer;
}
.drop:hover, .drop.over { border-color: var(--ink); background: rgba(11,11,11,.03); }
.drop input { display: none; }
.drop p { margin: .4rem 0 0; font-size: .78rem; color: var(--mute); }
.drop b { font-family: var(--serif); font-size: 1.25rem; font-weight: 400; }
#filelist { margin: 1rem 0 0; padding: 0; list-style: none; font-size: .82rem; }
#filelist li { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-top: 1px solid var(--line); }
#filelist .bad { color: var(--maroon); }

.notice {
  border-left: 2px solid var(--maroon); padding: .9rem 1.25rem; background: rgba(109,21,38,.05);
  font-size: .88rem; margin: 0 0 2rem;
}
.hint {
  border-left: 2px solid var(--gold); padding: .9rem 1.25rem; background: rgba(156,124,74,.07);
  font-size: .88rem; line-height: 1.7; margin: 0 0 1.5rem;
}
.hint strong { font-weight: 400; color: var(--maroon); }
.hide { display: none !important; }

/* ---------- thanks ---------- */
.thanks { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 6rem var(--pad); }
.thanks h1 { font-family: var(--serif); font-size: clamp(2.4rem, 8vw, 5.5rem); font-weight: 300; letter-spacing: .04em; margin: 0 0 1rem; }

/* ---------- narrow viewports ---------- */
@media (max-width: 700px) {
  /* space-between + wrap orphaned the hashtag onto its own row and shoved the
     button off-centre; on one column the three just stack. */
  .hero__meta {
    flex-direction: column; align-items: center; text-align: center;
    gap: 1.25rem; font-size: .64rem; letter-spacing: .22em;
  }
  .gallery { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  /* .26em tracking overflows a 320px screen on the longer labels */
  .btn { padding: .8rem 1.4rem; font-size: .64rem; letter-spacing: .16em; }
  .hero__meta .btn { padding: .85rem 2.4rem; }
  .countdown { gap: .9rem; }
  .countdown div { min-width: 46px; }
  .ornament i { max-width: 60px; }
  summary { gap: .8rem; }
  details p { margin-left: 0; }
}

/* ---------- reveal ---------- */
.rv { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .hero__bg img { animation: none; }
  html { scroll-behavior: auto; }
}
