@font-face {
  font-family: "Editorial";
  src: url("lmroman.otf") format("opentype");
  font-display: swap;
}

@font-face {
  font-family: "Signature";
  src: url("z003.otf") format("opentype");
  font-display: swap;
}

:root {
  --paper: #fffefb;
  --cream: #f6f3ec;
  --mist: #e9f0f1;
  --powder: #b9d0d8;
  --navy: #243f4b;
  --navy-soft: #42616c;
  --gold: #b69358;
  --gold-light: #d9c59c;
  --olive: #7e896c;
  --ink: #283b42;
  --line: rgba(36, 63, 75, 0.16);
  --shadow: 0 24px 70px rgba(31, 55, 65, 0.18);
  --serif: "Editorial", "Times New Roman", serif;
  --script: "Signature", "Brush Script MT", cursive;
  --sans: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  background: #dce8eb;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 255, 255, 0.92), transparent 32rem),
    linear-gradient(135deg, #dbe8eb 0%, #f2eee7 100%);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.locked {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button {
  font: inherit;
}

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

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.section-icon,
.event-icon {
  display: grid;
  place-items: center;
  border: 1px solid rgba(182, 147, 88, 0.38);
  border-radius: 50%;
  color: var(--gold);
  background: rgba(255, 254, 251, 0.58);
}

.section-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 20px;
}

.event-icon {
  position: relative;
  width: 52px;
  height: 52px;
  margin: 0 auto 19px;
  color: var(--navy-soft);
  border-color: rgba(36, 63, 75, 0.22);
}

.section-icon svg,
.event-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.event-icon svg {
  width: 27px;
  height: 27px;
}

.skip-link {
  position: fixed;
  z-index: 2000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: #fff;
  background: var(--navy);
  transform: translateY(-150%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid rgba(182, 147, 88, 0.72);
  outline-offset: 4px;
}

.watermark-layer {
  position: fixed;
  z-index: 1900;
  top: -30vh;
  left: -30vw;
  width: 160vw;
  height: 160vh;
  display: grid;
  grid-template-rows: repeat(5, 1fr);
  align-items: center;
  overflow: hidden;
  pointer-events: none;
  transform: rotate(-23deg);
}

.watermark-layer span {
  color: rgba(255, 255, 255, 0.12);
  font-family: var(--sans);
  font-size: clamp(3.5rem, 9vw, 7rem);
  font-weight: 600;
  letter-spacing: 0.22em;
  line-height: 1;
  text-align: center;
  text-shadow: 0 0 1px rgba(255, 255, 255, 0.28);
  -webkit-text-stroke: 1px rgba(36, 63, 75, 0.22);
  white-space: nowrap;
}

.opening {
  position: fixed;
  z-index: 1000;
  inset: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: end center;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background: var(--navy);
  transition: opacity 0.85s ease, visibility 0.85s ease;
}

.opening.is-open {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.opening-photo {
  position: absolute;
  z-index: -3;
  top: 0;
  bottom: 0;
  left: 50%;
  width: min(100%, 780px);
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
  transform: translateX(-50%) scale(1.015);
  animation: opening-photo 10s ease-out both;
}

.opening::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(15, 35, 42, 0.14) 0%, rgba(15, 35, 42, 0.12) 38%, rgba(15, 35, 42, 0.78) 100%),
    linear-gradient(120deg, rgba(36, 63, 75, 0.28), transparent 55%);
}

.opening::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  pointer-events: none;
}

.opening-inner {
  width: min(100%, 720px);
  padding: 28px 34px calc(34px + env(safe-area-inset-bottom));
  text-align: center;
  animation: opening-copy 1s 0.15s both;
}

.opening-kicker,
.eyebrow {
  margin: 0 0 13px;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.31em;
  line-height: 1.4;
  text-transform: uppercase;
}

.opening-monogram {
  display: inline-grid;
  width: 80px;
  height: 80px;
  margin-bottom: 14px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 50%;
  font-size: 1.35rem;
  letter-spacing: 0.09em;
}

