:root {
  --olive: #6b3d28;
  --olive-deep: #3d2418;
  --cream: #f4ead8;
  --cream-2: #f8f1e4;
  --ink: #2b2118;
  --muted: #7a6a58;
  --white: #fff8ee;
  --gold: #c4783a;
  --page: 480px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", system-ui, sans-serif;
  color: var(--ink);
  background: #2a1c14;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.page {
  width: min(100%, var(--page));
  margin: 0 auto;
  background: var(--cream-2);
  overflow: hidden;
  position: relative;
}

@media (min-width: 640px) {
  body {
    padding: 32px 16px 48px;
  }

  .page {
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  }
}

.hero-photo-stage {
  background: var(--olive);
}

.hero-photo-wrap {
  position: relative;
  overflow: hidden;
  border-bottom-left-radius: 50% 28%;
  border-bottom-right-radius: 50% 28%;
  line-height: 0;
}

.hero-photo-wrap img {
  width: 100%;
  aspect-ratio: 3 / 4.15;
  object-fit: cover;
  object-position: center 42%;
}

.hero-names {
  position: absolute;
  top: 6%;
  left: 16px;
  right: 16px;
  z-index: 3;
  margin: 0;
  text-align: center;
  font-family: "Great Vibes", cursive;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #5a3824;
  line-height: 1;
  pointer-events: none;
  text-shadow: 0 1px 10px rgba(255, 248, 236, 0.55);
}

.hero-first,
.hero-second {
  display: block;
}

.hero-first {
  font-size: clamp(2.6rem, 13vw, 3.4rem);
}

.hero-amp {
  display: block;
  position: relative;
  font-size: clamp(1.5rem, 7vw, 1.9rem);
  margin: 2px 0 4px;
  color: #6b3d28;
}

.hero-amp::before {
  content: "♡";
  position: absolute;
  top: -0.55em;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.55em;
  color: #8a4a32;
}

.hero-second {
  font-size: clamp(2.9rem, 14.5vw, 3.8rem);
}

.invite {
  background: var(--olive);
  background-image: radial-gradient(rgba(255, 236, 210, 0.07) 1px, transparent 1px);
  background-size: 16px 16px;
  color: var(--white);
  text-align: center;
  padding: 36px 32px 72px;
}

.script {
  font-family: "Great Vibes", cursive;
  font-size: 2.05rem;
  line-height: 1.2;
}

.invite-text {
  margin: 18px auto 0;
  max-width: 34ch;
  font-size: 0.92rem;
  font-weight: 400;
  opacity: 0.92;
}

.section-title {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  text-transform: uppercase;
  font-size: 1.55rem;
  margin-top: 36px;
}

.section-title.light {
  color: var(--white);
}

.section-title.dark {
  color: var(--ink);
}

.month {
  margin-top: 14px;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  font-size: 0.78rem;
  opacity: 0.85;
}

.calendar {
  margin: 20px auto 0;
  width: min(100%, 300px);
  padding: 14px 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  background: rgba(255, 248, 236, 0.08);
}

.cal-week,
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal-week {
  margin-bottom: 8px;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.7;
}

.cal-week span,
.cal-grid span {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
}

.cal-grid {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.05rem;
  font-weight: 600;
}

.cal-grid .marked {
  border-radius: 50%;
  background: #f3e0a8;
  color: #3d2418;
  box-shadow: 0 0 0 4px rgba(243, 224, 168, 0.28), 0 0 18px rgba(243, 224, 168, 0.55);
  font-weight: 700;
}

.photo-break,
.hands {
  position: relative;
  line-height: 0;
  overflow: hidden;
}

.photo-break img {
  width: 100%;
  aspect-ratio: 3 / 3.6;
  object-fit: cover;
  object-position: center 70%;
}

.wave-bottom,
.wave-top {
  position: absolute;
  left: 0;
  width: 100%;
  height: 72px;
  display: block;
  pointer-events: none;
}

.wave-bottom {
  bottom: -1px;
  fill: var(--cream);
}

