:root {
  --ink: #26384b;
  --ink-soft: #566879;
  --blue: #7fa9c7;
  --blue-strong: #426d8c;
  --blue-pale: #d9eaf2;
  --ivory: #fbf7ed;
  --paper: #fffdf6;
  --linen: #efe6d6;
  --rule: rgba(127, 169, 199, 0.28);
  --shadow-paper: 0 28px 70px rgba(79, 91, 106, 0.13);
  --shadow-soft: 0 18px 40px rgba(66, 109, 140, 0.12);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-editorial: "Newsreader", Georgia, serif;
  --font-ui: "Source Sans 3", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --fp-font-body: var(--font-ui);
  --fp-font-heading: var(--font-display);
  --fp-font-ui: var(--font-ui);
  --fp-bg: var(--ivory);
  --fp-bg-alt: var(--linen);
  --fp-bg-soft: var(--blue-pale);
  --fp-text: var(--ink);
  --fp-muted: var(--ink-soft);
  --fp-accent: var(--blue-strong);
  --fp-border: var(--rule);
  --fp-white: var(--paper);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-ui);
  background:
    radial-gradient(circle at 83% 9%, rgba(217, 234, 242, 0.58), transparent 31rem),
    linear-gradient(180deg, #f8f5ec 0%, var(--ivory) 44%, #f4ede1 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image: radial-gradient(rgba(38, 56, 75, 0.18) 0.55px, transparent 0.55px);
  background-size: 4px 4px;
  mix-blend-mode: multiply;
}

a {
  color: inherit;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  overflow: hidden;
}

.topbar {
  position: fixed;
  top: 1.1rem;
  left: 50%;
  z-index: 30;
  width: min(1120px, calc(100vw - 2rem));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.7rem 1.05rem;
  border: 1px solid rgba(127, 169, 199, 0.22);
  background: rgba(255, 253, 246, 0.82);
  box-shadow: 0 18px 46px rgba(79, 91, 106, 0.1);
  backdrop-filter: blur(18px);
}

