:root {
  --bg: #ffffff;
  --bg-soft: #faf8f4;
  --ink: #2a2a28;
  --ink-soft: #6f6a63;
  --line: #e7e2d8;
  --gold: #c2a25a;
  --gold-deep: #a9884a;
  --gold-soft: #ddc78f;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-script: "Tangerine", cursive;
  --font-sans: "Montserrat", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ===== Shared ===== */
.page { max-width: 560px; margin: 0 auto; background: var(--bg); }

.section { padding: 70px 30px; text-align: center; }

.overline {
  text-transform: uppercase;
  letter-spacing: 5px;
  font-size: 10.5px;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.script {
  font-family: var(--font-script);
  font-weight: 700;
  color: var(--gold);
  font-size: clamp(58px, 18vw, 92px);
  line-height: 0.9;
  margin-bottom: 34px;
}
.script.small { font-size: 54px; margin: 8px 0 4px; }

.muted { color: var(--ink-soft); }
.tiny { font-size: 11px; letter-spacing: 2px; }

/* ===== Divider ===== */
.divider {
  color: var(--gold);
  font-size: 16px;
  text-align: center;
  padding: 4px 0;
}
.divider::before, .divider::after {
  content: ""; display: inline-block; width: 70px; height: 1px;
  background: var(--line); vertical-align: middle; margin: 0 14px;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 50px 30px 80px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 12%, rgba(194,162,90,0.10), transparent 55%),
    radial-gradient(circle at 50% 100%, var(--bg-soft), var(--bg) 55%);
}

/* decorative inner frame with corner brackets */
.hero-frame {
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(194,162,90,0.35);
  pointer-events: none;
}
.hf-corner {
  position: absolute;
  width: 26px; height: 26px;
  border: 2px solid var(--gold);
}
.hf-corner.tl { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.hf-corner.tr { top: -1px; right: -1px; border-left: none; border-bottom: none; }
.hf-corner.bl { bottom: -1px; left: -1px; border-right: none; border-top: none; }
.hf-corner.br { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: heroIn 1.2s ease both;
}

/* monogram medallion */
.hero-monogram {
  position: relative;
  width: 74px; height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.hm-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--gold);
}
.hm-ring::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 1px solid rgba(194,162,90,0.4);
}
.hm-text {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 500;
  color: var(--gold-deep);
  letter-spacing: 1px;
}
.hm-text i { font-size: 15px; color: var(--gold); font-style: italic; margin: 0 1px; }

.hero .overline { margin-bottom: 14px; }

.hero-flourish {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--gold);
  font-size: 12px;
}
.hero-flourish .line {
  width: 44px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-soft), var(--gold));
}
.hero-flourish .line:last-child {
  background: linear-gradient(90deg, var(--gold), var(--gold-soft), transparent);
}

