:root {
  --ivory: #f8f3ea;
  --paper: #fbf8f2;
  --desk: #e8dfd0;
  --ink: #2a241f;
  --soft: #6a6158;
  --sage: #7a875c;
  --moss: #3a4634;
  --deep: #243024;
  --gold: #b08d4e;
  --gold-2: #d9c6a0;
  --wax: #8a3535;
  --blush: #e8cfc0;
  --line: rgba(42, 36, 31, 0.12);
  --script: "Great Vibes", "Palatino Linotype", Palatino, serif;
  --serif: "Cormorant Garamond", Palatino, "Palatino Linotype", serif;
  --sans: "Josefin Sans", "Gill Sans", "Trebuchet MS", sans-serif;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: clip;
}
html.boot body { visibility: hidden; }
html.boot-ready body {
  visibility: visible;
  animation: boot-in 0.35s ease both;
}
@keyframes boot-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
body {
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 20% 0%, rgba(255, 250, 243, 0.9), transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(214, 200, 170, 0.35), transparent 45%),
    linear-gradient(180deg, #ebe3d4, #e0d5c4);
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.45;
}
img, svg { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }

.kicker {
  margin: 0;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage);
}

/* —— Gate / sobre —— */
.gate {
  min-height: 100dvh;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 40px 18px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 18%, #fffdf8 0%, #f4ebe0 48%, #e7dbc8 100%);
}
.gate-flor {
  position: absolute;
  z-index: 0;
  width: min(42vw, 200px);
  pointer-events: none;
  opacity: 0.95;
}
.gate-flor-tl {
  top: -16px;
  left: -26px;
  width: min(36vw, 168px);
  animation: sway 7s ease-in-out infinite;
}
.gate-flor-br {
  bottom: -18px;
  right: -22px;
  width: min(40vw, 186px);
  animation: sway-br 8s ease-in-out infinite;
}
@keyframes sway {
  0%, 100% { transform: rotate(-1.5deg); }
  50% { transform: rotate(1.5deg); }
}
@keyframes sway-br {
  0%, 100% { transform: rotate(-1.5deg); }
  50% { transform: rotate(1.5deg); }
}

.gate .kicker,
.gate .guest-kicker,
.gate .guest-name,
.gate .slots-line,
.gate .hint,
.gate .env {
  position: relative;
  z-index: 2;
}
.gate .kicker { color: var(--gold); }
.guest-kicker {
  margin: 14px 0 0;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--moss);
}
.guest-name {
  margin: 10px auto 0;
  max-width: min(100%, 18ch);
  padding: 0 4px;
  font-family: var(--script);
  font-size: clamp(40px, 10vw, 72px);
  font-weight: 400;
  line-height: 1.05;
  color: var(--ink);
  text-shadow: 0 1px 0 rgba(255,255,255,0.4);
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}
.guest-name-family {
  margin-top: 4px;
  max-width: min(100%, 92vw);
  font-size: clamp(34px, 8.5vw, 54px);
  line-height: 1.08;
  word-spacing: 0.04em;
  letter-spacing: 0;
  white-space: normal;
}
.slots-line {
  margin: 6px 0 10px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  z-index: 2;
}
.hint {
  margin: 16px 0 0;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--soft);
  z-index: 2;
}