.brand {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.brand span {
  color: var(--blue-strong);
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 500;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(0.8rem, 2.4vw, 1.55rem);
}

.site-nav a {
  position: relative;
  padding: 0.15rem 0;
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -0.18rem;
  left: 0;
  height: 1px;
  background: var(--blue-strong);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.hero-section {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(1rem, 1fr) minmax(0, 1120px) minmax(1rem, 1fr);
  align-items: center;
  padding: clamp(7.5rem, 12vw, 11rem) 0 clamp(7rem, 10vw, 9rem);
  background-image: var(--hero-image);
  background-position: center;
  background-size: cover;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(251, 247, 237, 0.96) 0%, rgba(251, 247, 237, 0.86) 35%, rgba(251, 247, 237, 0.34) 68%, rgba(251, 247, 237, 0.18) 100%),
    linear-gradient(180deg, rgba(251, 247, 237, 0.5) 0%, rgba(251, 247, 237, 0.24) 48%, rgba(251, 247, 237, 0.88) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  grid-column: 2;
  width: min(1120px, calc(100vw - 2rem));
  margin-inline: auto;
}

.hero-content {
  max-width: 650px;
}

.section-kicker {
  margin: 0 0 1rem;
  color: var(--blue-strong);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.hero-content h1 {
  max-width: 11ch;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(4.2rem, 10vw, 8.85rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.96;
}

.hero-copy {
  max-width: 510px;
  margin: 1.7rem 0 0;
  color: var(--ink-soft);
  font-family: var(--font-editorial);
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  margin-top: 1.7rem;
}

.button,
.fp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  border: 1px solid transparent;
  padding: 0.78rem 1.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.button-primary,
.fp-btn-primary {
  color: var(--paper);
  background: var(--blue-strong);
  box-shadow: var(--shadow-soft);
}

.button-primary:hover,
.button-primary:focus-visible,
.fp-btn-primary:hover,
.fp-btn-primary:focus-visible {
  background: var(--ink);
  transform: translateY(-2px);
}

.button-link {
  color: var(--ink);
  padding-inline: 0;
  background: transparent;
}

.date-card {
  position: absolute;
  right: max(2rem, calc((100vw - 1120px) / 2 - 1.75rem));
  bottom: 5.2rem;
  z-index: 3;
  min-width: 13.6rem;
  padding: 1.1rem 1.25rem 1.2rem;
  border: 1px solid rgba(127, 169, 199, 0.25);
  background: rgba(255, 253, 246, 0.88);
  box-shadow: var(--shadow-paper);
  backdrop-filter: blur(12px);
}

.date-card span,
.date-card small,
.paper-card > span {
  display: block;
  color: var(--blue-strong);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.date-card strong {
  display: block;
  margin-top: 0.18rem;
  font-family: var(--font-display);
  font-size: 3.3rem;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.95;
}

.date-card small {
  margin-top: 0.45rem;
  color: var(--ink-soft);
  letter-spacing: 0.12em;
}

.paper-card {
  border: 1px solid rgba(127, 169, 199, 0.24);
  background:
    linear-gradient(135deg, rgba(255, 253, 246, 0.96), rgba(255, 253, 246, 0.8)),
    var(--paper);
  box-shadow: var(--shadow-paper);
}

.intro-band {
  position: relative;
  z-index: 4;
  width: min(1040px, calc(100vw - 2rem));
  margin: -2.6rem auto clamp(5rem, 9vw, 8rem);
  padding: clamp(2rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: 4rem minmax(0, 1.25fr) minmax(16rem, 0.72fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.intro-number {
  margin: 0;
  color: rgba(66, 109, 140, 0.52);
  font-family: var(--font-editorial);
  font-size: 2rem;
  font-style: italic;
}

.intro-band blockquote {
  margin: 0;
}

.intro-band blockquote p {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-editorial);
  font-size: clamp(1.6rem, 3vw, 2.55rem);
  line-height: 1.08;
}

.intro-band > p:last-child {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.7;
}

.content-section {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100vw - 2rem));
  margin-inline: auto;
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 330px);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: end;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--rule);
}

.section-heading h2,
.rsvp-copy h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.9rem, 6.2vw, 5.7rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.96;
}

.section-heading .section-kicker {
  grid-column: 1 / -1;
  margin-bottom: -0.5rem;
}

.section-heading p:not(.section-kicker),
.rsvp-copy p:not(.section-kicker) {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.7;
}

.placeholder-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.7rem;
}

.placeholder-grid .paper-card {
  min-height: 12rem;
  padding: 1.35rem;
}

.placeholder-grid h3 {
  margin: 0.75rem 0 0;
  font-family: var(--font-editorial);
  font-size: clamp(1.55rem, 2.8vw, 2.2rem);
  font-weight: 500;
  line-height: 1.05;
}

.placeholder-grid p {
  margin: 1rem 0 0;
  color: var(--ink-soft);
  line-height: 1.65;
}

.map-help-card {
  grid-column: 1 / -1;
}

.map-help-card a {
  color: var(--blue-strong);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.expect-section {
  padding-top: clamp(1rem, 3vw, 2rem);
}

.expect-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.7rem;
}

.expect-card {
  min-height: 15rem;
  padding: 1.35rem;
}

.expect-card h3 {
  margin: 0.75rem 0 0;
  font-family: var(--font-editorial);
  font-size: clamp(1.55rem, 2.8vw, 2.25rem);
  font-weight: 500;
  line-height: 1.05;
}

.expect-card p {
  margin: 1rem 0 0;
  color: var(--ink-soft);
  line-height: 1.65;
}

.expect-card-featured {
  grid-column: 1 / -1;
  min-height: 17rem;
  border-left: 4px solid var(--blue);
  background:
    linear-gradient(135deg, rgba(217, 234, 242, 0.38), rgba(255, 253, 246, 0.88)),
    var(--paper);
}

.expect-card-featured h3 {
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.registry-card {
  display: block;
  margin-top: 1.7rem;
  padding: clamp(1.4rem, 4vw, 2.25rem);
  text-decoration: none;
  transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.registry-card strong {
  display: block;
  max-width: 16ch;
  margin-top: 0.75rem;
  color: var(--ink);
  font-family: var(--font-editorial);
  font-size: clamp(1.9rem, 4.4vw, 3.7rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
}

.registry-card small {
  display: block;
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.5;
}

.registry-card:hover,
.registry-card:focus-visible {
  outline: none;
  background:
    linear-gradient(135deg, rgba(217, 234, 242, 0.56), rgba(255, 253, 246, 0.94)),
    var(--paper);
  box-shadow: 0 32px 78px rgba(66, 109, 140, 0.16);
  transform: translateY(-3px);
}

.rsvp-section {
  position: relative;
  z-index: 2;
  margin-top: clamp(3rem, 7vw, 6rem);
  padding: clamp(5rem, 9vw, 8rem) max(1rem, calc((100vw - 1120px) / 2));
  background:
    linear-gradient(90deg, rgba(251, 247, 237, 0.86), rgba(251, 247, 237, 0.66)),
    var(--paper-wash),
    linear-gradient(135deg, #f7f0e3, #e8f1f4);
  background-position: center;
  background-size: cover;
  border-block: 1px solid rgba(127, 169, 199, 0.18);
}

.rsvp-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(20rem, 0.72fr);
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: start;
}

.rsvp-copy {
  padding-top: 1rem;
}

.rsvp-copy h2 {
  max-width: 9ch;
}

.rsvp-copy p:not(.section-kicker) {
  max-width: 35rem;
  margin-top: 1.1rem;
}

.rsvp-embed {
  padding: clamp(1.1rem, 3vw, 1.8rem);
}

.rsvp-embed .fp-rsvp-layout,
.rsvp-embed .fp-rsvp-form {
  max-width: none;
}

.rsvp-embed .fp-rsvp-intro {
  text-align: left;
}

.rsvp-embed .fp-rsvp-intro-name,
.rsvp-embed .fp-rsvp-guest-name {
  color: var(--ink);
  font-family: var(--font-editorial);
  letter-spacing: -0.015em;
  text-transform: none;
}

.rsvp-embed .fp-rsvp-panel,
.rsvp-embed .fp-rsvp-guest-card {
  border-color: rgba(127, 169, 199, 0.28);
  border-radius: 0;
  background: rgba(255, 253, 246, 0.72);
  box-shadow: none;
}

.rsvp-embed .fp-rsvp-guest-header {
  border-color: rgba(127, 169, 199, 0.22);
  background: rgba(217, 234, 242, 0.24);
}

.rsvp-embed .fp-rsvp-field-label,
.rsvp-embed .fp-rsvp-panel-label,
.rsvp-embed .fp-rsvp-intro-label {
  color: var(--blue-strong);
  font-weight: 800;
  letter-spacing: 0.16em;
}

.rsvp-embed .fp-rsvp-input {
  border-color: rgba(127, 169, 199, 0.34);
  border-radius: 0;
  background: rgba(255, 253, 246, 0.78);
}

.rsvp-embed .fp-rsvp-input:focus {
  border-color: var(--blue-strong);
  box-shadow: 0 0 0 3px rgba(127, 169, 199, 0.18);
}

.rsvp-embed .fp-rsvp-pill span {
  border-color: rgba(127, 169, 199, 0.35);
  border-radius: 0;
  background: rgba(255, 253, 246, 0.72);
}

.rsvp-embed .fp-rsvp-pill input:checked + span {
  border-color: var(--blue-strong);
  background: var(--blue-strong);
  color: var(--paper);
}

.site-footer {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100vw - 2rem));
  margin-inline: auto;
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
  border-top: 1px solid var(--rule);
}

.site-footer p:last-child {
  margin: 0;
  max-width: 680px;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  letter-spacing: -0.04em;
  line-height: 1;
}

.powered-banner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0.85rem 1rem;
  border-top: 1px solid rgba(127, 169, 199, 0.18);
  background: rgba(255, 253, 246, 0.5);
  text-align: center;
}

.powered-banner p {
  margin: 0;
  color: rgba(86, 104, 121, 0.82);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
}

.powered-banner strong {
  color: var(--blue-strong);
  font-weight: 800;
}

.fp-preview-banner {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-ui);
}

