/* ==========================================================
   ✏️ THEME: change these to restyle the whole site
   ========================================================== */
:root {
  --paper: #fcf9f6;      /* main background (warm white) */
  --mint: #e4eee0;       /* pastel green section */
  --blush: #f7e3e6;      /* pastel pink section */
  --ink: #2e3a31;        /* main text */
  --forest: #4a6150;     /* deep sage: buttons, footer */
  --sage: #93b08e;       /* botanical line art */
  --sage-soft: #b9d1b4;  /* line art on dark backgrounds */
  --rose: #9c4560;       /* accent text (passes contrast on every background) */
  --petal: #d79aab;      /* decorative pink: rules, numbers, borders */
  --pink-soft: #f3c9d3;  /* pink accents on the dark footer */
  --muted: #5f655f;

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --script: "Pinyon Script", "Snell Roundhand", cursive;

  --nav-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 300 17px/1.75 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Fine paper grain over everything */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .35; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .4 0 0 0 0 .35 0 0 0 0 .3 0 0 0 .18 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; margin: 0; line-height: 1.1; }
p { margin: 0 0 1rem; }
em { font-style: italic; }
.center { text-align: center; }
.container { width: min(1180px, 100% - 48px); margin-inline: auto; }
.container.narrow { width: min(780px, 100% - 48px); }

