:root {
  --forest: #648247;
  --forest-deep: #35523d;
  --wine: #cf7654;
  --ivory: #fff9ec;
  --paper: #fffef8;
  --ink: #34483e;
  --gold: #d9a53c;
  --sun: #f2cb70;
  --muted: #67766e;
  --line: rgba(53, 82, 61, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 88px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--ivory);
  font-family: "Source Sans 3", "Avenir Next", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}
img { display: block; width: 100%; }
a { color: inherit; }

.topbar {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px clamp(22px, 5vw, 80px);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  transition: padding .28s ease, color .28s ease, background-color .28s ease, border-color .28s ease, box-shadow .28s ease;
}
.topbar.is-scrolled {
  padding-top: 12px;
  padding-bottom: 12px;
  color: var(--ink);
  background: rgba(255, 252, 244, .86);
  border-bottom-color: rgba(53, 82, 61, .14);
  box-shadow: 0 10px 30px rgba(53, 82, 61, .08);
  backdrop-filter: blur(16px) saturate(125%);
  -webkit-backdrop-filter: blur(16px) saturate(125%);
}
.nav-mark {
  text-decoration: none;
  font-family: "Libre Caslon Display", Georgia, serif;
  font-size: 1.55rem;
  font-style: italic;
  letter-spacing: -.015em;
  line-height: 1;
}
.nav-mark span { color: var(--sun); }
.topbar nav { display: flex; gap: clamp(16px, 2.7vw, 42px); }
.topbar nav a {
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .09em;
  font-size: .72rem;
  font-weight: 600;
  padding: 7px 10px;
  border-radius: 999px;
  transition: color .22s ease, background-color .22s ease;
}
.topbar nav a:hover,
.topbar nav a.active {
  color: #fff;
  background: rgba(255, 255, 255, .14);
}
.topbar.is-scrolled nav a:hover,
.topbar.is-scrolled nav a.active {
  color: var(--forest-deep);
  background: rgba(100, 130, 71, .14);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: white;
  background: var(--forest-deep);
}
.hero > img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  object-position: 50% 55%;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(39, 84, 101, .30), rgba(96, 128, 92, .05) 40%, rgba(38, 76, 82, .40));
}
.hero-card {
  position: relative;
  z-index: 2;
  width: min(90%, 620px);
  margin-top: 68px;
  padding: 42px 30px 36px;
  text-align: center;
  background: linear-gradient(145deg, rgba(45, 91, 104, .35), rgba(189, 106, 69, .30));
  border: 1px solid rgba(255, 255, 255, .55);
  backdrop-filter: blur(3px);
}
.hero-card::before, .hero-card::after {
  content: "";
  position: absolute;
  width: 30px;
  height: 30px;
  border-color: rgba(242, 213, 147, .92);
}
.hero-card::before { top: 9px; left: 9px; border-top: 1px solid; border-left: 1px solid; }
.hero-card::after { right: 9px; bottom: 9px; border-right: 1px solid; border-bottom: 1px solid; }
.eyebrow, .section-kicker {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: .72rem;
  font-weight: 600;
}
.monogram {
  height: 138px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -14px 0 -14px;
  font-family: "Italianno", "Snell Roundhand", cursive;
  color: #fff;
  line-height: 1;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.2));
}
.monogram-k, .monogram-j { font-size: clamp(6rem, 14vw, 8.6rem); }
.monogram-k { transform: translateX(18px) rotate(-5deg); }
.monogram-j { transform: translateX(-18px) rotate(4deg); }
.monogram-amp {
  position: relative;
  z-index: 2;
  color: var(--sun);
  font-size: clamp(4.2rem, 10vw, 6.2rem);
  transform: translateY(8px);
}
.hero h1 {
  margin: 0;
  font-family: "Libre Caslon Display", Georgia, serif;
  font-size: clamp(2.15rem, 6vw, 4.6rem);
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: 1.05;
}
.hero h1 span { color: var(--sun); font-style: italic; }
.ornament { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 21px auto 15px; }
.ornament i { width: 46px; height: 1px; background: rgba(255,255,255,.58); }
.ornament b { color: var(--sun); font-size: .7rem; }
.hero-date { margin: 0; letter-spacing: .08em; text-transform: uppercase; font-size: .82rem; }
.scroll-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  color: white;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .10em;
  font-size: .68rem;
}
.scroll-link span { font-size: 1.15rem; }

