:root {
  color-scheme: light;
  --paper: #fbf5ec;
  --paper-deep: #f2e6d9;
  --ink: #382326;
  --muted: #806d69;
  --rose-gold: #b77c70;
  --red: #852633;
  --line: #e4d5ca;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.site-header {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 27px 7.5%;
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: .04em;
  text-decoration: none;
}

.wordmark span { color: var(--rose-gold); font-style: italic; }

.site-header nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3.5vw, 48px);
}

.site-header nav a,
.site-footer > a:last-child {
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .03em;
  text-decoration: none;
}

.site-header nav a:not(.nav-rsvp):hover,
.site-footer > a:last-child:hover,
.text-link:hover { color: var(--rose-gold); }

.site-header nav .nav-rsvp {
  border: 1px solid var(--ink);
  border-radius: 30px;
  padding: 10px 19px;
}

.hero {
  position: relative;
  display: flex;
  min-height: 740px;
  min-height: min(840px, 100svh);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 130px 24px 80px;
  background:
    radial-gradient(ellipse at 50% 44%, rgba(255,255,255,.62), transparent 49%),
    var(--paper);
  text-align: center;
}

.hero::before,
.hero::after {
  position: absolute;
  width: 290px;
  height: 290px;
  border: 1px solid rgba(133,38,51,.14);
  border-radius: 50%;
  content: "";
}

.hero::before { top: -190px; left: -100px; }
.hero::after { right: -110px; bottom: -210px; width: 400px; height: 400px; }

.hero-ornament {
  position: absolute;
  color: rgba(183,124,112,.7);
  font-size: 1.7rem;
}

.ornament-left { top: 31%; left: 13%; }
.ornament-right { right: 14%; bottom: 30%; font-size: 1.1rem; }

.eyebrow {
  margin: 0;
  color: var(--red);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .19em;
  line-height: 1.6;
  text-transform: uppercase;
}

.hero h1 {
  margin: 22px 0 17px;
  font-family: var(--serif);
  font-size: clamp(3.65rem, 9.5vw, 8.25rem);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: .98;
}

.hero h1 span {
  color: var(--rose-gold);
  font-size: .72em;
  font-style: italic;
}

.hero-rule {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0 22px;
  color: var(--rose-gold);
  font-size: .72rem;
}

.hero-rule span { width: 42px; height: 1px; background: var(--line); }

.hero-message {
  margin: 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.6;
}

.hero-date {
  margin: 23px 0 5px;
  font-size: .79rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hero-date span { padding: 0 8px; color: var(--rose-gold); }

.hero-location {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 8px 0 25px;
  color: var(--muted);
  font-size: .78rem;
}

.hero-location span { font-size: .7rem; }

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 23px;
  border: 1px solid transparent;
  border-radius: 30px;
  padding: 0 23px;
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}

.button:hover { transform: translateY(-2px); }
.button-dark { background: var(--red); color: #fffdf8; }
.button-dark:hover { background: var(--ink); }

.scroll-cue {
  position: absolute;
  bottom: 27px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: .66rem;
  letter-spacing: .1em;
  text-decoration: none;
  text-transform: uppercase;
}

.scroll-cue span { color: var(--rose-gold); font-size: 1rem; }

.intro-strip {
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 5vw, 66px);
  background: var(--red);
  color: #f7f2e8;
  font-family: var(--serif);
  font-size: clamp(.85rem, 1.5vw, 1.02rem);
  font-style: italic;
}