.eyebrow {
  font: 400 .72rem/1 var(--sans);
  letter-spacing: .32em; text-transform: uppercase;
  color: var(--rose); margin-bottom: 1.2rem;
}
.title { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 300; letter-spacing: -.01em; margin-bottom: 1.6rem; }
.title em { font-style: italic; color: var(--rose); }
.lede { font-family: var(--serif); font-size: clamp(1.25rem, 2.2vw, 1.5rem); line-height: 1.55; font-weight: 400; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 1.05rem 2.6rem;
  background: var(--forest); color: var(--paper);
  border: 0; border-radius: 999px;
  font: 400 .74rem/1 var(--sans); letter-spacing: .28em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: background .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
}
.btn:hover { background: var(--rose); transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(156, 69, 96, .45); }
.btn:disabled { opacity: .6; cursor: wait; }
.link {
  font: 400 .74rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; text-decoration: none;
  color: var(--rose); border-bottom: 1px solid currentColor; padding-bottom: .35rem;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 60; height: var(--nav-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 clamp(20px, 4vw, 48px);
  transition: background .4s, box-shadow .4s, height .4s;
}
.nav.is-scrolled { background: rgba(252, 249, 246, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(44, 53, 41, .08); }
.nav__side { display: flex; gap: clamp(1.2rem, 2.5vw, 2.4rem); }
.nav__side--right { justify-content: flex-end; }
.nav__side a {
  font: 400 .7rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; text-decoration: none;
  position: relative; padding: .4rem 0;
}
.nav__side a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--rose);
  transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.nav__side a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__rsvp { color: var(--rose); }
.nav__monogram {
  font: 300 1.9rem/1 var(--serif); letter-spacing: .12em; text-decoration: none;
  display: flex; align-items: baseline; gap: .1em;
}
.nav__monogram span { font-family: var(--script); color: var(--rose); font-size: 1.5em; letter-spacing: 0; margin: 0 .05em; }
.nav__toggle { display: none; justify-self: end; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; z-index: 70; }
.nav__toggle span { position: absolute; left: 10px; right: 10px; height: 1px; background: var(--ink); transition: transform .4s var(--ease), top .4s var(--ease); }
.nav__toggle span:first-child { top: 18px; }
.nav__toggle span:last-child { top: 26px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 22px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 22px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 55; background: var(--paper);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.4rem;
  opacity: 0; transition: opacity .4s var(--ease);
}
.menu.is-open { opacity: 1; }
.menu a { font: 300 2.2rem/1 var(--serif); text-decoration: none; }
.menu a.menu__rsvp { font-style: italic; color: var(--rose); }

@media (max-width: 900px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav__side { display: none; }
  .nav__toggle { display: block; }
}

/* ---------- Arched photo frames ---------- */
.arch {
  position: relative; margin: 0; overflow: hidden;
  border-radius: 999px 999px 6px 6px;
  background: linear-gradient(170deg, #e8f1e4 0%, #d3e4cd 55%, #bfd6b8 100%);
}
.arch img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.arch__placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.75); }
.arch__placeholder svg { width: 38%; height: 60%; }
.arch__placeholder--blush { background: linear-gradient(170deg, #fbecee, #efc8d0); }
.arch::after { /* thin inner border like a mat */
  content: ""; position: absolute; inset: 10px; z-index: 2; pointer-events: none;
  border: 1px solid rgba(255,255,255,.55); border-radius: inherit;
}

.sprig { position: absolute; color: var(--sage); pointer-events: none; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(2rem, 5vw, 5rem);
  padding: calc(var(--nav-h) + 3rem) clamp(24px, 6vw, 96px) 4rem;
  position: relative;
}
.hero__text { text-align: center; }
.hero__names { display: flex; flex-direction: column; align-items: center; margin-bottom: 1.4rem; }
.hero__name { font-size: clamp(3.2rem, 7.5vw, 6.6rem); font-weight: 300; letter-spacing: -.02em; line-height: .95; }
.hero__amp { font-family: var(--script); color: var(--rose); font-size: clamp(3rem, 6vw, 5rem); line-height: .9; margin: .1em 0 .05em; }
.hero__invite { font-family: var(--serif); font-style: italic; font-size: clamp(1.15rem, 2vw, 1.4rem); color: var(--muted); margin-bottom: 2rem; }
.hero__date { display: flex; align-items: center; justify-content: center; gap: 1.4rem; margin-bottom: 2.4rem; }
.hero__date .rule { flex: 0 1 70px; height: 1px; background: var(--petal); }
.hero__date p {
  margin: 0; display: grid; gap: .45rem;
  font: 400 .72rem/1 var(--sans); letter-spacing: .3em; text-transform: uppercase;
}
.hero__date b { font: 400 clamp(1.5rem, 3vw, 2rem)/1 var(--serif); letter-spacing: .06em; text-transform: none; }

.countdown { display: grid; width: max-content; grid-template-columns: repeat(4, auto); gap: 0; margin: 0 auto 2.6rem; }
.countdown div { display: grid; gap: .5rem; padding: 0 clamp(.9rem, 2.4vw, 1.8rem); }
.countdown div + div { border-left: 1px solid rgba(44, 53, 41, .15); }
.countdown span { font: 300 clamp(2rem, 4vw, 2.8rem)/1 var(--serif); font-variant-numeric: tabular-nums; }
.countdown small { font-size: .62rem; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); }

.hero__art { position: relative; justify-self: center; width: min(460px, 100%); }
.arch--hero { aspect-ratio: 3 / 4.2; box-shadow: 0 40px 80px -40px rgba(44, 53, 41, .45); }
.sprig--hero-a { width: 120px; height: 220px; left: -64px; bottom: -30px; transform: rotate(-18deg); }
.sprig--hero-b { width: 90px; height: 165px; right: -40px; top: 10%; transform: rotate(160deg); color: var(--rose); opacity: .55; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: calc(var(--nav-h) + 1.5rem); }
  .hero__art { order: -1; width: min(320px, 78%); }
  .sprig--hero-a { width: 80px; height: 150px; left: -42px; }
  .sprig--hero-b { width: 60px; height: 110px; right: -26px; }
}

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid rgba(44, 53, 41, .14); overflow: hidden; padding: 1.1rem 0; background: var(--paper); }
.marquee__track { display: flex; gap: 2.2rem; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { font: italic 300 clamp(1.3rem, 2.5vw, 1.8rem)/1 var(--serif); white-space: nowrap; }
.marquee i { font-style: normal; color: var(--petal); align-self: center; font-size: .9rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(5rem, 12vw, 9rem) 0; position: relative; }
.section--mint { background: var(--mint); }
.section--blush { background: var(--blush); }
.section__sub { font: italic 400 1.2rem/1.5 var(--serif); color: var(--muted); margin: -.6rem 0 0; }
.section__head { text-align: center; margin-bottom: clamp(3rem, 6vw, 4.5rem); }

/* Story */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 7vw, 7rem); align-items: center; }
.story__photos { position: relative; padding: 0 12% 18% 0; }
.arch--tall { aspect-ratio: 3 / 4.3; }
.arch--small { position: absolute; width: 46%; aspect-ratio: 3 / 4; right: 0; bottom: 0; border: 8px solid var(--paper); box-shadow: 0 30px 50px -30px rgba(44, 53, 41, .5); }
.story__text .lede::first-letter { float: left; font-size: 4.2em; line-height: .8; padding: .08em .12em 0 0; color: var(--rose); font-weight: 300; }
.milestones { list-style: none; padding: 0; margin: 2.6rem 0 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(44, 53, 41, .15); }
.milestones li { padding-top: 1.2rem; position: relative; }
.milestones li::before { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--rose); }
.milestones b { display: block; font: 400 1.6rem/1 var(--serif); margin-bottom: .4rem; }
.milestones span { font-size: .78rem; letter-spacing: .06em; color: var(--muted); }
@media (max-width: 900px) {
  .story { grid-template-columns: 1fr; }
  .story__photos { width: min(420px, 100%); margin-inline: auto; }
  .milestones { grid-template-columns: repeat(2, 1fr); row-gap: 1.6rem; }
}

