:root {
  --bg: #fbf7f2;          /* warm ivory paper */
  --bg-deep: #f5ede5;
  --surface: #fffdfa;
  --blush: #f3e2da;
  --ink: #1f2a3c;         /* harbour navy */
  --muted: #6c7282;
  --accent: #b07f70;      /* dusty rose gold */
  --accent-deep: #96685a;
  --accent-ink: #ffffff;
  --hair: #dcc8b9;        /* fine gold-rose hairlines */
  --sea: #8fa7b8;         /* the nautical hint */
  --line: #ece2d8;
  --error: #a33b2f;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* faint paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.45 0 0 0 0 0.38 0 0 0 0 0.33 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.1; margin: 0 0 .5em; }
h2 { font-size: clamp(2rem, 5.5vw, 2.75rem); text-align: center; font-weight: 300; }
h3 { font-size: 1.75rem; }
a { color: var(--accent-deep); }
em { font-style: italic; }
.muted { color: var(--muted); }

.section-eyebrow, .eyebrow, .kicker {
  letter-spacing: .32em;
  text-transform: uppercase;
  font-size: .68rem;
  font-weight: 500;
}
.section-eyebrow { text-align: center; color: var(--accent); margin: 0 0 .75rem; }
.kicker { color: var(--accent); margin: 0 0 .5rem; }

/* Nav */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: rgba(251, 247, 242, .82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-mark { font-family: var(--serif); font-size: 1.35rem; color: var(--ink); text-decoration: none; letter-spacing: .04em; }
.nav-mark em { color: var(--accent); padding: 0 .1em; }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-size: .7rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: border-color .2s, color .2s;
}
.nav-links a:hover { color: var(--accent-deep); border-bottom-color: var(--hair); }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 104px 16px 150px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, var(--blush), transparent 70%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(143,167,184,.14), transparent 70%),
    var(--bg);
}
.hero-inner { display: flex; flex-direction: column; align-items: center; }

.crest { position: relative; width: 92px; height: 92px; margin-bottom: 2rem; }
.crest svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.crest circle { fill: none; stroke: var(--hair); stroke-width: 1; }
.crest span {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 1.6rem; letter-spacing: .04em;
}
.crest em { color: var(--accent); font-size: .85em; padding: 0 .08em; }
.crest.small { width: 64px; height: 64px; margin: 0 auto 1rem; }
.crest.small span { font-size: 1.15rem; }

.eyebrow { color: var(--muted); margin: 0 0 1.5rem; }
.names {
  font-size: clamp(3.25rem, 11vw, 7rem);
  font-weight: 300;
  letter-spacing: .01em;
  margin: 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: .25em;
  flex-wrap: wrap;
}
.names .amp { font-style: italic; color: var(--accent); font-size: .8em; }
.lede {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.25rem, 3.6vw, 1.6rem);
  line-height: 1.45;
  margin: 1.5rem 0 2.25rem;
}

.dateline { display: flex; align-items: center; gap: 22px; }
.dateline .side {
  font-size: .72rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  padding: 10px 0;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  min-width: 112px;
}
.dateline .day { font-family: var(--serif); font-size: 3.5rem; font-weight: 300; line-height: 1; }
.year { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--muted); margin: .9rem 0 .25rem; }
.place { font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); margin: 0 0 2.5rem; }
.place span { color: var(--accent); padding: 0 .4em; }

.hero-waves { position: absolute; left: 0; bottom: 0; width: 100%; height: 120px; }
.hero-waves path { fill: none; stroke: var(--sea); stroke-width: 1.25; vector-effect: non-scaling-stroke; }
.hero-waves .w1 { opacity: .5; }
.hero-waves .w2 { opacity: .32; }
.hero-waves .w3 { opacity: .2; }

.countdown {
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--accent-deep);
  padding: 8px 16px 0;
}

/* Sections */
main section { max-width: 880px; margin: 0 auto; padding: 88px 16px; }

.wave-rule { display: block; width: min(200px, 55vw); height: 16px; margin: 0 auto 2rem; }
.wave-rule path { fill: none; stroke: var(--sea); stroke-width: 1.25; }

.verse { text-align: center; padding-top: 56px; padding-bottom: 32px; }
.verse blockquote { margin: 0; }
.verse p {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.6rem, 4.5vw, 2.25rem);
  line-height: 1.35;
  margin: 0 0 1rem;
}
.verse cite { font-style: normal; font-size: .68rem; letter-spacing: .32em; text-transform: uppercase; color: var(--accent); }

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 3rem 0 0; position: relative; }
.timeline.multi::before {
  content: "";
  position: absolute;
  top: 28px; bottom: 28px;
  left: 172px;
  width: 1px;
  background: linear-gradient(var(--hair), var(--hair)) center / 1px 100% no-repeat;
}
.stop { display: grid; grid-template-columns: 150px 44px 1fr; align-items: start; margin-bottom: 36px; }
.stop:last-child { margin-bottom: 0; }
.time {
  text-align: right;
  padding-top: 20px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--muted);
}
.time span { display: block; font-style: normal; font-size: 2.5rem; font-weight: 300; color: var(--ink); line-height: 1; margin-bottom: 4px; }
.node {
  justify-self: center;
  margin-top: 34px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--accent);
  box-shadow: 0 0 0 5px var(--bg);
  position: relative;
  z-index: 1;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 32px 32px 26px;
  box-shadow: 0 24px 48px -32px rgba(31,42,60,.22);
  position: relative;
}
.card::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid var(--line);
  pointer-events: none;
}
.card h3 { margin-bottom: .4rem; }
.venue { font-family: var(--serif); font-size: 1.3rem; line-height: 1.35; margin: 0 0 .75rem; }
.venue em { color: var(--accent-deep); }
.address { color: var(--muted); margin: 0 0 1rem; font-size: .95rem; }
.maps { display: flex; gap: 20px; flex-wrap: wrap; margin: 0 0 1.25rem; position: relative; z-index: 1; }
.maps a {
  font-size: .68rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--hair);
}
.maps a:hover { border-bottom-color: var(--accent); }
.notes { margin: 0; padding: 1.1rem 0 0; border-top: 1px solid var(--line); list-style: none; font-size: .92rem; color: #485164; }
.notes li { position: relative; padding-left: 22px; margin-bottom: .45rem; }
.notes li::before {
  content: "";
  position: absolute;
  left: 0; top: .62em;
  width: 12px; height: 6px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 6'%3E%3Cpath d='M0 3 Q3 0 6 3 T12 3' fill='none' stroke='%238fa7b8' stroke-width='1.2'/%3E%3C/svg%3E") no-repeat;
}
.notes strong { font-weight: 500; color: var(--ink); }
.cal { margin: 1.1rem 0 0; position: relative; z-index: 1; }
.cal a {
  font-size: .7rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--hair);
}