.petals { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 1; }
.petals i {
  position: absolute;
  top: -20px;
  width: 12px;
  height: 16px;
  background: var(--blush);
  border-radius: 80% 0 80% 0;
  opacity: 0;
  animation: fall 12s linear infinite;
}
.petals i:nth-child(1) { left: 8%; animation-delay: 0s; }
.petals i:nth-child(2) { left: 18%; animation-delay: 2s; background: #f3e2d4; }
.petals i:nth-child(3) { left: 30%; animation-delay: 4.2s; }
.petals i:nth-child(4) { left: 42%; animation-delay: 1s; }
.petals i:nth-child(5) { left: 55%; animation-delay: 3.1s; background: #edd9c4; }
.petals i:nth-child(6) { left: 68%; animation-delay: 5s; }
.petals i:nth-child(7) { left: 78%; animation-delay: 1.6s; width: 9px; height: 12px; background: #f6e6d8; }
.petals i:nth-child(8) { left: 88%; animation-delay: 3.8s; }
.petals i:nth-child(9) { left: 12%; animation-delay: 6.2s; background: #e7d3bf; }
.petals i:nth-child(10) { left: 48%; animation-delay: 7s; width: 8px; height: 11px; }
@keyframes fall {
  0% { transform: translateY(-10vh) rotate(0deg); opacity: 0; }
  12% { opacity: 0.85; }
  100% { transform: translateY(110vh) rotate(220deg); opacity: 0; }
}

.env {
  position: relative;
  z-index: 3;
  width: min(92vw, 400px);
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  filter: drop-shadow(0 22px 28px rgba(70, 45, 20, 0.2));
  transition: transform 0.35s ease;
}
.env:hover { transform: translateY(-4px) scale(1.02); }
.env:active { transform: translateY(1px) scale(0.985); }
.env:focus-visible { outline: 2px solid var(--moss); outline-offset: 6px; border-radius: 12px; }
.env:disabled { cursor: default; }
.env-stage {
  position: relative;
  display: block;
  perspective: 1100px;
}
.env-stage::before {
  content: "";
  position: absolute;
  left: 12%;
  right: 14%;
  bottom: 7%;
  height: 22px;
  background: radial-gradient(ellipse, rgba(55, 38, 18, 0.28), transparent 72%);
  filter: blur(1px);
  z-index: 0;
  pointer-events: none;
}
.env-art {
  position: relative;
  z-index: 1;
  width: 100%;
  background: transparent;
  transform-origin: 50% 78%;
}
.env-card {
  position: absolute;
  z-index: 2;
  left: 27%;
  right: 29%;
  top: 3%;
  height: 56%;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0;
  padding: 16px 10px 14px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.72), transparent 36%),
    linear-gradient(165deg, #fffaf3 0%, #f4e7d4 100%);
  border: 1px solid rgba(176, 141, 78, 0.55);
  border-radius: 10px 10px 4px 4px;
  box-shadow:
    0 14px 22px rgba(50, 36, 16, 0.16),
    inset 0 0 0 3px rgba(255, 250, 242, 0.65),
    inset 0 0 0 4px rgba(176, 141, 78, 0.28);
  opacity: 0;
  clip-path: inset(100% 8% 0 8% round 8px);
  transform: translateY(18px);
  transform-origin: 50% 100%;
  pointer-events: none;
}
.env-card-kicker {
  display: block;
  margin: 0;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1.2;
}
.env-card-kicker + .env-card-names {
  margin-top: 22px;
  padding-top: 6px;
}
.env-card-names {
  font-family: var(--script);
  font-size: clamp(22px, 6vw, 32px);
  line-height: 1.1;
  color: var(--ink);
}
.env-card-amp {
  display: block;
  margin: 6px 0 8px;
  font-family: var(--script);
  font-size: 17px;
  line-height: 0.9;
  color: var(--wax);
}
.motes {
  position: absolute;
  left: 50%;
  top: 56%;
  width: 0;
  height: 0;
  z-index: 5;
  pointer-events: none;
}
.motes i {
  position: absolute;
  width: 5px;
  height: 5px;
  margin: -2px;
  border-radius: 50%;
  background: #f0ddb0;
  box-shadow: 0 0 6px rgba(217, 198, 160, 0.8);
  opacity: 0;
}
.motes i:nth-child(1) { --dx: -34px; --dy: -40px; }
.motes i:nth-child(2) { --dx: 30px; --dy: -36px; background: #e7c98a; }
.motes i:nth-child(3) { --dx: -18px; --dy: -52px; }
.motes i:nth-child(4) { --dx: 14px; --dy: -48px; }
.motes i:nth-child(5) { --dx: -42px; --dy: -8px; width: 4px; height: 4px; }
.motes i:nth-child(6) { --dx: 40px; --dy: -6px; }
.motes i:nth-child(7) { --dx: -8px; --dy: -28px; background: #fff6e4; }
.motes i:nth-child(8) { --dx: 22px; --dy: -18px; }
.seal-dot {
  position: absolute;
  left: 50.5%;
  top: 55.9%;
  transform: translate(-50%, -50%);
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: transparent;
  pointer-events: none;
  z-index: 4;
}
.seal-half {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 34%, #d07066 0%, #9a3d3d 45%, #6e2828 78%, #4a1a1a 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 220, 210, 0.4),
    inset 0 -8px 12px rgba(40, 8, 8, 0.35),
    0 3px 8px rgba(40, 8, 8, 0.28);
}
.seal-half-l { clip-path: polygon(0 0, 52% 0, 46% 100%, 0 100%); }
.seal-half-r { clip-path: polygon(52% 0, 100% 0, 100% 100%, 46% 100%); }
.seal-mark {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  pointer-events: none;
}
.seal-mark > span {
  display: block;
  margin: 0;
  padding: 0;
  color: #f8e7c2;
  text-shadow: 0 1px 1px rgba(40, 8, 8, 0.5);
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1;
  text-align: center;
  transform: translateY(-1px);
}
.seal-dot::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(217, 198, 160, 0);
  pointer-events: none;
}
.gate.is-opening .env { transform: none; filter: drop-shadow(0 28px 30px rgba(70, 45, 20, 0.22)); }
.gate.is-opening .seal-dot::after { animation: seal-ring 0.7s ease-out forwards; }
.gate.is-opening .seal-mark { animation: seal-mark-out 0.45s ease-out forwards; }
.gate.is-opening .seal-half-l { animation: crack-l 0.78s cubic-bezier(.25, .1, .2, 1) forwards; }
.gate.is-opening .seal-half-r { animation: crack-r 0.82s cubic-bezier(.25, .1, .2, 1) 0.04s forwards; }
.gate.is-opening .motes i { animation: mote 0.85s ease-out forwards; }
.gate.is-opening .motes i:nth-child(2) { animation-delay: 0.04s; }
.gate.is-opening .motes i:nth-child(3) { animation-delay: 0.08s; }
.gate.is-opening .motes i:nth-child(5) { animation-delay: 0.02s; }
.gate.is-opening .motes i:nth-child(6) { animation-delay: 0.1s; }
.gate.is-opening .env-art { animation: env-recede 1.35s cubic-bezier(.2, .7, .2, 1) 0.28s forwards; }
.gate.is-opening .env-card { animation: letter-rise 1.28s cubic-bezier(.2, .75, .2, 1) 0.42s forwards; }
.gate.is-opening .petals i { animation-duration: 7s; }
@keyframes crack-l {
  0% { transform: translate(0, 0) rotate(0); }
  18% { transform: translate(-2px, 1px) rotate(-4deg); }
  100% { transform: translate(-28px, 42px) rotate(-32deg); opacity: 0; }
}
@keyframes crack-r {
  0% { transform: translate(0, 0) rotate(0); }
  18% { transform: translate(2px, 1px) rotate(4deg); }
  100% { transform: translate(30px, 46px) rotate(30deg); opacity: 0; }
}
@keyframes seal-mark-out {
  0% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.7); }
}
@keyframes seal-ring {
  0% { border-color: rgba(240, 221, 176, 0.95); transform: scale(0.85); opacity: 1; }
  100% { border-color: rgba(240, 221, 176, 0); transform: scale(1.85); opacity: 0; }
}
@keyframes mote {
  0% { opacity: 0; transform: translate(0, 0) scale(0.6); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(0.3); }
}
@keyframes env-recede {
  0% { transform: rotateX(0deg) translateY(0); }
  100% { transform: rotateX(17deg) translateY(18px) scale(0.96); }
}
@keyframes letter-rise {
  0% { opacity: 1; clip-path: inset(96% 6% 0 6% round 6px); transform: translateY(10px); }
  45% { opacity: 1; clip-path: inset(28% 0 0 0 round 10px); transform: translateY(-6px); }
  100% { opacity: 1; clip-path: inset(0 0 0 0 round 10px); transform: translateY(-34px) scale(1.04); }
}
.gate.is-open .env {
  animation: env-away 0.72s ease forwards;
}
.gate.is-open .kicker,
.gate.is-open .guest-kicker,
.gate.is-open .guest-name,
.gate.is-open .slots-line,
.gate.is-open .hint,
.gate.is-open .gate-flor {
  opacity: 0;
  transition: opacity 0.45s ease;
}
@keyframes env-away {
  to { opacity: 0; transform: translateY(30px) scale(1.04); }
}

/* —— Sheet —— */
.sheet {
  background: transparent;
  padding: 0 0 40px;
}
.sheet-inner {
  position: relative;
  width: min(700px, 100%);
  margin: 0 auto;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.45), transparent 90px),
    var(--paper);
  padding: 36px 22px 64px;
  min-height: 100dvh;
  box-shadow: 0 0 0 1px rgba(176, 141, 78, 0.12);
}
.sheet-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  background-image: repeating-linear-gradient(
    0deg,
    rgba(120, 96, 60, 0.035) 0 1px,
    transparent 1px 7px
  );
}
.sheet-inner::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(176, 141, 78, 0.38);
  border-radius: 6px;
  box-shadow: inset 0 0 0 4px rgba(251, 248, 242, 0.2), inset 0 0 0 5px rgba(176, 141, 78, 0.16);
  pointer-events: none;
  z-index: 0;
}
.deco {
  position: absolute;
  width: min(34vw, 140px);
  pointer-events: none;
  z-index: 2;
}
.deco-tl { top: 4px; left: 2px; }
.deco-br {
  bottom: 8px;
  right: 2px;
  /* Sin volteo: lado plano al borde derecho; la punta entra hacia el centro */
  transform: none;
}
.sheet-inner > *:not(.deco) { position: relative; z-index: 1; }
.hero { z-index: 1; }

