:root {
  color-scheme: light;
  --moss: #3f4e31;
  --moss-deep: #2f3e24;
  --sage: #8ea77e;
  --sage-soft: #dce7d3;
  --olive-light: #edf3e7;
  --paper: #f8f4e9;
  --paper-warm: #efe7d5;
  --champagne: #f3ead8;
  --taupe: #aa9c88;
  --clay: #b7aa94;
  --chocolate: #48372b;
  --blush: #ead8df;
  --gold: #b7a26f;
  --shadow: 0 30px 90px rgba(72, 55, 43, 0.13);
  --line: rgba(63, 78, 49, 0.22);
  --radius: 8px;
  --serif: "Bodoni 72", Didot, "Times New Roman", Georgia, serif;
  --script: "Snell Roundhand", "Apple Chancery", "Brush Script MT", cursive;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--moss);
  background:
    radial-gradient(circle at 20% 10%, rgba(220, 231, 211, 0.46), transparent 28rem),
    radial-gradient(circle at 85% 64%, rgba(234, 216, 223, 0.2), transparent 26rem),
    linear-gradient(180deg, #f8f6ee 0%, #efe9d8 100%);
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.45;
  background-image:
    linear-gradient(rgba(63, 78, 49, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(63, 78, 49, 0.02) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

img,
svg {
  display: block;
}

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

svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.section {
  position: relative;
  min-height: 100vh;
  padding: 7rem 5vw;
  overflow: hidden;
}

.section:nth-of-type(even) {
  background:
    radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.4), transparent 34rem),
    linear-gradient(180deg, rgba(248, 244, 233, 0.9), rgba(239, 233, 216, 0.92));
}

.site-nav {
  position: fixed;
  right: 1.25rem;
  top: 50%;
  z-index: 20;
  display: grid;
  gap: 0.55rem;
  transform: translateY(-50%);
}

.site-nav a {
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  place-items: center;
  color: var(--moss);
  text-decoration: none;
  background: rgba(248, 244, 233, 0.82);
  border: 1px solid rgba(63, 78, 49, 0.16);
  border-radius: 999px;
  box-shadow: 0 14px 30px rgba(72, 55, 43, 0.08);
  backdrop-filter: blur(12px);
  transition:
    transform 240ms ease,
    color 240ms ease,
    background 240ms ease;
}

.site-nav a:hover {
  color: var(--paper);
  background: var(--moss);
  transform: translateX(-4px);
}

.site-nav svg {
  width: 1.15rem;
  height: 1.15rem;
}

.hero {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 3rem 5vw;
}

.royal-letter {
  position: relative;
  width: min(68rem, calc(100vw - 3rem));
  min-height: min(46rem, calc(100svh - 4rem));
  display: grid;
  place-items: center;
  align-content: center;
  padding: 5.5rem 4rem 4.5rem;
  text-align: center;
  border: 1px solid rgba(183, 162, 111, 0.5);
  background:
    linear-gradient(90deg, rgba(183, 162, 111, 0.2), transparent 18%, transparent 82%, rgba(183, 162, 111, 0.2)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(248, 244, 233, 0.68));
  box-shadow:
    inset 0 0 0 0.7rem rgba(248, 244, 233, 0.62),
    inset 0 0 0 0.78rem rgba(183, 162, 111, 0.3),
    var(--shadow);
}

.royal-letter::before,
.royal-letter::after {
  position: absolute;
  inset: 1.35rem;
  content: "";
  pointer-events: none;
  border: 1px solid rgba(63, 78, 49, 0.22);
}

.royal-letter::after {
  inset: 2rem;
  border-color: rgba(183, 162, 111, 0.34);
  mask-image:
    linear-gradient(90deg, transparent 0 16%, black 24% 76%, transparent 84% 100%),
    linear-gradient(0deg, transparent 0 16%, black 24% 76%, transparent 84% 100%);
  mask-composite: intersect;
}

.royal-corner {
  position: absolute;
  z-index: 2;
  width: 5.2rem;
  height: 5.2rem;
  color: rgba(183, 162, 111, 0.9);
  pointer-events: none;
}

.royal-corner::before,
.royal-corner::after {
  position: absolute;
  content: "";
  border-color: currentColor;
  border-style: solid;
}

.royal-corner::before {
  inset: 0;
  border-width: 1px 0 0 1px;
}

.royal-corner::after {
  width: 4.4rem;
  height: 4.4rem;
  border-width: 1px 0 0 1px;
  border-radius: 100% 0 0 0;
  transform: translate(0.45rem, 0.45rem);
}

.corner-a {
  left: 1rem;
  top: 1rem;
}

.corner-b {
  right: 1rem;
  top: 1rem;
  transform: rotate(90deg);
}

.corner-c {
  right: 1rem;
  bottom: 1rem;
  transform: rotate(180deg);
}

.corner-d {
  left: 1rem;
  bottom: 1rem;
  transform: rotate(270deg);
}

.royal-seal {
  position: absolute;
  top: 1rem;
  left: 50%;
  display: grid;
  width: 4rem;
  height: 4rem;
  place-items: center;
  color: var(--gold);
  background: var(--paper);
  border: 1px solid rgba(183, 162, 111, 0.38);
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(72, 55, 43, 0.08);
  transform: translateX(-50%);
  animation: sealGlow 4.5s ease-in-out infinite;
}

.royal-seal svg {
  width: 1.9rem;
  height: 1.9rem;
}

.eyebrow {
  margin: 0;
  color: var(--sage);
  font-size: 0.95rem;
  line-height: 1.6;
  letter-spacing: 0.46em;
  text-transform: uppercase;
}

.hero-title {
  margin: 4.6rem 0 2rem;
  color: var(--moss);
  font-size: 7rem;
  font-weight: 500;
  line-height: 0.95;
  text-align: center;
  text-wrap: balance;
}

.hero-title span,
.hero-title em {
  display: block;
}

.hero-title em {
  margin: 0.3rem 0;
  color: var(--taupe);
  font-family: var(--script);
  font-size: 3.2rem;
  font-style: normal;
  line-height: 1;
}

.date-place {
  margin: 0;
  color: var(--chocolate);
  font-size: 1.18rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.dot-ornament,
.mini-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
}

.dot-ornament {
  margin-top: 3.8rem;
}

.dot-ornament span,
.mini-dots span {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  background: rgba(142, 167, 126, 0.34);
}

.dot-ornament span:nth-child(2) {
  width: 1.35rem;
  height: 1.35rem;
  border: 2px solid var(--sage);
  background: rgba(220, 231, 211, 0.72);
  animation: pulseDot 2.4s ease-in-out infinite;
}

.scroll-link {
  display: inline-grid;
  gap: 1.4rem;
  justify-items: center;
  margin-top: 4rem;
  color: var(--moss);
  font-size: 0.84rem;
  letter-spacing: 0.42em;
  text-decoration: none;
  text-transform: uppercase;
}

.scroll-link i {
  width: 1px;
  height: 4.4rem;
  background: linear-gradient(to bottom, var(--sage), var(--moss));
  animation: scrollLine 2.3s ease-in-out infinite;
}

.vine {
  position: absolute;
  z-index: 1;
  width: 14rem;
  color: rgba(142, 167, 126, 0.48);
  pointer-events: none;
}

.vine svg {
  width: 100%;
  height: auto;
  stroke-width: 2.4;
}

.vine .blush {
  fill: rgba(234, 216, 223, 0.72);
  stroke: none;
}

.vine-top-left {
  top: -1rem;
  left: 0;
  animation: vineFloat 8s ease-in-out infinite;
}

.vine-bottom-right {
  right: 0;
  bottom: -1rem;
  animation: vineFloat 9s ease-in-out infinite reverse;
}

.section-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.4rem;
  margin: 0 auto 4rem;
  color: var(--sage);
}

