:root {
  --espresso: #1e2a1a;
  --coffee: #34452c;
  --walnut: #24371f;
  --cognac: #6d7d54;
  --terracotta: #a8683f;
  --bronze: #a9b17c;
  --ivory: #f6f1e4;
  --linen: #eae6d3;
  --paper: #faf8f1;
  --ink-muted: #58604a;
  --line: rgba(52, 69, 44, 0.18);
  --shadow: 0 22px 70px rgba(30, 42, 26, 0.18);
  --soft-shadow: 0 18px 48px rgba(30, 42, 26, 0.12);
  --button-shadow: 0 14px 34px rgba(30, 42, 26, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--espresso);
  background: var(--paper);
  font-family: "Inter", system-ui, sans-serif;
  line-height: 1.6;
}

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

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 12%, rgba(168, 104, 63, 0.08), transparent 28%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.34), transparent 35%, rgba(109, 125, 84, 0.05));
}

::selection {
  color: var(--ivory);
  background: var(--cognac);
}

.hero {
  position: relative;
  min-height: 94svh;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  color: var(--ivory);
  background-image:
    linear-gradient(180deg, rgba(30, 42, 26, 0.4), rgba(30, 42, 26, 0.52)),
    url("assets/hero-forest.webp");
  background-position: center 38%;
  background-size: cover;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(30, 42, 26, 0.34), transparent 28%, transparent 72%, rgba(30, 42, 26, 0.3)),
    radial-gradient(circle at 50% 42%, transparent 0, rgba(30, 42, 26, 0.22) 78%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 24%;
  background: linear-gradient(180deg, transparent, var(--paper));
  pointer-events: none;
}

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0;
}

.brand::before,
.brand::after {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.64;
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-links a {
  position: relative;
  padding-bottom: 5px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

.hero-content {
  position: relative;
  z-index: 1;
  align-self: center;
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  padding: 64px 0 110px;
  text-align: center;
}

.eyebrow,
.section-kicker,
.script-label {
  margin: 0 0 14px;
  color: var(--bronze);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.script-label {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.3rem;
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.01em;
  text-transform: none;
}

.hero .eyebrow {
  color: #efd5ad;
}

h1,
h2,
h3 {
  font-family: "Cormorant Garamond", serif;
  line-height: 1;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: clamp(4.4rem, 14vw, 11.5rem);
  font-weight: 600;
}

.amp {
  display: inline-block;
  font-family: "Pinyon Script", cursive;
  font-weight: 400;
  font-style: normal;
  line-height: 1;
  padding: 0 0.06em;
  color: #efd5ad;
}

h1 .amp {
  font-size: 0.62em;
  vertical-align: 0.05em;
}

.brand .amp {
  font-size: 1.5em;
  vertical-align: -0.1em;
}

.site-footer .amp {
  font-size: 1.3em;
  vertical-align: -0.08em;
}

h2 {
  margin: 0;
  font-size: clamp(2.4rem, 5.5vw, 4.8rem);
  font-weight: 600;
}

h3 {
  margin: 0 0 12px;
  font-size: 1.8rem;
}

.hero-date,
.hero-place {
  margin: 12px auto 0;
  max-width: 640px;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  font-weight: 600;
}

.hero-place {
  color: #f1dcc0;
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
}

.primary-action,
.secondary-action,
.rsvp-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, color 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.primary-action:hover,
.secondary-action:hover,
.rsvp-form button:hover {
  transform: translateY(-2px);
  box-shadow: var(--button-shadow);
}

.primary-action:focus-visible,
.secondary-action:focus-visible,
.map-link:focus-visible,
.rsvp-form button:focus-visible,
.nav-links a:focus-visible {
  outline: 2px solid var(--bronze);
  outline-offset: 4px;
}

.primary-action {
  margin-top: 34px;
  color: var(--espresso);
  background: var(--ivory);
  box-shadow: var(--shadow);
}

.secondary-action {
  color: var(--ivory);
  background: var(--coffee);
}

.text-action {
  color: var(--coffee);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.section-band {
  padding: 92px 0;
}

.section-band:nth-child(even) {
  background: var(--ivory);
}

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

.narrow {
  width: min(780px, calc(100% - 40px));
  text-align: center;
}

.intro h2 {
  margin-bottom: 24px;
}

.intro p:last-child,
.location p,
.registry p,
.rsvp p {
  color: var(--ink-muted);
  font-size: 1.02rem;
}

.countdown {
  position: relative;
  overflow: hidden;
  padding: 50px 0;
  background: var(--espresso) !important;
  color: var(--ivory);
}

.countdown::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(169, 177, 124, 0.12), transparent 30%, transparent 70%, rgba(168, 104, 63, 0.1)),
    radial-gradient(circle at 78% 20%, rgba(239, 213, 173, 0.12), transparent 30%);
  pointer-events: none;
}

.countdown .section-inner {
  position: relative;
}

.countdown-grid,
.location-grid,
.rsvp-grid,
.split-copy {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: center;
}

.countdown h2 {
  font-size: clamp(2.1rem, 4vw, 3.5rem);
}

.time-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(82px, 1fr));
  gap: 14px;
}