@media (max-width: 680px) {
  .nav { padding: 12px 16px; }
  .nav-links { gap: 18px; }
  .nav-links a { font-size: .62rem; letter-spacing: .2em; }
  .names { flex-direction: column; align-items: center; gap: 0; line-height: 1.05; }
  .dateline { gap: 14px; }
  .dateline .side { min-width: 92px; font-size: .64rem; letter-spacing: .24em; }
  .dateline .day { font-size: 3rem; }
  .timeline.multi::before { left: 5px; top: 10px; }
  .stop { grid-template-columns: 11px 1fr; column-gap: 18px; }
  .time { grid-column: 2; text-align: left; padding-top: 0; margin-bottom: 12px; }
  .time span { display: inline; font-size: 2rem; margin-right: 8px; }
  .node { grid-column: 1; grid-row: 1; margin-top: 12px; }
  .card { grid-column: 2; padding: 26px 22px 20px; }
}

/* RSVP */
.rsvp { text-align: center; }
.frame { max-width: 580px; margin: 2.25rem auto 0; }
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 36px 30px;
  text-align: left;
  position: relative;
  box-shadow: 0 24px 48px -32px rgba(31,42,60,.22);
}
.panel::after { content: ""; position: absolute; inset: 6px; border: 1px solid var(--line); pointer-events: none; }
.panel > * { position: relative; z-index: 1; }
label { display: block; font-weight: 500; font-size: .85rem; margin: 1.35rem 0 .45rem; }
.panel > label:first-child { margin-top: 0; }
input, textarea {
  width: 100%;
  font: inherit;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--bg);
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
input:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(176,127,112,.15); }
#code { text-transform: uppercase; letter-spacing: .14em; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row input { flex: 1 1 180px; }
.row .button { flex: 1 0 auto; }

.button {
  display: inline-block;
  font: inherit;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  font-size: .7rem;
  padding: 16px 36px;
  border: 1px solid var(--accent);
  border-radius: 0;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  cursor: pointer;
  transition: background .25s, color .25s, border-color .25s;
}
.hero .button { background: transparent; color: var(--accent-deep); }
.hero .button:hover { background: var(--accent); color: var(--accent-ink); }
.button:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.button:disabled { opacity: .6; cursor: wait; }
#reply .button { margin-top: 1.75rem; width: 100%; }
.link { background: none; border: 0; color: var(--accent-deep); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 0; }
.error { color: var(--error); font-size: .9rem; margin: .75rem 0 0; min-height: 1em; }

.event { border-top: 1px solid var(--line); padding-top: 1.1rem; margin-top: 1.1rem; }
.event h4 { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; margin: 0; }
.event .when { color: var(--muted); font-size: .88rem; margin: 0 0 .5rem; }
.guest { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; flex-wrap: wrap; }
.guest > span:first-child { font-family: var(--serif); font-size: 1.2rem; }
.choice { display: flex; gap: 6px; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice label {
  margin: 0;
  font-weight: 400;
  font-size: .8rem;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: all .2s;
}
.choice label:hover { border-color: var(--hair); }
.choice input:checked + label { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.choice input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.thanks { text-align: center; }
.link.small { font-size: .8rem; color: var(--muted); }
#switch { margin-top: -.25rem; }
.thanks h3 { font-style: italic; }

/* FAQ */
.faq { max-width: 720px !important; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  font-family: var(--serif);
  font-size: 1.35rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); font-weight: 300; font-size: 1.25rem; color: var(--accent); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: .75rem 0 0; color: var(--muted); }

footer {
  text-align: center;
  padding: 72px 16px 64px;
  background: linear-gradient(transparent, var(--bg-deep));
  font-family: var(--serif);
  font-size: 1.25rem;
}
footer p { margin: 0 0 .25rem; font-style: italic; }
footer .muted { font-family: var(--sans); font-style: normal; font-size: .7rem; letter-spacing: .32em; }

/* Gentle entrance */
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.rise { animation: rise 1s ease both; }
.hero-inner > .rise:nth-child(1) { animation-delay: .05s; }
.hero-inner > .rise:nth-child(2) { animation-delay: .2s; }
.hero-inner > .rise:nth-child(3) { animation-delay: .35s; }
.hero-inner > .rise:nth-child(4) { animation-delay: .55s; }
.hero-inner > .rise:nth-child(n+5) { animation-delay: .75s; }
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .9s ease, transform .9s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .rise { animation: none; }
}