.sheet-inner > .sample-ribbon,
.sheet-inner > .aviso,
.sheet-inner > .ribbon {
  z-index: 4;
}
.sample-ribbon, .aviso, .ribbon {
  margin: 8px 0 16px;
  padding: 10px 12px;
  background: #f4ead2;
  border: 1px solid var(--gold-2);
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.02em;
  line-height: 1.4;
}
.aviso.bad { background: #f8e7e2; border-color: #e0b2a8; }
.ribbon { background: #eef2e6; border-color: #c9d3b4; }

.music {
  position: fixed;
  z-index: 30;
  top: 14px;
  right: 14px;
  border: 1px solid var(--gold-2);
  background: rgba(251, 247, 240, 0.94);
  color: var(--moss);
  border-radius: 999px;
  padding: 8px 14px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(6px);
}
.music[aria-pressed="true"] { background: var(--moss); color: var(--ivory); }

/* —— Hero —— */
.hero {
  text-align: center;
  padding-top: 8px;
}
.hero-art {
  width: min(100%, 480px);
  margin: 0 auto;
}
.couple {
  width: 96%;
  max-width: 440px;
  margin: 0 auto;
  display: block;
  background: transparent;
  animation: float 5.8s ease-in-out infinite;
}
.blessing {
  margin: 10px auto 0;
  max-width: 28ch;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.55;
  color: var(--soft);
}
.name-banner {
  position: relative;
  z-index: 2;
  width: min(94%, 380px);
  margin: 14px auto 0;
  padding: 0;
}
.names {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0.18em 0.28em;
  margin: 0;
  padding: 14px 22px 12px;
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(34px, 8.5vw, 52px);
  line-height: 1.15;
  color: #f8f2e6;
  background: linear-gradient(180deg, #859268 0%, #6d7a52 55%, #5a6744 100%);
  border-radius: 999px;
  box-shadow:
    0 10px 22px rgba(40, 50, 30, 0.16),
    inset 0 1px 0 rgba(255,255,255,0.2);
  text-shadow: 0 1px 2px rgba(30, 40, 20, 0.25);
}
.names span {
  display: inline-block;
  white-space: nowrap;
}
.names em {
  font-style: normal;
  font-size: 0.62em;
  opacity: 0.95;
  line-height: 1;
}
.tagline {
  margin: 18px auto 0;
  max-width: 26ch;
  font-family: var(--serif, "Cormorant Garamond", Georgia, serif);
  font-weight: 500;
  font-size: clamp(18px, 4.4vw, 22px);
  letter-spacing: 0.02em;
  text-transform: none;
  line-height: 1.35;
  color: var(--moss);
}
.phrase {
  margin: 12px auto 0;
  max-width: 34ch;
  font-style: italic;
  font-weight: 500;
  color: var(--soft);
  line-height: 1.35;
}
.verse {
  margin: 22px auto 0;
  max-width: 34ch;
  padding: 18px 16px 16px;
  border: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.55), rgba(247, 241, 230, 0.35));
  border-radius: 22px;
  box-shadow:
    inset 0 0 0 1px rgba(176, 141, 78, 0.28);
}
.verse-text {
  margin: 0;
  font-family: var(--serif, "Cormorant Garamond", Georgia, serif);
  font-style: italic;
  font-size: clamp(16px, 4.1vw, 19px);
  line-height: 1.45;
  color: var(--ink, #3a342c);
}
.verse-ref {
  display: block;
  margin-top: 12px;
  font-family: var(--sans);
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold, #b08d4e);
}
.when {
  margin: 16px 0 0;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--soft);
}
.day-place .kicker,
.day-place h2 {
  text-align: center;
}
.section h2.event-title,
.event-title {
  display: block;
  width: fit-content;
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  line-height: 1.15;
}
.event-time {
  margin: -2px 0 18px;
  text-align: center;
}
.event-time span {
  display: inline-block;
  padding: 10px 18px 9px;
  border-radius: 999px;
  background: linear-gradient(180deg, #859268 0%, #6d7a52 100%);
  color: #f8f2e6;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.22em;
  box-shadow: 0 8px 18px rgba(40, 50, 30, 0.14);
}

.section { margin-top: 40px; }
.section h2 {
  margin: 6px 0 14px;
  font-weight: 500;
  font-size: clamp(34px, 8vw, 44px);
  line-height: 1;
}
.section h2::after {
  content: "";
  display: block;
  width: 74px;
  height: 11px;
  margin: 10px 0 0;
  background:
    linear-gradient(var(--gold), var(--gold)) center / 54px 1px no-repeat,
    radial-gradient(circle, var(--gold) 0 2.2px, transparent 2.6px) center / 8px 8px no-repeat;
}
.day-place h2::after,
.rsvp h2::after {
  margin-left: auto;
  margin-right: auto;
}
.section .lead {
  margin: 0 0 18px;
  max-width: 36em;
  font-size: 1.02rem;
  line-height: 1.45;
  color: var(--ink-soft, #5a5348);
}

.count-section { text-align: center; }
.count-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.count-cell {
  text-align: center;
  border: 1px solid rgba(176, 141, 78, 0.28);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.92), rgba(247, 241, 230, 0.88));
  padding: 16px 4px 14px;
  border-radius: 22px;
  box-shadow:
    0 8px 18px rgba(60, 50, 30, 0.06),
    inset 0 1px 0 rgba(255,255,255,0.75);
}
.count-num {
  display: block;
  font-variant-numeric: tabular-nums;
  font-size: clamp(28px, 7vw, 34px);
  line-height: 1;
  font-weight: 500;
  color: var(--moss);
}
.count-label {
  display: block;
  margin-top: 8px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--soft);
}
.car-wrap { margin-top: 18px; text-align: center; }
.car {
  width: min(100%, 340px);
  margin: 0 auto;
  background: transparent;
  animation: drive 5s ease-in-out infinite alternate;
}
.car-label {
  margin: 8px 0 0;
  font-family: var(--script);
  font-size: 32px;
  color: var(--wax);
}