.intro-strip i { color: #e0b7a1; font-size: .7rem; font-style: normal; }

.rsvp-section {
  display: grid;
  max-width: 1160px;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(55px, 11vw, 155px);
  margin: 0 auto;
  padding: 120px 48px 132px;
}

.rsvp-copy { padding-top: 12px; }

.rsvp-copy h2,
.events-hero h1 {
  margin: 20px 0;
  font-family: var(--serif);
  font-size: clamp(3.5rem, 6vw, 5.8rem);
  font-weight: 400;
  letter-spacing: -.05em;
  line-height: .98;
}

.rsvp-copy h2 em,
.events-hero h1 em { color: var(--rose-gold); font-weight: 400; }

.rsvp-copy > p:not(.eyebrow) {
  max-width: 290px;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.8;
}

.rsvp-note {
  margin-top: 44px;
  color: var(--muted);
  font-size: .75rem;
  line-height: 2;
}

.rsvp-note span { margin-right: 7px; color: var(--rose-gold); }

.rsvp-form { padding-top: 8px; }
.form-intro { margin: 0 0 24px; font-family: var(--serif); font-size: 1.35rem; }
.form-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field { margin-bottom: 20px; }

.field label,
.stay-fieldset legend,
.events-fieldset legend {
  display: block;
  margin-bottom: 9px;
  font-size: .72rem;
  font-weight: 600;
}

.field label > span:not(.optional) { color: var(--rose-gold); }
.optional { color: var(--muted); font-size: .67rem; font-weight: 400; }

.field input {
  width: 100%;
  height: 45px;
  border: 1px solid var(--line);
  border-radius: 2px;
  outline: none;
  background: rgba(255,255,255,.45);
  padding: 0 12px;
  color: var(--ink);
  font: inherit;
  font-size: .77rem;
}

.field input:focus { border-color: var(--rose-gold); box-shadow: 0 0 0 2px rgba(183,124,112,.16); }
.field input::placeholder { color: #a7a195; }

.stay-fieldset,
.events-fieldset { min-width: 0; border: 0; margin: 3px 0 21px; padding: 0; }
.stay-fieldset legend,
.events-fieldset legend { padding: 0; }

.radio-options { display: flex; gap: 11px; }

.choice {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 0 14px;
  color: var(--muted);
  cursor: pointer;
  font-size: .72rem;
}

.choice:has(input:checked) { border-color: var(--rose-gold); color: var(--red); }
.choice input, .check-choice input { accent-color: var(--red); }
.guest-count-field[hidden] { display: none; }

.events-fieldset { border-top: 1px solid var(--line); padding-top: 18px; }
.events-fieldset legend { margin-bottom: 15px; }

.event-day-label {
  margin: 0 0 10px;
  color: var(--red);
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.second-day { margin-top: 19px; }

.event-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }

.check-choice {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  padding: 7px 8px;
  cursor: pointer;
  font-size: .69rem;
}

.check-choice span { display: flex; flex-direction: column; gap: 3px; }
.check-choice small { color: var(--muted); font-size: .59rem; }
.check-choice:has(input:checked) { border-color: var(--rose-gold); background: rgba(183,124,112,.08); }

.submit-button { margin-top: 4px; cursor: pointer; }
.form-status { min-height: 20px; margin: 14px 0 0; color: var(--red); font-size: .75rem; line-height: 1.6; }
.form-status:empty { min-height: 0; margin: 0; }
.form-status.is-error { color: #a32632; }
.privacy-note { margin: 8px 0 0; color: var(--muted); font-size: .65rem; line-height: 1.6; }

.site-footer {
  display: flex;
  min-height: 100px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 24px 7.5%;
}

.site-footer p { color: var(--muted); font-family: var(--serif); font-size: .92rem; font-style: italic; }
.site-footer > a:last-child { font-size: .7rem; }

.events-page { padding-top: 1px; }

.events-hero {
  display: flex;
  min-height: 430px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 130px 24px 58px;
  background: radial-gradient(ellipse at 50% 50%, rgba(255,255,255,.58), transparent 58%);
  text-align: center;
}

.events-hero h1 { margin: 20px 0 12px; font-size: clamp(3.5rem, 7vw, 6rem); }
.events-hero > p:not(.eyebrow) { margin: 0; color: var(--muted); font-family: var(--serif); font-size: 1.07rem; }
.events-hero .hero-rule { margin-top: 25px; }

.schedule {
  display: grid;
  max-width: 1060px;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 0 auto;
  padding: 20px 32px 85px;
}

.day-card {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.34);
  padding: clamp(25px, 4vw, 48px);
}

.day-card-accent { background: #f5e9e1; }

.day-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 23px;
}

.day-heading h2 {
  margin: 6px 0 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 400;
  letter-spacing: -.04em;
}

.day-date { margin: 0; font-family: var(--serif); font-size: 2.8rem; line-height: .9; }
.day-date span { display: block; margin-top: 8px; color: var(--rose-gold); font-family: var(--sans); font-size: .62rem; font-weight: 700; letter-spacing: .17em; text-align: right; }

.event-list { margin: 7px 0 0; padding: 0; list-style: none; }
.event-list li { display: grid; min-height: 77px; grid-template-columns: 92px 1fr 20px; align-items: center; border-bottom: 1px solid var(--line); }
.event-list li:last-child { border-bottom: 0; }
.event-time { color: var(--muted); font-size: .68rem; }
.event-name { font-family: var(--serif); font-size: 1.35rem; }
.event-flower { color: var(--rose-gold); font-size: .8rem; }

.venue-section { padding: 76px 24px 82px; background: var(--red); color: #fff8f0; text-align: center; }
.venue-mark { margin-bottom: 16px; color: #e0b7a1; font-size: 1.15rem; }
.venue-section .eyebrow { color: #f0d7ca; }
.venue-section h2 { margin: 14px 0 10px; font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 400; }
.venue-section > p:not(.eyebrow) { color: #e0d9ce; font-size: .83rem; line-height: 1.8; }
.text-link { display: inline-block; margin-top: 14px; border-bottom: 1px solid rgba(247,242,232,.55); padding-bottom: 5px; font-size: .73rem; text-decoration: none; }
.text-link:hover { color: #fff; }

.events-rsvp { display: flex; min-height: 155px; align-items: center; justify-content: center; gap: 28px; padding: 35px 20px; }
.events-rsvp p { font-family: var(--serif); font-size: 1.3rem; font-style: italic; }

:focus-visible { outline: 2px solid var(--rose-gold); outline-offset: 3px; }

@media (max-width: 700px) {
  .site-header { padding: 20px 6%; }
  .site-header nav { gap: 15px; }
  .site-header nav a { font-size: .67rem; }
  .site-header nav .nav-rsvp { padding: 8px 13px; }
  .hero { min-height: 720px; min-height: min(790px, 100svh); }
  .hero-ornament { display: none; }
  .intro-strip { min-height: 76px; gap: 12px; font-size: .77rem; }
  .intro-strip i { font-size: .55rem; }
  .rsvp-section { grid-template-columns: 1fr; gap: 35px; padding: 83px 7% 90px; }
  .rsvp-copy h2 { margin: 14px 0; font-size: 4rem; }
  .rsvp-copy > p:not(.eyebrow) { max-width: 400px; }
  .rsvp-note { display: none; }
  .site-footer { flex-wrap: wrap; gap: 15px; padding: 23px 6%; }
  .site-footer p { order: 3; width: 100%; margin: 0; text-align: center; }
  .schedule { grid-template-columns: 1fr; max-width: 530px; gap: 15px; padding: 10px 6% 65px; }
  .events-hero { min-height: 395px; }
}

@media (max-width: 420px) {
  .site-header { padding-inline: 5%; }
  .site-header nav { gap: 10px; }
  .site-header nav a { font-size: .61rem; }
  .site-header nav .nav-rsvp { padding: 7px 10px; }
  .wordmark { font-size: 1.15rem; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .event-options { grid-template-columns: 1fr 1fr; }
  .intro-strip { gap: 8px; font-size: .69rem; }
  .day-card { padding: 24px 21px; }
  .event-list li { grid-template-columns: 88px 1fr 16px; }
  .events-rsvp { flex-direction: column; gap: 4px; }
}

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