.hero-script {
  font-family: var(--font-script);
  font-weight: 400;
  color: var(--gold);
  font-size: clamp(70px, 24vw, 130px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-shadow: 0 6px 22px rgba(194,162,90,0.18);
}
.hero-script .hn { line-height: 0.9; }
.hero-script .amp {
  font-size: 0.5em;
  line-height: 0.9;
  color: var(--gold-deep);
  margin-top: -14px;
}

.hero-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 34px;
  padding: 16px 26px 18px;
  border-top: 1px solid var(--gold-soft);
  border-bottom: 1px solid var(--gold-soft);
}
.hero-date .hd-month,
.hero-date .hd-year {
  font-family: var(--font-serif);
  text-transform: uppercase;
  letter-spacing: 6px;
  font-size: 14px;
  color: var(--gold-deep);
}
.hero-date .hd-day {
  font-family: var(--font-serif);
  font-size: 60px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.05;
  margin: 4px 0;
}
.hero-loc {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  font-family: var(--font-serif);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--gold-deep);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.hero-loc svg {
  width: 15px; height: 15px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hero-loc:hover,
.hero-loc:active { border-color: var(--gold-soft); color: var(--ink); }

.scroll-cue {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.scroll-cue .chev {
  width: 13px; height: 13px;
  border-right: 1.5px solid var(--gold);
  border-bottom: 1.5px solid var(--gold);
  transform: rotate(45deg);
  opacity: 0;
  animation: chevFall 2.2s ease-in-out infinite;
}
.scroll-cue .chev:nth-child(2) { animation-delay: 0.25s; }

@keyframes heroIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

/* ===== ORNAMENTED BLOCK (floral backdrop) ===== */
.ornated {
  position: relative;
  overflow: hidden;
}
.ornated > .section,
.ornated > .divider {
  position: relative;
  z-index: 1;
}
/* soft floral vine running the full height along both sides */
.ornated-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
  background-repeat: repeat-y, repeat-y;
  background-position: left 18px top, right 18px top;
  background-size: 60px auto, 60px auto;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='120' viewBox='0 0 60 120'%3E%3Cg fill='none' stroke='%23b79750' stroke-width='1' stroke-linecap='round'%3E%3Cline x1='6' y1='-10' x2='6' y2='130'/%3E%3Cline x1='12' y1='-10' x2='12' y2='130' opacity='0.5'/%3E%3Cg stroke='none' fill='%23b79750'%3E%3Crect x='6.6' y='58' width='4.8' height='4.8' transform='rotate(45 9 60)' fill-opacity='0.55'/%3E%3Ccircle cx='9' cy='20' r='1.1' fill-opacity='0.45'/%3E%3Ccircle cx='9' cy='100' r='1.1' fill-opacity='0.45'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='120' viewBox='0 0 60 120'%3E%3Cg transform='translate(60,0) scale(-1,1)' fill='none' stroke='%23b79750' stroke-width='1' stroke-linecap='round'%3E%3Cline x1='6' y1='-10' x2='6' y2='130'/%3E%3Cline x1='12' y1='-10' x2='12' y2='130' opacity='0.5'/%3E%3Cg stroke='none' fill='%23b79750'%3E%3Crect x='6.6' y='58' width='4.8' height='4.8' transform='rotate(45 9 60)' fill-opacity='0.55'/%3E%3Ccircle cx='9' cy='20' r='1.1' fill-opacity='0.45'/%3E%3Ccircle cx='9' cy='100' r='1.1' fill-opacity='0.45'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
/* fade the vines at top & bottom so they blend into the page */
.ornated::before,
.ornated::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 90px;
  z-index: 0;
  pointer-events: none;
}
.ornated::before { top: 0; background: linear-gradient(var(--bg), transparent); }
.ornated::after { bottom: 0; background: linear-gradient(transparent, var(--bg)); }

@media (max-width: 430px) {
  .ornated-bg {
    opacity: 0.55;
    background-size: 120px auto, 120px auto;
    background-position: left -30px top, right -30px top;
  }
}

/* ===== TIMELINE ===== */
.timeline-section .script { margin-bottom: 40px; }
.timeline {
  position: relative;
  max-width: 400px;
  margin: 0 auto;
  text-align: left;
}
/* vertical connecting line through the icons */
.timeline::before {
  content: "";
  position: absolute;
  left: 27px; top: 20px; bottom: 20px;
  width: 2px;
  background: linear-gradient(var(--gold-soft), var(--line));
  z-index: 0;
}
.tl-row {
  position: relative;
  display: flex;
  gap: 18px;
  align-items: stretch;
  padding-bottom: 22px;
}
.tl-row:last-child { padding-bottom: 0; }

.tl-icon {
  position: relative;
  z-index: 2;
  flex: 0 0 56px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(180deg, #fffefb, var(--bg-soft));
  border: 1px solid var(--gold-soft);
  box-shadow: 0 6px 16px rgba(169,136,74,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
}
.tl-icon svg {
  width: 26px; height: 26px;
  fill: none;
  stroke: var(--gold-deep);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Cheers (champagne glasses) icon + animation */
.tl-icon.cheers svg {
  width: 34px; height: 34px;
  overflow: visible;
}
.tl-icon.cheers .glass {
  stroke: var(--gold-deep);
  stroke-width: 1.6;
  fill: none;
  transform-box: fill-box;
}
.tl-icon.cheers .glass path {
  fill: rgba(194,162,90,0.18);
}
.tl-icon.cheers .glass-left {
  transform-origin: 13px 31px;
  animation: clinkLeft 3.2s ease-in-out infinite;
}
.tl-icon.cheers .glass-right {
  transform-origin: 27px 31px;
  animation: clinkRight 3.2s ease-in-out infinite;
}
.tl-icon.cheers .sparkles {
  stroke: none;
  fill: var(--gold);
  opacity: 0;
  animation: sparkle 3.2s ease-in-out infinite;
}

@keyframes clinkLeft {
  0%, 100% { transform: rotate(-14deg); }
  38% { transform: rotate(-14deg); }
  50% { transform: rotate(-2deg); }
  62% { transform: rotate(-14deg); }
}
@keyframes clinkRight {
  0%, 100% { transform: rotate(14deg); }
  38% { transform: rotate(14deg); }
  50% { transform: rotate(2deg); }
  62% { transform: rotate(14deg); }
}
@keyframes sparkle {
  0%, 44% { opacity: 0; transform: scale(0.5); }
  52% { opacity: 1; transform: scale(1); }
  70% { opacity: 0; transform: scale(0.6); }
  100% { opacity: 0; }
}

/* Two hearts joining / crossing */
.tl-icon.hearts svg {
  width: 34px; height: 34px;
  overflow: visible;
}
.tl-icon.hearts .heart {
  fill: rgba(194,162,90,0.18);
  stroke: var(--gold-deep);
  stroke-width: 1.6;
  transform-box: fill-box;
  transform-origin: center;
}
.tl-icon.hearts .heart-a {
  animation: heartJoinA 3.4s ease-in-out infinite;
}
.tl-icon.hearts .heart-b {
  animation: heartJoinB 3.4s ease-in-out infinite;
}

@keyframes heartJoinA {
  0%, 100% { transform: translateX(-5px) rotate(-8deg) scale(0.9); opacity: 0.85; }
  45% { transform: translateX(-5px) rotate(-8deg) scale(0.9); opacity: 0.85; }
  60% { transform: translateX(0) rotate(0deg) scale(1.05); opacity: 1; }
  75% { transform: translateX(0) rotate(0deg) scale(1); opacity: 1; }
}
@keyframes heartJoinB {
  0%, 100% { transform: translateX(5px) rotate(8deg) scale(0.9); opacity: 0.85; }
  45% { transform: translateX(5px) rotate(8deg) scale(0.9); opacity: 0.85; }
  60% { transform: translateX(0) rotate(0deg) scale(1.05); opacity: 1; }
  75% { transform: translateX(0) rotate(0deg) scale(1); opacity: 1; }
}

/* stylized card, matching Save the date / RSVP */
.tl-body {
  position: relative;
  flex: 1;
  background: linear-gradient(180deg, #fffefb, var(--bg-soft));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 20px 18px;
  box-shadow: 0 14px 34px rgba(60,52,38,0.07);
}
/* little pointer connecting card to the line */
.tl-body::before {
  content: "";
  position: absolute;
  left: -8px; top: 22px;
  width: 14px; height: 14px;
  background: linear-gradient(135deg, #fffefb, var(--bg-soft));
  border-left: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transform: rotate(45deg);
}
.tl-time {
  display: inline-block;
  font-family: var(--font-sans);
  letter-spacing: 1px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  padding: 4px 14px;
  border-radius: 30px;
  box-shadow: 0 4px 12px rgba(169,136,74,0.3);
  margin-bottom: 10px;
}
.tl-body h3 {
  font-family: var(--font-serif);
  font-size: 25px;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 4px;
}
.tl-body p { font-size: 14px; line-height: 1.4; }
.tl-map {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 10.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold-deep);
  text-decoration: none;
  border: 1px solid var(--gold-soft);
  border-radius: 30px;
  padding: 8px 16px;
  transition: background 0.2s ease, color 0.2s ease;
}
.tl-map::before {
  content: "";
  width: 12px; height: 12px;
  background: var(--gold-deep);
  -webkit-mask: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2C8.1 2 5 5.1 5 9c0 5.2 7 13 7 13s7-7.8 7-13c0-3.9-3.1-7-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E");
  mask: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2C8.1 2 5 5.1 5 9c0 5.2 7 13 7 13s7-7.8 7-13c0-3.9-3.1-7-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E");
}
.tl-map:active { background: linear-gradient(135deg, var(--gold), var(--gold-deep)); color: #fff; }
.tl-map:active::before { background: #fff; }

/* ===== COUNTDOWN (flip clock) ===== */
.countdown {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: nowrap;
}
.cd-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1 0;
  min-width: 0;
}
.cd-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--ink-soft);
  margin-top: 10px;
}

.flip {
  --h: 88px;
  --radius: 8px;
  --face: #2f2b26;
  position: relative;
  display: block;
  width: 100%;
  max-width: 76px;
  height: var(--h);
  font-family: "Montserrat", var(--font-serif);
  font-size: 52px;
  font-weight: 600;
  color: #f6f1e6;
  perspective: 450px;
}

/* Halves (static cards + moving leaves) all share this box */
.flip .card,
.flip .leaf {
  position: absolute;
  left: 0; right: 0;
  height: 50%;
  overflow: hidden;
  box-sizing: border-box;
  background: var(--face);
}
.flip .upper, .flip .front { top: 0; border-radius: var(--radius) var(--radius) 0 0; }
.flip .lower, .flip .back  { bottom: 0; border-radius: 0 0 var(--radius) var(--radius); }

/* the digit fills the FULL card height inside each half; overflow clips it */
.flip .digit {
  position: absolute;
  left: 0; right: 0;
  height: var(--h);
  line-height: var(--h);
  text-align: center;
}
.flip .upper .digit, .flip .front .digit { top: 0; }
.flip .lower .digit, .flip .back .digit  { bottom: 0; }

.flip .upper, .flip .lower { z-index: 1; }

/* moving leaves */
.flip .front {
  z-index: 3;
  transform-origin: bottom;
  backface-visibility: hidden;
}
.flip .back {
  z-index: 2;
  transform-origin: top;
  transform: rotateX(90deg);
  backface-visibility: hidden;
}

/* shading for realism */
.flip .upper { box-shadow: inset 0 1px 2px rgba(255,255,255,0.05); }
.flip .lower { background: #29251f; }
.flip .back  { background: #29251f; }

/* center seam */
.flip::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 2px;
  transform: translateY(-1px);
  background: rgba(0,0,0,0.5);
  z-index: 5;
}

.flip.go .front { animation: leafFront 0.5s ease-in forwards; }
.flip.go .back  { animation: leafBack 0.5s 0.5s ease-out forwards; }

@keyframes leafFront {
  from { transform: rotateX(0deg); }
  to   { transform: rotateX(-90deg); }
}
@keyframes leafBack {
  from { transform: rotateX(90deg); }
  to   { transform: rotateX(0deg); }
}

@media (max-width: 420px) {
  .flip { font-size: 36px; --h: 66px; }
}

/* ===== SAVE THE DATE CARD ===== */
.std-card {
  position: relative;
  max-width: 360px;
  margin: 0 auto 34px;
  padding: 34px 26px 26px;
  background:
    linear-gradient(180deg, #fffefb, var(--bg-soft));
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(60,52,38,0.08);
}
/* ornamental corner brackets */
.std-corner {
  position: absolute;
  width: 20px; height: 20px;
  border: 1.5px solid var(--gold);
}
.std-corner.tl { top: 8px; left: 8px; border-right: none; border-bottom: none; }
.std-corner.tr { top: 8px; right: 8px; border-left: none; border-bottom: none; }
.std-corner.bl { bottom: 8px; left: 8px; border-right: none; border-top: none; }
.std-corner.br { bottom: 8px; right: 8px; border-left: none; border-top: none; }

.std-month {
  font-family: var(--font-serif);
  text-transform: uppercase;
  letter-spacing: 8px;
  font-size: 15px;
  color: var(--gold-deep);
  margin-bottom: 8px;
}
.std-day-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 6px;
}
.std-dow, .std-year {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  color: var(--ink-soft);
  width: 62px;
}
.std-dow { text-align: right; }
.std-year { text-align: left; }
.std-day {
  font-family: var(--font-serif);
  font-size: 76px;
  font-weight: 500;
  line-height: 1;
  color: var(--ink);
  position: relative;
  padding: 0 12px;
}
.std-day::before, .std-day::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 1px; height: 54px;
  background: var(--line);
  transform: translateY(-50%);
}
.std-day::before { left: 0; }
.std-day::after { right: 0; }

.std-rule {
  color: var(--gold);
  font-size: 13px;
  margin: 10px 0 18px;
}
.std-rule::before, .std-rule::after {
  content: "";
  display: inline-block;
  width: 46px; height: 1px;
  background: var(--gold-soft, var(--line));
  vertical-align: middle;
  margin: 0 12px;
}

/* ===== CALENDAR ===== */
.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  max-width: 300px;
  margin: 0 auto;
  font-size: 14px;
}
.calendar .cal-h {
  color: var(--gold-deep);
  font-weight: 600;
  padding: 6px 0;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.calendar .cal-d {
  padding: 0;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-family: var(--font-serif);
  font-size: 16px;
}
/* staggered pop-in once the section is in view */
.calendar.animate .cal-d {
  opacity: 0;
  transform: translateY(6px);
  animation: calPop 0.45s ease forwards;
  animation-delay: calc(var(--i, 0) * 0.03s);
}
.calendar.animate .cal-d.cal-e { animation: none; opacity: 0; }

.calendar .cal-d.today {
  position: relative;
  color: #fff;
  font-weight: 700;
  z-index: 0;
}
.calendar .cal-d.today::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--gold), var(--gold-deep));
  box-shadow: 0 4px 12px rgba(169,136,74,0.45);
  transform: translate(-50%, -50%);
  z-index: -1;
}
/* pulsing glow ring around the wedding day */
.calendar .cal-d.today::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  transform: translate(-50%, -50%);
  z-index: -1;
  opacity: 0;
}
.calendar.animate .cal-d.today::after {
  animation: dayPulse 2.4s ease-out 1.4s infinite;
}
/* gentle heartbeat on the gold circle itself */
.calendar.animate .cal-d.today::before {
  animation: dayBeat 2.4s ease-in-out 1.4s infinite;
}