.time-grid div {
  min-height: 96px;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 20px 10px;
  border: 1px solid rgba(247, 240, 230, 0.24);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.25s ease, background 0.25s ease;
}

.time-grid div:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.1);
}

.time-grid strong {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  line-height: 1;
  display: inline-block;
  min-width: 2ch;
  font-variant-numeric: tabular-nums;
  transform-origin: 50% 58%;
  will-change: transform, opacity, filter;
}

.time-grid strong.time-tick {
  animation: countdownTick 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.time-grid span {
  color: #d9b98c;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@keyframes countdownTick {
  0% {
    opacity: 0.35;
    transform: translateY(8px) scale(0.96);
    filter: blur(2px);
  }

  55% {
    opacity: 1;
    transform: translateY(-2px) scale(1.03);
    filter: blur(0);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.section-heading {
  margin-bottom: 36px;
  text-align: center;
}

.section-heading::after {
  content: "";
  display: block;
  width: 96px;
  height: 9px;
  margin: 22px auto 0;
  background-image:
    radial-gradient(circle, var(--bronze) 42%, transparent 44%),
    linear-gradient(90deg, transparent, var(--bronze), transparent);
  background-repeat: no-repeat;
  background-position: center, center;
  background-size: 9px 9px, 100% 1px;
}

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

.detail-card,
.faq-grid article,
.rsvp-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 12px 40px rgba(255, 255, 255, 0.74);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease, background 0.28s ease;
}

.detail-card:hover,
.faq-grid article:hover,
.rsvp-form:focus-within {
  transform: translateY(-4px);
  border-color: rgba(109, 125, 84, 0.38);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--soft-shadow);
}

.detail-grid {
  grid-template-columns: repeat(2, minmax(0, 340px));
  justify-content: center;
}

.detail-card {
  min-height: 272px;
  padding: 34px 30px;
  text-align: center;
}

.detail-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  border: 1.5px solid var(--bronze);
  border-radius: 999px;
  color: var(--cognac);
  background: var(--linen);
}

.detail-icon svg {
  width: 26px;
  height: 26px;
}

.card-icon {
  display: block;
  margin-bottom: 36px;
  color: var(--terracotta);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.detail-time {
  color: var(--cognac);
  font-weight: 800;
}

.map-panel {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(52, 69, 44, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(52, 69, 44, 0.06) 1px, transparent 1px),
    var(--linen);
  background-size: 42px 42px;
}

.map-line {
  position: absolute;
  inset: 18% 8%;
  border: 2px solid rgba(109, 125, 84, 0.5);
  border-left: 0;
  border-bottom: 0;
  transform: rotate(-8deg);
}

.map-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  min-width: 126px;
  padding: 12px 18px;
  border-radius: 999px;
  color: var(--ivory);
  background: var(--coffee);
  font-weight: 800;
  text-align: center;
}

.map-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  padding: 9px 18px;
  border: 1px solid var(--cognac);
  border-radius: 999px;
  color: var(--cognac);
  background: transparent;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.25s ease, color 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.map-link svg {
  flex: none;
  width: 14px;
  height: 14px;
  min-width: 14px;
}

