:root {
  --ink: #1d342f;
  --muted: #5f706b;
  --paper: #fffaf7;
  --white: #ffffff;
  --rose: #f16f87;
  --rose-soft: #ffe6ec;
  --sage: #d9eadf;
  --sage-strong: #6d9a7b;
  --butter: #ffda70;
  --sky: #d8edf8;
  --gold: #c99228;
  --shadow: 0 20px 60px rgba(29, 52, 47, 0.18);
  --border: rgba(29, 52, 47, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.is-locked {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.hidden-field {
  display: none;
}

button,
input {
  font: inherit;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 20px;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  color: var(--white);
  background: var(--rose);
  box-shadow: 0 12px 30px rgba(241, 111, 135, 0.28);
}

.button--light {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
}

.button--ghost {
  color: var(--ink);
  background: transparent;
  border-color: var(--border);
}

.button--outline {
  color: var(--ink);
  background: var(--white);
  border-color: rgba(201, 146, 40, 0.45);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.gate {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  min-height: 100vh;
  background: var(--paper);
}

.gate[hidden] {
  display: none;
}

.gate__media {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(255, 250, 247, 0.1), rgba(255, 250, 247, 0.86)),
    url("https://images.unsplash.com/photo-1520854221256-17451cc331bf?auto=format&fit=crop&w=1400&q=85")
      center / cover;
}

.gate__panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  padding: 48px;
  background:
    linear-gradient(180deg, rgba(255, 230, 236, 0.78), rgba(255, 255, 255, 0.98)),
    var(--white);
}

.gate__panel h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 58px;
  font-weight: 500;
  line-height: 1;
}

.gate__copy {
  max-width: 30rem;
  margin: 20px 0 28px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.gate__label {
  margin-bottom: 8px;
  font-weight: 800;
}

.gate__field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.gate__field input {
  min-width: 0;
  min-height: 48px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0 18px;
  color: var(--ink);
  background: var(--white);
  outline: none;
}

.gate__field input:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(241, 111, 135, 0.16);
}

.gate__error {
  min-height: 24px;
  margin: 12px 0 0;
  color: #a63246;
  font-weight: 800;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 72px;
  padding: 12px 32px;
  background: rgba(255, 250, 247, 0.86);
  border-bottom: 1px solid rgba(29, 52, 47, 0.08);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 4px;
  align-items: center;
  width: 72px;
  height: 44px;
  color: var(--ink);
  text-decoration: none;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
}

.brand span:nth-child(2) {
  color: var(--rose);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: center;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 800;
}

.nav a:hover {
  color: var(--rose);
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 82vh;
  overflow: hidden;
  color: var(--white);
}

.hero__image,
.hero__overlay {
  position: absolute;
  inset: 0;
}

.hero__image {
  background:
    url("https://images.unsplash.com/photo-1519741497674-611481863552?auto=format&fit=crop&w=1900&q=88")
      center / cover;
  transform: scale(1.02);
}

.hero__overlay {
  background:
    linear-gradient(90deg, rgba(29, 52, 47, 0.72), rgba(29, 52, 47, 0.26)),
    linear-gradient(0deg, rgba(29, 52, 47, 0.5), rgba(29, 52, 47, 0.06));
}

.hero__content {
  position: relative;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 76px;
}

.hero .eyebrow {
  color: var(--butter);
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 74px;
  font-weight: 500;
  line-height: 0.98;
}

.hero__lede {
  max-width: 560px;
  margin: 22px 0 30px;
  font-size: 22px;
  line-height: 1.5;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(29, 52, 47, 0.1);
  border-bottom: 1px solid rgba(29, 52, 47, 0.08);
}

.quick-facts article {
  min-height: 120px;
  padding: 28px;
  background: var(--white);
}

.quick-facts p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.quick-facts strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.15;
}

.section {
  padding: 92px 0;
}

.section--white {
  background: var(--paper);
}

.section--sage {
  background: var(--sage);
}

.section--rose {
  background: var(--rose-soft);
}

.section--sky {
  background: var(--sky);
}

.section__inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.section__heading {
  max-width: 620px;
  margin-bottom: 34px;
}

.section__heading--center {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section__heading h2,
.location-copy h2,
.rsvp-copy h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 48px;
  font-weight: 500;
  line-height: 1.08;
}

.section__heading p,
.location-copy p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.agenda-grid,
.details-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.agenda-card,
.details-grid article {
  min-height: 240px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px;
  background: var(--white);
  box-shadow: 0 16px 44px rgba(29, 52, 47, 0.08);
}

.agenda-card--accent {
  background: var(--ink);
  color: var(--white);
}

