/* Layout: single centered column like a printed card, floral arch hero, soft watercolor leaves behind.
   Palette: summer garden. Eucalyptus greenery, warm tan accents, white and cream florals on linen. */
:root {
  --paper: #f7f4ec;        /* warm white linen */
  --paper-2: #ece5d6;      /* light tan */
  --lav: #d5e1d5;          /* summer sky behind the hero arch */
  --ink: #24332b;          /* deep evergreen ink */
  --ink-soft: #56645b;
  --rose: #5f7f6c;         /* accent: deep eucalyptus */
  --burgundy: #a04b3c;     /* errors and required marks only */
  --gold: #a98a5e;         /* tan */
  --gold-hi: #e7d8bd;      /* light sand */
  --line: rgba(36, 51, 43, .15);
  --white: #fffdf8;
  --dusty: #7f97a8;        /* dusty blue accent */
  --wine: #9a4f5c;         /* soft burgundy accent */
  --script: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --caps: "Jost", "Futura", "Helvetica Neue", Arial, sans-serif;   /* small spaced capitals: labels, dates, buttons */
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

#leafbg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
main { position: relative; z-index: 1; }

a { color: var(--rose); }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; border-radius: 4px; }

/* ---------- hero ---------- */
.hero { position: relative; background: var(--lav); overflow: hidden; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-inner {
  position: relative; z-index: 2; height: 100%; color: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding-block: max(70px, 16%) 8%;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.eyebrow { font-family: var(--caps); font-weight: 400; font-size: .66rem; letter-spacing: .32em; text-transform: uppercase; color: var(--ink-soft); }
.hero .dear { font-style: italic; font-size: 1.1rem; color: var(--ink-soft); margin: .2rem 0 .6rem; max-width: 14em; text-wrap: balance; }
.hero .married { font-family: var(--caps); font-weight: 400; font-size: clamp(.62rem, 2.7vw, .72rem); letter-spacing: .32em; text-transform: uppercase; margin: 1rem 0 .4rem; }
.names { font-family: var(--serif); font-weight: 300; line-height: 1.05; margin: 0; color: var(--ink); letter-spacing: .01em; }
.names span { display: block; font-size: clamp(2.5rem, 11vw, 3.6rem); line-height: 1.15; }
.names em { display: block; font-style: italic; font-weight: 300; font-size: clamp(1.4rem, 6vw, 1.9rem); margin: .05em 0; color: var(--wine); }
.divider { display: flex; align-items: center; gap: .6rem; color: var(--gold); margin: 1rem auto .6rem; width: 9rem; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .7; }
.divider i { width: 6px; height: 6px; background: var(--dusty); transform: rotate(45deg); }
.hero .when { font-family: var(--caps); font-weight: 400; font-size: clamp(.74rem, 3.2vw, .86rem); letter-spacing: .3em; text-transform: uppercase; }
.hero .where { font-size: 1rem; font-style: italic; color: var(--ink-soft); }

/* ---------- sections ---------- */
.section {
  position: relative; max-width: 34rem; margin: 0 auto; text-align: center;
  padding-block: 4.5rem 1.5rem;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.section h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem, 7.5vw, 2.5rem); line-height: 1.15; color: #1f2c25; letter-spacing: .01em; margin: .3rem 0 .4rem; text-wrap: balance; }
.section .lede { font-style: italic; color: var(--ink-soft); margin: 0 auto 1.6rem; max-width: 26em; text-wrap: balance; }
.sec-icon { width: 46px; height: 46px; margin: 0 auto; color: var(--gold); }
.sec-icon svg { width: 100%; height: 100%; }
.rule { width: 7rem; height: 1px; margin: 0 auto 1.2rem; background: linear-gradient(90deg, transparent, var(--gold), transparent); }

/* countdown */
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; max-width: 24rem; margin: 0 auto; }
.countdown div { background: rgba(255, 250, 248, .55); border: 1px solid var(--line); border-radius: 10px; padding: .7rem .2rem .5rem; }
.countdown b { display: block; font-size: 1.9rem; font-weight: 300; font-variant-numeric: tabular-nums; line-height: 1.1; }
.countdown small { font-family: var(--caps); font-size: .56rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }
.save-date { font-family: var(--serif); font-weight: 500; font-size: 1.7rem; line-height: 1.3; }

/* venue */
.venue-art { width: min(100%, 22rem); margin: 0 auto; display: block; }
.venue-name { font-size: 1.35rem; font-weight: 600; margin: .8rem 0 0; }
.venue-addr { color: var(--ink-soft); margin: 0; }
.pin-btn { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1rem; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  font: 500 .68rem/1 var(--caps); letter-spacing: .24em; text-transform: uppercase;
  padding: .95rem 1.5rem; border-radius: 999px; border: 1px solid var(--rose);
  background: var(--rose); color: var(--white); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); background: #4b6857; }
.btn.ghost { background: transparent; color: var(--rose); }
.btn.ghost:hover { background: rgba(95, 127, 108, .08); }
.btn[disabled] { opacity: .55; cursor: progress; transform: none; }

/* timeline */
.timeline { position: relative; margin: 1rem auto 0; max-width: 26rem; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; border-left: 1px dashed var(--gold); opacity: .6; }
.tl-item { position: relative; display: grid; grid-template-columns: 1fr 44px 1fr; align-items: center; gap: .6rem; padding-block: .9rem; }
.tl-item .ico { width: 44px; height: 44px; border-radius: 50%; background: var(--paper); border: 1px solid var(--gold); color: var(--gold); display: grid; place-items: center; z-index: 1; }
.tl-item .ico svg { width: 24px; height: 24px; }
.tl-time { font-size: 1.35rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.tl-text { min-width: 0; }
.tl-text b { display: block; font-weight: 600; }
.tl-text span { display: block; line-height: 1.35; font-size: .9rem; font-style: italic; color: var(--ink-soft); }
.tl-item .l { text-align: right; } .tl-item .r { text-align: left; }

/* dress code */
.dress-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1rem 0; }
.dress-grid div { min-width: 0; }
.dress-grid small { display: block; font-family: var(--caps); font-size: .58rem; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-soft); }
.swatches { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .9rem .4rem; margin: 1rem auto 0; max-width: 28rem; }
@media (max-width: 480px) { .swatches { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 16rem; } }
.swatch { display: flex; flex-direction: column; align-items: center; gap: .35rem; font-size: .78rem; font-style: italic; color: var(--ink-soft); }
.swatch i { width: 38px; height: 38px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08), 0 2px 6px rgba(29,43,41,.2); }