.map-link:hover {
  transform: translateY(-1px);
  border-color: var(--coffee);
  color: var(--ivory);
  background: var(--coffee);
}

.route-map-frame {
  position: relative;
  margin-top: 40px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--soft-shadow);
}

.route-map {
  width: 100%;
  height: clamp(320px, 46vw, 460px);
  background: var(--linen);
  color: var(--ink-muted);
  font-size: 0.85rem;
  display: grid;
  place-items: center;
}

.route-map .leaflet-tile-pane {
  filter: sepia(0.3) saturate(0.7) hue-rotate(48deg) brightness(0.98) contrast(0.95);
}

.route-map .leaflet-control-zoom a {
  color: var(--coffee) !important;
  border-color: var(--line) !important;
}

.route-map .leaflet-control-attribution {
  background: rgba(250, 248, 241, 0.8) !important;
  font-size: 10px !important;
}

.route-map .leaflet-popup-content-wrapper {
  border-radius: 10px;
  color: var(--espresso);
  font-family: "Inter", system-ui, sans-serif;
}

.route-marker-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 2px solid var(--paper);
  border-radius: 999px;
  box-shadow: var(--soft-shadow);
}

.route-marker-icon svg {
  width: 16px;
  height: 16px;
}

.route-marker-icon.is-church {
  color: var(--ivory);
  background: var(--coffee);
}

.route-marker-icon.is-venue {
  color: var(--ivory);
  background: var(--terracotta);
}

.route-map-overlay {
  position: absolute;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  background: rgba(30, 42, 26, 0.12);
  cursor: pointer;
  transition: opacity 0.35s ease;
}

.route-map-overlay span {
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(30, 42, 26, 0.75);
  color: var(--ivory);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.route-map-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.route-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 22px;
}

.route-distance {
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.route-distance strong {
  color: var(--coffee);
}

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

.story-carousel {
  position: relative;
}

.story-carousel-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 4px 4px 10px;
  margin: 0;
}

.story-carousel-track::-webkit-scrollbar {
  display: none;
}

.story-slide {
  position: relative;
  flex: 0 0 auto;
  width: min(340px, 72vw);
  margin: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: var(--soft-shadow);
  scroll-snap-align: center;
}

.story-slide::before {
  content: "";
  display: block;
  padding-top: 125%;
}

.story-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.moments-slideshow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.moments-slideshow-frame {
  position: relative;
  width: 100%;
  max-width: 480px;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: var(--soft-shadow);
}

.moments-slideshow-frame::before {
  content: "";
  display: block;
  padding-top: 125%;
}

.moments-slideshow-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1.4s ease, transform 2.6s ease;
}

.moments-slideshow-frame img.is-active {
  z-index: 1;
  opacity: 1;
  transform: scale(1);
}

.moments-slideshow-dots {
  display: flex;
  gap: 9px;
}

.moments-slideshow-dots span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--line);
  transition: background 0.35s ease, transform 0.35s ease;
}

.moments-slideshow-dots span.is-active {
  background: var(--cognac);
  transform: scale(1.35);
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(30, 42, 26, 0.55);
  color: var(--ivory);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.25s ease, opacity 0.25s ease;
}

.carousel-arrow svg {
  width: 18px;
  height: 18px;
}

.carousel-arrow:hover {
  background: rgba(30, 42, 26, 0.8);
}

.carousel-arrow-prev {
  left: 10px;
}

.carousel-arrow-next {
  right: 10px;
}

.story-break {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 52vh;
  padding: 60px 24px;
  overflow: hidden;
  color: var(--ivory);
  text-align: center;
  background-image:
    linear-gradient(180deg, rgba(30, 42, 26, 0.4) 0%, rgba(30, 42, 26, 0.62) 68%, var(--walnut) 100%),
    url("assets/story-break.webp");
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
}

.story-break-quote {
  margin: 0;
  max-width: 700px;
}

.story-break-quote p {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  line-height: 1.35;
}

.story-break-quote footer {
  margin-top: 18px;
  color: #f1dcc0;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-band.godparents {
  position: relative;
  overflow: hidden;
  background: var(--walnut);
  color: var(--ivory);
}