@keyframes calPop {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes dayPulse {
  0% { opacity: 0.7; width: 32px; height: 32px; }
  70% { opacity: 0; width: 48px; height: 48px; }
  100% { opacity: 0; width: 48px; height: 48px; }
}
@keyframes dayBeat {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.12); }
}
.calendar .cal-e { visibility: hidden; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  background: var(--gold);
  color: #fff;
  text-decoration: none;
  padding: 14px 34px;
  border-radius: 2px;
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-weight: 500;
  transition: background 0.2s ease, transform 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-outline {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold-deep);
}

/* stylish calendar button */
.btn-cal {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #fff;
  padding: 15px 30px;
  border-radius: 40px;
  box-shadow: 0 10px 26px rgba(169,136,74,0.35);
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.2s ease;
}
.btn-cal svg {
  width: 18px; height: 18px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.btn-cal::after {
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg);
  animation: shine 3.5s ease-in-out infinite;
}
.btn-cal:active { transform: translateY(1px); box-shadow: 0 6px 16px rgba(169,136,74,0.35); }

@keyframes shine {
  0% { left: -60%; }
  55%, 100% { left: 130%; }
}

/* ===== RSVP ===== */
.rsvp-text {
  font-family: var(--font-serif);
  color: var(--ink-soft);
  line-height: 1.5;
  white-space: nowrap;
}
.rsvp-lead {
  font-size: clamp(15px, 4.6vw, 21px);
  font-style: italic;
  color: var(--ink);
}
.rsvp-sub {
  font-size: clamp(12px, 3.4vw, 15px);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 30px;
}
.rsvp .std-rule { margin: 14px 0; }