.fp-overlay {
  z-index: 900;
}

.fp-modal-backdrop {
  z-index: 910;
}

.fp-welcome-backdrop {
  z-index: 920;
}

.fp-modal {
  position: relative;
  border-radius: 0;
  border-color: var(--rule);
  color: var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow-paper);
}

.fp-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.85rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  color: var(--ink-soft);
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.fp-modal-close:hover,
.fp-modal-close:focus-visible {
  color: var(--ink);
}

.fp-modal-eyebrow {
  margin: 0 0 0.6rem;
  color: var(--blue-strong);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal-up {
  animation: revealUp 860ms ease both;
}

.date-card.reveal-up {
  animation-delay: 120ms;
}

@media (max-width: 900px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero-section {
    min-height: auto;
    padding-top: 10rem;
  }

  .date-card {
    position: relative;
    right: auto;
    bottom: auto;
    grid-column: 2;
    width: min(20rem, calc(100vw - 2rem));
    margin: 2.4rem auto 0 0;
  }

  .intro-band,
  .section-heading,
  .rsvp-inner {
    grid-template-columns: 1fr;
  }

  .intro-band {
    margin-top: -1.4rem;
  }

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

@media (max-width: 620px) {
  .topbar {
    position: absolute;
    top: 0.6rem;
    width: min(100% - 1rem, 1120px);
    padding: 0.75rem;
  }

  .site-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .site-nav a {
    font-size: 0.61rem;
    text-align: center;
  }

  .hero-section {
    padding-top: 8.5rem;
  }

  .hero-content h1 {
    font-size: clamp(3.4rem, 18vw, 5rem);
  }

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

  .button {
    width: 100%;
  }

  .intro-band {
    width: min(100% - 1rem, 1040px);
  }

  .content-section,
  .site-footer {
    width: min(100% - 1rem, 1120px);
  }

  .placeholder-grid,
  .rsvp-inner {
    grid-template-columns: 1fr;
  }

  .section-heading h2,
  .rsvp-copy h2 {
    font-size: clamp(2.75rem, 15vw, 4.3rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
