:root {
  --ink: #0d3470;
  --ink-dark: #092652;
  --sky: #8bb6d7;
  --sky-soft: #c9dce9;
  --paper: #f5f0e7;
  --paper-bright: #fffdf7;
  --text: #14345c;
  --muted: #61738a;
  --line: rgba(13, 52, 112, 0.2);
  --display: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", Arial, sans-serif;
  --shadow: 0 28px 80px rgba(9, 38, 82, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 4px;
}

.page-shell {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.site-header {
  position: fixed;
  z-index: 15;
  top: 18px;
  left: 50%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(1080px, calc(100% - 32px));
  min-height: 58px;
  padding: 8px 10px 8px 18px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  background: rgba(245, 240, 231, 0.9);
  box-shadow: 0 10px 32px rgba(9, 38, 82, 0.09);
  backdrop-filter: blur(14px);
  transform: translateX(-50%);
  transition:
    opacity 260ms ease,
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
    background 260ms ease,
    box-shadow 260ms ease;
  will-change: transform;
}

.site-header.is-scrolled {
  background: rgba(245, 240, 231, 0.97);
  box-shadow: 0 8px 26px rgba(9, 38, 82, 0.11);
}

.site-header.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 28px));
}

.brand {
  width: max-content;
  color: var(--ink);
  font-family: var(--display);
  font-size: 25px;
  font-weight: 600;
  line-height: 1;
}

.brand span {
  margin: 0 2px;
  font-style: italic;
  font-weight: 500;
}

.desktop-nav {
  display: flex;
  gap: 28px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.desktop-nav a,
.text-link,
footer a {
  position: relative;
}

.desktop-nav a::after,
.text-link::after,
footer a::after {
  position: absolute;
  right: 0;
  bottom: -5px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 240ms ease;
}

.desktop-nav a:hover::after,
.text-link:hover::after,
footer a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  justify-self: end;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper-bright);
  font-size: 13px;
  font-weight: 700;
  transition: transform 220ms ease, background 220ms ease;
}

.nav-cta:hover {
  background: var(--ink-dark);
  transform: translateY(-2px);
}

.menu-toggle,
.mobile-menu {
  display: none;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(390px, 0.78fr);
  min-height: 100svh;
  padding: 128px max(6vw, 24px) 64px;
  overflow: hidden;
  background: var(--paper);
}

.hero::after {
  position: absolute;
  right: -6vw;
  bottom: -100px;
  width: 52vw;
  height: 230px;
  border-radius: 50% 0 0;
  background: var(--sky);
  content: "";
  transform: rotate(-3deg);
}

.hero-copy {
  position: relative;
  z-index: 2;
  align-self: center;
  max-width: 760px;
  padding: 38px 0 82px;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--display);
  font-weight: 500;
}

h1 {
  max-width: 72rem;
  margin-bottom: 24px;
  color: var(--ink);
  font-size: clamp(4.8rem, 9.6vw, 9.6rem);
  letter-spacing: -0.055em;
  line-height: 0.7;
}

h1 em {
  display: inline-block;
  margin: 0 4px;
  color: var(--sky);
  font-size: 0.66em;
  font-weight: 500;
  transform: translateY(-0.08em);
}

h2 {
  margin-bottom: 28px;
  font-size: clamp(3rem, 5.6vw, 6rem);
  letter-spacing: -0.045em;
  line-height: 0.91;
}

h2 em {
  color: var(--sky);
  font-weight: 500;
}

