:root {
  color-scheme: light;
  --ink: #302735;
  --muted: #6f6472;
  --paper: #fffaf7;
  --ivory: #fbf3ef;
  --linen: #f4ebe5;
  --rose: #c86f8d;
  --rose-dark: #9e476c;
  --lavender: #8f78b7;
  --violet: #674c86;
  --sage: #748a78;
  --border: #ead8d7;
  --shadow: 0 20px 50px rgba(78, 52, 67, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

body::selection {
  background: #ead0e7;
}

a {
  color: inherit;
}

img,
iframe {
  max-width: 100%;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
}

.skip-link:focus {
  top: 16px;
}

.hero {
  min-height: 78svh;
  position: relative;
  display: flex;
  align-items: center;
  padding: 96px 24px 88px;
  overflow: hidden;
  background-image:
    linear-gradient(90deg, rgba(255, 250, 247, 0.95) 0%, rgba(255, 250, 247, 0.78) 38%, rgba(255, 250, 247, 0.28) 74%),
    url("/assets/wedding-hero.png");
  background-size: cover;
  background-position: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 96px;
  background: linear-gradient(180deg, rgba(255, 250, 247, 0), var(--paper));
  pointer-events: none;
}

.topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 24px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(103, 76, 134, 0.24);
  border-radius: 50%;
  background: rgba(255, 250, 247, 0.72);
  text-decoration: none;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(103, 76, 134, 0.16);
  border-radius: 8px;
  background: rgba(255, 250, 247, 0.74);
  backdrop-filter: blur(10px);
}

.nav-links a {
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: #f5e4ea;
  color: var(--ink);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(640px, 100%);
  margin-left: max(0px, calc((100vw - 1120px) / 2));
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--rose-dark);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.12;
}

h1 {
  max-width: 720px;
  font-size: 72px;
}

.hero h1 {
  white-space: nowrap;
}

.hero-couple-text {
  white-space: nowrap;
}

.hero-couple-text span {
  display: inline;
}

h2 {
  font-size: 42px;
}

.hero-date {
  margin: 22px 0 0;
  color: var(--violet);
  font-size: 24px;
  font-weight: 700;
}

.hero-lead {
  max-width: 520px;
  margin: 22px 0 0;
  color: #433746;
  font-size: 22px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button.primary {
  background: var(--rose-dark);
  color: #fff;
  box-shadow: 0 12px 26px rgba(158, 71, 108, 0.24);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: #87395d;
}

.button.ghost {
  border-color: rgba(103, 76, 134, 0.24);
  background: rgba(255, 250, 247, 0.74);
  color: var(--violet);
}

.button.full {
  width: 100%;
}

.section {
  padding: 78px 24px;
}

.section-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.section-inner.narrow {
  width: min(760px, 100%);
  text-align: center;
}

.section-inner.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: 56px;
  align-items: center;
}

.section-inner.reverse {
  grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1.1fr);
}

.intro {
  background: var(--paper);
}

.intro p {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 19px;
}

.date-place,
.rsvp {
  background: var(--ivory);
}

.facts {
  display: grid;
  gap: 12px;
  margin: 28px 0;
}

.fact {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
}

.fact span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 14px;
}

.fact strong {
  display: block;
  font-size: 19px;
  line-height: 1.35;
}

.map-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}

.map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.map-actions .button {
  min-width: 178px;
}

.map-wrap iframe,
.map-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-wrap img {
  object-fit: cover;
}

.map-label {
  position: absolute;
  left: 50%;
  top: 14px;
  transform: translateX(-50%);
  max-width: calc(100% - 28px);
  padding: 8px 12px;
  border: 1px solid rgba(158, 71, 108, 0.2);
  border-radius: 8px;
  background: rgba(255, 250, 247, 0.94);
  color: var(--rose-dark);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(78, 52, 67, 0.13);
  pointer-events: none;
}

.countdown-band {
  background: #f8f1f4;
  text-align: center;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 34px;
}

.countdown div {
  min-height: 128px;
  display: grid;
  place-items: center;
  padding: 18px;
  border: 1px solid #e4cfdd;
  border-radius: 8px;
  background: #fff;
}

.countdown strong {
  display: block;
  color: var(--violet);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 46px;
  line-height: 1;
}

.countdown span {
  color: var(--muted);
  font-size: 14px;
}

.section-heading {
  max-width: 640px;
  margin-bottom: 34px;
}

.timeline {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
}