.rsvp-form {
  max-width: 380px;
  margin: 0 auto;
  text-align: left;
  background: linear-gradient(180deg, #fffefb, var(--bg-soft));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 24px;
  box-shadow: 0 20px 50px rgba(60,52,38,0.08);
}
.rsvp-choice {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}
.rsvp-field { margin-bottom: 22px; }
.rsvp-flabel {
  display: block;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 11px;
  color: var(--ink-soft);
  margin-bottom: 12px;
  text-align: center;
}
.rsvp-choice-row {
  flex-direction: row;
  gap: 10px;
  margin-bottom: 0;
}
.rsvp-choice-row .choice { flex: 1; }
.choice-compact {
  justify-content: center;
  padding: 13px 10px;
  font-size: 14px;
}
.choice { cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
  color: var(--ink-soft);
  background: var(--bg);
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.choice-ico {
  flex: 0 0 26px;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--ink-soft);
  transition: all 0.2s ease;
}
.choice input:checked + .choice-box {
  border-color: var(--gold);
  background: linear-gradient(180deg, #fffdf8, var(--bg-soft));
  color: var(--ink);
  box-shadow: 0 6px 18px rgba(169,136,74,0.12);
}
.choice input:checked + .choice-box .choice-ico {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  border-color: transparent;
  color: #fff;
}

.rsvp-guests {
  margin-bottom: 26px;
  text-align: center;
}
.rsvp-guests label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 11px;
  color: var(--ink-soft);
  margin-bottom: 12px;
}
.stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 40px;
  overflow: hidden;
}
.step-btn {
  width: 46px; height: 46px;
  border: none;
  background: var(--bg-soft);
  color: var(--gold-deep);
  font-size: 22px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.step-btn:active { background: var(--line); }
.stepper input {
  width: 60px;
  height: 46px;
  border: none;
  text-align: center;
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--ink);
  background: var(--bg);
  -moz-appearance: textfield;
}
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.rsvp-submit {
  width: 100%;
  justify-content: center;
  cursor: pointer;
  border: none;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

/* ===== FOOTER ===== */
.footer {
  text-align: center;
  padding: 50px 30px 70px;
  background: var(--bg-soft);
}
.footer-mono {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: 74px; height: 74px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  justify-content: center;
  margin-bottom: 18px;
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--gold-deep);
}
.footer-mono .amp { font-size: 14px; color: var(--gold); }
.footer .small { color: var(--gold); }
.footer .tiny { text-transform: uppercase; margin-top: 4px; }

/* ===== REVEAL ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.in { opacity: 1; transform: none; }

@keyframes chevFall {
  0% { opacity: 0; transform: rotate(45deg) translate(-3px, -3px); }
  40% { opacity: 1; }
  80% { opacity: 0; transform: rotate(45deg) translate(3px, 3px); }
  100% { opacity: 0; }
}

@media (max-width: 400px) {
  .cd-item { min-width: 68px; padding: 16px 6px; }
  .cd-num { font-size: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
