
:root {
  --background: #f3efe7;
  --foreground: #25271f;
  --card: #fffdf8;
  --card-foreground: #25271f;
  --primary: #536149;
  --primary-foreground: #fffdf8;
  --secondary: #d9d3c5;
  --secondary-foreground: #25271f;
  --muted: #e8e2d7;
  --muted-foreground: #6f7068;
  --accent: #a78362;
  --accent-foreground: #fffdf8;
  --border: #d8d1c3;
  --input: #d8d1c3;
  --ring: #536149;
  --radius: 1rem;
  --sage: #7b886d;
  --deep-green: #3f4d3b;
  --cream: #f3efe7;
  --paper: #fffdf8;
  --wood: #a78362;
  --ink: #25271f;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Avenir Next", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
}
button, input, textarea, select { font: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }

.topbar {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  color: #25271f;
}
.mini-logo {
  font-family: Georgia, serif;
  font-size: 18px;
  letter-spacing: .08em;
}
.mini-logo span { color: #c5b8a0; font-style: italic; }
.menu-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(37,39,31,.3);
  border-radius: 50%;
  background: rgba(255,253,248,.82);
  color: #25271f;
  backdrop-filter: blur(10px);
}
.mobile-nav {
  position: fixed;
  z-index: 51;
  top: 76px;
  right: 18px;
  left: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(37,39,31,.12);
  border-radius: 22px;
  background: rgba(243,239,231,.97);
  color: #25271f;
  box-shadow: 0 18px 45px rgba(24,27,21,.2);
  backdrop-filter: blur(16px);
}
.mobile-nav a { padding: 13px 10px; border-radius: 13px; font-family: Georgia, serif; font-size: 17px; text-align: center; }
.mobile-nav a:hover { background: #e4ded2; }

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: #1f211d;
  color: white;
}
.hero > img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  object-position: 52% center;
  animation: heroReveal 1.4s ease-out both;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,16,13,.16), rgba(15,16,13,.05) 42%, rgba(15,16,13,.68));
}
.hero-copy {
  position: absolute;
  left: 28px;
  right: 28px;
  top: 10.5%;
  color: #25271f;
  text-align: center;
  animation: riseIn 1s .25s ease-out both;
}
.hero h1, h2, footer p {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}
.hero h1 {
  margin: 12px auto 11px;
  max-width: 330px;
  font-size: clamp(2.55rem, 11.5vw, 4.7rem);
  line-height: .94;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.hero-name-line { display: block; white-space: nowrap; }
.hero h1 i { color: #536149; font-weight: 400; }
footer i { color: #ced6c7; font-weight: 400; }
.hero-copy > p {
  display: inline-flex;
  margin: 7px 0 0;
  padding: 8px 13px 8px 17px;
  border: 1px solid rgba(63,77,59,.24);
  border-radius: 999px;
  background: rgba(255,253,248,.78);
  color: #2f382d;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .24em;
  backdrop-filter: blur(8px);
}
.hero-copy .eyebrow.light { color: #3f4d3b; }
.eyebrow {
  display: inline-block;
  color: var(--deep-green);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
}
.eyebrow.light { color: #f3efe7; }
.scroll-cue {
  position: absolute;
  right: 0;
  bottom: 24px;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.scroll-cue svg { animation: bob 1.8s infinite; }

.countdown-section, .day-section, .rsvp-section {
  padding: 86px 22px;
  text-align: center;
}
.section-mark { margin: 0 auto 20px; color: var(--sage); width: 36px; height: 36px; }
h2 {
  margin: 10px auto 28px;
  font-size: clamp(2.15rem, 10vw, 4rem);
  line-height: 1.05;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 540px;
  margin: 38px auto 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.countdown div { padding: 21px 3px 18px; border-right: 1px solid var(--border); }
.countdown div:last-child { border: 0; }
.countdown strong { display: block; font-family: Georgia, serif; font-size: 28px; font-weight: 400; }
.countdown span { display: block; margin-top: 5px; color: #77776e; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }

.story-section { padding: 24px 18px 90px; }
.portrait-card { position: relative; max-width: 520px; margin: auto; padding-right: 20px; }
.portrait-card img { aspect-ratio: 4 / 5.8; border-radius: 2px 70px 2px 2px; object-fit: cover; object-position: center; }
.vertical-note {
  position: absolute;
  right: -35px;
  bottom: 100px;
  color: var(--wood);
  font-family: Georgia, serif;
  font-size: 14px;
  font-style: italic;
  letter-spacing: .08em;
  transform: rotate(90deg);
}
.story-copy { max-width: 540px; margin: 42px auto 0; }
.story-copy h2 { margin-bottom: 24px; font-size: clamp(2.3rem, 11vw, 4.5rem); }
.story-copy > p:not(.signature) { color: #5f625a; line-height: 1.85; }
.signature { margin-top: 24px; color: var(--wood); font-family: "Brush Script MT", cursive; font-size: 27px; }

.family-banner { position: relative; min-height: 620px; overflow: hidden; color: white; }
.family-banner > img { position: absolute; inset: 0; height: 100%; object-fit: cover; object-position: center; }
.family-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(25,26,22,.04), rgba(25,26,22,.66)); }
.family-copy { position: absolute; right: 28px; bottom: 44px; left: 28px; text-align: center; }
.family-copy svg { margin: 0 auto 16px; }
.family-copy p { margin: 0; font-family: Georgia, serif; font-size: 32px; line-height: 1.08; }
.family-copy span { display: block; margin-top: 12px; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; }

.day-section { background: var(--paper); }
.date-seal {
  display: grid;
  place-items: center;
  width: 138px;
  height: 138px;
  margin: 30px auto 42px;
  padding: 22px;
  border: 1px solid var(--sage);
  border-radius: 50%;
  color: var(--deep-green);
}
.date-seal strong { margin: -7px 0; font-family: Georgia, serif; font-size: 54px; font-weight: 400; line-height: 1; }
.date-seal span { font-size: 10px; letter-spacing: .22em; }
.schedule { max-width: 530px; margin: 0 auto; }
.schedule article { display: flex; align-items: center; gap: 18px; padding: 19px 4px; border-bottom: 1px solid var(--border); text-align: left; }
.schedule-icon { display: grid; flex: 0 0 auto; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #e7ebdf; color: var(--deep-green); }
.schedule time { color: var(--wood); font-size: 11px; font-weight: 700; letter-spacing: .16em; }
.schedule h3 { margin: 4px 0 0; font-family: Georgia, serif; font-size: 25px; font-weight: 400; }

.venue-section {
  padding: 90px 25px;
  background: var(--deep-green);
  color: white;
  text-align: center;
}
.venue-section > svg { margin: 0 auto 20px; color: #c9d3c2; }
.venue-section h2 { margin-bottom: 22px; }
.venue-section p { max-width: 510px; margin: 0 auto 30px; color: #d9dfd5; line-height: 1.7; }
.outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.info-cards { display: grid; gap: 1px; background: var(--border); }
.info-cards article { padding: 58px 28px; background: var(--paper); text-align: center; }
.info-cards svg { margin: 0 auto 18px; color: var(--sage); }
.info-cards h3 { margin: 0 0 14px; font-family: Georgia, serif; font-size: 27px; font-weight: 400; }
.info-cards p { max-width: 460px; margin: 0 auto; color: #66685f; line-height: 1.75; }
.info-cards p + p { margin-top: 12px; }
.kids-card { background: #e7e2d4 !important; }

.rsvp-section { position: relative; overflow: hidden; padding-bottom: 100px; background: linear-gradient(150deg, #f4f0e8 0%, #e5e3d8 100%); }
.rsvp-section::before, .rsvp-section::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(83,97,73,.16);
  border-radius: 50%;
}
.rsvp-section::before { top: -90px; left: -85px; }
.rsvp-section::after { right: -105px; bottom: -70px; }
.rsvp-orbit { display: grid; place-items: center; width: 62px; height: 62px; margin: 0 auto 24px; border: 1px solid var(--sage); border-radius: 50%; color: var(--deep-green); }
.rsvp-heading { max-width: 570px; margin: auto; }
.rsvp-heading > p { color: #676960; line-height: 1.7; }
.contact-card {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin: 38px auto 0;
  padding: 36px 22px;
  border: 1px solid rgba(83,97,73,.18);
  border-radius: 30px;
  background: rgba(255,253,248,.72);
  box-shadow: 0 22px 70px rgba(54,58,45,.08);
  backdrop-filter: blur(10px);
}
.contact-icon { display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 50%; background: #e3e8dc; color: var(--deep-green); }
.contact-card .contact-intro { margin: 0 0 22px; color: #65675e; }
.contact-options { display: grid; gap: 12px; }
.contact-options a {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 11px 18px;
  border: 1px solid rgba(83,97,73,.18);
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  color: var(--deep-green);
  text-align: left;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.contact-options a span { min-width: 92px; font-family: Georgia, serif; font-size: 17px; }
.contact-options a strong { flex: 1; font-size: 15px; font-weight: 600; letter-spacing: .04em; }
.contact-options a svg { flex: 0 0 auto; }
.contact-options a:hover { border-color: var(--sage); background: white; transform: translateY(-2px); }
.contact-options a:focus-visible { outline: 3px solid rgba(83,97,73,.3); outline-offset: 3px; }

footer { padding: 65px 20px; background: #282e27; color: white; text-align: center; }
footer svg { margin: 0 auto 18px; color: #aeb9a5; }
footer p { margin: 0; font-size: 33px; }
footer span { display: block; margin-top: 12px; color: #bdc4b8; font-size: 10px; letter-spacing: .22em; }

@keyframes heroReveal { from { opacity: 0; transform: scale(1.045); } to { opacity: 1; transform: scale(1); } }
@keyframes riseIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }

@media (min-width: 760px) {
  .topbar { padding: 22px 34px; }
  .hero-copy { top: auto; bottom: 15%; color: white; }
  .hero-copy .eyebrow.light { color: #f3efe7; }
  .hero h1 i { color: #ced6c7; }
  .hero h1 { max-width: 520px; font-size: clamp(3.8rem, 7vw, 5.8rem); }
  .hero-copy > p { margin-top: 0; padding: 0; border: 0; background: transparent; color: white; font-size: 13px; font-weight: 400; backdrop-filter: none; }
  .story-section { display: grid; grid-template-columns: minmax(320px, 520px) minmax(300px, 560px); align-items: center; gap: 8vw; max-width: 1180px; margin: auto; padding: 110px 40px; }
  .story-copy { margin: 0; }
  .story-copy h2 { text-align: left; }
  .family-banner { min-height: 780px; }
  .family-banner > img { object-position: center 38%; }
  .info-cards { grid-template-columns: 1fr; }
  .info-cards article { display: flex; min-height: 410px; flex-direction: column; justify-content: center; }
  .countdown-section, .day-section, .rsvp-section { padding: 120px 40px; }
  .venue-section { padding: 120px 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}