.day-place { text-align: center; }
.day-place-board {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 0;
  margin-top: 10px;
  padding: 0;
}
.date-panel,
.place-panel {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 4px;
  min-width: 0;
  padding: 16px 12px 14px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.9), rgba(247, 241, 230, 0.88));
  border: 1px solid rgba(176, 141, 78, 0.22);
  border-radius: 22px;
  box-shadow: 0 8px 18px rgba(60, 50, 30, 0.05);
}
.date-panel::before,
.date-panel::after { display: none; }
.day-place-bridge {
  display: grid;
  align-items: center;
  width: 28px;
  padding: 0 2px;
}
.day-place-bridge span {
  display: block;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    rgba(176, 141, 78, 0.55) 0 6px,
    transparent 6px 10px
  );
}
.date-weekday {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage);
}
.date-day {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(42px, 12vw, 56px);
  font-weight: 500;
  line-height: 0.9;
  color: var(--moss);
  letter-spacing: -0.02em;
}
.date-month {
  font-family: var(--script);
  font-size: clamp(22px, 6vw, 28px);
  line-height: 1;
  color: var(--wax);
}
.date-year {
  margin-top: 2px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--soft);
}
.date-ornament { display: none; }
.place-kicker {
  margin: 0;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
}
.place-name {
  margin: 0;
  font-size: clamp(18px, 4.6vw, 24px);
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink);
  max-width: 12ch;
}
.place-time {
  display: block;
  margin-top: 2px;
  font-family: var(--sans);
  font-size: clamp(18px, 5vw, 22px);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--moss);
  font-weight: 500;
}
.place-footer {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 14px 14px 16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.55), transparent 40%),
    linear-gradient(180deg, #fbf7ef, #f3ebe0);
  border: 1px solid rgba(176, 141, 78, 0.22);
  border-radius: 22px;
  box-shadow: 0 8px 18px rgba(60, 50, 30, 0.05);
}
.place-address {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin: 0 auto;
  max-width: 34ch;
  color: var(--soft);
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
}
.place-address span:last-child {
  white-space: pre-line;
  text-align: center;
}
.place-pin {
  width: 10px;
  height: 10px;
  margin: 0;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(176, 141, 78, 0.18);
}
.moments-rail {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 0;
  margin: 16px 0 0;
  padding: 4px;
}
.moment-stop {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 16px 10px 14px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.9), rgba(247, 241, 230, 0.88));
  border: 1px solid rgba(176, 141, 78, 0.22);
  border-radius: 22px;
  box-shadow: 0 8px 18px rgba(60, 50, 30, 0.05);
}
.moment-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--moss);
  box-shadow: 0 0 0 4px rgba(122, 135, 92, 0.16);
}
.moment-bridge {
  display: grid;
  align-items: center;
  width: 28px;
  padding: 0 2px;
}
.moment-bridge span {
  display: block;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    rgba(176, 141, 78, 0.55) 0 6px,
    transparent 6px 10px
  );
}
.vm-label {
  display: block;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
}
.vm-time {
  display: block;
  font-family: var(--sans);
  font-size: clamp(20px, 5.5vw, 26px);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--moss);
  font-weight: 500;
}
.vm-note {
  display: block;
  font-family: var(--script);
  font-size: 22px;
  line-height: 1;
  color: var(--wax);
}
.map-btn, .btn, button.btn {
  display: inline-block;
  margin-top: 12px;
  background: var(--moss);
  color: var(--ivory);
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}
.map-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 220px);
  margin-top: 0;
  background: var(--moss);
  color: var(--ivory);
  border: 0;
  box-shadow: 0 10px 18px rgba(36, 48, 36, 0.16);
}
.place-footer .map-btn { width: min(100%, 240px); }
.map-btn:hover { filter: brightness(1.05); }