.hero-intro {
  max-width: 510px;
  margin-bottom: 34px;
  color: var(--muted);
  font-family: var(--display);
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

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

.button-primary {
  background: var(--ink);
  box-shadow: 0 12px 28px rgba(9, 38, 82, 0.2);
  color: var(--paper-bright);
}

.button-primary:hover {
  background: var(--ink-dark);
  box-shadow: 0 18px 36px rgba(9, 38, 82, 0.24);
}

.text-link {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.text-link span {
  margin-left: 8px;
}

.hero-portrait {
  position: relative;
  z-index: 1;
  align-self: center;
  height: min(72svh, 760px);
  margin: 10px 0 0 -7vw;
  overflow: hidden;
  border-radius: 50% 50% 18px 18px;
  box-shadow: var(--shadow);
}

.hero-portrait img {
  object-position: 50% 48%;
  transition: transform 900ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.hero-portrait:hover img,
.media-reveal:hover img {
  transform: scale(1.045);
}

.hero-date {
  position: absolute;
  z-index: 3;
  right: max(5.5vw, 24px);
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--paper-bright);
  text-transform: uppercase;
}

.hero-date span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.5;
}

.hero-date strong {
  font-family: var(--display);
  font-size: 74px;
  font-weight: 500;
  line-height: 1;
}

.hero-date i {
  width: 34px;
  height: 1px;
  background: rgba(255, 255, 255, 0.72);
}

.countdown-section {
  display: grid;
  grid-template-columns: 0.8fr 2fr;
  align-items: center;
  padding: 40px max(6vw, 24px);
  background: var(--ink);
  color: var(--paper-bright);
}

.countdown-section > p {
  margin: 0;
  font-family: var(--display);
  font-size: 24px;
  font-style: italic;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.countdown div {
  display: grid;
  gap: 2px;
  justify-items: center;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.countdown strong {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 500;
}

.countdown span {
  color: var(--sky-soft);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-space {
  padding: clamp(100px, 13vw, 190px) max(6vw, 24px);
}

.botanical-ornament {
  position: absolute;
  z-index: 0;
  width: clamp(190px, 18vw, 310px);
  height: auto;
  opacity: 0.46;
  pointer-events: none;
  transform-origin: center bottom;
  user-select: none;
}

.story > :not(.botanical-ornament),
.program > :not(.botanical-ornament),
.gift-section > :not(.botanical-ornament),
.rsvp > :not(.botanical-ornament) {
  position: relative;
  z-index: 1;
}

.botanical-story {
  top: clamp(72px, 8vw, 118px);
  left: clamp(-150px, -8vw, -92px);
  transform: rotate(-5deg);
}

.botanical-program {
  right: clamp(-138px, -7vw, -76px);
  bottom: -22px;
  width: clamp(180px, 16vw, 270px);
  opacity: 0.34;
  transform: rotate(4deg);
}

.botanical-gift {
  bottom: -44px;
  left: clamp(-132px, -7vw, -72px);
  width: clamp(180px, 15vw, 250px);
  opacity: 0.3;
  transform: rotate(-7deg);
}

.botanical-rsvp {
  top: 56px;
  right: clamp(-154px, -8vw, -84px);
  width: clamp(210px, 18vw, 300px);
  opacity: 0.32;
  transform: rotate(5deg);
}

.paper-divider {
  --tear-height: clamp(28px, 3.2vw, 46px);

  position: relative;
  z-index: 3;
  width: 100%;
  height: 0;
  overflow: visible;
  pointer-events: none;
}

.paper-divider img {
  display: none;
}

.paper-divider::before {
  position: absolute;
  right: 0;
  left: 0;
  height: var(--tear-height);
  content: "";
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: 100% 100%;
}

.paper-divider.on-sky {
  background: var(--sky);
}

.paper-divider.on-paper {
  background: var(--paper);
}

.paper-divider.on-sky-soft {
  background: var(--sky-soft);
}

.paper-divider-ivory {
  background: transparent;
}

.paper-divider-ivory::before {
  top: -1px;
  height: calc(var(--tear-height) + 2px);
  background: var(--paper-bright);
  -webkit-mask-image: url("assets/paper/torn-ivory-edge.png");
  mask-image: url("assets/paper/torn-ivory-edge.png");
}

.paper-divider-blue {
  background: transparent;
}

.paper-divider-blue::before {
  top: -1px;
  height: calc(var(--tear-height) + 2px);
  background: var(--sky);
  -webkit-mask-image: url("assets/paper/torn-blue-edge.png");
  mask-image: url("assets/paper/torn-blue-edge.png");
}

.paper-divider-paper-rise {
  background: transparent;
}

.paper-divider-paper-rise::before {
  bottom: -1px;
  height: calc(var(--tear-height) + 2px);
  background: var(--paper);
  -webkit-mask-image: url("assets/paper/torn-ivory-edge.png");
  mask-image: url("assets/paper/torn-ivory-edge.png");
  transform: rotate(180deg);
}

.story {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 0.62fr;
  column-gap: 9vw;
  padding-bottom: 0;
  overflow: clip;
  background: var(--paper-bright);
}

.story-heading {
  align-self: end;
}

.story-body {
  align-self: end;
  padding-bottom: 12px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.story-lead {
  color: var(--text);
  font-family: var(--display);
  font-size: clamp(1.65rem, 3vw, 2.6rem);
  line-height: 1.25;
}

.word {
  opacity: 0.16;
}

.story-image {
  grid-column: 1 / -1;
  height: min(54vw, 690px);
  margin: clamp(60px, 8vw, 110px) 0 0;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.media-reveal img {
  transition: transform 900ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.program {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(400px, 1fr);
  gap: 11vw;
  padding-top: clamp(120px, 9vw, 144px);
  padding-bottom: 48px;
  overflow: clip;
  background: var(--sky);
  color: var(--ink-dark);
}

.program-intro > p:last-child {
  max-width: 450px;
  font-size: 16px;
  line-height: 1.7;
}

.program .eyebrow,
.program h2 em {
  color: var(--paper-bright);
}

.timeline {
  align-self: center;
}

.timeline article {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid rgba(9, 38, 82, 0.28);
}

.timeline article:last-child {
  border-bottom: 1px solid rgba(9, 38, 82, 0.28);
}

.timeline time,
.timeline > article > span {
  padding-top: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.timeline h3 {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: 38px;
  font-weight: 600;
}

.timeline p {
  margin: 0;
  font-size: 13px;
}

.details {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(420px, 1fr);
  gap: 11vw;
  padding-top: clamp(120px, 9vw, 144px);
  background: var(--paper);
}

.details-pin {
  align-self: start;
}

.details-pin h2 {
  font-size: clamp(3rem, 5vw, 5rem);
}

.details-pin > p:last-child {
  max-width: 380px;
  color: var(--muted);
  line-height: 1.7;
}

.detail-stack {
  border-top: 1px solid var(--line);
}

.detail-card {
  border-bottom: 1px solid var(--line);
}

.detail-card button {
  display: grid;
  grid-template-columns: 44px 1fr 30px;
  width: 100%;
  align-items: center;
  padding: 28px 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.detail-card button span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.detail-card button strong {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.7rem);
  font-weight: 500;
}

.detail-card button i {
  justify-self: end;
  font-family: var(--sans);
  font-size: 24px;
  font-style: normal;
  font-weight: 400;
  transition: transform 250ms ease;
}

.detail-card.is-open button i {
  transform: rotate(45deg);
}

.detail-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 350ms ease, opacity 250ms ease, padding 350ms ease;
}

.detail-content > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.detail-content > p:first-child {
  color: var(--text);
  font-weight: 700;
}

.detail-card.is-open .detail-content {
  max-height: 190px;
  padding: 0 0 30px 44px;
  opacity: 1;
}

.detail-card.is-open .detail-content > p + p {
  margin-top: 6px;
}

.venue-feature {
  position: relative;
  min-height: 92svh;
  overflow: hidden;
  background: var(--ink-dark);
}

.venue-image {
  position: absolute;
  inset: 0;
  margin: 0;
}

.venue-image::after {
  position: absolute;
  inset: 0;
  background: rgba(5, 27, 60, 0.48);
  content: "";
}

.venue-copy {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 92svh;
  width: min(620px, 88%);
  align-content: center;
  padding: 100px max(6vw, 24px);
  color: var(--paper-bright);
}

.venue-copy .eyebrow,
.venue-copy h2 em {
  color: var(--sky-soft);
}

.venue-copy p:not(.eyebrow) {
  max-width: 460px;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
}

.button-light {
  width: max-content;
  background: var(--paper-bright);
  color: var(--ink-dark);
}

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

.gallery-heading {
  max-width: 850px;
  margin-bottom: 70px;
}

.editorial-grid {
  display: grid;
  grid-auto-flow: dense;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: 340px 340px;
  gap: 14px;
}

.editorial-grid figure,
.editorial-grid blockquote {
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
}

.gallery-main {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-main img {
  object-position: 50% 64%;
}

.gallery-wide {
  grid-column: span 2;
}

.editorial-grid blockquote {
  display: grid;
  align-content: center;
  padding: 28px;
  background: var(--ink);
  color: var(--paper-bright);
}

.editorial-grid blockquote p {
  margin-bottom: 20px;
  font-family: var(--display);
  font-size: clamp(2rem, 3.8vw, 3.5rem);
  line-height: 0.98;
}

.editorial-grid cite {
  color: var(--sky-soft);
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.gallery-small {
  grid-column: span 1;
}

.gift-section {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: 9vw;
  align-items: center;
  padding-bottom: 48px;
  overflow: clip;
  background: var(--sky-soft);
}

.gift-section > div:first-child {
  max-width: 700px;
}

.gift-section > div:first-child > p:last-child {
  max-width: 570px;
  color: var(--muted);
  line-height: 1.7;
}

.account-card {
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid rgba(13, 52, 112, 0.12);
  border-radius: 28px;
  background: var(--paper-bright);
  box-shadow: 0 18px 48px rgba(9, 38, 82, 0.1);
}

.account-card span {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.account-card strong {
  display: block;
  margin-bottom: 28px;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(2.8rem, 5vw, 5rem);
  font-weight: 500;
}

.account-card button {
  padding: 0 0 5px;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.copy-status {
  min-height: 20px;
  margin: 16px 0 0;
  color: var(--ink);
  font-size: 12px;
}

.rsvp {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 0.86fr) minmax(420px, 1fr);
  gap: 10vw;
  padding-top: clamp(120px, 9vw, 144px);
  overflow: clip;
  background: var(--paper);
}

.rsvp-heading > p:not(.eyebrow, .rsvp-date) {
  max-width: 460px;
  color: var(--muted);
  line-height: 1.7;
}

.rsvp-date {
  margin-top: 44px;
  color: var(--sky);
  font-family: var(--display);
  font-size: 30px;
  letter-spacing: 0.12em;
}

.rsvp-form {
  display: grid;
  gap: 24px;
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--paper-bright);
  box-shadow: 0 18px 60px rgba(9, 38, 82, 0.07);
}

.rsvp-form label {
  display: grid;
  gap: 9px;
}

.rsvp-form label > span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--text);
}

.rsvp-form input::placeholder,
.rsvp-form textarea::placeholder {
  color: #8d9aab;
}

.rsvp-form textarea {
  min-height: 100px;
  padding-top: 15px;
  resize: vertical;
}

.rsvp-form .button {
  margin-top: 8px;
}

.rsvp-message {
  min-height: 22px;
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.rsvp-form .is-invalid {
  border-color: #a43b3b;
}

footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  padding: 42px max(6vw, 24px);
  background: var(--ink-dark);
  color: var(--paper-bright);
}

footer p {
  margin: 0;
  font-family: var(--display);
  font-size: 30px;
}

footer p em {
  color: var(--sky);
}

footer span,
footer a {
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  letter-spacing: 0.08em;
}

footer a {
  justify-self: end;
}

@media (max-width: 980px) {
  .desktop-nav {
    gap: 20px;
  }

  .hero {
    grid-template-columns: 0.9fr 1fr;
  }

  .hero-portrait {
    margin-left: -3vw;
  }

  .story,
  .program,
  .details,
  .gift-section,
  .rsvp {
    gap: 6vw;
  }

  .editorial-grid {
    grid-template-rows: 290px 290px;
  }
}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: 1fr auto;
    min-height: 58px;
    padding: 8px 10px 8px 18px;
  }

  .desktop-nav,
  .nav-cta {
    display: none;
  }

  .menu-toggle {
    display: grid;
    width: 42px;
    height: 42px;
    place-content: center;
    gap: 6px;
    border: 0;
    border-radius: 50%;
    background: var(--ink);
    cursor: pointer;
  }

  .menu-toggle span {
    width: 17px;
    height: 1px;
    background: white;
    transition: transform 220ms ease;
  }

  .site-header.menu-open .menu-toggle span:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }

  .site-header.menu-open .menu-toggle span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .mobile-menu {
    position: absolute;
    top: 68px;
    right: 0;
    left: 0;
    display: grid;
    gap: 4px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    background: var(--paper);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 220ms ease, transform 220ms ease;
  }

  .mobile-menu a {
    padding: 13px 12px;
    border-radius: 12px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
  }

  .mobile-menu a:last-child {
    background: var(--ink);
    color: white;
    text-align: center;
  }

  .site-header.menu-open .mobile-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .hero {
    display: block;
    min-height: auto;
    padding: 118px 20px 100px;
  }

  .hero-copy {
    padding: 22px 0 34px;
  }

  h1 {
    margin-bottom: 22px;
    font-size: clamp(4.4rem, 23vw, 7rem);
    line-height: 0.72;
  }

  .hero-intro {
    max-width: 360px;
    font-size: 1.25rem;
  }

  .hero-actions {
    align-items: flex-start;
  }

  .hero-portrait {
    height: 116vw;
    max-height: 680px;
    margin: 8px 0 0;
    border-radius: 50% 50% 16px 16px;
  }

  .hero-date {
    position: relative;
    right: auto;
    bottom: auto;
    z-index: 3;
    width: calc(100% + 40px);
    justify-content: center;
    margin: -1px -20px -100px;
    padding: 28px 20px 34px;
    background: var(--sky);
  }

  .hero::after {
    display: none;
  }

  .countdown-section {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 46px 20px;
    text-align: center;
  }

  .countdown div:first-child {
    border-left: 0;
  }

  .section-space {
    padding: 104px 20px;
  }

  .botanical-ornament {
    width: 150px;
    opacity: 0.3;
  }

  .botanical-story {
    top: 76px;
    left: -98px;
  }

  .botanical-program {
    right: -86px;
    bottom: 6px;
    width: 142px;
    opacity: 0.24;
  }

  .botanical-gift {
    bottom: -28px;
    left: -92px;
    width: 138px;
    opacity: 0.22;
  }

  .botanical-rsvp {
    top: 44px;
    right: -98px;
    width: 158px;
    opacity: 0.24;
  }

  .story,
  .program,
  .details,
  .gift-section,
  .rsvp {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .story {
    padding-bottom: 0;
  }

  .story-image {
    height: 76vw;
    min-height: 340px;
    margin-top: 56px;
    border-radius: 18px;
  }

  .program {
    gap: 30px;
    padding-top: 88px;
    padding-bottom: 32px;
  }

  .details {
    padding-top: 88px;
  }

  .timeline article {
    grid-template-columns: 76px 1fr;
  }

  .details-pin {
    position: static !important;
  }

  .venue-copy {
    min-height: 82svh;
    align-content: end;
    padding: 84px 20px 70px;
  }

  .venue-image::after {
    background: rgba(5, 27, 60, 0.58);
  }

  .gallery-heading {
    margin-bottom: 48px;
  }

  .editorial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 320px 220px 260px;
  }

  .gallery-main {
    grid-column: span 2;
    grid-row: span 1;
  }

  .gallery-wide {
    grid-column: span 2;
  }

  .editorial-grid blockquote,
  .gallery-small {
    grid-column: span 1;
  }

  .gift-section {
    gap: 40px;
    padding-bottom: 32px;
  }

  .rsvp {
    padding-top: 88px;
  }

  footer {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  footer a {
    justify-self: center;
  }
}

@media (max-width: 430px) {
  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .text-link {
    width: max-content;
    margin: 4px auto 0;
  }

  .hero-date {
    gap: 9px;
  }

  .hero-date strong {
    font-size: 58px;
  }

  .hero-date i {
    width: 18px;
  }

  .countdown strong {
    font-size: 2rem;
  }

  h2 {
    font-size: 3.1rem;
  }

  .timeline article {
    grid-template-columns: 64px 1fr;
    gap: 14px;
  }

  .detail-card button {
    grid-template-columns: 32px 1fr 24px;
  }

  .detail-card button strong {
    font-size: 2rem;
  }

  .detail-card.is-open .detail-content {
    padding-left: 32px;
  }

  .editorial-grid {
    grid-template-rows: 280px 180px 220px;
    gap: 8px;
  }

  .editorial-grid blockquote {
    padding: 18px;
  }

  .editorial-grid blockquote p {
    font-size: 1.75rem;
  }

  .account-card,
  .rsvp-form {
    border-radius: 20px;
  }
}

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

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