/* gifts */
.gift-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin: 1.2rem 0; }
details.fund { max-width: 22rem; margin: .4rem auto 0; }
details.fund summary { cursor: pointer; font-family: var(--caps); font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; list-style: none; }
details.fund summary::-webkit-details-marker { display: none; }
details.fund summary::after { content: " ⌄"; }
details.fund[open] summary::after { content: " ⌃"; }
details.fund p { background: rgba(255,250,248,.6); border-radius: 10px; padding: .8rem 1rem; margin: .7rem 0 0; }

/* gallery */
.oval {
  position: relative; width: min(78vw, 290px); aspect-ratio: 3 / 4; margin: 0 auto; max-width: 100%;
  border-radius: 50%; padding: 14px;
  background: radial-gradient(circle at 50% 50%, var(--white) 60%, #ece5d6 100%);
  box-shadow: 0 0 0 2px var(--white), 0 0 0 5px rgba(169, 138, 94, .55), 0 10px 30px rgba(29, 43, 41, .2);
}
.oval .frame-inner { width: 100%; height: 100%; border-radius: 50%; overflow: hidden; background: var(--paper-2); display: grid; place-items: center; }
.oval img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .6s ease; }
.oval .empty { font-family: var(--serif); font-style: italic; font-size: 1.3rem; line-height: 1.4; color: var(--ink-soft); padding: 1rem; }
.gal-nav { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-top: 1rem; }
.gal-nav button { background: none; border: 1px solid var(--line); border-radius: 50%; width: 38px; height: 38px; cursor: pointer; color: var(--ink); font-size: 1.1rem; }
.gal-cap { font-style: italic; color: var(--ink-soft); min-height: 1.6em; margin-top: .4rem; }

