/* Design: Gauri's mockup (Oct 2026), built from Figma. Colours and fonts are here, nowhere else. */
:root {
  --olive: #808333;      /* meadow background, headings, buttons */
  --cream: #F8F4E3;      /* the lace card */
  --ink: #2E1A0A;        /* text, footer */
  --muted: #5A4230;      /* body copy */
  --brown: #6B4A2E;      /* small labels */
  --gold: #E0C894;       /* rules */
  --gold-2: #C9A877;     /* column dividers */
  --gold-3: #EBD9AE;     /* card footer line */
  --gold-4: #C9AE7E;     /* outline buttons */
  --error: #A2361E;
  --font-body: "Alegreya Sans", system-ui, sans-serif;
  --font-script: "Miss Fajardose", "Pinyon Script", cursive;
  --font-mono: "Cormorant Garamond", Georgia, serif;   /* the A&G monogram */
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--olive); }
a, a:hover { color: inherit; }
input::placeholder { color: #8A7358; }
input[type=checkbox] { width: 20px; height: 20px; margin: 0; accent-color: var(--olive); cursor: pointer; }
summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
p { margin: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- the frame: olive meadow with flowers, a scrolling lace card ---------- */
.page { position: relative; display: flex; flex-direction: column; height: 100vh; height: 100dvh; overflow: hidden; padding: 0 16px;
  color: var(--ink); font: 19px/1.5 var(--font-body); }
.meadow { position: fixed; inset: 0; z-index: 0; background: var(--olive); pointer-events: none; }
.flowers { position: absolute; top: 50%; height: min(668px, 84vh); width: auto; transform: translateY(-50%); }
.flowers-left { left: calc((100% - 884px) / 4 - 100px); }
.flowers-right { right: calc((100% - 884px) / 4 - 100px); transform: translateY(-50%) scaleX(-1); }
@media (max-width: 1260px) { .flowers { display: none; } }

.nav { position: relative; z-index: 2; flex: 0 0 auto; display: flex; justify-content: center; gap: 12px; padding: 16px 0 8px; }
.nav a { display: inline-flex; align-items: center; justify-content: center; min-width: 120px; min-height: 44px; padding: 0 20px;
  color: var(--cream); text-decoration: none; font-size: 19px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
@media (max-width: 420px) { .nav { gap: 0; } .nav a { min-width: 0; padding: 0 14px; } }

.scroller { position: relative; z-index: 1; flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scroll-behavior: smooth;
  margin: 0 -16px; padding: 0 16px 24px; }
@media (prefers-reduced-motion: reduce) { .scroller { scroll-behavior: auto; } }
.lace { position: relative; width: 100%; max-width: 884px; margin: 0 auto; padding: 42px; }
.lace{filter:drop-shadow(0 24px 40px rgba(46, 26, 10, 0.3));background:linear-gradient(#F8F4E3, #F8F4E3) center / calc(100% - 80px) calc(100% - 80px) no-repeat}
.lace-edge{position:absolute;pointer-events:none}
.lace-t{left:0;right:0;top:0;height:42px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='42' viewBox='0 0 36 42'%3E%3Cpath fill='%23F8F4E3' fill-rule='evenodd' d='M0 18A18 18 0 0 1 36 18V42H0Z M3.9 19a1.6 1.6 0 1 0 3.2 0a1.6 1.6 0 1 0 -3.2 0Z M5.57 12.75a1.6 1.6 0 1 0 3.2 0a1.6 1.6 0 1 0 -3.2 0Z M10.15 8.17a1.6 1.6 0 1 0 3.2 0a1.6 1.6 0 1 0 -3.2 0Z M16.4 6.5a1.6 1.6 0 1 0 3.2 0a1.6 1.6 0 1 0 -3.2 0Z M22.65 8.17a1.6 1.6 0 1 0 3.2 0a1.6 1.6 0 1 0 -3.2 0Z M27.23 12.75a1.6 1.6 0 1 0 3.2 0a1.6 1.6 0 1 0 -3.2 0Z M28.9 19a1.6 1.6 0 1 0 3.2 0a1.6 1.6 0 1 0 -3.2 0Z M18 27C14.6 24.6 14 22 15.6 21C16.6 20.4 17.6 20.9 18 21.8C18.4 20.9 19.4 20.4 20.4 21C22 22 21.4 24.6 18 27Z M7.6 34a1.4 1.4 0 1 0 2.8 0a1.4 1.4 0 1 0 -2.8 0Z M25.6 34a1.4 1.4 0 1 0 2.8 0a1.4 1.4 0 1 0 -2.8 0Z'/%3E%3C/svg%3E") left top / 36px 42px round no-repeat}
.lace-b{left:0;right:0;bottom:0;height:42px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='42' viewBox='0 0 36 42'%3E%3Cg transform='rotate(180 18 21)'%3E%3Cpath fill='%23F8F4E3' fill-rule='evenodd' d='M0 18A18 18 0 0 1 36 18V42H0Z M3.9 19a1.6 1.6 0 1 0 3.2 0a1.6 1.6 0 1 0 -3.2 0Z M5.57 12.75a1.6 1.6 0 1 0 3.2 0a1.6 1.6 0 1 0 -3.2 0Z M10.15 8.17a1.6 1.6 0 1 0 3.2 0a1.6 1.6 0 1 0 -3.2 0Z M16.4 6.5a1.6 1.6 0 1 0 3.2 0a1.6 1.6 0 1 0 -3.2 0Z M22.65 8.17a1.6 1.6 0 1 0 3.2 0a1.6 1.6 0 1 0 -3.2 0Z M27.23 12.75a1.6 1.6 0 1 0 3.2 0a1.6 1.6 0 1 0 -3.2 0Z M28.9 19a1.6 1.6 0 1 0 3.2 0a1.6 1.6 0 1 0 -3.2 0Z M18 27C14.6 24.6 14 22 15.6 21C16.6 20.4 17.6 20.9 18 21.8C18.4 20.9 19.4 20.4 20.4 21C22 22 21.4 24.6 18 27Z M7.6 34a1.4 1.4 0 1 0 2.8 0a1.4 1.4 0 1 0 -2.8 0Z M25.6 34a1.4 1.4 0 1 0 2.8 0a1.4 1.4 0 1 0 -2.8 0Z'/%3E%3C/g%3E%3C/svg%3E") left bottom / 36px 42px round no-repeat}
.lace-l{left:0;top:42px;bottom:42px;width:42px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='42' height='36' viewBox='0 0 42 36'%3E%3Cg transform='translate(0 36) rotate(-90)'%3E%3Cpath fill='%23F8F4E3' fill-rule='evenodd' d='M0 18A18 18 0 0 1 36 18V42H0Z M3.9 19a1.6 1.6 0 1 0 3.2 0a1.6 1.6 0 1 0 -3.2 0Z M5.57 12.75a1.6 1.6 0 1 0 3.2 0a1.6 1.6 0 1 0 -3.2 0Z M10.15 8.17a1.6 1.6 0 1 0 3.2 0a1.6 1.6 0 1 0 -3.2 0Z M16.4 6.5a1.6 1.6 0 1 0 3.2 0a1.6 1.6 0 1 0 -3.2 0Z M22.65 8.17a1.6 1.6 0 1 0 3.2 0a1.6 1.6 0 1 0 -3.2 0Z M27.23 12.75a1.6 1.6 0 1 0 3.2 0a1.6 1.6 0 1 0 -3.2 0Z M28.9 19a1.6 1.6 0 1 0 3.2 0a1.6 1.6 0 1 0 -3.2 0Z M18 27C14.6 24.6 14 22 15.6 21C16.6 20.4 17.6 20.9 18 21.8C18.4 20.9 19.4 20.4 20.4 21C22 22 21.4 24.6 18 27Z M7.6 34a1.4 1.4 0 1 0 2.8 0a1.4 1.4 0 1 0 -2.8 0Z M25.6 34a1.4 1.4 0 1 0 2.8 0a1.4 1.4 0 1 0 -2.8 0Z'/%3E%3C/g%3E%3C/svg%3E") left top / 42px 36px no-repeat round}
.lace-r{right:0;top:42px;bottom:42px;width:42px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='42' height='36' viewBox='0 0 42 36'%3E%3Cg transform='translate(42 0) rotate(90)'%3E%3Cpath fill='%23F8F4E3' fill-rule='evenodd' d='M0 18A18 18 0 0 1 36 18V42H0Z M3.9 19a1.6 1.6 0 1 0 3.2 0a1.6 1.6 0 1 0 -3.2 0Z M5.57 12.75a1.6 1.6 0 1 0 3.2 0a1.6 1.6 0 1 0 -3.2 0Z M10.15 8.17a1.6 1.6 0 1 0 3.2 0a1.6 1.6 0 1 0 -3.2 0Z M16.4 6.5a1.6 1.6 0 1 0 3.2 0a1.6 1.6 0 1 0 -3.2 0Z M22.65 8.17a1.6 1.6 0 1 0 3.2 0a1.6 1.6 0 1 0 -3.2 0Z M27.23 12.75a1.6 1.6 0 1 0 3.2 0a1.6 1.6 0 1 0 -3.2 0Z M28.9 19a1.6 1.6 0 1 0 3.2 0a1.6 1.6 0 1 0 -3.2 0Z M18 27C14.6 24.6 14 22 15.6 21C16.6 20.4 17.6 20.9 18 21.8C18.4 20.9 19.4 20.4 20.4 21C22 22 21.4 24.6 18 27Z M7.6 34a1.4 1.4 0 1 0 2.8 0a1.4 1.4 0 1 0 -2.8 0Z M25.6 34a1.4 1.4 0 1 0 2.8 0a1.4 1.4 0 1 0 -2.8 0Z'/%3E%3C/g%3E%3C/svg%3E") right top / 42px 36px no-repeat round}
.card { position: relative; width: 100%; background: var(--cream); border-radius: 5px; overflow: hidden; }

/* ---------- hero ---------- */
.hero { display: flex; flex-direction: column; align-items: center; gap: clamp(16px, 4vw, 28px); text-align: center;
  padding: clamp(32px, 8vw, 88px) clamp(20px, 5vw, 64px) clamp(36px, 8vw, 64px); }
.hero-kicker { font-family: var(--font-script); font-size: clamp(72px, 10vw, 104px); line-height: 1; }
.photo { position: relative; width: min(300px, 80%); aspect-ratio: 1 / 1.12; }
.polaroid { position: absolute; inset: 0; margin: 0; padding: 14px 14px 56px; background: #fff; box-shadow: 0 16px 40px -22px rgba(0, 0, 0, .5);
  transform: rotate(var(--tilt, 0deg)); transition: transform .7s ease, opacity .7s ease; }
.polaroid img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* tilts by position in the stack, so the pile reshuffles as photos move */
.polaroid:nth-last-child(1) { --tilt: 2deg; }
.polaroid:nth-last-child(2) { --tilt: -4deg; }
.polaroid:nth-last-child(3) { --tilt: 5deg; }
.polaroid:nth-last-child(4) { --tilt: -2deg; }
.polaroid:nth-last-child(n+5) { --tilt: -6deg; }
.polaroid.leaving { transform: translate(60%, -8%) rotate(16deg); opacity: 0; }
.names { margin: 0; font-family: var(--font-script); font-weight: 400; font-size: clamp(96px, 14vw, 150px); line-height: .95; }
.when-where { font-size: 17px; }
.divider { margin: 0 8px; color: var(--gold-2); }

.rule { margin: 0 clamp(20px, 5vw, 48px); border: 0; border-top: 1px solid var(--gold); }
.section-title { margin: 0; font-family: var(--font-body); font-weight: 500; font-size: clamp(40px, 9vw, 52px); line-height: 1.1; text-transform: uppercase; letter-spacing: .02em; color: var(--olive); }
.muted { color: var(--muted); }

/* ---------- RSVP: find your name ---------- */
.section-rsvp { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: clamp(40px, 9vw, 72px) clamp(20px, 5vw, 64px); text-align: center; }
.rsvp-start { display: contents; }
.lede { max-width: 460px; }
.search { position: relative; width: 100%; max-width: 440px; display: flex; flex-direction: column; align-items: center; gap: 20px; margin-top: 8px; }
.search-row { width: 100%; display: flex; gap: 8px; }
.search-row input { flex: 1 1 auto; min-width: 0; min-height: 50px; padding: 0 16px; border: 0; border-radius: 5px; background: #fff; font: inherit; color: var(--ink); }
.search-icon { flex: 0 0 50px; height: 50px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 28px; border: 0; border-radius: 5px;
  background: var(--olive); color: #fff; font: inherit; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer; }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-outline { min-height: 44px; padding: 0 18px; border: 1px solid var(--gold-4); background: #fff; color: var(--ink); }
.btn-small { min-height: 44px; padding: 0 22px; }

/* name suggestions under the box (app.js) */
.suggest { width: 100%; margin: -12px 0 0; padding: 0; list-style: none; text-align: left; background: #fff; border-radius: 5px; box-shadow: 0 12px 30px -16px rgba(46, 26, 10, .45); max-height: 21rem; overflow-y: auto; }
.suggest button { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; width: 100%; min-height: 48px; padding: 10px 16px; border: 0;
  border-top: 1px solid var(--gold-3); background: none; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.suggest li:first-child button { border-top: 0; }
.suggest button:hover { background: var(--cream); }
.suggest small { font-size: 15px; color: var(--brown); white-space: nowrap; }
.suggest span small { white-space: normal; }

/* messages and "which invitation is yours?" (app.js) */
.rsvp-message { max-width: 460px; margin: 0 auto; color: var(--muted); }
.rsvp-choice { display: block; width: 100%; max-width: 440px; min-height: 48px; margin: 10px auto 0; padding: 10px 16px; border: 0; border-radius: 5px;
  background: #fff; font: inherit; color: var(--ink); cursor: pointer; }
.rsvp-choice:hover { box-shadow: inset 0 0 0 1px var(--olive); }
#rsvp-result { width: 100%; display: flex; flex-direction: column; align-items: center; }
#rsvp-result:empty { display: none; }

/* ---------- RSVP: the step-by-step card (app.js) ---------- */
.flow { width: 100%; max-width: 620px; min-height: 560px; display: flex; flex-direction: column; gap: 24px; margin-top: 8px; padding: clamp(24px, 4vw, 40px);
  background: #fff; border-radius: 5px; text-align: left; scroll-margin-top: 16px; }
.kicker { font-size: 16px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--olive); }
.flow-title { margin: 0; font-family: var(--font-body); font-weight: 500; font-size: clamp(28px, 4vw, 36px); line-height: 1.1; }
.step { display: flex; flex-direction: column; gap: 18px; }
.step-travel { gap: 22px; }
.line-field { display: flex; flex-direction: column; gap: 6px; font-size: 16px; font-weight: 600; }
.line-field input { min-height: 44px; padding: 0 2px; border: 0; border-bottom: 1.5px solid var(--ink); background: transparent; font: inherit; font-size: 17px; font-weight: 400; color: var(--ink); }
.events { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px; }
.event { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.event legend { padding: 0; display: flex; flex-direction: column; }
.event-day { font-size: 16px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--brown); }
.event-name { font-size: 20px; font-weight: 500; line-height: 1.2; text-transform: uppercase; letter-spacing: .03em; }
.event-dress { font-size: 16px; color: var(--olive); }
.ticks { display: flex; flex-direction: column; margin-top: 10px; }
.tick { display: flex; align-items: center; gap: 10px; min-height: 40px; font-size: 16px; cursor: pointer; }
.tick input:disabled { cursor: default; }
.closed-note { padding: 12px 16px; border-left: 3px solid var(--olive); background: var(--cream); color: var(--muted); font-size: 16px; }
.closed-note strong { display: block; color: var(--ink); }
.btn-calendar { align-self: flex-start; gap: 10px; padding: 0 22px; }
.flow-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--gold-3); }
.step-count { font-size: 16px; font-weight: 600; color: var(--brown); white-space: nowrap; }
.flow-buttons { display: flex; gap: 8px; }
.status { font-size: 16px; color: var(--muted); }
.status:empty { display: none; }
.status-error { color: var(--error); }

/* ---------- travel ---------- */
.section-travel { display: flex; flex-direction: column; align-items: center; gap: clamp(20px, 5vw, 32px); padding: clamp(40px, 9vw, 72px) clamp(20px, 4vw, 48px); }
.travel-intro { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.travel-intro p { line-height: 1.7; }
.travel-cols { width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0; }
.tcol { display: flex; flex-direction: column; gap: 4px; padding: 0 20px 8px; }
.tcol + .tcol { border-left: 1px solid var(--gold-2); }
.tcol h3 { margin: 0; text-align: left; font-family: var(--font-body); font-weight: 500; font-size: 22px; line-height: 1.2; text-transform: uppercase; letter-spacing: .04em; }
.save-link { align-self: flex-start; display: inline-flex; align-items: center; min-height: 32px; font-size: 16px; }
.tcol ul { margin: 12px 0 0; padding: 0; list-style: none; }
.tcol li { padding: 8px 0; }
.tcol li a { text-decoration: none; }
@media (max-width: 700px) {
  .tcol, .tcol + .tcol { border-left: 0; padding: 0 0 24px; }
  .tcol + .tcol { border-top: 1px solid var(--gold-2); padding-top: 24px; }
}

/* ---------- FAQ ---------- */
.section-faq { display: flex; flex-direction: column; gap: clamp(16px, 4vw, 24px); padding: clamp(40px, 9vw, 72px) clamp(20px, 5vw, 48px) clamp(48px, 10vw, 88px); }
.section-faq .section-title { text-align: center; }
.faq-list { display: flex; flex-direction: column; }
.faq-list details { border-bottom: 1px solid var(--gold); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; padding: 18px 0; font-size: 18px; font-weight: 500; }
.faq-list p { padding: 0 32px 20px 0; color: var(--muted); }
.faq-plus { flex: 0 0 auto; display: inline-flex; transition: transform .2s; }
details[open] .faq-plus { transform: rotate(180deg); }

/* ---------- footer ---------- */
.footer { display: flex; flex-direction: column; align-items: center; gap: 28px; padding: clamp(32px, 8vw, 48px) clamp(20px, 5vw, 48px); background: var(--ink); color: #FBEDC7; text-align: center; }
.footer-row { width: 100%; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 20px 48px; font-size: 16px; }
.footer-cell { flex: 1 1 160px; }
.monogram { font-family: var(--font-mono); font-size: 52px; line-height: 1; color: var(--olive); }
.monogram .amp { font-family: "Pinyon Script", cursive; }