.godparents .section-kicker {
  color: #f1dcc0;
}

.godparents .section-heading::after {
  background-image:
    radial-gradient(circle, var(--ivory) 42%, transparent 44%),
    linear-gradient(90deg, transparent, rgba(247, 240, 230, 0.65), transparent);
}

.godparents-group + .godparents-group {
  margin-top: 44px;
}

.godparents-group-label {
  margin: 0 0 18px;
  text-align: center;
  color: #f1dcc0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.godparents-grid--single {
  grid-template-columns: minmax(0, 1fr);
  max-width: 340px;
  margin: 0 auto;
}

.godparent-card {
  padding: 26px 30px;
  border: 1px solid rgba(247, 240, 230, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  text-align: center;
  transition: transform 0.28s ease, background 0.28s ease;
}

.godparent-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.12);
}

.godparent-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border: 1.5px solid rgba(247, 240, 230, 0.4);
  border-radius: 999px;
  color: #f1dcc0;
  background: rgba(0, 0, 0, 0.12);
}

.godparent-icon svg {
  width: 26px;
  height: 26px;
}

.godparent-card h3 {
  margin-bottom: 14px;
  font-size: 1.5rem;
  color: #f1dcc0;
}

.godparent-card p {
  margin: 0;
  color: var(--ivory);
}

.godparent-card p + p {
  margin-top: 4px;
}

.section-band.registry {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  color: var(--espresso);
  border-radius: 0 clamp(56px, 10vw, 180px) 0 clamp(56px, 10vw, 180px);
}

.registry-note {
  margin-top: 14px;
  color: var(--ink-muted);
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 1.05rem;
}

.registry-actions {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 22px;
}

.registry-store {
  display: inline-flex;
  flex: 1 1 200px;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--espresso);
  background: var(--ivory);
  text-decoration: none;
  box-shadow: var(--soft-shadow);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.registry-store:hover {
  transform: translateY(-4px);
  border-color: rgba(109, 125, 84, 0.38);
  box-shadow: var(--shadow);
}

.registry-store-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1.5px solid var(--bronze);
  border-radius: 999px;
  color: var(--cognac);
  background: var(--linen);
}

.registry-store-icon svg {
  width: 24px;
  height: 24px;
}

.registry-store-name {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--espresso);
  letter-spacing: 0.01em;
}

.registry-store-cta {
  padding: 10px 22px;
  border-radius: 999px;
  color: var(--ivory);
  background: var(--coffee);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.faq-grid article {
  padding: 28px;
}

.rsvp {
  background: var(--paper);
  color: var(--espresso);
}

.rsvp .section-kicker,
.rsvp p {
  color: #d8b78c;
}

.rsvp p.guest-greeting {
  margin: 0 0 6px;
}

.rsvp-photo-frame {
  position: relative;
  width: 100%;
  max-width: 320px;
  margin-top: 32px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
}

.rsvp-photo-frame::before {
  content: "";
  display: block;
  padding-top: 125%;
}

.rsvp-photo-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 92%;
}

.greeting-label {
  display: block;
  margin-bottom: 4px;
  color: var(--bronze);
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.greeting-name {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  line-height: 1.1;
  color: var(--espresso);
}

.rsvp-form {
  display: grid;
  gap: 18px;
  padding: 30px;
  color: var(--espresso);
  background: var(--paper);
}

#nameField[hidden],
#guestsField[hidden] {
  display: none;
}

.rsvp-form label {
  display: grid;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.field-label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.attendance-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.attendance-toggle input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.attendance-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  color: var(--espresso);
  background: #fffdfa;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-align: center;
  text-transform: none;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.attendance-btn:hover {
  border-color: var(--cognac);
}

.attendance-toggle input[type="radio"]:checked+.attendance-btn {
  border-color: var(--coffee);
  background: var(--coffee);
  color: var(--ivory);
  transform: translateY(-1px);
}

.attendance-toggle input[type="radio"]:focus-visible+.attendance-btn {
  outline: 2px solid var(--bronze);
  outline-offset: 3px;
}

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 13px 14px;
  color: var(--espresso);
  background: #fffdfa;
  font: inherit;
}