.section-mark span {
  width: 12rem;
  max-width: 26vw;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--clay));
}

.section-mark span:last-child {
  background: linear-gradient(90deg, var(--clay), transparent);
}

.section-mark svg {
  width: 2.8rem;
  height: 2.8rem;
}

.intro {
  text-align: center;
}

.intro-copy,
.center-copy {
  width: min(55rem, 100%);
  margin: 0 auto;
  text-align: center;
}

h2 {
  margin: 1.8rem 0 1.8rem;
  color: var(--moss);
  font-size: 5rem;
  font-weight: 500;
  line-height: 1.04;
  text-wrap: balance;
}

.intro-copy p:last-child,
.center-copy p:last-child {
  margin: 0 auto;
  color: rgba(72, 55, 43, 0.72);
  font-family: var(--script);
  font-size: 2rem;
  line-height: 1.65;
}

.gallery-carousel {
  position: relative;
  width: min(78rem, 100%);
  margin: 5.2rem auto 0;
  padding: 1rem 5.5rem 5.2rem;
}

.carousel-stage {
  position: relative;
  height: min(52rem, 74vw);
  min-height: 34rem;
  perspective: 1800px;
}

.carousel-stage::before {
  position: absolute;
  right: 10%;
  bottom: 1rem;
  left: 10%;
  height: 9rem;
  content: "";
  background: radial-gradient(ellipse at center, rgba(63, 78, 49, 0.18), transparent 68%);
  filter: blur(18px);
  pointer-events: none;
}