.opening-monogram img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.94;
}

.opening h1 {
  margin: 0;
  font-family: var(--script);
  font-size: clamp(3.2rem, 13vw, 6.1rem);
  font-weight: 400;
  line-height: 0.92;
  text-wrap: balance;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.28);
}

.opening-date {
  margin: 17px 0 24px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.open-button,
.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 23px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.open-button {
  color: var(--navy);
  background: rgba(255, 254, 251, 0.96);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.2);
}

.open-button:hover,
.button:hover {
  transform: translateY(-2px);
}

.open-button:hover {
  box-shadow: 0 15px 38px rgba(0, 0, 0, 0.25);
}

.open-button .note {
  font-size: 1rem;
  line-height: 1;
}

.site-shell {
  position: relative;
  width: min(100%, 780px);
  min-height: 100vh;
  margin-inline: auto;
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.site-shell:focus {
  outline: none;
}

.section {
  position: relative;
  padding: 82px 54px;
}

.section.centered {
  text-align: center;
}

.section.mist {
  background: linear-gradient(145deg, #eef4f4, #e4edef);
}

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

.nautical-frame {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  opacity: 0.42;
  filter: saturate(0.35);
  -webkit-mask-image:
    radial-gradient(ellipse 75% 68% at 0% 0%, #000 0 63%, transparent 82%),
    radial-gradient(ellipse 75% 68% at 100% 100%, #000 0 63%, transparent 82%);
  -webkit-mask-composite: source-over;
  mask-image:
    radial-gradient(ellipse 75% 68% at 0% 0%, #000 0 63%, transparent 82%),
    radial-gradient(ellipse 75% 68% at 100% 100%, #000 0 63%, transparent 82%);
  mask-composite: add;
  pointer-events: none;
}

.nautical-frame.soft {
  opacity: 0.22;
  transform: rotate(180deg);
}

.section-content {
  position: relative;
  z-index: 1;
}

.intro {
  min-height: 880px;
  display: grid;
  place-items: center;
  padding-top: 115px;
  padding-bottom: 115px;
  background:
    radial-gradient(circle at 50% 46%, rgba(255, 255, 255, 0.94) 0 22%, rgba(255, 255, 255, 0.74) 42%, transparent 68%),
    var(--paper);
}

.seal {
  width: 118px;
  height: 118px;
  display: grid;
  margin: 0 auto 28px;
  place-items: center;
  border: 1px solid var(--gold-light);
  border-radius: 50%;
  color: var(--navy);
  background: rgba(255, 254, 251, 0.72);
  box-shadow: inset 0 0 0 7px rgba(255, 254, 251, 0.78), inset 0 0 0 8px rgba(182, 147, 88, 0.24);
  font-size: 2rem;
  letter-spacing: 0.06em;
}

.seal img {
  width: 92px;
  height: 92px;
  object-fit: contain;
}

.intro .eyebrow,
.section-header .eyebrow {
  color: var(--olive);
}

.display-names {
  margin: 0;
  color: var(--navy);
  font-family: var(--script);
  font-size: clamp(3.5rem, 12.5vw, 6.8rem);
  font-weight: 400;
  line-height: 0.87;
  text-wrap: balance;
}

.date-lockup {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  width: min(100%, 470px);
  margin: 32px auto 25px;
  color: var(--navy);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.date-lockup::before,
.date-lockup::after {
  content: "";
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-light));
}

.date-lockup::after {
  background: linear-gradient(90deg, var(--gold-light), transparent);
}

.lead {
  max-width: 490px;
  margin: 0 auto;
  color: var(--navy-soft);
  font-size: 14px;
}

.quote {
  max-width: 510px;
  margin: 27px auto 0;
  color: var(--navy);
  font-family: var(--script);
  font-size: clamp(1.85rem, 6vw, 2.7rem);
  line-height: 1.07;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
  max-width: 500px;
  margin: 42px auto 0;
}

.countdown-item {
  padding: 14px 6px 12px;
  border: 1px solid rgba(182, 147, 88, 0.3);
  background: rgba(255, 255, 255, 0.62);
}

.countdown-number {
  display: block;
  color: var(--navy);
  font-size: clamp(1.35rem, 5vw, 2rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.countdown-label {
  display: block;
  margin-top: 7px;
  color: var(--olive);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.line-flourish {
  width: 72px;
  height: 1px;
  margin: 24px auto;
  position: relative;
  background: var(--gold-light);
}

.line-flourish::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  border: 1px solid var(--gold);
  background: var(--paper);
  transform: translate(-50%, -50%) rotate(45deg);
}

.section-header {
  max-width: 570px;
  margin: 0 auto 43px;
  text-align: center;
}

.section-title {
  margin: 0;
  color: var(--navy);
  font-family: var(--serif);
  font-size: clamp(2rem, 7vw, 3.45rem);
  font-weight: 400;
  line-height: 1.08;
  text-wrap: balance;
}

.section-title.script {
  font-family: var(--script);
  font-size: clamp(3rem, 10vw, 5rem);
  line-height: 0.92;
}

.section-copy {
  max-width: 550px;
  margin: 17px auto 0;
  color: var(--navy-soft);
  font-size: 14px;
}

.families {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 26px;
  margin-top: 42px;
}

.family {
  min-width: 0;
  padding-block: 12px;
}

.family-name {
  margin: 0 0 13px;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 400;
}

.family p {
  margin: 4px 0;
  color: var(--navy-soft);
  font-size: 14px;
}

.families-amp {
  color: var(--gold);
  font-family: var(--script);
  font-size: 2.8rem;
}

.memorial {
  margin-left: 3px;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 0.7em;
  vertical-align: 0.48em;
}

.padrinos {
  max-width: 560px;
  margin: 48px auto 0;
  padding: 26px 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.padrinos h3 {
  margin: 0 0 13px;
  color: var(--olive);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.padrinos p {
  margin: 0;
  color: var(--navy-soft);
  font-size: 14px;
  line-height: 1.85;
}

.photo-story {
  position: relative;
  min-height: 650px;
  display: grid;
  place-items: end center;
  padding: 52px 34px;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}

.photo-story img {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 52%;
}

.photo-story::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(to bottom, rgba(19, 41, 48, 0.05) 30%, rgba(19, 41, 48, 0.76) 100%);
}

.photo-story blockquote {
  max-width: 550px;
  margin: 0;
  text-align: center;
  font-family: var(--script);
  font-size: clamp(2.4rem, 8vw, 4rem);
  line-height: 0.96;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.28);
}

.event-grid {
  display: grid;
  gap: 22px;
}

.event-card {
  position: relative;
  padding: 34px;
  overflow: hidden;
  border: 1px solid rgba(36, 63, 75, 0.12);
  background: rgba(255, 254, 251, 0.78);
  box-shadow: 0 14px 40px rgba(36, 63, 75, 0.06);
  text-align: center;
}

.event-card::before {
  content: attr(data-number);
  position: absolute;
  top: -12px;
  right: 15px;
  color: rgba(185, 208, 216, 0.33);
  font-size: 6rem;
  line-height: 1;
}

.event-card .eyebrow {
  position: relative;
  color: var(--gold);
}

.event-card h3 {
  position: relative;
  margin: 0 0 8px;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 400;
}

.event-time {
  position: relative;
  margin: 0 0 17px;
  color: var(--olive);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.event-address {
  position: relative;
  max-width: 520px;
  margin: 0 auto 24px;
  color: var(--navy-soft);
  font-size: 12px;
  line-height: 1.75;
}

.button.primary {
  color: #fff;
  background: var(--navy);
  box-shadow: 0 9px 23px rgba(36, 63, 75, 0.17);
}

.button.primary:hover {
  background: #152f3a;
}

.button.outline {
  color: var(--navy);
  border-color: rgba(36, 63, 75, 0.38);
  background: rgba(255, 255, 255, 0.58);
}

.button.outline:hover {
  background: #fff;
}

.button .arrow {
  font-size: 1.1em;
  transition: transform 0.2s ease;
}

.button:hover .arrow {
  transform: translateX(3px);
}

.timeline {
  position: relative;
  max-width: 555px;
  margin: 7px auto 0;
  padding-left: 0;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 78px;
  width: 1px;
  background: linear-gradient(var(--gold-light), var(--powder));
}

.timeline li {
  display: grid;
  grid-template-columns: 61px 1fr;
  gap: 36px;
  align-items: center;
  min-height: 77px;
}

.timeline time {
  color: var(--navy);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-align: right;
}

.timeline-detail {
  position: relative;
  padding: 16px 0;
  color: var(--navy-soft);
}

.timeline-detail::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -24px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 1px var(--gold);
  transform: translate(-50%, -50%);
}

.timeline-detail strong {
  display: block;
  color: var(--navy);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
}

.timeline-detail span {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sailing-note {
  position: relative;
  max-width: 580px;
  margin: 46px auto 0;
  padding: 27px 30px;
  border: 1px solid rgba(182, 147, 88, 0.35);
  background: rgba(255, 255, 255, 0.6);
  text-align: center;
}

.sailing-note::before {
  display: none;
}

.sailing-note h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
}

.sailing-note p {
  margin: 0;
  color: var(--navy-soft);
  font-size: 12px;
}

.gallery {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  grid-template-rows: repeat(2, 260px);
  gap: 9px;
  padding: 9px;
  background: var(--paper);
}

.gallery figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--mist);
}

.gallery figure:first-child {
  grid-row: 1 / 3;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.gallery figure:first-child img {
  object-position: center 45%;
}

.gallery figure:nth-child(2) img {
  object-position: center 43%;
}

.gallery figure:hover img {
  transform: scale(1.025);
}

.gift-seal {
  width: 72px;
  height: 72px;
  display: grid;
  margin: 0 auto 26px;
  place-items: center;
  border: 1px solid var(--gold-light);
  border-radius: 50%;
  color: var(--gold);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
}

.gift-seal img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.rsvp-panel {
  position: relative;
  max-width: 620px;
  margin-inline: auto;
  padding: 46px 36px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  background: linear-gradient(135deg, rgba(36, 63, 75, 0.98), rgba(65, 96, 106, 0.96)), var(--navy);
  text-align: center;
  box-shadow: 0 20px 46px rgba(24, 54, 65, 0.22);
}

.rsvp-panel::before,
.rsvp-panel::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255, 255, 255, 0.21);
  pointer-events: none;
}

.rsvp-panel::after {
  inset: 18px;
  border-color: rgba(185, 208, 216, 0.11);
}

.rsvp-panel > * {
  position: relative;
  z-index: 1;
}

.rsvp-panel .eyebrow {
  color: var(--gold-light);
}

.rsvp-panel .section-title {
  color: #fff;
}

.rsvp-panel p {
  max-width: 475px;
  margin: 15px auto 0;
  color: rgba(255, 255, 255, 0.79);
  font-size: 14px;
}

.rsvp-panel .deadline {
  margin-top: 20px;
  color: #fff;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rsvp-panel .button {
  margin-top: 28px;
  color: var(--navy);
  background: #fff;
}

.closing {
  min-height: 670px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.5) 43%, transparent 70%),
    var(--cream);
}

.closing .section-content {
  max-width: 520px;
  text-align: center;
}

.closing-kicker {
  margin: 0;
  color: var(--olive);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.closing h2 {
  margin: 21px 0 15px;
  color: var(--navy);
  font-family: var(--script);
  font-size: clamp(4rem, 14vw, 7rem);
  font-weight: 400;
  line-height: 0.82;
}

.closing-date {
  margin: 24px 0 0;
  color: var(--gold);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.footer {
  padding: 20px 24px calc(20px + env(safe-area-inset-bottom));
  color: rgba(36, 63, 75, 0.7);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
}

.music-toggle {
  position: fixed;
  z-index: 950;
  right: max(16px, calc((100vw - 780px) / 2 + 16px));
  bottom: calc(16px + env(safe-area-inset-bottom));
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 50%;
  color: #fff;
  background: rgba(36, 63, 75, 0.92);
  box-shadow: 0 9px 25px rgba(22, 46, 55, 0.23);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
}

body:not(.locked) .music-toggle {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.music-toggle:hover {
  background: #17313c;
}

.music-note {
  font-size: 1.25rem;
}

.music-toggle[aria-pressed="true"] .music-note {
  animation: music-pulse 1.8s ease-in-out infinite;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

[data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes opening-photo {
  from { transform: translateX(-50%) scale(1.08); }
  to { transform: translateX(-50%) scale(1.015); }
}

@keyframes opening-copy {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes music-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.18) rotate(-5deg); }
}

@media (max-width: 640px) {
  body {
    font-size: 14px;
  }

  .opening-inner {
    padding-inline: 30px;
  }

  .opening h1 {
    max-width: 430px;
    margin-inline: auto;
    font-size: clamp(3.5rem, 15vw, 4.9rem);
  }

  .opening-date {
    letter-spacing: 0.14em;
  }

  .opening::after {
    inset: 12px;
  }

  .section {
    padding: 70px 28px;
  }

  .intro {
    min-height: 790px;
    padding-top: 96px;
    padding-bottom: 96px;
  }

  .nautical-frame {
    object-fit: cover;
    opacity: 0.34;
  }

  .section-header,
  .section-copy,
  .lead {
    width: 100%;
    text-align: center;
  }

  .date-lockup {
    grid-template-columns: 1fr;
    gap: 7px;
    width: 100%;
    margin-top: 30px;
    letter-spacing: 0.16em;
    text-align: center;
  }

  .date-lockup::before,
  .date-lockup::after {
    width: 94px;
    justify-self: center;
  }

  .date-lockup time {
    font-size: 12px;
  }

  .families {
    grid-template-columns: 1fr;
    gap: 3px;
    text-align: center;
  }

  .families-amp {
    height: 38px;
    line-height: 0.8;
  }

  .photo-story {
    min-height: 600px;
    padding-inline: 24px;
  }

  .event-card {
    padding: 32px 25px;
    text-align: center;
  }

  .event-time {
    max-width: 290px;
    margin-right: auto;
    margin-left: auto;
    line-height: 1.6;
  }

  .event-address {
    max-width: 340px;
    text-align: center;
  }

  .event-card .button {
    width: min(100%, 265px);
    margin-inline: auto;
  }

  .timeline {
    text-align: left;
  }

  .timeline::before {
    left: 73px;
  }

  .timeline li {
    grid-template-columns: 56px 1fr;
    gap: 34px;
  }

  .timeline-detail::before {
    left: -17px;
  }

  .gallery {
    grid-template-rows: repeat(2, 210px);
  }

  .rsvp-panel {
    padding: 42px 25px;
    text-align: center;
  }

  .rsvp-panel .button {
    width: min(100%, 315px);
  }
}

@media (max-width: 410px) {
  .countdown {
    gap: 5px;
  }

  .countdown-label {
    letter-spacing: 0.1em;
  }

  .section {
    padding-right: 22px;
    padding-left: 22px;
  }

  .timeline::before {
    left: 66px;
  }

  .timeline li {
    grid-template-columns: 51px 1fr;
    gap: 30px;
  }

  .timeline-detail::before {
    left: -15px;
  }

  .gallery {
    grid-template-columns: 1fr;
    grid-template-rows: 470px 225px 225px;
  }

  .gallery figure:first-child {
    grid-row: auto;
  }

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

  .action-row .button {
    width: 100%;
  }
}

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

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

@media print {
  .opening,
  .music-toggle,
  .button {
    display: none !important;
  }

  .site-shell {
    width: 100%;
    box-shadow: none;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