.rsvp-form textarea {
  resize: vertical;
}

.rsvp-form button {
  width: 100%;
  color: var(--ivory);
  background: var(--coffee);
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--coffee);
  font-weight: 700;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

@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;
  }

  .reveal-on-scroll {
    opacity: 1;
    transform: none;
  }
}

.closing-photo {
  min-height: 58vh;
  background-image:
    linear-gradient(180deg, rgba(20, 28, 17, 0) 45%, #141c11 96%),
    url("assets/closing-photo.webp");
  background-position: center 22%;
  background-size: cover;
}

@media (min-width: 821px) {
  .closing-photo {
    background-position: center 40%;
  }
}

.site-footer {
  display: grid;
  gap: 4px;
  place-items: center;
  padding: 38px 20px;
  color: var(--ivory);
  background: #141c11;
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
}

.site-footer span {
  color: #d8b78c;
}

@media (max-width: 820px) {
  .topbar {
    align-items: center;
  }

  .nav-toggle {
    display: flex;
    z-index: 6;
  }

  .nav-links {
    position: fixed;
    inset: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    background: rgba(30, 42, 26, 0.97);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-16px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  }

  .nav-links.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-links a {
    font-family: "Cormorant Garamond", serif;
    font-size: 2.1rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-transform: none;
    color: var(--ivory);
  }

  .nav-links a::after {
    background: var(--bronze);
  }

  body.nav-open .brand {
    color: var(--ivory);
  }

  .hero-content {
    padding-bottom: 86px;
  }

  .section-band {
    padding: 68px 0;
  }

  .countdown-grid,
  .location-grid,
  .rsvp-grid,
  .split-copy,
  .detail-grid,
  .faq-grid,
  .godparents-grid {
    grid-template-columns: 1fr;
  }

  .rsvp-copy {
    text-align: center;
  }

  .rsvp-photo-frame {
    margin-left: auto;
    margin-right: auto;
  }

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

  .section-band.registry {
    border-radius: 0 40px 0 40px;
  }

  .reveal-on-scroll {
    transform: translateY(10px);
    transition-duration: 0.45s;
  }

  .story-break {
    min-height: 40vh;
    padding: 48px 24px;
    background-attachment: scroll;
  }

  .rsvp-photo-frame {
    max-width: 260px;
  }

  .closing-photo {
    min-height: 40vh;
  }
}

@media (max-width: 520px) {
  .topbar {
    width: min(100% - 28px, 1120px);
  }

  .section-band.registry {
    border-radius: 0 28px 0 28px;
  }

  .story-slide {
    width: 100%;
  }

  .route-info {
    flex-direction: column;
    align-items: flex-start;
  }

  .route-actions {
    width: 100%;
  }

  .route-actions .map-link {
    flex: 1;
  }

  .section-inner,
  .narrow,
  .hero-content {
    width: min(100% - 28px, 1120px);
  }

  .hero {
    height: 90svh;
    min-height: 560px;
    background-position: center 30%;
    transform: none;
  }

  .hero,
  .hero::before,
  .hero::after,
  .hero-content,
  .hero h1,
  .hero .eyebrow,
  .hero-date,
  .hero-place {
    animation: none;
    transition: none;
  }

  .hero h1 {
    font-size: clamp(3.7rem, 18vw, 5.8rem);
  }

  .reveal-on-scroll {
    transform: none;
  }

  .rsvp-form input,
  .rsvp-form select,
  .rsvp-form textarea {
    font-size: 16px;
  }

  .detail-card,
  .faq-grid article,
  .rsvp-form {
    padding: 24px;
  }

  .faq-grid article {
    text-align: center;
  }

  .faq-grid article .map-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    max-width: 100%;
  }

  .faq-grid article .map-link svg {
    width: 14px !important;
    height: 14px !important;
    min-width: 14px;
    flex: 0 0 14px;
  }
}

@media (hover: none) {

  .primary-action:hover,
  .secondary-action:hover,
  .rsvp-form button:hover,
  .time-grid div:hover,
  .detail-card:hover,
  .faq-grid article:hover,
  .map-link:hover {
    transform: none;
  }

  .story-break {
    background-attachment: scroll;
  }
}