.timeline li {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 18px;
  align-items: center;
  min-height: 78px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

.timeline time {
  color: var(--rose-dark);
  font-weight: 800;
}

.timeline span {
  color: var(--ink);
}

.dress-code {
  background: #fff;
}

.dress-code p {
  color: var(--muted);
  font-size: 19px;
}

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

.palette span {
  min-height: 150px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 14px 10px;
  border: 1px solid rgba(48, 39, 53, 0.08);
  border-radius: 8px;
  background: var(--swatch);
  color: rgba(48, 39, 53, 0.82);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.rsvp-copy p {
  color: var(--muted);
  font-size: 19px;
}

.rsvp-form {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.field {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.field label,
.field legend {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid #dcc8d1;
  border-radius: 8px;
  padding: 13px 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: 3px solid rgba(199, 160, 207, 0.34);
  border-color: var(--lavender);
}

.segmented {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.segmented label {
  min-height: 48px;
  cursor: pointer;
}

.segmented input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.segmented span {
  display: grid;
  place-items: center;
  min-height: 48px;
  border: 1px solid #dcc8d1;
  border-radius: 8px;
  background: #fff;
}

.segmented input:checked + span {
  border-color: var(--violet);
  background: #eee7f3;
  color: var(--violet);
  font-weight: 800;
}

.hidden-field {
  position: absolute;
  left: -9999px;
}

.personal-note {
  padding: 12px 14px;
  border: 1px solid #e4cfdd;
  border-radius: 8px;
  background: #f8f1f4;
  color: var(--violet);
  font-weight: 800;
}

.form-status {
  margin-top: 22px;
  padding: 16px;
  border-radius: 8px;
  font-weight: 700;
}

.form-status.success {
  border: 1px solid #b7c9b9;
  background: #edf6ed;
  color: #315c3c;
}

.form-status.error {
  border: 1px solid #e6b9bd;
  background: #fff0f1;
  color: #813c48;
}

.form-status p {
  margin: 0;
  color: inherit;
  font-size: 16px;
}

.contacts {
  background: var(--paper);
}

.contact-list {
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.contact-card {
  min-width: 220px;
  display: grid;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

.contact-card p {
  margin: 0;
}

.contact-card a:not(.button) {
  color: var(--violet);
  font-weight: 700;
  text-decoration: none;
}

.contact-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.contact-actions .button {
  min-height: 40px;
  padding: 8px;
  font-size: 13px;
  white-space: nowrap;
}

.photos {
  background:
    radial-gradient(circle at 18% 24%, rgba(200, 111, 141, 0.16), transparent 30%),
    linear-gradient(135deg, #fffaf7 0%, #f3edf7 100%);
}

.photos .section-inner {
  display: grid;
  justify-items: center;
}

.photos p:not(.section-kicker) {
  max-width: 620px;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 20px;
}

.photo-button {
  min-width: 230px;
}

.final {
  min-height: 360px;
  display: grid;
  align-items: center;
  background: #efe7ee;
  text-align: center;
}

.final p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 20px;
}

.final h2 {
  margin-bottom: 18px;
  color: var(--violet);
  font-size: 52px;
}

.final-title-image {
  display: block;
  width: min(760px, 100%);
  height: auto;
  margin: 0 auto 18px;
  filter: drop-shadow(0 10px 18px rgba(142, 70, 101, 0.14));
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 920px) {
  h1 {
    font-size: 56px;
  }

  h2 {
    font-size: 34px;
  }

  .hero {
    min-height: 80svh;
    background-position: 58% center;
  }

  .section-inner.split,
  .section-inner.reverse {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .map-wrap {
    aspect-ratio: 16 / 11;
  }

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

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

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

  .hero {
    min-height: 80svh;
    padding: 92px 18px 72px;
    background-image:
      linear-gradient(180deg, rgba(255, 250, 247, 0.92) 0%, rgba(255, 250, 247, 0.7) 62%, rgba(255, 250, 247, 0.42) 100%),
      url("/assets/wedding-hero.png");
    background-position: 68% center;
  }

  .topbar {
    width: calc(100% - 28px);
    gap: 12px;
    padding-top: 14px;
  }

  .brand {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    font-size: 18px;
  }

  .nav-links {
    overflow-x: auto;
    max-width: calc(100vw - 92px);
  }

  .nav-links a {
    white-space: nowrap;
  }

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 30px;
  }

  .hero-date {
    font-size: 21px;
  }

  .hero-lead {
    font-size: 18px;
  }

  .hero-actions,
  .contact-list {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .section {
    padding: 56px 18px;
  }

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

  .countdown strong {
    font-size: 38px;
  }

  .timeline li {
    grid-template-columns: 72px 1fr;
    gap: 12px;
  }

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

  .palette span {
    min-height: 72px;
  }

  .rsvp-form {
    padding: 18px;
  }

  .final h2 {
    font-size: 38px;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

html,
body {
  height: 100%;
  overflow: hidden;
}

body {
  overscroll-behavior: none;
}

.slider {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: var(--paper);
}

.slides-track {
  height: 100svh;
  transform: translate3d(0, calc(var(--slide-index, 0) * -100svh), 0);
  transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.slide {
  position: relative;
  height: 100svh;
  min-height: 100svh;
  width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  align-items: center;
  padding: 104px 24px 58px;
  scrollbar-width: thin;
  scrollbar-color: rgba(103, 76, 134, 0.3) transparent;
}

.slide::-webkit-scrollbar {
  width: 8px;
}

.slide::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(103, 76, 134, 0.28);
}

.hero.slide {
  min-height: 100svh;
  padding: 112px 24px 76px;
}

.section.slide {
  padding: 104px 24px 58px;
}

.final.slide {
  min-height: 100svh;
}

.topbar {
  position: fixed;
  z-index: 30;
}

.nav-links a.is-active {
  background: #f5e4ea;
  color: var(--violet);
}

.slide .reveal,
.slide.reveal {
  opacity: 0;
  transform: translateY(18px);
}

.slide.is-active .reveal,
.slide.is-active.reveal,
.slide .reveal.is-visible,
.slide.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-dots {
  position: fixed;
  z-index: 28;
  top: 50%;
  right: 22px;
  display: grid;
  gap: 10px;
  transform: translateY(-50%);
}

.slide-dots button,
.slide-arrows button,
.music-toggle {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(103, 76, 134, 0.18);
  border-radius: 50%;
  background: rgba(255, 250, 247, 0.78);
  color: var(--violet);
  box-shadow: 0 12px 30px rgba(78, 52, 67, 0.12);
  backdrop-filter: blur(12px);
  cursor: pointer;
}

.slide-dots button {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  padding: 0;
  background: rgba(103, 76, 134, 0.22);
  box-shadow: none;
}

.slide-dots button.is-active {
  height: 30px;
  background: var(--rose-dark);
}

.slide-arrows {
  position: fixed;
  z-index: 28;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 8px;
}

.slide-arrows button,
.music-toggle {
  font-size: 20px;
  line-height: 1;
  transition: transform 180ms ease, background 180ms ease, opacity 180ms ease;
}

.slide-arrows button:hover,
.slide-arrows button:focus-visible,
.music-toggle:hover,
.music-toggle:focus-visible {
  transform: translateY(-1px);
  background: #fff;
}

.slide-arrows button:disabled {
  opacity: 0.36;
  cursor: default;
  transform: none;
}

.music-toggle {
  position: fixed;
  z-index: 31;
  left: 18px;
  bottom: 18px;
}

.music-toggle.is-playing {
  background: var(--rose-dark);
  color: #fff;
}

.music-toggle.is-playing::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid rgba(158, 71, 108, 0.34);
  border-radius: 50%;
  animation: musicPulse 2200ms ease-in-out infinite;
}

@keyframes musicPulse {
  0%,
  100% {
    opacity: 0.2;
    transform: scale(0.94);
  }

  50% {
    opacity: 0.75;
    transform: scale(1.08);
  }
}

@media (max-width: 920px) {
  .slide,
  .section.slide {
    padding: 96px 20px 56px;
  }

  .hero.slide {
    min-height: 100svh;
    padding: 104px 20px 68px;
  }

  .slide-dots {
    right: 12px;
  }
}

@media (max-width: 640px) {
  .slide,
  .section.slide {
    padding: 88px 18px 74px;
  }

  .hero.slide {
    min-height: 100svh;
    padding: 92px 18px 74px;
  }

  .slide-dots {
    top: auto;
    right: 50%;
    bottom: 14px;
    display: flex;
    max-width: calc(100vw - 128px);
    overflow: hidden;
    transform: translateX(50%);
  }

  .slide-dots button {
    width: 9px;
    height: 9px;
  }

  .slide-dots button.is-active {
    width: 26px;
    height: 9px;
  }

  .slide-arrows {
    right: 12px;
    bottom: 10px;
    grid-template-columns: repeat(2, 38px);
  }

  .slide-arrows button,
  .music-toggle {
    width: 38px;
    height: 38px;
  }

  .music-toggle {
    left: 12px;
    bottom: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .slides-track {
    transition-duration: 0.01ms;
  }

  .music-toggle.is-playing::after {
    animation: none;
  }
}

@media (max-width: 640px) {
  .slide,
  .section.slide,
  .hero.slide {
    align-items: flex-start;
    padding: 74px 14px 58px;
  }

  .section-inner {
    width: 100%;
  }

  .topbar {
    width: calc(100% - 20px);
    padding-top: 10px;
  }

  .brand {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }

  .nav-links {
    max-width: calc(100vw - 70px);
    padding: 4px;
    gap: 4px;
  }

  .nav-links a {
    padding: 6px 8px;
    font-size: 12px;
  }

  .hero-copy {
    align-self: center;
    margin-top: 10px;
  }

  h1 {
    font-size: clamp(34px, 10vw, 42px);
  }

  h2 {
    font-size: clamp(26px, 8vw, 30px);
  }

  .eyebrow,
  .section-kicker {
    margin-bottom: 8px;
    font-size: 11px;
  }

  .hero-date {
    margin-top: 14px;
    font-size: 19px;
  }

  .hero-lead,
  .intro p,
  .dress-code p,
  .rsvp-copy p {
    margin-top: 14px;
    font-size: 16px;
    line-height: 1.45;
  }

  .hero-actions {
    gap: 8px;
    margin-top: 22px;
  }

  .button {
    min-height: 42px;
    padding: 9px 12px;
    font-size: 14px;
  }

  .section-inner.split,
  .section-inner.reverse {
    gap: 16px;
  }

  .facts {
    gap: 8px;
    margin: 16px 0;
  }

  .fact {
    padding: 10px 12px;
  }

  .fact span {
    margin-bottom: 2px;
    font-size: 12px;
  }

  .fact strong {
    font-size: 15px;
  }

  .map-wrap {
    aspect-ratio: auto;
    height: min(34svh, 260px);
    min-height: 180px;
  }

  .countdown {
    gap: 8px;
    margin-top: 20px;
  }

  .countdown div {
    min-height: 86px;
    padding: 10px;
  }

  .countdown strong {
    font-size: 32px;
  }

  .section-heading {
    margin-bottom: 18px;
  }

  .timeline {
    gap: 8px;
  }

  .timeline li {
    min-height: 52px;
    grid-template-columns: 58px 1fr;
    gap: 10px;
    padding: 10px 12px;
    font-size: 15px;
  }

  .palette {
    gap: 8px;
  }

  .palette span {
    min-height: 48px;
    padding: 8px;
    font-size: 12px;
  }

  .rsvp-form {
    gap: 10px;
    padding: 12px;
  }

  .field {
    gap: 5px;
  }

  .field label,
  .field legend {
    font-size: 12px;
  }

  input,
  textarea {
    min-height: 40px;
    padding: 9px 10px;
    font-size: 14px;
  }

  textarea {
    height: 56px;
  }

  #message {
    height: 64px;
  }

  .segmented label,
  .segmented span {
    min-height: 40px;
  }

  .personal-note,
  .form-status {
    padding: 10px;
    font-size: 14px;
  }

  .contact-list {
    gap: 10px;
    margin-top: 18px;
  }

  .contact-card {
    min-width: 0;
    padding: 12px;
  }

  .final.slide {
    align-items: center;
  }

  .final p {
    font-size: 17px;
  }

  .slide-dots {
    bottom: 8px;
  }

  .slide-arrows {
    bottom: 6px;
  }

  .music-toggle {
    bottom: 6px;
  }
}

@media (max-width: 390px), (max-width: 640px) and (max-height: 720px) {
  .slide,
  .section.slide,
  .hero.slide {
    padding-top: 64px;
    padding-bottom: 50px;
  }

  body {
    font-size: 15px;
  }

  .section-inner.split,
  .section-inner.reverse {
    gap: 12px;
  }

  h1 {
    font-size: clamp(30px, 9vw, 38px);
  }

  h2 {
    font-size: clamp(23px, 7vw, 28px);
  }

  .hero-lead,
  .intro p,
  .dress-code p,
  .rsvp-copy p {
    font-size: 15px;
  }

  .map-wrap {
    height: min(28svh, 220px);
    min-height: 150px;
  }

  .countdown div {
    min-height: 74px;
  }

  .countdown strong {
    font-size: 28px;
  }

  .timeline li {
    min-height: 46px;
    padding: 8px 10px;
    font-size: 14px;
  }

  .rsvp-form {
    gap: 8px;
    padding: 10px;
  }

  input,
  textarea {
    min-height: 36px;
    padding: 7px 9px;
  }

  textarea,
  #message {
    height: 48px;
  }
}

@media (max-width: 640px) {
  .slide,
  .section.slide,
  .hero.slide {
    align-items: flex-start;
    padding: 64px 14px 52px;
  }

  .hero-copy {
    align-self: flex-start;
    margin-top: 8px;
  }

  h1 {
    font-size: clamp(31px, 9vw, 38px);
    white-space: normal;
  }

  .hero h1 {
    white-space: normal;
  }

  .hero-couple-text {
    white-space: normal;
  }

  .hero-couple-text span {
    display: block;
  }

  .final-title-image {
    width: min(100%, 420px);
  }

  h2 {
    font-size: clamp(23px, 7vw, 28px);
  }

  .section-kicker,
  .eyebrow {
    margin-bottom: 6px;
  }

  .hero-date,
  .hero-lead,
  .intro p,
  .dress-code p,
  .rsvp-copy p {
    margin-top: 10px;
  }

  .hero-actions {
    margin-top: 16px;
  }

  .section-inner.split,
  .section-inner.reverse {
    gap: 12px;
  }

  .facts {
    gap: 6px;
    margin: 12px 0;
  }

  .fact {
    padding: 8px 10px;
  }

  .fact strong {
    font-size: 14px;
  }

  .map-wrap {
    height: min(24svh, 170px);
    min-height: 124px;
    box-shadow: none;
  }

  .map-label {
    top: 8px;
    max-width: calc(100% - 16px);
    padding: 6px 8px;
    font-size: 12px;
  }

  .countdown {
    gap: 6px;
    margin-top: 14px;
  }

  .countdown div {
    min-height: 62px;
    padding: 7px 4px;
  }

  .countdown strong {
    font-size: 24px;
  }

  .countdown span {
    font-size: 11px;
  }

  .section-heading {
    margin-bottom: 12px;
  }

  .timeline {
    gap: 6px;
  }

  .timeline li {
    min-height: 40px;
    grid-template-columns: 52px 1fr;
    gap: 8px;
    padding: 7px 10px;
    font-size: 13px;
  }

  .palette {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .palette span {
    min-height: 42px;
    padding: 7px;
    font-size: 11px;
  }

  .rsvp-form {
    gap: 8px;
    padding: 10px;
    box-shadow: none;
  }

  .field {
    gap: 4px;
  }

  .field label,
  .field legend {
    font-size: 11px;
  }

  input,
  textarea {
    min-height: 34px;
    padding: 6px 9px;
    font-size: 13px;
  }

  textarea,
  #message {
    height: 42px;
    min-height: 42px;
  }

  .segmented label,
  .segmented span {
    min-height: 34px;
  }

  .button {
    min-height: 38px;
    padding: 7px 10px;
  }

  .personal-note,
  .form-status {
    margin-top: 8px;
    padding: 8px;
    font-size: 13px;
  }

  .contact-list {
    gap: 8px;
    margin-top: 12px;
  }

  .contact-card {
    padding: 10px;
  }

  .final.slide {
    align-items: center;
  }
}

@media (max-width: 390px), (max-height: 720px) {
  .slide,
  .section.slide,
  .hero.slide {
    padding-top: 58px;
    padding-bottom: 46px;
  }

  .topbar {
    padding-top: 6px;
  }

  .brand {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }

  .nav-links a {
    padding: 5px 7px;
  }

  .hero-lead,
  .intro p,
  .dress-code p,
  .rsvp-copy p {
    font-size: 14px;
    line-height: 1.38;
  }

  .map-wrap {
    height: min(21svh, 140px);
    min-height: 108px;
  }

  .timeline li {
    min-height: 36px;
    padding: 6px 9px;
  }

  .rsvp-form {
    gap: 6px;
    padding: 8px;
  }

  input,
  textarea {
    min-height: 32px;
    padding: 5px 8px;
  }

  textarea,
  #message {
    height: 36px;
    min-height: 36px;
  }
}

@media (max-width: 640px) {
  .slide,
  .section.slide,
  .hero.slide {
    align-items: flex-start;
    padding-top: clamp(66px, 10svh, 82px);
    padding-bottom: clamp(54px, 8svh, 70px);
  }

  .hero-copy,
  .section-inner {
    margin-top: auto;
    margin-bottom: auto;
  }

  .hero-copy {
    align-self: auto;
  }
}

@media (max-width: 390px), (max-width: 640px) and (max-height: 720px) {
  .slide,
  .section.slide,
  .hero.slide {
    padding-top: 62px;
    padding-bottom: 48px;
  }
}