.countdown {
  padding: 42px 24px 48px;
  color: var(--ink);
  text-align: center;
  background: linear-gradient(110deg, #f8d88e 0%, #efac63 52%, #d97757 100%);
}
.countdown .section-kicker { color: #7a4539; }
.countdown-grid {
  width: min(100%, 680px);
  margin: 18px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.countdown-grid div { padding: 4px 12px; border-right: 1px solid rgba(112, 67, 49, .20); }
.countdown-grid div:last-child { border: 0; }
.countdown-grid strong {
  display: block;
  font-family: "Libre Caslon Display", Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 500;
  line-height: 1;
}
.countdown-grid span { font-size: .68rem; letter-spacing: .09em; text-transform: uppercase; color: #704e43; }

.section { padding: clamp(76px, 10vw, 132px) clamp(22px, 7vw, 100px); }
.section-heading { width: min(100%, 650px); margin: 0 auto 54px; text-align: center; }
.section-kicker { color: var(--wine); }
h2 {
  margin: 0 0 16px;
  font-family: "Libre Caslon Display", Georgia, serif;
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  line-height: 1.04;
  font-weight: 400;
  letter-spacing: -.02em;
}
.section-heading > p:last-child { margin: 0; color: var(--muted); }

.program { background: linear-gradient(180deg, #fffdf6 0%, #edf5f4 100%); }
.schedule { width: min(100%, 1040px); margin: 0 auto; display: grid; gap: 24px; }
.schedule-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  min-height: 230px;
  border: 1px solid var(--line);
  background: var(--ivory);
  box-shadow: 0 18px 50px rgba(53, 82, 61, .10);
}
.date-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  text-transform: uppercase;
  letter-spacing: .11em;
  font-size: .72rem;
  background: var(--wine);
}
.saturday .date-block { background: var(--forest); }
.celebration .date-block { color: var(--ink); background: var(--sun); }
.date-block strong {
  margin: 3px 0 -1px;
  font-family: "Libre Caslon Display", Georgia, serif;
  font-size: 5rem;
  line-height: .95;
  font-weight: 400;
}
.schedule-content { align-self: center; padding: 34px clamp(28px, 5vw, 62px); }
.time { margin: 0 0 5px; color: var(--wine); font-weight: 600; text-transform: uppercase; letter-spacing: .09em; font-size: .73rem; }
.schedule-content h3 { margin: 0 0 12px; font-family: "Libre Caslon Display", Georgia, serif; font-size: 2rem; font-weight: 400; line-height: 1.1; }
.schedule-content > p:not(.time) { color: var(--muted); }
.schedule-content > p:last-child { margin-bottom: 0; }
.schedule-content > .location-address { margin: -3px 0 14px; color: var(--forest-deep); font-size: .86rem; font-weight: 600; }
.schedule-list { margin: .65rem 0 1.1rem; padding-left: 1.2rem; color: var(--muted); }
.schedule-list li + li { margin-top: .3rem; }
.schedule-list li::marker { color: var(--wine); }
.late-night-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1rem;
  background: rgba(100, 130, 71, .08);
  border: 1px solid rgba(53, 82, 61, .13);
}
.late-night-item {
  padding: 1rem 1.1rem;
  text-align: center;
  color: var(--muted);
}
.late-night-item + .late-night-item { border-left: 1px solid rgba(53, 82, 61, .13); }
.late-night-item p { margin: 0; }
.late-night-item .late-night-label {
  margin-bottom: .35rem;
  color: var(--forest-deep);
  font-family: "Libre Caslon Display", Georgia, serif;
  font-size: 1.2rem;
  line-height: 1.1;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
}

.photo-break {
  min-height: 620px;
  display: grid;
  grid-template-columns: 1fr .7fr 1fr;
  background: linear-gradient(145deg, #7192a0, #4f7258);
}
.photo { margin: 0; overflow: hidden; min-height: 500px; }
.photo img { height: 100%; object-fit: cover; }
.photo-one img { object-position: 50% 54%; }
.photo-two img { object-position: 50% 45%; }
.photo-quote {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 28px;
  text-align: center;
  color: white;
}
.photo-quote p { margin: 0 0 25px; font-family: "Libre Caslon Display", Georgia, serif; font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.13; letter-spacing: -.015em; }
.photo-quote span { font-family: "Libre Caslon Display", Georgia, serif; color: var(--sun); font-size: 1.45rem; font-style: italic; }

.rsvp {
  color: var(--ink);
  text-align: center;
  background:
    radial-gradient(circle at 88% 8%, rgba(246, 190, 92, .56), transparent 34%),
    linear-gradient(135deg, #edf6f7 0%, #bfdce2 100%);
}
.rsvp-card {
  width: min(100%, 820px);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 82px) clamp(28px, 8vw, 92px);
  border: 1px solid rgba(53, 82, 61, .20);
  background: rgba(255, 255, 255, .56);
  box-shadow: 0 20px 55px rgba(53, 82, 61, .11);
}
.rsvp .section-kicker { color: var(--wine); }
.rsvp h2 { margin-bottom: 18px; }
.rsvp-card > p:not(.section-kicker) { margin: 0 auto; color: var(--muted); }
.rsvp-card > p.rsvp-deadline { margin-top: 18px; color: var(--ink); font-weight: 600; letter-spacing: .04em; }
.button-light {
  color: var(--forest-deep);
  text-decoration: none;
  border: 1px solid var(--ivory);
  background: var(--ivory);
  transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}
.button-light:hover, .button-light:focus-visible {
  color: white;
  border-color: var(--wine);
  background: var(--wine);
}

.split-section { width: min(100%, 1180px); margin: 0 auto; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 8vw, 120px); align-items: center; }
.split-intro { padding-right: 30px; border-right: 1px solid var(--line); }
.split-intro h2 { margin-bottom: 0; }
.split-copy .lead { margin: 0 0 16px; font-family: "Libre Caslon Display", Georgia, serif; font-size: 2rem; line-height: 1.3; color: var(--wine); }
.attire-block + .attire-block { margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--line); }
.attire-day { margin: 0 0 8px; color: var(--ink); font-size: .76rem; font-weight: 600; letter-spacing: .10em; text-transform: uppercase; }
.attire-block .lead { margin-bottom: 10px; }
.attire-block > p:last-child { margin: 0; color: var(--muted); }

.gifts { padding-top: 20px; background: linear-gradient(var(--ivory) 42%, #eadcaf 42%); }
.gift-card {
  width: min(100%, 820px);
  margin: 0 auto;
  padding: clamp(52px, 8vw, 88px) clamp(30px, 8vw, 100px);
  text-align: center;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 24px 70px rgba(0,0,0,.13);
}
.gift-card p:not(.section-kicker) { color: var(--muted); }
.button {
  display: inline-block;
  margin-top: 18px;
  padding: 14px 25px;
  text-transform: uppercase;
  letter-spacing: .09em;
  font-size: .72rem;
  font-weight: 600;
}
.button-primary {
  color: white;
  text-decoration: none;
  border: 1px solid var(--forest);
  background: var(--forest);
  transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}
.button-primary:hover, .button-primary:focus-visible {
  color: white;
  border-color: var(--wine);
  background: var(--wine);
}

.contacts { background: linear-gradient(150deg, #3e6657 0%, #5f7e4b 52%, #9a7a45 100%); color: white; }
.contacts .section-heading > p:last-child { color: #f0f8f6; }
.contacts .section-kicker { color: var(--sun); }
.toastmaster-grid {
  width: min(100%, 900px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.person-card {
  overflow: hidden;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .055);
}
.person-card > img {
  aspect-ratio: 1;
  object-fit: cover;
}
.person-copy { padding: 27px 22px 30px; }
.person-copy p {
  margin: 0 0 5px;
  color: var(--sun);
  text-transform: uppercase;
  letter-spacing: .11em;
  font-size: .68rem;
  font-weight: 600;
}
.person-copy h3 {
  margin: 0;
  font-family: "Libre Caslon Display", Georgia, serif;
  font-size: clamp(1.9rem, 4vw, 2.55rem);
  font-weight: 400;
  line-height: 1.1;
}
.person-phone {
  display: inline-block;
  margin-top: 13px;
  color: #fff;
  text-decoration-color: rgba(255, 255, 255, .5);
  text-underline-offset: .24em;
  letter-spacing: .06em;
  font-size: .92rem;
  transition: color .2s ease, text-decoration-color .2s ease;
}
.person-phone:hover,
.person-phone:focus-visible {
  color: var(--sun);
  text-decoration-color: var(--sun);
}

footer { padding: 55px 20px 62px; text-align: center; color: white; background: #35523d; }
.footer-mark { font-family: "Libre Caslon Display", Georgia, serif; font-size: 2.35rem; font-style: italic; letter-spacing: -.02em; line-height: 1; }
.footer-mark span { color: var(--sun); }
footer p { margin: 14px 0 0; color: #d8ece9; text-transform: uppercase; letter-spacing: .10em; font-size: .69rem; }

@media (max-width: 820px) {
  section[id] { scroll-margin-top: 28px; }
  .topbar,
  .topbar.is-scrolled {
    top: auto;
    right: 12px;
    bottom: 12px;
    left: 12px;
    justify-content: center;
    padding: 7px;
    color: var(--ink);
    background: rgba(255, 252, 244, .88);
    border: 1px solid rgba(53, 82, 61, .14);
    border-radius: 18px;
    box-shadow: 0 12px 32px rgba(53, 82, 61, .15);
    backdrop-filter: blur(16px) saturate(125%);
    -webkit-backdrop-filter: blur(16px) saturate(125%);
  }
  .topbar .nav-mark { display: none; }
  .topbar nav { display: flex; width: 100%; gap: 0; justify-content: space-between; }
  .topbar nav a { flex: 1; padding: 8px 4px; text-align: center; white-space: nowrap; font-size: .58rem; letter-spacing: .055em; }
  .topbar nav a:hover,
  .topbar nav a.active { color: var(--forest-deep); background: rgba(100, 130, 71, .14); }
  .hero-card { margin-top: 62px; }
  .photo-break { min-height: 0; grid-template-columns: 1fr 1fr; }
  .photo-quote { grid-column: 1 / -1; grid-row: 2; min-height: 270px; }
  .photo { min-height: 440px; }
  .split-section { grid-template-columns: 1fr; gap: 28px; }
  .split-intro { padding: 0 0 28px; border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 580px) {
  .hero { min-height: 790px; }
  .hero > img { object-position: 50% 48%; }
  .hero-card { width: calc(100% - 32px); padding: 34px 16px 31px; }
  .monogram { height: 116px; }
  .hero-date { font-size: .72rem; }
  .countdown { padding-inline: 10px; }
  .countdown-grid div { padding-inline: 4px; }
  .countdown-grid span { font-size: .56rem; letter-spacing: .07em; }
  .schedule-card { grid-template-columns: 1fr; }
  .date-block { min-height: 115px; flex-direction: row; gap: 10px; }
  .date-block strong { font-size: 3.8rem; }
  .schedule-content { padding: 28px 24px 34px; }
  .late-night-details { grid-template-columns: 1fr; }
  .late-night-item + .late-night-item { border-top: 1px solid rgba(53, 82, 61, .13); border-left: 0; }
  .photo-break { grid-template-columns: 1fr; }
  .photo { min-height: 520px; }
  .photo-quote { grid-column: 1; grid-row: auto; min-height: 260px; }
  .toastmaster-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .topbar,
  .topbar nav a { transition: none; }
}