.agenda-card span {
  color: var(--rose);
  font-weight: 900;
  text-transform: uppercase;
}

.agenda-card--accent span {
  color: var(--butter);
}

.agenda-card h3,
.details-grid h3,
.timeline h3 {
  margin: 16px 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 500;
}

.agenda-card p,
.details-grid p,
.timeline p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.agenda-card--accent p {
  color: rgba(255, 255, 255, 0.78);
}

.timeline-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
  gap: 64px;
}

.timeline {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding: 22px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(29, 52, 47, 0.1);
}

.timeline time {
  color: var(--sage-strong);
  font-weight: 900;
}

.timeline h3 {
  margin-top: 0;
  font-size: 24px;
}

.location-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 54px;
  align-items: center;
}

.detail-list {
  display: grid;
  gap: 14px;
  margin: 28px 0;
}

.detail-list div {
  display: grid;
  gap: 4px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
}

.detail-list strong {
  font-size: 17px;
}

.detail-list span {
  color: var(--muted);
  line-height: 1.5;
}

.photo-stack {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 16px;
  align-items: end;
}

.photo-stack img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.photo-stack img:first-child {
  height: 430px;
  margin-top: 76px;
}

.details-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.details-grid article {
  min-height: 210px;
}

.rsvp-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
  gap: 48px;
  align-items: start;
}

.rsvp-copy {
  position: sticky;
  top: 108px;
}

.rsvp-copy p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.link-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.rsvp-form {
  display: grid;
  gap: 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 30px;
  background:
    linear-gradient(180deg, rgba(255, 230, 236, 0.38), rgba(255, 255, 255, 0.94)),
    var(--white);
  box-shadow: var(--shadow);
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field label,
.form-fieldset legend {
  font-weight: 900;
}

.form-field span,
.form-fieldset span {
  color: #a63246;
}

.form-field input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--ink);
  background: var(--white);
  outline: none;
}

.form-field input:focus,
.radio-card:focus-within {
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(241, 111, 135, 0.16);
}

.form-field p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.form-fieldset {
  gap: 10px;
  margin: 0;
  border: 0;
  padding: 0;
}

.radio-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 10px;
  align-items: start;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.76);
}

.radio-card input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--rose);
}

.radio-card span {
  color: var(--ink);
  font-weight: 900;
}

.radio-card small {
  grid-column: 2;
  color: var(--muted);
  line-height: 1.45;
}

.rsvp-status {
  display: grid;
  gap: 12px;
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.rsvp-status__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
  gap: 48px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  border: 1px solid rgba(29, 52, 47, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.faq-list summary {
  cursor: pointer;
  padding: 20px 22px;
  font-weight: 900;
}

.faq-list p {
  margin: 0;
  padding: 0 22px 22px;
  color: var(--muted);
  line-height: 1.6;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  padding: 32px;
  color: var(--white);
  background: var(--ink);
}

.footer p {
  margin: 0;
}

@media (max-width: 900px) {
  .gate {
    grid-template-columns: 1fr;
  }

  .gate__media {
    min-height: 34vh;
  }

  .gate__panel {
    min-height: 66vh;
  }

  .site-header {
    grid-template-columns: auto auto;
    padding: 10px 20px;
  }

  .nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    order: 3;
  }

  .hero {
    min-height: 76vh;
  }

  .hero h1 {
    font-size: 54px;
  }

  .quick-facts,
  .agenda-grid,
  .details-grid,
  .timeline-layout,
  .location-layout,
  .rsvp-layout,
  .faq-layout {
    grid-template-columns: 1fr;
  }

  .rsvp-copy {
    position: static;
  }

  .photo-stack img,
  .photo-stack img:first-child {
    height: 360px;
    margin-top: 0;
  }
}

@media (max-width: 560px) {
  .gate__panel {
    padding: 32px 20px;
  }

  .gate__panel h1 {
    font-size: 44px;
  }

  .gate__field {
    grid-template-columns: 1fr;
  }

  .site-header {
    min-height: 64px;
  }

  .brand {
    width: 58px;
  }

  .nav {
    gap: 8px 14px;
    font-size: 14px;
  }

  .hero__content {
    padding-bottom: 48px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero__lede {
    font-size: 18px;
  }

  .hero__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .quick-facts article {
    min-height: 96px;
  }

  .section {
    padding: 64px 0;
  }

  .section__heading h2,
  .location-copy h2,
  .rsvp-copy h2 {
    font-size: 38px;
  }

  .timeline li {
    grid-template-columns: 1fr;
  }

  .photo-stack {
    grid-template-columns: 1fr;
  }
}