.wave-to-olive {
  fill: var(--olive);
  height: 58px;
}

.wave-top {
  top: -1px;
  height: 64px;
  fill: var(--cream-2);
}

.paper {
  position: relative;
  background-color: var(--cream);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.07'/%3E%3C/svg%3E");
}

.location,
.tips {
  text-align: center;
  padding: 8px 28px 48px;
}

.location {
  padding-top: 8px;
  padding-bottom: 40px;
}

.flora {
  position: absolute;
  width: 92px;
  pointer-events: none;
  z-index: 0;
}

.flora-left {
  top: 12px;
  left: -4px;
}

.flora-right {
  top: 64px;
  right: -8px;
}

.maple-deco {
  position: absolute;
  overflow: visible;
}

.maple-a {
  width: 42px;
  height: 42px;
  color: #c45c28;
  transform: rotate(-28deg);
  top: 8px;
  left: 10px;
}

.maple-b {
  width: 28px;
  height: 28px;
  color: #d4a04a;
  transform: rotate(18deg);
  top: 48px;
  left: 36px;
  opacity: 0.85;
}

.maple-c {
  width: 46px;
  height: 46px;
  color: #b84a22;
  transform: rotate(22deg);
  top: 0;
  right: 8px;
}

.maple-d {
  width: 24px;
  height: 24px;
  color: #e08a3a;
  transform: rotate(-12deg);
  top: 44px;
  right: 28px;
}

.location .section-title,
.location p,
.location .map-frame,
.location .btn {
  position: relative;
  z-index: 1;
}

.location-lead {
  margin-top: 14px;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  max-width: 28ch;
  margin-left: auto;
  margin-right: auto;
}