@media (min-width: 640px) {
  .day-place-board {
    grid-template-columns: 1fr 40px 1fr;
  }
  .day-place-bridge { width: 40px; }
  .date-panel,
  .place-panel {
    padding: 22px 18px 20px;
    border-radius: 24px;
  }
  .date-day { font-size: clamp(48px, 8vw, 64px); }
  .date-month { font-size: clamp(26px, 4vw, 34px); }
  .place-name { font-size: clamp(22px, 3.2vw, 30px); max-width: 14ch; }
  .moments-rail { margin-top: 18px; }
  .moment-bridge { width: 48px; }
  .place-footer {
    margin-top: 16px;
    padding: 18px 20px 20px;
    border-radius: 24px;
  }
}

.schedule-section { text-align: center; }
.schedule-section h2::after {
  margin-left: auto;
  margin-right: auto;
}
.schedule-lead {
  margin: 0 auto 18px;
  max-width: 34ch;
  font-family: var(--serif, "Cormorant Garamond", Georgia, serif);
  font-style: italic;
  font-size: clamp(16px, 4vw, 19px);
  line-height: 1.4;
  color: var(--soft);
}
.path {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 14px;
  position: relative;
}
.path::before {
  content: "";
  position: absolute;
  inset: 58px 16% auto 16%;
  height: calc(100% - 116px);
  border: 2px dashed rgba(176, 141, 78, 0.35);
  border-radius: 28px;
  pointer-events: none;
  z-index: 0;
}
.path-step {
  position: relative;
  z-index: 1;
  margin: 0;
}
.path-odd { grid-column: 1; }
.path-even { grid-column: 2; }
.path-card {
  text-align: center;
  padding: 16px 12px 16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.92), rgba(247, 241, 230, 0.9));
  border: 1px solid rgba(176, 141, 78, 0.24);
  border-radius: 22px;
  box-shadow:
    0 10px 20px rgba(60, 50, 30, 0.05),
    inset 0 1px 0 rgba(255,255,255,0.8);
  min-height: 100%;
}
.path-icon {
  width: 108px;
  height: 108px;
  object-fit: contain;
  margin: 0 auto 10px;
  filter: drop-shadow(0 6px 10px rgba(60, 50, 30, 0.08));
}
.tl-time {
  display: inline-block;
  margin: 0 auto 6px;
  padding: 6px 12px 5px;
  border-radius: 999px;
  background: rgba(109, 122, 82, 0.1);
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--moss);
}
.path-card h3 {
  margin: 4px 0 4px;
  font-size: clamp(18px, 4.4vw, 22px);
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink);
}
.path-card p {
  margin: 0 auto;
  max-width: 26ch;
  color: var(--soft);
  font-size: 15px;
  line-height: 1.4;
}

/* Keep 2x2 schedule grid on phones (same as desktop) */