/* faq */
.faq { display: grid; gap: .6rem; text-align: left; }
.faq details { background: rgba(255, 250, 248, .7); border-radius: 12px; border: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: .9rem 1.1rem; font-weight: 600; display: flex; justify-content: space-between; gap: 1rem; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "⌄"; color: var(--ink-soft); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(180deg); }
.faq details p { margin: 0; padding: 0 1.1rem 1rem; font-style: italic; color: var(--ink-soft); }

/* form */
form.rsvp { text-align: left; display: grid; gap: 1.15rem; }
.field { display: grid; gap: .35rem; }
.field > label, .field > .lbl { font-style: italic; color: var(--ink-soft); }
.req { color: var(--burgundy); }
input[type=text], input[type=email], input[type=tel], textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: rgba(255, 250, 248, .75); border: 1px solid var(--line); border-radius: 10px; padding: .75rem .9rem;
}
input::placeholder, textarea::placeholder { color: #82938f; font-style: italic; }
textarea { min-height: 5.5rem; resize: vertical; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.choice { display: flex; gap: .55rem; align-items: center; background: rgba(255,250,248,.55); border: 1px solid var(--line); border-radius: 10px; padding: .7rem .8rem; cursor: pointer; line-height: 1.2; }
.choice input { accent-color: var(--rose); width: 18px; height: 18px; flex: none; margin: 0; }
.choice:has(input:checked) { border-color: var(--rose); background: rgba(95, 127, 108, .1); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,250,248,.75); width: max-content; }
.stepper button { background: none; border: 0; width: 44px; height: 44px; font-size: 1.3rem; cursor: pointer; color: var(--ink); }
.stepper button:disabled { opacity: .3; cursor: default; }
.stepper output { min-width: 2.5rem; text-align: center; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.hint { font-size: .85rem; font-style: italic; color: var(--ink-soft); margin: 0; }
.names-list { display: grid; gap: .45rem; }
.form-error { color: var(--burgundy); font-style: italic; margin: 0; }
.thanks { background: rgba(255, 250, 248, .7); border: 1px solid var(--line); border-radius: 16px; padding: 2rem 1.2rem; }
.thanks h3 { font-family: var(--serif); font-weight: 500; font-size: 1.9rem; line-height: 1.2; margin: 0 0 .3rem; }
.badge { display: inline-block; font-family: var(--caps); font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; padding: .35rem .7rem; border-radius: 999px; background: rgba(95, 127, 108, .12); color: #3e5a4a; }

.foot { text-align: center; padding-block: 4rem 6rem; color: var(--ink-soft); }
.foot .names { font-size: 1.7rem; line-height: 1.3; }
.foot a { font-family: var(--caps); font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; }

/* scroll hint */
.scroll-hint {
  position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 20;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-family: var(--caps); font-size: .56rem; letter-spacing: .26em; text-transform: uppercase; color: var(--ink);
  background: rgba(251, 250, 246, .92); padding: 6px 12px 8px; border-radius: 12px;
  transition: opacity .4s ease; pointer-events: none;
}
.scroll-hint .mouse { width: 16px; height: 24px; border: 1.5px solid currentColor; border-radius: 9px; position: relative; }
.scroll-hint .mouse::after { content: ""; position: absolute; left: 50%; top: 4px; width: 2px; height: 5px; background: currentColor; transform: translateX(-50%); border-radius: 2px; animation: wheel 1.6s infinite; }
@keyframes wheel { 0% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, 8px); } }
.scroll-hint.gone { opacity: 0; }

.reveal { transition: opacity .9s ease, transform .9s ease; }
.reveal.pre { opacity: .001; transform: translateY(18px); }

/* info page bits */
.updates { display: grid; gap: .8rem; text-align: left; }
.update { background: rgba(255,250,248,.7); border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.1rem; }
.update time { font-family: var(--caps); font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.update h3 { margin: .15rem 0 .25rem; font-size: 1.2rem; font-weight: 600; }
.update p { margin: 0; color: var(--ink-soft); }
.party { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.party div { min-width: 0; }
.party ul { list-style: none; padding: 0; margin: .4rem 0 0; font-size: 1.15rem; line-height: 1.8; }
.party .eyebrow { color: var(--gold); }
.hotels { display: grid; gap: .6rem; text-align: left; margin-top: 1rem; }
.hotels a, .hotels div.h { display: block; text-decoration: none; color: var(--ink); background: rgba(255,250,248,.7); border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1.1rem; }
.hotels small { display: block; color: var(--ink-soft); font-style: italic; }
.code-row { display: flex; gap: .5rem; max-width: 24rem; margin: 0 auto; }
.code-row input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: .2em; text-align: center; }

/* ---------- photos throughout ---------- */
.marquee { position: relative; overflow: hidden; padding-block: 2.2rem 1.6rem; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.mq-track { display: flex; gap: 1.2rem; width: max-content; animation: mq 70s linear infinite; padding-inline: .6rem; will-change: transform; }
.marquee:hover .mq-track { animation-play-state: paused; }
@keyframes mq { to { transform: translateX(-50%); } }
.pola { margin: 0; background: var(--white); padding: 8px 8px 26px; box-shadow: 0 10px 22px rgba(29, 43, 41, .22), 0 1px 2px rgba(29, 43, 41, .2); transform: rotate(var(--r)); flex: none; }
.pola img { height: clamp(150px, 40vw, 220px); width: auto; min-width: clamp(110px, 30vw, 165px); max-width: none; display: block; background: #e4e6e0; }
.band { position: relative; height: clamp(300px, 70vw, 520px); overflow: hidden; contain: paint; margin-block: 2.5rem 0; display: grid; place-items: center; }
.band-bg { position: absolute; inset: -8%; width: 116%; height: 116%; max-width: none; object-fit: cover; filter: blur(22px) saturate(1.1) brightness(.8); transform: scale(1.05) translateZ(0); }
.band-veil { position: absolute; inset: 0; background: linear-gradient(180deg, var(--paper) 0%, rgba(247, 244, 236, 0) 18%, rgba(247, 244, 236, 0) 82%, var(--paper) 100%); }
.band-photo { position: relative; z-index: 1; margin: 0; height: 80%; max-width: calc(100% - 32px); padding: 8px; background: var(--white); box-shadow: 0 18px 40px rgba(20, 32, 30, .35); border: 1px solid rgba(169, 138, 94, .45); }
.band-photo img { height: 100%; width: auto; max-width: 100%; object-fit: contain; display: block; }
.band-line { position: absolute; z-index: 2; left: 0; right: 0; bottom: 6%; text-align: center; font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 5vw, 2rem); line-height: 1.3; color: #fbfaf6; text-shadow: 0 2px 14px rgba(0, 0, 0, .55); }
.mosaic { columns: 2 140px; column-gap: .6rem; max-width: 52rem; margin: 0 auto; }
.mosaic .tilep { display: block; width: 100%; margin: 0 0 .6rem; padding: 0; border: 0; background: var(--paper-2); border-radius: 10px; overflow: hidden; cursor: zoom-in; break-inside: avoid; box-shadow: 0 6px 16px rgba(29, 43, 41, .14); }
.mosaic img { width: 100%; display: block; transition: transform .5s ease; }
.mosaic .tilep:hover img { transform: scale(1.04); }
#photos.section { max-width: 56rem; }
@media (min-width: 700px) { .mosaic { columns: 3 160px; } }
.lb { position: fixed; inset: 0; z-index: 80; background: rgba(12, 20, 21, .94); display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.lb img { max-width: 100%; max-height: 86svh; border-radius: 6px; box-shadow: 0 20px 50px rgba(0, 0, 0, .6); }
.lb button { position: absolute; background: rgba(255, 255, 255, .12); color: #fff; border: 0; width: 46px; height: 46px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; }
.lb-x { top: calc(14px + env(safe-area-inset-top, 0px)); right: max(14px, env(safe-area-inset-right, 0px)); font-size: 1.1rem !important; }
.lb-p { left: max(10px, env(safe-area-inset-left, 0px)); top: 50%; } .lb-n { right: max(10px, env(safe-area-inset-right, 0px)); top: 50%; }
@media (prefers-reduced-motion: reduce) { .mq-track { animation: none; } }