.gallery-slide {
  position: absolute;
  top: 48%;
  left: 50%;
  z-index: 0;
  width: min(28rem, 42vw);
  height: min(42rem, 63vw);
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: var(--radius);
  box-shadow: none;
  opacity: 0;
  overflow: visible;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.55);
  transform-style: preserve-3d;
  backface-visibility: hidden;
  will-change: transform, opacity, filter;
  transition:
    transform 980ms cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 760ms cubic-bezier(0.22, 0.61, 0.36, 1),
    filter 900ms ease,
    box-shadow 900ms ease,
    z-index 0ms 440ms;
}

.gallery-card {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(72, 55, 43, 0.16);
  -webkit-box-reflect: below 0.45rem linear-gradient(transparent 72%, rgba(63, 78, 49, 0.16));
}

.gallery-photo {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: rgba(248, 244, 233, 0.28);
  border-radius: var(--radius);
  backface-visibility: hidden;
  transform: scale(1);
  will-change: transform;
  transition: transform 1200ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.gallery-slide figcaption {
  position: absolute;
  z-index: 3;
  right: 1.35rem;
  bottom: 1.2rem;
  left: 1.35rem;
  padding: 0.8rem 1rem;
  color: rgba(248, 244, 233, 0.92);
  font-family: var(--script);
  font-size: 1.55rem;
  line-height: 1.15;
  text-align: left;
  background: linear-gradient(90deg, rgba(47, 62, 36, 0.76), rgba(47, 62, 36, 0.25));
  border-radius: calc(var(--radius) - 2px);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

.gallery-slide[data-position="active"],
.gallery-slide.is-active {
  z-index: 5;
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1) rotateY(0deg);
  filter: none;
}

.gallery-slide[data-position="active"] .gallery-photo,
.gallery-slide.is-active .gallery-photo {
  transform: scale(1.012);
}

.gallery-slide[data-position="prev"] {
  z-index: 4;
  opacity: 0.84;
  transform: translate(calc(-50% - 18rem), -50%) scale(0.78) rotateY(18deg);
  filter: saturate(0.78) brightness(0.86);
}

.gallery-slide[data-position="next"] {
  z-index: 4;
  opacity: 0.84;
  transform: translate(calc(-50% + 18rem), -50%) scale(0.78) rotateY(-18deg);
  filter: saturate(0.78) brightness(0.86);
}

.gallery-slide[data-position="far-prev"] {
  z-index: 3;
  opacity: 0.44;
  transform: translate(calc(-50% - 31rem), -50%) scale(0.58) rotateY(28deg);
  filter: saturate(0.58) brightness(0.78);
}

.gallery-slide[data-position="far-next"] {
  z-index: 3;
  opacity: 0.44;
  transform: translate(calc(-50% + 31rem), -50%) scale(0.58) rotateY(-28deg);
  filter: saturate(0.58) brightness(0.78);
}

.gallery-slide[data-position="hidden"] {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.45);
}

.carousel-button {
  position: absolute;
  top: 43%;
  z-index: 8;
  display: grid;
  width: 3.9rem;
  height: 3.9rem;
  place-items: center;
  color: var(--moss);
  background: rgba(248, 244, 233, 0.72);
  border: 1px solid rgba(63, 78, 49, 0.18);
  border-radius: 999px;
  box-shadow: 0 18px 46px rgba(72, 55, 43, 0.14);
  backdrop-filter: blur(10px);
  transform: translateY(-50%);
  transition:
    color 200ms ease,
    background 200ms ease,
    transform 200ms ease;
}

.carousel-button:hover {
  color: var(--paper);
  background: var(--moss);
  transform: translateY(-50%) scale(1.06);
}

.carousel-button svg {
  width: 1.8rem;
  height: 1.8rem;
  stroke-width: 1.5;
}

.carousel-prev {
  left: 0;
}

.carousel-next {
  right: 0;
}

.carousel-dots {
  position: relative;
  z-index: 9;
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1.2rem;
}