.location-address {
  margin-top: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.map-frame {
  margin: 28px auto 18px;
  width: min(100%, 360px);
  aspect-ratio: 1 / 0.92;
  padding: 10px;
  background: #e8dcc4;
  border: 1px solid #d7c7a8;
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #ddd;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  text-decoration: none;
  cursor: pointer;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-dark {
  background: var(--olive-deep);
  color: var(--white);
  width: min(100%, 360px);
  border-radius: 4px;
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.85);
  min-width: 180px;
}

.btn-outline:hover {
  background: var(--white);
  color: var(--olive);
}

.schedule {
  background: var(--cream-2);
  padding: 36px 28px 40px;
  text-align: center;
}

.heart-rule {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 260px;
  margin: 14px auto;
  font-size: 0.85rem;
  line-height: 1;
}

.heart-rule::before,
.heart-rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.heart-rule.light { color: #f3e0a8; }
.heart-rule.dark { color: #c4a06a; }

.big-date {
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 8vw, 2.35rem);
  letter-spacing: 0.08em;
  margin: 0;
}

.big-date.light { color: #f3e0a8; }
.big-date.dark { color: #c4a06a; }

.where-label {
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--muted);
}

.where-addr {
  margin-top: 4px;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.05rem;
  color: var(--ink);
}

.events {
  list-style: none;
  margin: 28px auto 8px;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.events li {
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
}

.event-icon {
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  border: 1.5px solid #c4a06a;
  border-radius: 50%;
  color: #c4a06a;
  display: grid;
  place-items: center;
}

.event-icon svg {
  width: 30px;
  height: 30px;
}

.event-copy {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c4a06a;
  line-height: 1.35;
}

.wait-line {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink);
  margin-top: 4px;
}

.hands img {
  width: 100%;
  height: 168px;
  object-fit: cover;
  object-position: center 40%;
}

.rsvp {
  position: relative;
  background: var(--olive);
  background-image: radial-gradient(rgba(255, 236, 210, 0.07) 1px, transparent 1px);
  background-size: 16px 16px;
  text-align: center;
  padding: 36px 28px 48px;
  color: var(--white);
}

.rsvp-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
}

.rsvp-head .section-title {
  margin-top: 0;
}

.rsvp-flora {
  position: absolute;
  top: -8px;
  width: 78px;
  height: 88px;
  pointer-events: none;
}

.rsvp-flora-l { left: -8px; }
.rsvp-flora-r { right: -8px; }

.rsvp-lead {
  margin: 10px auto 0;
  max-width: 34ch;
  font-size: 0.9rem;
  opacity: 0.92;
}

.rsvp-form {
  margin: 28px auto 0;
  max-width: 340px;
  text-align: left;
}

.field {
  display: block;
  margin-bottom: 18px;
}

.field > span,
.radios-row legend {
  display: block;
  margin-bottom: 8px;
  font-size: 0.82rem;
  color: var(--white);
}

.field input[type="text"],
.field input[type="tel"] {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: var(--white);
  padding: 13px 14px;
  outline: none;
  border-radius: 2px;
}

.field input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.field input:focus {
  border-color: #fff;
}

.phone-box {
  display: flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: transparent;
  border-radius: 2px;
}

.phone-box:focus-within {
  border-color: #fff;
}

.phone-code {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px 0 12px;
  font-size: 0.92rem;
  color: var(--white);
  border-right: 1px solid rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
}

.phone-box input {
  border: 0 !important;
  padding-left: 12px;
}

.stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.stepper button {
  width: 36px;
  height: 36px;
  border: 0;
  background: none;
  color: var(--white);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.rsvp-form .stepper input {
  width: 52px;
  height: 44px;
  text-align: center;
  font-size: 1rem;
  padding: 0;
  pointer-events: none;
}

.radios-row {
  border: 0;
  margin: 8px 0 24px;
  padding: 0;
  text-align: center;
}

.radios-row legend {
  width: 100%;
  text-align: center;
  float: none;
}

.radio-opts {
  display: flex;
  justify-content: center;
  gap: 28px;
}

.radios-row label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  cursor: pointer;
  font-size: 0.92rem;
}

.radios-row input {
  appearance: none;
  width: 16px;
  height: 16px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.radios-row input:checked::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
}

.btn-send {
  width: 100%;
  text-transform: none;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
  min-height: 50px;
}

.form-error,
.form-ok {
  margin-top: 16px;
  font-size: 0.85rem;
  text-align: center;
}

.form-error {
  color: #ffd9c8;
}

.form-ok {
  color: #e7f3c9;
}

.rsvp-foot {
  margin-top: 28px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
}

.tips {
  background: var(--cream-2);
  padding-top: 48px;
  padding-bottom: 90px;
  position: relative;
  z-index: 2;
  border-bottom-left-radius: 50% 70px;
  border-bottom-right-radius: 50% 70px;
  margin-bottom: -70px;
}

.arch-photo {
  width: min(72%, 280px);
  margin: 0 auto 8px;
  aspect-ratio: 3 / 3.8;
  overflow: hidden;
  border-radius: 160px 160px 8px 8px;
}

.arch-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 52%;
}

.tip {
  margin: 22px auto 0;
  max-width: 34ch;
}

.tip h3 {
  font-family: "Cormorant Garamond", serif;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  text-transform: uppercase;
  font-size: 1.05rem;
  font-weight: 600;
}

.tip p {
  margin-top: 8px;
  font-size: 0.88rem;
  color: var(--muted);
}

.tip a {
  color: var(--olive);
  text-underline-offset: 3px;
}

.finale {
  position: relative;
  min-height: 560px;
  color: var(--white);
  line-height: 1.4;
  overflow: hidden;
}

.finale img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.finale-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(90, 42, 16, 0.18) 0%, rgba(42, 22, 12, 0.58) 48%, rgba(28, 14, 8, 0.78) 100%);
}

.finale-content {
  position: relative;
  z-index: 1;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  text-align: center;
  padding: 110px 20px 56px;
  line-height: 1.4;
}

.finale-kicker {
  font-family: "Cormorant Garamond", serif;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.95rem;
  line-height: 1.4;
  margin: 0;
}

.countdown {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.countdown > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 58px;
}

.countdown strong {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1;
}

.countdown > div span {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.8;
  line-height: 1.2;
}