/* —— Mobile polish (phones) —— */
@media (max-width: 640px) {
  .gate {
    align-content: center;
    justify-items: center;
    padding: 52px 14px 28px;
    gap: 0;
  }
  .gate-flor-tl {
    top: -28px;
    left: -44px;
    width: min(36vw, 148px);
  }
  .gate-flor-br {
    bottom: -16px;
    right: -20px;
    width: min(44vw, 176px);
  }
  .gate .kicker {
    margin-top: 0;
    font-size: 12px;
    letter-spacing: 0.18em;
  }
  .guest-kicker {
    margin-top: 14px;
    font-size: 13px;
  }
  .guest-name {
    font-size: clamp(36px, 10vw, 56px);
  }
  .guest-name-family {
    margin-top: 4px;
    font-size: clamp(32px, 8.8vw, 48px);
  }
  .slots-line {
    margin: 8px 0 4px;
    font-size: 12px;
  }
  .env {
    width: calc(100vw - 12px);
    max-width: 440px;
    margin-top: 10px;
  }
  .seal-dot {
    width: 92px;
    height: 92px;
  }
  .seal-mark > span {
    font-size: 23px;
    transform: translateY(3px);
  }
  .hint {
    margin-top: 14px;
    font-size: 13px;
    letter-spacing: 0.2em;
  }
  .sheet {
    padding: 0 0 28px;
  }
  .sheet-inner {
    padding: 28px 20px 56px;
    overflow: visible;
    box-shadow: none;
  }
  .sheet-inner::after {
    inset: 10px;
    border-radius: 4px;
  }
  .deco {
    width: min(38vw, 120px);
  }
  .section {
    margin-top: 36px;
  }
  .day-place {
    text-align: center;
  }
  .event-title {
    display: block;
    width: 100%;
    font-size: clamp(26px, 6.8vw, 32px);
    line-height: 1.2;
    max-width: 18ch;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
  .day-place h2::after {
    margin-left: auto;
    margin-right: auto;
  }
  .day-place-board {
    grid-template-columns: 1fr 12px 1fr;
    margin-top: 8px;
  }
  .day-place-bridge {
    width: 12px;
  }
  .day-place-bridge span {
    background: repeating-linear-gradient(
      90deg,
      rgba(176, 141, 78, 0.55) 0 4px,
      transparent 4px 7px
    );
  }
  .date-panel,
  .place-panel {
    padding: 12px 8px 11px;
    border-radius: 16px;
    gap: 3px;
  }
  .date-weekday,
  .place-kicker {
    font-size: 10px;
    letter-spacing: 0.1em;
  }
  .date-day {
    font-size: clamp(34px, 11vw, 44px);
  }
  .date-month {
    font-size: clamp(18px, 5.2vw, 22px);
  }
  .date-year {
    font-size: 10px;
    letter-spacing: 0.16em;
  }
  .place-name {
    font-size: clamp(15px, 4.2vw, 18px);
    max-width: 11ch;
  }
  .place-time {
    font-size: clamp(16px, 4.8vw, 20px);
  }
  .place-footer {
    margin-top: 12px;
    padding: 12px 12px 14px;
    border-radius: 16px;
    gap: 10px;
  }
  .place-address {
    font-size: 13px;
    max-width: 36ch;
  }
  .place-footer .map-btn {
    width: 100%;
    max-width: none;
    padding: 12px 16px;
  }
  .moments-rail {
    grid-template-columns: 1fr 12px 1fr;
    gap: 0;
    margin-top: 12px;
    padding: 0;
    align-items: stretch;
  }
  .moment-stop {
    min-width: 0;
    padding: 12px 8px 11px;
    border-radius: 16px;
    gap: 3px;
  }
  .moment-bridge {
    width: 12px;
    height: auto;
    align-self: center;
    justify-items: center;
    align-content: center;
    padding: 0;
  }
  .moment-bridge span {
    width: 100%;
    height: 2px;
    background: repeating-linear-gradient(
      90deg,
      rgba(176, 141, 78, 0.55) 0 4px,
      transparent 4px 7px
    );
  }
  .vm-label {
    font-size: 10px;
    letter-spacing: 0.1em;
    text-align: center;
  }
  .vm-time {
    font-size: clamp(18px, 5.2vw, 22px);
  }
  .vm-note {
    font-size: 18px;
    text-align: center;
  }
  .schedule-section {
    margin-top: 32px;
  }
  .car-wrap {
    margin-top: 22px;
    padding-top: 4px;
  }
  .car {
    width: min(100%, 300px);
  }
  .car-label {
    font-size: 28px;
  }
  .count-grid {
    gap: 8px;
  }
  .count-cell {
    padding: 14px 2px 12px;
    border-radius: 18px;
  }
  .path {
    grid-template-columns: 1fr 1fr;
    gap: 12px 12px;
  }
  .path-odd { grid-column: 1; }
  .path-even { grid-column: 2; }
  .path::before {
    inset: 56px 6% auto 6%;
    height: calc(100% - 112px);
    border-radius: 22px;
  }
  .path-icon {
    width: 92px;
    height: 92px;
    margin-bottom: 8px;
  }
  .path-card {
    padding: 14px 12px 14px;
    border-radius: 18px;
  }
  .path-card h3 {
    font-size: clamp(16px, 4.2vw, 19px);
    margin: 4px 0 4px;
  }
  .path-card p {
    font-size: 14px;
    max-width: 18ch;
    line-height: 1.35;
  }
  .tl-time {
    padding: 5px 10px 4px;
    font-size: 12px;
    margin-bottom: 4px;
  }
  .schedule-lead {
    font-size: clamp(16px, 4vw, 18px);
    margin-bottom: 14px;
  }
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .dress, .gifts {
    padding: 16px 14px 18px;
  }
  .dress h3, .gifts h3 {
    font-size: clamp(20px, 5vw, 24px);
  }
  .dress p, .gifts p {
    font-size: 14px;
    line-height: 1.4;
  }
  .mini-art {
    width: 112px;
    margin-bottom: 10px;
  }
  .names {
    padding: 12px 18px 11px;
    font-size: clamp(30px, 8vw, 44px);
  }
  .name-banner {
    width: min(100%, 380px);
  }
  .blessing {
    font-size: 12px;
  }
  .tagline {
    font-size: clamp(17px, 4.4vw, 20px);
  }
  .verse-text {
    font-size: clamp(16px, 4.2vw, 18px);
  }
  .count-label {
    font-size: 11px;
  }
  .place-address {
    font-size: 15px;
  }
  .choices {
    gap: 10px;
  }
  .choices label {
    padding: 13px 8px;
    font-size: 12px;
    letter-spacing: 0.06em;
    min-height: 46px;
    display: grid;
    place-items: center;
  }
  .passes-control {
    margin: 16px 0 16px;
    padding: 16px 14px 14px;
  }
  .passes-badge-kicker,
  .passes-extra-kicker,
  .step-value span,
  .pass-mark {
    font-size: 12px;
  }
  .passes-badge-copy strong {
    font-size: 14px;
  }
  .passes-hint {
    font-size: 15px;
  }
  .person {
    padding: 14px 14px 16px;
    border-radius: 18px;
  }
  .person-top h3 {
    font-size: 22px;
  }
  .rsvp form .btn,
  .rsvp-form .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 18px;
    padding: 15px 18px;
    font-size: 14px;
    letter-spacing: 0.14em;
  }
  .footer {
    position: relative;
    z-index: 3;
    margin-top: 36px;
    padding: 0 16px 28px;
  }
  .footer .script {
    font-size: clamp(30px, 9vw, 38px);
    line-height: 1.15;
  }
  .footer small {
    display: block;
    max-width: 28ch;
    margin: 8px auto 0;
    font-size: 13px;
    line-height: 1.45;
    letter-spacing: 0.04em;
  }
  .deco-br {
    display: block;
    width: min(36vw, 120px);
    bottom: 4px;
    right: 0;
    transform: none;
  }
  .deco-tl {
    width: min(28vw, 92px);
  }
  .footer {
    padding-bottom: 48px;
  }
  .music {
    top: 10px;
    right: 10px;
    padding: 9px 13px;
    font-size: 12px;
  }
}