.carousel-dots button {
  width: 0.65rem;
  height: 0.65rem;
  padding: 0;
  background: rgba(142, 167, 126, 0.32);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 1px 8px rgba(72, 55, 43, 0.12);
  transition:
    width 220ms ease,
    background 220ms ease,
    transform 220ms ease;
}

.carousel-dots button:hover,
.carousel-dots button[aria-current="true"] {
  width: 1.55rem;
  background: var(--sage);
  transform: translateY(-1px);
}

.leaf-side {
  position: absolute;
  top: 36%;
  z-index: 2;
  width: 6.8rem;
  color: rgba(142, 167, 126, 0.55);
  animation: leafSway 5s ease-in-out infinite;
}

.leaf-side svg {
  width: 100%;
  height: auto;
  stroke-width: 1.2;
}

.leaf-left {
  left: -5.2rem;
}

.leaf-right {
  right: -5.2rem;
  transform: scaleX(-1);
}

.mini-dots {
  margin-top: 1.8rem;
}

.mini-dots span {
  width: 0.8rem;
  height: 0.8rem;
  opacity: 0.7;
}

.mini-dots .active,
.mini-dots span:first-child {
  background: var(--sage);
  opacity: 1;
}

.countdown-section {
  display: grid;
  min-height: 64vh;
  align-content: center;
  background:
    radial-gradient(circle at 50% 52%, rgba(220, 231, 211, 0.84), rgba(220, 231, 211, 0.34) 34rem, transparent 58rem),
    linear-gradient(180deg, #f7f4eb, #eaf1e5);
}

.countdown {
  display: grid;
  grid-template-columns: repeat(7, auto);
  align-items: end;
  justify-content: center;
  gap: 3.2rem;
  margin-top: 4.5rem;
  color: var(--moss);
}

.countdown i {
  align-self: center;
  color: rgba(142, 167, 126, 0.3);
  font-size: 4.7rem;
  font-style: normal;
  line-height: 1;
}

.time-box {
  min-width: 8.5rem;
  text-align: center;
}

.time-box strong {
  display: block;
  font-size: 5.7rem;
  font-weight: 500;
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
}

.time-box span,
.label,
legend,
label span,
.swatch p {
  color: var(--taupe);
  font-size: 0.9rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.details {
  min-height: 84vh;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.2rem;
  width: min(88rem, 100%);
  margin: 4.5rem auto 0;
}

.detail-card {
  min-height: 19rem;
  display: grid;
  justify-items: center;
  align-content: center;
  padding: 2.3rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(63, 78, 49, 0.16);
  border-radius: var(--radius);
  box-shadow: 0 18px 60px rgba(72, 55, 43, 0.07);
  transition:
    transform 280ms ease,
    box-shadow 280ms ease,
    border-color 280ms ease;
}

.detail-card:hover {
  border-color: rgba(142, 167, 126, 0.48);
  box-shadow: 0 28px 80px rgba(72, 55, 43, 0.11);
  transform: translateY(-8px);
}

.detail-card svg {
  width: 3.2rem;
  height: 3.2rem;
  margin-bottom: 2.4rem;
  color: var(--sage);
}

.detail-card h3 {
  margin: 1.8rem 0 1.6rem;
  font-size: 2.35rem;
  font-weight: 500;
  line-height: 1.1;
}

.detail-card p {
  margin: 0;
  color: rgba(72, 55, 43, 0.72);
  font-family: var(--script);
  font-size: 1.55rem;
}

.detail-card .label {
  font-family: var(--serif);
  font-size: 0.88rem;
}

.schedule {
  min-height: auto;
  padding-bottom: 9rem;
}

.timeline {
  width: min(75rem, 100%);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 4.8rem auto 0;
  border: 1px solid rgba(63, 78, 49, 0.14);
  background: rgba(63, 78, 49, 0.14);
}

.timeline-item {
  display: grid;
  min-height: 14rem;
  justify-items: center;
  align-content: center;
  padding: 2rem;
  text-align: center;
  background: rgba(248, 244, 233, 0.9);
}

.timeline-item svg {
  width: 2.6rem;
  height: 2.6rem;
  color: var(--sage);
}

.timeline-item time {
  margin: 1.4rem 0 0.8rem;
  color: var(--moss);
  font-size: 2.1rem;
  font-variant-numeric: tabular-nums;
}

.timeline-item span {
  color: rgba(72, 55, 43, 0.68);
  font-family: var(--script);
  font-size: 1.45rem;
}

.palette-section {
  min-height: 90vh;
}

.swatches {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2rem;
  width: min(92rem, 100%);
  margin: 5rem auto 4rem;
}

.swatch {
  display: grid;
  justify-items: center;
  gap: 1.7rem;
}

.swatch span {
  position: relative;
  display: block;
  width: 8.8rem;
  height: 10.6rem;
  background: var(--swatch);
  border-radius: 50%;
  box-shadow:
    inset 1.5rem 1.4rem 1.3rem rgba(255, 255, 255, 0.22),
    0 22px 50px rgba(72, 55, 43, 0.12);
  transition:
    transform 280ms ease,
    box-shadow 280ms ease;
}

.swatch span::before {
  position: absolute;
  top: 1.2rem;
  left: 1.45rem;
  width: 2.7rem;
  height: 2.7rem;
  content: "";
  background: radial-gradient(circle, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.2));
  border-radius: 999px;
  filter: blur(1px);
}

.swatch:hover span {
  box-shadow:
    inset 1.5rem 1.4rem 1.3rem rgba(255, 255, 255, 0.26),
    0 30px 62px rgba(72, 55, 43, 0.18);
  transform: translateY(-10px) rotate(-2deg);
}

.note {
  margin: 0;
  color: rgba(72, 55, 43, 0.72);
  font-family: var(--script);
  font-size: 2rem;
  text-align: center;
}

.atmosphere {
  display: grid;
  min-height: 78vh;
  place-items: center;
  color: var(--paper);
  background:
    radial-gradient(circle at 35% 0%, rgba(142, 167, 126, 0.18), transparent 34rem),
    linear-gradient(180deg, var(--moss), var(--moss-deep));
}

.light-copy {
  color: var(--paper);
}

.light-copy .eyebrow {
  color: rgba(248, 244, 233, 0.62);
}

.standalone-icon {
  width: 3.8rem;
  height: 3.8rem;
  margin: 0 auto 2.6rem;
  color: rgba(248, 244, 233, 0.72);
}

blockquote {
  margin: 5rem auto 0;
  color: rgba(248, 244, 233, 0.88);
  font-family: var(--script);
  font-size: 3rem;
  line-height: 1.6;
  text-wrap: balance;
}

.location {
  min-height: 100vh;
}

.map-card {
  width: min(90rem, 100%);
  margin: 3.8rem auto 3rem;
  overflow: hidden;
  border: 1px solid rgba(63, 78, 49, 0.16);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.map-visual {
  position: relative;
  height: 32rem;
  overflow: hidden;
  background:
    linear-gradient(28deg, transparent 0 20%, rgba(220, 231, 211, 0.95) 20% 32%, transparent 32% 100%),
    linear-gradient(140deg, transparent 0 58%, rgba(220, 231, 211, 0.86) 58% 74%, transparent 74% 100%),
    #f8f4e9;
}

.map-visual::before,
.map-visual::after {
  position: absolute;
  inset: -10%;
  content: "";
  background-image:
    linear-gradient(35deg, transparent 0 47%, rgba(136, 154, 173, 0.26) 47% 48%, transparent 48%),
    linear-gradient(145deg, transparent 0 52%, rgba(136, 154, 173, 0.23) 52% 53%, transparent 53%);
  background-size: 10rem 8rem;
  opacity: 0.7;
}

.map-visual::after {
  background-size: 14rem 10rem;
  transform: rotate(8deg);
  opacity: 0.35;
}

.road {
  position: absolute;
  z-index: 2;
  display: block;
  background: #94a6bb;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55);
}

.road-main {
  left: -4rem;
  top: 58%;
  width: 120%;
  height: 1.55rem;
  transform: rotate(-5deg);
}

.road-soft {
  width: 70%;
  height: 0.45rem;
  background: rgba(129, 170, 179, 0.38);
}

.road-a {
  left: -10%;
  top: 36%;
  transform: rotate(11deg);
}

.road-b {
  right: -12%;
  top: 30%;
  transform: rotate(-32deg);
}

.road-c {
  left: 26%;
  bottom: 10%;
  transform: rotate(-55deg);
}

.map-water {
  position: absolute;
  left: 8%;
  top: 29%;
  z-index: 1;
  width: 17rem;
  height: 6rem;
  background: rgba(155, 205, 211, 0.72);
  border-radius: 62% 38% 48% 52%;
  transform: rotate(8deg);
}

.map-forest {
  position: absolute;
  z-index: 1;
  background: rgba(197, 230, 197, 0.64);
}

.forest-a {
  right: 8%;
  top: 8%;
  width: 22rem;
  height: 10rem;
  clip-path: polygon(8% 12%, 100% 0, 88% 78%, 0 100%);
}

.forest-b {
  left: 3%;
  bottom: 3%;
  width: 25rem;
  height: 9rem;
  clip-path: polygon(0 12%, 100% 0, 72% 100%, 5% 86%);
}

.pin-label,
.map-info {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #9a3c33;
  font-family: Georgia, serif;
  font-size: 1.45rem;
}

.pin-label {
  left: 49%;
  top: 52%;
  transform: translate(-10%, -50%);
}

.pin-label svg {
  width: 3.4rem;
  height: 3.4rem;
  color: #b94b42;
  fill: rgba(185, 75, 66, 0.1);
  animation: pinPulse 2.2s ease-in-out infinite;
}

.map-info {
  left: 2rem;
  top: 2rem;
  display: grid;
  width: 22rem;
  padding: 1.5rem;
  color: #50473f;
  background: rgba(255, 255, 255, 0.86);
  border-radius: var(--radius);
  box-shadow: 0 18px 45px rgba(72, 55, 43, 0.14);
}

.map-info strong {
  display: block;
  color: #2f2f2f;
  font-size: 1.1rem;
}

.outline-button,
.submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 4.8rem;
  padding: 1.1rem 2.4rem;
  color: var(--moss);
  font-size: 1rem;
  letter-spacing: 0.36em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition:
    transform 240ms ease,
    background 240ms ease,
    color 240ms ease,
    box-shadow 240ms ease;
}

.outline-button {
  width: min(34rem, 100%);
  margin: 0 auto;
  border: 1px solid var(--moss);
  background: rgba(248, 244, 233, 0.36);
}

.outline-button:hover,
.submit-button:hover {
  color: var(--paper);
  background: var(--moss);
  box-shadow: 0 20px 44px rgba(63, 78, 49, 0.22);
  transform: translateY(-4px);
}

.outline-button svg,
.submit-button svg {
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 auto;
}

.rsvp {
  min-height: auto;
  background:
    radial-gradient(circle at 80% 20%, rgba(220, 231, 211, 0.8), transparent 34rem),
    linear-gradient(180deg, #eef5e8, #edf4e7 76%, #efe7d5);
}

.rsvp-form {
  width: min(70rem, 100%);
  display: grid;
  gap: 2.3rem;
  margin: 4rem auto 0;
}

label {
  display: grid;
  gap: 1rem;
}

input,
textarea {
  width: 100%;
  color: var(--moss);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(63, 78, 49, 0.16);
  border-radius: var(--radius);
  outline: none;
  box-shadow: 0 8px 24px rgba(72, 55, 43, 0.04);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

input {
  height: 4.9rem;
  padding: 0 1.6rem;
  font-size: 1.6rem;
}

textarea {
  min-height: 10rem;
  padding: 1.4rem 1.6rem;
  font-size: 1.6rem;
  resize: vertical;
}

input:focus,
textarea:focus {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(142, 167, 126, 0.85);
  box-shadow: 0 0 0 4px rgba(142, 167, 126, 0.14);
}

::placeholder {
  color: rgba(72, 55, 43, 0.38);
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

legend,
label span {
  display: block;
  margin-bottom: 1rem;
}

.choice-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.choice-group legend {
  flex-basis: 100%;
}

.choice {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 4.9rem;
  padding: 0.9rem 1.7rem;
  color: rgba(72, 55, 43, 0.78);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(63, 78, 49, 0.16);
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(72, 55, 43, 0.04);
  transition:
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease,
    background 180ms ease;
}

.choice svg {
  width: 1.2rem;
  height: 1.2rem;
}

.choice:hover {
  border-color: rgba(142, 167, 126, 0.65);
  transform: translateY(-3px);
}

.choice.active {
  color: var(--paper);
  background: var(--moss);
  border-color: var(--moss);
}

.chips .choice {
  min-width: 8rem;
}

.submit-button {
  justify-self: center;
  min-width: 28rem;
  color: var(--paper);
  background: var(--moss);
  border: 1px solid var(--moss);
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.66;
  transform: none;
}

.submit-button.is-sending svg {
  animation: sendPulse 900ms ease-in-out infinite alternate;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.form-status {
  min-height: 1.6rem;
  margin: 0;
  color: var(--moss);
  font-family: var(--script);
  font-size: 1.7rem;
  text-align: center;
}

.form-status.is-success {
  color: var(--moss);
}

.form-status.is-error {
  color: #8b3f38;
}

.site-footer {
  padding: 7rem 5vw 8rem;
  text-align: center;
  background: var(--paper-warm);
}

.signature {
  margin: 4rem 0 2.3rem;
  color: var(--moss);
  font-family: var(--script);
  font-size: 4rem;
}

.site-footer p:last-child {
  margin: 3rem 0 0;
  color: rgba(72, 55, 43, 0.72);
  font-family: var(--script);
  font-size: 1.8rem;
}

.js-enabled [data-reveal] {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 900ms ease,
    transform 900ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

.detail-card:nth-child(2),
.timeline-item:nth-child(2),
.swatch:nth-child(2) {
  transition-delay: 100ms;
}

.detail-card:nth-child(3),
.timeline-item:nth-child(3),
.swatch:nth-child(3) {
  transition-delay: 190ms;
}

.timeline-item:nth-child(4),
.swatch:nth-child(4) {
  transition-delay: 270ms;
}

.swatch:nth-child(5) {
  transition-delay: 340ms;
}

.swatch:nth-child(6) {
  transition-delay: 410ms;
}

@keyframes sealGlow {
  0%,
  100% {
    box-shadow: 0 10px 22px rgba(72, 55, 43, 0.08), 0 0 0 rgba(183, 162, 111, 0);
  }
  50% {
    box-shadow: 0 14px 30px rgba(72, 55, 43, 0.1), 0 0 32px rgba(183, 162, 111, 0.28);
  }
}

@keyframes pulseDot {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.16);
  }
}

@keyframes scrollLine {
  0%,
  100% {
    transform: scaleY(0.72);
    transform-origin: top;
    opacity: 0.55;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

@keyframes vineFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(1.1rem) rotate(1.4deg);
  }
}

@keyframes leafSway {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 1rem;
  }
}

@keyframes pinPulse {
  0%,
  100% {
    filter: drop-shadow(0 0 0 rgba(185, 75, 66, 0));
    transform: translateY(0);
  }
  50% {
    filter: drop-shadow(0 8px 12px rgba(185, 75, 66, 0.22));
    transform: translateY(-5px);
  }
}

@keyframes sendPulse {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(4px, -4px);
  }
}

@media (max-width: 1080px) {
  .hero-title {
    font-size: 5.8rem;
  }

  h2 {
    font-size: 4.1rem;
  }

  .countdown {
    gap: 1.8rem;
  }

  .time-box {
    min-width: 6.8rem;
  }

  .time-box strong {
    font-size: 4.5rem;
  }

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

  .gallery-carousel {
    padding-right: 4rem;
    padding-left: 4rem;
  }

  .gallery-slide {
    width: min(24rem, 44vw);
    height: min(36rem, 66vw);
  }

  .gallery-slide[data-position="prev"] {
    transform: translate(calc(-50% - 14rem), -50%) scale(0.76) rotateY(18deg);
  }

  .gallery-slide[data-position="next"] {
    transform: translate(calc(-50% + 14rem), -50%) scale(0.76) rotateY(-18deg);
  }

  .gallery-slide[data-position="far-prev"] {
    transform: translate(calc(-50% - 23rem), -50%) scale(0.56) rotateY(28deg);
  }

  .gallery-slide[data-position="far-next"] {
    transform: translate(calc(-50% + 23rem), -50%) scale(0.56) rotateY(-28deg);
  }
}

@media (max-width: 840px) {
  .section {
    padding: 5rem 1.25rem;
  }

  .site-nav {
    right: 50%;
    top: auto;
    bottom: 0.8rem;
    grid-auto-flow: column;
    transform: translateX(50%);
  }

  .site-nav a:hover {
    transform: translateY(-4px);
  }

  .royal-letter {
    min-height: calc(100svh - 2rem);
    padding: 5rem 1.7rem 3.5rem;
  }

  .royal-letter::before {
    inset: 1rem;
  }

  .royal-letter::after {
    inset: 1.55rem;
  }

  .royal-corner {
    width: 3.7rem;
    height: 3.7rem;
  }

  .royal-corner::after {
    width: 3rem;
    height: 3rem;
  }

  .eyebrow,
  .date-place,
  .scroll-link,
  .time-box span,
  .label,
  legend,
  label span,
  .swatch p {
    letter-spacing: 0.24em;
  }

  .hero-title {
    margin-top: 3.7rem;
    font-size: 4.2rem;
  }

  .hero-title em {
    font-size: 2.4rem;
  }

  h2 {
    font-size: 3.25rem;
  }

  .intro-copy p:last-child,
  .center-copy p:last-child {
    font-size: 1.55rem;
  }

  .section-mark {
    gap: 1.4rem;
    margin-bottom: 3rem;
  }

  .section-mark span {
    width: 7rem;
  }

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

  .countdown {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.3rem 1rem;
    width: min(28rem, 100%);
    margin-left: auto;
    margin-right: auto;
  }

  .countdown i {
    display: none;
  }

  .time-box {
    min-width: 0;
  }

  .gallery-carousel {
    margin-top: 4rem;
    padding-right: 3.7rem;
    padding-bottom: 4rem;
    padding-left: 3.7rem;
  }

  .carousel-stage {
    height: min(39rem, 106vw);
    min-height: 30rem;
  }

  .gallery-slide {
    width: min(22rem, 68vw);
    height: min(33rem, 102vw);
  }

  .gallery-slide[data-position="prev"] {
    transform: translate(calc(-50% - 8rem), -50%) scale(0.72) rotateY(18deg);
  }

  .gallery-slide[data-position="next"] {
    transform: translate(calc(-50% + 8rem), -50%) scale(0.72) rotateY(-18deg);
  }

  .gallery-slide[data-position="far-prev"],
  .gallery-slide[data-position="far-next"] {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.45);
  }

  .gallery-slide figcaption {
    font-size: 1.32rem;
  }

  .leaf-side {
    width: 4.7rem;
  }

  .leaf-left {
    left: -2.8rem;
  }

  .leaf-right {
    right: -2.8rem;
  }

  blockquote {
    margin-top: 3.5rem;
    font-size: 2.1rem;
  }

  .map-visual {
    height: 26rem;
  }

  .map-info {
    width: 17rem;
    font-size: 1rem;
  }

  .pin-label {
    left: 42%;
    top: 58%;
    width: 15rem;
    font-size: 1rem;
  }

  .choice,
  .outline-button,
  .submit-button {
    width: 100%;
  }

  .submit-button {
    min-width: 0;
  }
}

@media (max-width: 560px) {
  .section {
    min-height: auto;
    padding-top: 4.25rem;
    padding-bottom: 4.25rem;
  }

  .hero {
    min-height: 100svh;
    padding: 1rem;
  }

  .hero-title {
    font-size: 3.25rem;
  }

  .hero-title em {
    font-size: 2rem;
  }

  h2 {
    font-size: 2.6rem;
  }

  .eyebrow {
    font-size: 0.78rem;
  }

  .date-place {
    font-size: 0.9rem;
    line-height: 1.7;
  }

  .vine {
    width: 9rem;
  }

  .royal-seal {
    width: 3.2rem;
    height: 3.2rem;
  }

  .dot-ornament {
    margin-top: 2.8rem;
  }

  .scroll-link {
    margin-top: 2.8rem;
  }

  .gallery-carousel {
    padding-right: 2.6rem;
    padding-left: 2.6rem;
  }

  .carousel-stage {
    height: min(33rem, 118vw);
    min-height: 26rem;
  }

  .gallery-slide {
    width: min(18.5rem, 74vw);
    height: min(27.75rem, 111vw);
  }

  .gallery-slide[data-position="prev"] {
    transform: translate(calc(-50% - 5.2rem), -50%) scale(0.66) rotateY(18deg);
  }

  .gallery-slide[data-position="next"] {
    transform: translate(calc(-50% + 5.2rem), -50%) scale(0.66) rotateY(-18deg);
  }

  .gallery-slide figcaption {
    right: 0.8rem;
    bottom: 0.78rem;
    left: 0.8rem;
    padding: 0.58rem 0.7rem;
    font-size: 1.12rem;
  }

  .carousel-button {
    width: 3rem;
    height: 3rem;
  }

  .carousel-button svg {
    width: 1.4rem;
    height: 1.4rem;
  }

  .countdown-section {
    min-height: auto;
  }

  .time-box strong {
    font-size: 3.4rem;
  }

  .detail-card {
    min-height: 16rem;
  }

  .swatches {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.2rem 1rem;
  }

  .swatch span {
    width: 6.8rem;
    height: 8.2rem;
  }

  .note {
    font-size: 1.55rem;
  }

  input,
  textarea {
    font-size: 1.25rem;
  }

  .site-footer {
    padding-bottom: 7rem;
  }

  .signature {
    font-size: 3rem;
  }
}

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

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