.countdown .colon {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.8rem;
  line-height: 1;
  padding-top: 2px;
  opacity: 0.8;
}

.monogram {
  margin: 8px 0 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 2.4rem;
  letter-spacing: 0.12em;
  font-weight: 500;
  line-height: 1;
}

.monogram em {
  font-family: "Great Vibes", cursive;
  font-style: normal;
  padding: 0 4px;
}

.finale-bye {
  margin: 0;
  font-size: 1.8rem;
  line-height: 1.5;
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.autumn-fx {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 50%;
  width: min(100%, var(--page));
  margin-left: calc(min(100%, var(--page)) / -2);
  pointer-events: none;
  z-index: 12;
  overflow: hidden;
}

.set {
  position: absolute;
  inset: 0;
}

.leaf {
  position: absolute;
  top: -12%;
  width: 22px;
  height: 22px;
  color: #c45c28;
  opacity: 0;
  animation: leaf-sway 14s linear infinite;
}

.leaf svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.l1 { left: 6%;  width: 20px; height: 20px; color: #d4893a; animation-duration: 13s; animation-delay: -2s; }
.l2 { left: 18%; width: 28px; height: 28px; color: #b84a22; animation-duration: 16s; animation-delay: -7s; }
.l3 { left: 32%; width: 16px; height: 16px; color: #e08a3a; animation-duration: 11s; animation-delay: -1s; }
.l4 { left: 46%; width: 24px; height: 24px; color: #c45c28; animation-duration: 15s; animation-delay: -9s; }
.l5 { left: 58%; width: 18px; height: 18px; color: #8b3a1e; animation-duration: 18s; animation-delay: -4s; }
.l6 { left: 70%; width: 26px; height: 26px; color: #d4a04a; animation-duration: 12s; animation-delay: -11s; }
.l7 { left: 82%; width: 15px; height: 15px; color: #a63c1a; animation-duration: 17s; animation-delay: -6s; }
.l8 { left: 92%; width: 22px; height: 22px; color: #c4783a; animation-duration: 14s; animation-delay: -3s; }

@keyframes leaf-sway {
  0% {
    opacity: 0;
    transform: translate3d(20px, 0, 0) rotate(0deg);
  }
  8% { opacity: 0.9; }
  20% { transform: translate3d(-22px, 20vh, 0) rotate(45deg); }
  40% { transform: translate3d(-18px, 42vh, 0) rotate(90deg); }
  60% { transform: translate3d(22px, 66vh, 0) rotate(135deg); }
  80% { transform: translate3d(-20px, 88vh, 0) rotate(180deg); }
  100% {
    opacity: 0.35;
    transform: translate3d(-16px, 112vh, 0) rotate(225deg);
  }
}

.sun-rays {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(118deg, rgba(255, 214, 150, 0.32) 0%, transparent 22%),
    linear-gradient(128deg, transparent 28%, rgba(255, 196, 110, 0.16) 36%, transparent 46%);
  animation: rays-glow 9s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 2;
}

@keyframes rays-glow {
  from { opacity: 0.45; }
  to { opacity: 0.85; }
}

.warm-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(196, 92, 40, 0.1), rgba(61, 36, 24, 0.16));
  pointer-events: none;
}

.hero-photo-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 236, 210, 0.22) 0%, rgba(255, 168, 70, 0.06) 28%, rgba(90, 40, 12, 0.18) 100%);
  z-index: 1;
  pointer-events: none;
}

.maple-deco {
  fill: currentColor;
}

.fx-paused .leaf,
.fx-paused .sun-rays {
  animation-play-state: paused;
}

.to-top {
  position: fixed;
  right: max(16px, calc(50% - var(--page) / 2 + 16px));
  bottom: 22px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  color: var(--olive);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 20;
}

.to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.parallax {
  transform: scale(1.14);
  transform-origin: center center;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .leaf,
  .sun-rays {
    animation: none;
    display: none;
  }

  .parallax {
    transform: none;
  }
}