.recuerdos {
  display: grid;
  gap: 16px;
  padding: 20px 16px;
  background: linear-gradient(180deg, #f5f0e6, #efe8db);
  border-radius: 12px;
  border: 1px solid rgba(176, 141, 78, 0.2);
}
.qr-row { display: grid; grid-template-columns: 116px 1fr; gap: 14px; align-items: center; }
.qr {
  width: 116px;
  height: 116px;
  background: white;
  padding: 6px;
  border-radius: 8px;
}
.recuerdos h3, .split h3, .person h3 { margin: 0 0 6px; font-size: 26px; font-weight: 500; }
label {
  display: grid;
  gap: 6px;
  margin: 10px 0;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.04em;
}
input[type="text"], input[type="number"], input[type="password"], input[type="url"],
input[type="date"], input[type="time"], select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: white;
  padding: 10px 12px;
  border-radius: 8px;
  font-family: var(--serif);
  font-size: 19px;
}
textarea { min-height: 90px; resize: vertical; }
.file input {
  border: 0;
  background: transparent;
  padding: 0;
  font-family: var(--sans);
  font-size: 14px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: stretch;
}
.dress, .gifts {
  padding: 18px 16px 20px;
  border-radius: 12px;
  text-align: center;
}
.dress {
  background: linear-gradient(165deg, #3f4c38, #2c3828);
  color: var(--ivory);
}
.dress .kicker, .dress p { color: #e6decb; }
.gifts {
  background: linear-gradient(180deg, #f8f2e8, #f0e8da);
  border: 1px solid var(--gold-2);
}
.mini-art {
  width: 140px;
  height: auto;
  margin: 0 auto 10px;
  background: transparent;
  object-fit: contain;
}

.rsvp { padding: 8px 0 0; text-align: center; }
.dance {
  width: min(100%, 280px);
  margin: 0 auto 8px;
  background: transparent;
  animation: float 6s ease-in-out infinite;
}
.rsvp > p, .rsvp > h2 { text-align: center; }
.passes-badge {
  display: inline-grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  margin: 8px auto 0;
  padding: 10px 18px 10px 10px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, #fffdf8 0%, #f6f0e4 100%);
  border: 1px solid rgba(176, 141, 78, 0.3);
  box-shadow:
    0 10px 22px rgba(60, 50, 30, 0.06),
    inset 0 1px 0 rgba(255,255,255,0.85);
  text-align: left;
}
.passes-badge-num {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(180deg, #859268 0%, #6d7a52 100%);
  color: #f8f2e6;
  font-family: var(--serif, "Cormorant Garamond", Georgia, serif);
  font-size: 26px;
  font-weight: 500;
  line-height: 1;
  box-shadow: 0 6px 14px rgba(40, 50, 30, 0.16);
}
.passes-badge-copy {
  display: grid;
  gap: 2px;
}
.passes-badge-kicker {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.passes-badge-copy strong {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--moss);
}
.rsvp form { text-align: left; margin-top: 16px; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choices label {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 10px;
  text-align: center;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 13px;
  background: white;
}
.choices input { position: absolute; opacity: 0; }
.choices label:has(input:checked) {
  background: var(--moss);
  color: var(--ivory);
  border-color: var(--moss);
}
.passes-control {
  margin: 18px 0 14px;
  padding: 18px 16px 16px;
  border-radius: 24px;
  background:
    radial-gradient(ellipse at top, rgba(255,255,255,0.9), transparent 58%),
    linear-gradient(180deg, #fbf7ef, #f2ebe0);
  border: 1px solid rgba(176, 141, 78, 0.24);
  box-shadow: 0 12px 24px rgba(60, 50, 30, 0.05);
}
.passes-control-head {
  text-align: center;
  margin-bottom: 14px;
}
.passes-control-title {
  margin: 0;
  font-family: var(--serif, "Cormorant Garamond", Georgia, serif);
  font-size: clamp(22px, 5vw, 26px);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.15;
}
.passes-hint {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.35;
  color: var(--soft);
}
.passes-extra {
  margin: 16px 0 0;
  padding: 14px 14px 15px;
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.88);
  border: 1px dashed rgba(176, 141, 78, 0.42);
  text-align: center;
}
.passes-extra-kicker {
  margin: 0 0 6px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.passes-extra p:last-child {
  margin: 0;
  font-family: var(--serif, "Cormorant Garamond", Georgia, serif);
  font-size: 16px;
  line-height: 1.4;
  color: var(--ink);
}
.passes-stepper {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 12px;
  align-items: center;
  max-width: 280px;
  margin: 0 auto;
}
.step-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(109, 122, 82, 0.24);
  background: linear-gradient(180deg, #ffffff, #f7f2e8);
  color: var(--moss);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(60, 50, 30, 0.06);
}
.step-btn:disabled {
  opacity: 0.32;
  cursor: default;
  box-shadow: none;
}
.step-value {
  display: grid;
  justify-items: center;
  gap: 0;
  min-height: 72px;
  padding: 10px 12px 12px;
  border-radius: 20px;
  background: linear-gradient(180deg, #fffdf9, #f4eee3);
  border: 1px solid rgba(176, 141, 78, 0.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
}
.step-value input {
  width: 3.2ch;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: center;
  font-family: var(--serif, "Cormorant Garamond", Georgia, serif);
  font-size: 36px;
  font-weight: 500;
  line-height: 1;
  color: var(--moss);
  appearance: textfield;
  -moz-appearance: textfield;
}
.step-value input::-webkit-outer-spin-button,
.step-value input::-webkit-inner-spin-button {
  appearance: none;
  margin: 0;
}
.step-value span {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--soft);
}
.people-list {
  display: grid;
  gap: 14px;
}
.person {
  margin: 0;
  padding: 16px 16px 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(252, 248, 241, 0.96));
  border: 1px solid rgba(176, 141, 78, 0.2);
  border-radius: 22px;
  box-shadow: 0 10px 22px rgba(60, 50, 30, 0.05);
}
.person-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(176, 141, 78, 0.16);
}
.person-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pass-index {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(109, 122, 82, 0.12);
  color: var(--moss);
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.person-top h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
}
.pass-mark {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}
.person .field {
  margin: 0 0 12px;
}
.person .field:last-child {
  margin-bottom: 0;
}
.person .field input {
  border-radius: 14px;
  border-color: rgba(176, 141, 78, 0.22);
  background: #fffdf9;
  padding: 12px 14px;
}
.person .field input:focus {
  outline: none;
  border-color: rgba(109, 122, 82, 0.55);
  box-shadow: 0 0 0 3px rgba(109, 122, 82, 0.12);
}
.kind {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0;
  font-family: var(--sans);
  font-size: 13px;
}
.kind-option {
  display: grid;
  place-items: center;
  margin: 0;
  min-height: 42px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(176, 141, 78, 0.22);
  background: #fff;
  color: var(--soft);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}
.kind-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.kind-option:has(input:checked) {
  background: var(--moss);
  border-color: var(--moss);
  color: var(--ivory);
  box-shadow: 0 8px 16px rgba(40, 50, 30, 0.12);
}
.rsvp-error {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8e7e2;
  border: 1px solid #e0b2a8;
  color: #7a3d34;
  font-size: 15px;
  line-height: 1.35;
}
.thanks {
  margin-top: 16px;
  text-align: center;
  padding: 18px 12px;
  background: #f8f3ea;
  border: 1px solid var(--gold-2);
  border-radius: 12px;
}
.thanks p:first-child {
  margin: 0;
  font-family: var(--script);
  font-size: 48px;
}

.memory-list, .photo-grid { display: grid; gap: 8px; margin-top: 8px; }
.photo-grid { grid-template-columns: repeat(3, 1fr); }
.photo-grid img, .photo-grid video {
  width: 100%;
  height: 92px;
  object-fit: cover;
  background: #ddd;
  border-radius: 6px;
}
.song-pill {
  margin: 0;
  padding: 8px 10px;
  background: white;
  border-left: 2px solid var(--gold);
  font-size: 18px;
  border-radius: 0 8px 8px 0;
}

.itinerary { display: grid; gap: 10px; }
.itinerary article {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.itinerary h3 { margin: 0; font-size: 26px; font-weight: 500; }
.itinerary p { margin: 2px 0 0; color: var(--soft); }

.footer {
  margin-top: 48px;
  text-align: center;
}
.footer .script {
  margin: 0;
  font-family: var(--script);
  font-size: 42px;
}
.footer-date {
  margin: 8px 0 0;
  color: var(--soft);
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.06em;
}
.footer-time {
  margin: 10px 0 0;
  font-family: var(--sans);
  font-size: clamp(22px, 6vw, 28px);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--moss);
}

.home-link {
  margin-top: 28px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.plain-page {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 28px 18px;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255,252,246,.8), transparent 55%),
    linear-gradient(180deg, #efe6d6, #e4d5c0);
}
.plain-page h1 {
  font-family: var(--script);
  font-size: 64px;
  font-weight: 400;
  margin: 8px 0;
}
.plain-page p { max-width: 34ch; }

.reveal.wait { opacity: 0; transform: translateY(18px); }
.reveal.is-in { animation: rise 0.9s ease both; }
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes drive {
  from { transform: translateX(-8px); }
  to { transform: translateX(10px); }
}

@media (min-width: 800px) {
  .sheet { padding: 36px 0 64px; }
  .sheet-inner {
    min-height: auto;
    border-radius: 20px;
    box-shadow:
      0 1px 0 rgba(255,255,255,0.7) inset,
      0 28px 60px rgba(55, 38, 18, 0.14);
    padding: 40px 44px 72px;
  }
  .places { grid-template-columns: 1fr 1fr; }
  .gate-flor { width: 260px; }
}
@media (prefers-reduced-motion: reduce) {
  .petals, .couple, .car, .dance, .seal-dot, .gate-flor, .motes i { animation: none; }
  .env, .env-art, .env-card, .seal-half { transition: none; animation: none; }
  .reveal, .reveal.wait { opacity: 1; transform: none; animation: none; }
}