/* Quote */
.quote { position: relative; padding: clamp(4rem, 10vw, 7rem) 24px; text-align: center; background: var(--blush); overflow: hidden; }
.quote blockquote { margin: 0 auto; max-width: 820px; font: italic 300 clamp(1.7rem, 4vw, 2.8rem)/1.35 var(--serif); }
.quote cite { display: block; margin-top: 1.6rem; font: normal 400 .72rem/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--rose); }
.sprig--quote { width: 140px; height: 260px; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(90deg); opacity: .18; }

/* Schedule */
.days { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 3rem); }
.day__label {
  font: 400 .74rem/1 var(--sans); letter-spacing: .3em; text-transform: uppercase;
  padding-bottom: 1rem; margin-bottom: 1.6rem; border-bottom: 1px solid rgba(46, 58, 49, .18);
  display: flex; justify-content: space-between;
}
.day__label span { color: var(--rose); }
.event { display: grid; grid-template-columns: 84px 1fr; gap: 1rem; padding-bottom: 1.8rem; }
.event time { font: italic 400 1.15rem/1.5 var(--serif); color: var(--rose); }
.event h4 { font-size: 1.8rem; font-weight: 300; margin-bottom: .35rem; }
.event p { margin: 0; font-size: .92rem; opacity: .85; }
.event .event__note { font-family: var(--serif); font-style: italic; font-size: 1.05rem; opacity: .7; margin-top: .3rem; }
@media (max-width: 900px) { .days { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }

/* Travel */
.travel { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 2.5vw, 2rem); }
.travel__card {
  background: rgba(255, 255, 255, .55); padding: clamp(2rem, 3.5vw, 2.8rem);
  border: 1px solid rgba(44, 53, 41, .1); border-radius: 2px;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), background .5s;
}
.travel__card:hover { transform: translateY(-6px); background: #fff; box-shadow: 0 30px 60px -40px rgba(44, 53, 41, .5); }
.travel__num { font: italic 300 3rem/1 var(--serif); color: var(--petal); display: block; margin-bottom: 1.2rem; }
.travel__card h3 { font-size: 2rem; font-weight: 300; margin-bottom: 1rem; }
.travel__card p { font-size: .95rem; }
.travel__card ul { padding: 0; margin: 0; list-style: none; }
.travel__card li { padding: .55rem 0; border-bottom: 1px dashed rgba(44, 53, 41, .18); font-size: .95rem; }
@media (max-width: 900px) { .travel { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }

/* Wedding party */
.party { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 3rem 2rem; text-align: center; }
.person__photo {
  width: 100%; max-width: 170px; aspect-ratio: 3 / 4; margin: 0 auto 1.2rem;
  border-radius: 999px 999px 4px 4px; overflow: hidden;
  background: linear-gradient(170deg, #fbecee, #efc8d0);
  display: grid; place-items: center;
  font: 400 3.4rem/1 var(--script); color: var(--rose);
  transition: transform .5s var(--ease);
}
.person:hover .person__photo { transform: translateY(-6px); }
@media (max-width: 600px) {
  .party { grid-template-columns: repeat(2, 1fr); gap: 2.4rem 1.2rem; }
  .person__photo { max-width: 140px; font-size: 2.8rem; }
}
.person__photo img { width: 100%; height: 100%; object-fit: cover; }
.person h4 { font-size: 1.5rem; font-weight: 400; margin-bottom: .2rem; }
.person p { margin: 0; font-size: .66rem; letter-spacing: .26em; text-transform: uppercase; color: var(--rose); }

/* Registry */
.registry { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.6rem; }
.registry a {
  display: flex; flex-direction: column; gap: .8rem; padding: 2rem 1.2rem; text-decoration: none;
  border: 1px solid rgba(44, 53, 41, .2); transition: background .4s, border-color .4s, color .4s;
}
.registry a span { font: 400 1.6rem/1.1 var(--serif); }
.registry a small { font-size: .66rem; letter-spacing: .26em; text-transform: uppercase; color: var(--rose); transition: color .4s; }
.registry a:hover { background: var(--forest); border-color: var(--forest); color: var(--paper); }
.registry a:hover small { color: var(--pink-soft); }
@media (max-width: 700px) { .registry { grid-template-columns: 1fr; } }

/* FAQ */
.faq details { border-bottom: 1px solid rgba(44, 53, 41, .16); }
.faq details:first-child { border-top: 1px solid rgba(44, 53, 41, .16); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.5rem 0;
  font: 400 clamp(1.3rem, 2.5vw, 1.65rem)/1.3 var(--serif);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background: linear-gradient(var(--rose), var(--rose)) center / 100% 1px no-repeat,
              linear-gradient(var(--rose), var(--rose)) center / 1px 100% no-repeat;
  transition: transform .4s var(--ease);
}
.faq details[open] summary::after { transform: rotate(135deg); }
.faq details p { padding: 0 0 1.6rem; margin: 0; color: var(--muted); max-width: 62ch; }

/* RSVP */
.rsvp { background: var(--blush); }
.rsvp__card {
  position: relative; max-width: 680px; margin: 0 auto; text-align: center;
  background: var(--paper); padding: clamp(3rem, 7vw, 5rem) clamp(1.5rem, 6vw, 4.5rem);
  box-shadow: 0 50px 90px -50px rgba(44, 53, 41, .55);
}
.rsvp__card::before { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(215, 154, 171, .7); pointer-events: none; }
.sprig--rsvp-a { width: 100px; height: 180px; left: -46px; top: -40px; transform: rotate(-24deg); }
.sprig--rsvp-b { width: 100px; height: 180px; right: -46px; bottom: -40px; transform: rotate(156deg); color: var(--rose); opacity: .6; }
.rsvp__by { font: italic 400 1.2rem/1.4 var(--serif); color: var(--muted); margin-bottom: 2.6rem; }

.rsvp__form { display: grid; gap: 1.6rem; text-align: left; }
.rsvp__if-yes { display: grid; gap: 1.6rem; }
.rsvp__if-yes[hidden] { display: none; }
.field { position: relative; }
.field input, .field select, .field textarea {
  width: 100%; font: 400 1.05rem/1.4 var(--sans); color: var(--ink);
  padding: 1.5rem 0 .6rem; background: transparent;
  border: 0; border-bottom: 1px solid rgba(44, 53, 41, .3); border-radius: 0;
  outline: none; transition: border-color .3s; -webkit-appearance: none; appearance: none;
}
.field select { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%232c3529'/%3E%3C/svg%3E") right center no-repeat; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--rose); }
.field label {
  position: absolute; left: 0; top: 1.5rem; pointer-events: none;
  font-size: 1rem; color: var(--muted); transition: all .3s var(--ease);
}
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field label.is-static {
  top: 0; font-size: .66rem; letter-spacing: .24em; text-transform: uppercase; color: var(--rose);
}

.choice { border: 0; padding: 0; margin: .4rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.choice legend { font-size: .66rem; letter-spacing: .24em; text-transform: uppercase; color: var(--rose); margin-bottom: .9rem; padding: 0; }
.choice label { cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: block; text-align: center; padding: 1rem .5rem;
  border: 1px solid rgba(44, 53, 41, .25);
  font: italic 400 1.2rem/1.2 var(--serif); transition: all .3s var(--ease);
}
.choice input:checked + span { background: var(--forest); border-color: var(--forest); color: var(--paper); }
.choice input:focus-visible + span { outline: 2px solid var(--rose); outline-offset: 2px; }
@media (max-width: 480px) { .choice { grid-template-columns: 1fr; } }

.rsvp__form .btn { justify-self: center; margin-top: .8rem; }
.rsvp__status { text-align: center; min-height: 1.6em; margin: 0; font: italic 400 1.3rem/1.4 var(--serif); color: var(--forest); }

/* Footer */
.footer { position: relative; overflow: hidden; background: var(--forest); color: var(--paper); text-align: center; padding: 6rem 24px 4rem; }
.sprig--footer { width: 90px; height: 165px; left: 50%; top: -20px; transform: translateX(-50%) rotate(180deg); color: var(--sage-soft); opacity: .6; }
.footer__names { font: 300 clamp(2.2rem, 6vw, 3.6rem)/1.1 var(--serif); margin: 2rem 0 1rem; }
.footer__names span { font-family: var(--script); color: var(--pink-soft); }
.footer__date { letter-spacing: .4em; font-size: .78rem; margin-bottom: .6rem; }
.footer__tag { font: italic 400 1.15rem/1 var(--serif); color: var(--pink-soft); margin: 0; }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
