@charset "UTF-8";
:root {
  --maroon: #8b1a35;
  --maroon-deep: #5c0f22;
  --gold: #c49a3c;
  --ink: #2e1a0e;
  --ink-soft: #5a3e2b;
  --cream: #fdf6e0;
  --rule: #d4b896;
  --rule-soft: #e8d5b8;
  --error: #8c2a1a;
  --shadow: 0 8px 40px rgba(46, 26, 14, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  scroll-padding-top: 12px;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Lato", sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100%;
  /* Cream fallback matches image edges — hides any gap on iOS */
  background-color: #e8d5a8;
}

/* Fixed background — position:fixed pseudo-element works on iOS Safari
   where background-attachment:fixed is broken.
   Extend by 4px on all sides to cover safe-area gaps on iPhone. */
body::before {
  content: "";
  position: fixed;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  z-index: -1;
  background-image: url("landing-3d-wedding.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
@media (max-width: 600px) and (orientation: portrait) {
  body::before {
    background-image: url("landing-3d-wedding.png");
    background-size: cover;
    background-position: center center;
  }
}

.hero-screen {
  position: relative;
  height: 100dvh;
  height: 100svh;
  min-height: 480px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: clamp(24px, 5vh, 48px);
}

@media (max-width: 520px) {
  body {
    font-size: 15px;
  }
  body::before {
    background-position: center top;
  }
  .hero-screen {
    min-height: 420px;
    padding-bottom: max(20px, env(safe-area-inset-bottom));
  }
  .scroll-hint {
    gap: 5px;
    padding: 9px 18px 10px;
    font-size: 10px;
    letter-spacing: 0.22em;
  }
  .scroll-hint svg {
    width: 18px;
    height: 18px;
  }
  .page {
    width: 100%;
    padding-bottom: 36px;
  }
}
.hero-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 58%, rgba(5, 2, 0, 0.62) 100%);
  pointer-events: none;
}

.scroll-hint {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-family: "Lato", sans-serif;
  font-size: clamp(11px, 2vw, 13px);
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgb(0, 0, 0), 0 0 4px rgb(0, 0, 0);
  border: 1px solid rgba(255, 255, 255, 0.7);
  padding: 10px 22px 12px;
  border-radius: 40px;
  animation: hint-pulse 2.2s ease-in-out infinite;
  cursor: pointer;
}

.scroll-hint svg {
  width: 22px;
  height: 22px;
}

@keyframes hint-pulse {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.9;
  }
  50% {
    transform: translateY(7px);
    opacity: 1;
  }
}
.page {
  max-width: 680px;
  margin: 0 auto;
  background: transparent;
  padding: 0 0 clamp(32px, 6vh, 60px);
  /* Ensure content has breathing room on very wide screens */
}
@media (min-width: 800px) {
  .page {
    padding-left: 16px;
    padding-right: 16px;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease-out, transform 0.55s ease-out;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Landing overlay */
#landing {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #090602;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
  perspective: 1200px;
}
#landing::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 8%, rgba(0, 0, 0, 0.03) 50%, rgba(8, 4, 0, 0.78) 100%), radial-gradient(ellipse at 50% 42%, transparent 0 54%, rgba(0, 0, 0, 0.12) 78%, rgba(0, 0, 0, 0.44) 100%);
  pointer-events: none;
  transition: opacity 0.7s ease;
}
#landing::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  background: radial-gradient(ellipse at 50% 43%, transparent 0 28%, rgba(35, 15, 0, 0.2) 58%, rgba(0, 0, 0, 0.72) 100%);
  opacity: 0;
  pointer-events: none;
}
#landing.landing--entering {
  pointer-events: none;
}
#landing.landing--entering::before {
  animation: landing-focus 1.35s ease forwards;
}
#landing.landing--entering::after {
  opacity: 0.72;
}
#landing.landing--entering .landing-start {
  animation: landing-video-push 4.2s cubic-bezier(0.14, 0.78, 0.16, 1) forwards;
}
#landing.landing--entering .landing-3d-tunnel {
  opacity: 1;
  animation: tunnel-layer-fade 4.2s ease forwards;
}
#landing.landing--entering .landing-content {
  animation: content-release 0.5s ease forwards;
}
#landing.landing--entering .landing-details {
  animation: content-release 0.5s ease forwards;
}
#landing.landing--entering .landing-scroll {
  animation: scroll-arrive 4.1s cubic-bezier(0.18, 0.82, 0.18, 1) forwards;
}
#landing.landing--entering .landing-scroll-paper {
  animation: scroll-unfurl 4.1s cubic-bezier(0.18, 0.82, 0.18, 1) forwards;
}
#landing.landing--entering .landing-scroll-cap {
  animation: scroll-rod-glow 4.1s ease forwards;
}
#landing.landing--exit {
  opacity: 0;
  transition: opacity 0.7s ease-out;
}

.landing-start {
  position: absolute;
  inset: -3%;
  z-index: 1;
  background-image: url("landing-3d-wedding.png");
  background-size: cover;
  background-position: center center;
  transform: translate3d(0, 0, 0) scale(1);
  transform-origin: 50% 45%;
  filter: saturate(1.02) contrast(1.03) brightness(0.98);
  will-change: transform, filter;
  transform-style: preserve-3d;
  animation: landing-cinema-camera 13s ease-in-out infinite alternate;
}
.landing-start::before, .landing-start::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.landing-start::before {
  background: radial-gradient(circle at 14% 80%, rgba(255, 184, 50, 0.22), transparent 8%), radial-gradient(circle at 88% 80%, rgba(255, 184, 50, 0.18), transparent 9%), radial-gradient(ellipse at 50% 84%, rgba(255, 214, 104, 0.25), transparent 34%), linear-gradient(100deg, transparent 34%, rgba(255, 246, 196, 0.14) 49%, transparent 64%);
  mix-blend-mode: screen;
  opacity: 0.34;
  animation: landing-cinema-light 6s ease-in-out infinite;
}
.landing-start::after {
  background: radial-gradient(circle at 22% 16%, rgba(181, 24, 54, 0.42) 0 2px, transparent 3px), radial-gradient(circle at 68% 12%, rgba(255, 238, 190, 0.44) 0 2px, transparent 3px), radial-gradient(circle at 82% 32%, rgba(181, 24, 54, 0.34) 0 2px, transparent 3px), radial-gradient(circle at 36% 34%, rgba(255, 238, 190, 0.3) 0 2px, transparent 3px);
  background-size: 240px 290px;
  opacity: 0.2;
  transform: translate3d(0, -12px, 0);
  animation: landing-cinema-petals 15s linear infinite;
}

.landing-3d-tunnel {
  position: absolute;
  inset: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  transition: opacity 0.5s ease;
}

.landing-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 100%;
  padding: 0 16px clamp(38px, 7vh, 68px);
}

.landing-details {
  position: absolute;
  inset: clamp(78px, 13vh, 138px) clamp(22px, 5vw, 82px) auto;
  z-index: 9;
  display: none;
  justify-content: space-between;
  gap: 18px;
  pointer-events: none;
}

.landing-party {
  width: clamp(148px, 18vw, 250px);
  color: #78521d;
  text-align: center;
  padding: 10px 12px 12px;
  border: 1px solid rgba(151, 106, 38, 0.22);
  border-radius: 8px;
  background: rgba(255, 241, 203, 0.44);
  box-shadow: 0 8px 26px rgba(43, 18, 0, 0.1);
  backdrop-filter: blur(2px);
  text-shadow: 0 1px 0 rgba(255, 246, 218, 0.8), 0 0 18px rgba(255, 239, 186, 0.72);
}
.landing-party h2 {
  margin: 0 0 8px;
  font-family: "Playfair Display", serif;
  font-size: clamp(22px, 3.3vw, 44px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #7f591f;
}
.landing-party p {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(11px, 1.35vw, 17px);
  font-weight: 400;
  line-height: 1.25;
}
.landing-party small {
  font-family: "Lato", sans-serif;
  font-size: 0.72em;
  letter-spacing: 0;
}
.landing-party span {
  display: block;
  width: min(130px, 72%);
  height: 1px;
  margin: 10px auto;
  background: linear-gradient(90deg, transparent, rgba(127, 89, 31, 0.7), transparent);
}

.landing-party-role {
  margin-bottom: 4px !important;
  font-family: "Great Vibes", cursive !important;
  font-size: clamp(18px, 2.5vw, 34px) !important;
  line-height: 1 !important;
  color: #8a6628;
  text-transform: none;
}
.landing-party-role::before, .landing-party-role::after {
  content: "•";
  margin: 0 8px;
  font-family: "Lato", sans-serif;
  font-size: 0.48em;
  vertical-align: middle;
}

.landing-scroll {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 12;
  width: min(86vw, 760px);
  min-width: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-50%, -43%, 0) rotateX(12deg) scale(0.82);
  transform-style: preserve-3d;
  perspective: 900px;
  filter: drop-shadow(0 22px 22px rgba(28, 11, 0, 0.38)) drop-shadow(0 42px 52px rgba(28, 11, 0, 0.34));
}

.landing-scroll-paper {
  position: relative;
  overflow: hidden;
  flex: 1 1 auto;
  min-height: clamp(220px, 32vh, 292px);
  padding: clamp(18px, 2.6vw, 28px) clamp(30px, 5vw, 62px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #7c4b16;
  background: radial-gradient(circle at 12% 20%, rgba(99, 46, 4, 0.12), transparent 18%), radial-gradient(circle at 84% 68%, rgba(99, 46, 4, 0.1), transparent 16%), repeating-linear-gradient(92deg, rgba(103, 57, 10, 0.05) 0 1px, transparent 1px 14px), radial-gradient(ellipse at 50% 0%, rgba(255, 255, 241, 0.74), transparent 62%), linear-gradient(90deg, rgba(112, 61, 10, 0.36), rgba(255, 238, 180, 0.1) 8% 92%, rgba(112, 61, 10, 0.36)), linear-gradient(180deg, #fff3c7 0%, #f8df9d 46%, #edc878 100%);
  border-top: 1px solid rgba(255, 247, 212, 0.58);
  border-bottom: 1px solid rgba(98, 50, 6, 0.32);
  box-shadow: inset 0 0 32px rgba(100, 54, 7, 0.2), inset 0 10px 18px rgba(255, 255, 255, 0.35), inset 0 -12px 20px rgba(112, 61, 10, 0.18);
  clip-path: inset(0 49% 0 49% round 8px);
  transform: rotateX(0deg) translateZ(14px);
}
.landing-scroll-paper::before {
  content: "";
  position: absolute;
  inset: 10px 18px;
  border-top: 1px solid rgba(128, 75, 14, 0.26);
  border-bottom: 1px solid rgba(128, 75, 14, 0.22);
  box-shadow: inset 18px 0 18px rgba(101, 53, 7, 0.08), inset -18px 0 18px rgba(101, 53, 7, 0.08);
  pointer-events: none;
}
.landing-scroll-paper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(68, 31, 2, 0.18), transparent 7% 93%, rgba(68, 31, 2, 0.18)), radial-gradient(ellipse at 50% 115%, rgba(98, 47, 2, 0.28), transparent 48%);
  mix-blend-mode: multiply;
  opacity: 0.46;
  pointer-events: none;
}
.landing-scroll-paper h2 {
  margin: 0 0 4px;
  font-family: "Great Vibes", cursive;
  font-size: clamp(35px, 5.8vw, 66px);
  font-weight: 400;
  line-height: 0.98;
  color: #8d1732;
  text-shadow: 0 1px 0 rgba(255, 247, 222, 0.92), 0 4px 14px rgba(91, 34, 1, 0.14);
}
.landing-scroll-paper p {
  margin: 0;
  max-width: 34em;
  font-family: "Playfair Display", serif;
  font-size: clamp(12px, 1.6vw, 17px);
  line-height: 1.25;
}
.landing-scroll-paper span {
  margin-top: 9px;
  font-family: "Lato", sans-serif;
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(124, 75, 22, 0.82);
}

.landing-scroll-details {
  position: relative;
  z-index: 1;
  width: min(100%, 500px);
  margin: 14px 0 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.landing-scroll-details div {
  padding: 8px 6px;
  border-top: 1px solid rgba(128, 75, 14, 0.22);
  border-bottom: 1px solid rgba(128, 75, 14, 0.16);
}
.landing-scroll-details dt {
  margin: 0 0 3px;
  font-family: "Lato", sans-serif;
  font-size: 8px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(111, 63, 15, 0.72);
}
.landing-scroll-details dd {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(11px, 1.35vw, 15px);
  line-height: 1.12;
  color: #6e4214;
}

.landing-scroll-kicker {
  margin-bottom: 2px !important;
  font-family: "Lato", sans-serif !important;
  font-size: 9px !important;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(124, 75, 22, 0.72);
}

.landing-scroll-cap {
  position: relative;
  z-index: 2;
  flex: 0 0 clamp(34px, 5.8vw, 56px);
  align-self: stretch;
  margin: -12px -2px;
  border-radius: 999px;
  background: radial-gradient(ellipse at 50% 18%, rgba(255, 247, 182, 0.94), transparent 26%), linear-gradient(90deg, #5a3208, #d49927 22%, #fff0a5 48%, #be7418 78%, #4c2704);
  box-shadow: inset 8px 0 13px rgba(255, 240, 144, 0.34), inset -9px 0 14px rgba(50, 22, 0, 0.38), 0 14px 22px rgba(38, 15, 0, 0.28);
}
.landing-scroll-cap::before, .landing-scroll-cap::after {
  content: "";
  position: absolute;
  left: 50%;
  width: clamp(44px, 7vw, 70px);
  height: clamp(18px, 3.2vw, 28px);
  border-radius: 999px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 35%, #fff0a6, #d19224 48%, #633305 72%);
  box-shadow: 0 8px 14px rgba(45, 17, 0, 0.28);
}
.landing-scroll-cap::before {
  top: -10px;
}
.landing-scroll-cap::after {
  bottom: -10px;
}

.landing-scroll-cap--left {
  transform: translateZ(34px) rotateY(-10deg);
}

.landing-scroll-cap--right {
  transform: translateZ(34px) rotateY(10deg);
}

.landing-names {
  display: none;
  font-family: "Great Vibes", cursive;
  font-size: clamp(36px, 10vmin, 78px);
  font-weight: 400;
  color: #fff;
  margin: 0;
  line-height: 1;
  max-width: 100%;
  text-align: center;
  white-space: nowrap;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.88), 0 0 34px rgba(196, 154, 60, 0.42);
}
.landing-names span {
  color: #e8c96a;
}

.landing-date {
  display: none;
  font-family: "Lato", sans-serif;
  font-size: clamp(10px, 2.2vmin, 13px);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(232, 201, 106, 0.92);
  margin: 0;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.9);
}

.landing-enter {
  margin-top: 0;
  background: linear-gradient(180deg, rgba(144, 30, 55, 0.94), rgba(96, 18, 37, 0.96));
  border: 1px solid rgba(255, 228, 145, 0.92);
  color: #fff7df;
  font-family: "Lato", sans-serif;
  font-size: 10px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  padding: 13px 36px;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s, color 0.3s, transform 0.2s;
  animation: btn-pulse 2.5s ease-in-out infinite;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 12px 28px rgba(49, 10, 20, 0.34), 0 0 0 5px rgba(255, 226, 144, 0.08);
  text-shadow: 0 1px 10px rgba(52, 10, 20, 0.58);
  backdrop-filter: blur(10px);
}
.landing-enter:hover {
  background: linear-gradient(180deg, rgba(170, 42, 70, 0.96), rgba(112, 20, 43, 0.98));
  border-color: #e8c96a;
  color: #fff;
  transform: scale(1.04);
  animation: none;
}
.landing-enter:active {
  transform: scale(0.97);
}
.landing-enter:disabled {
  cursor: default;
}

@keyframes btn-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(196, 154, 60, 0.45);
  }
  50% {
    box-shadow: 0 0 0 9px rgba(196, 154, 60, 0);
  }
}
@keyframes landing-focus {
  0% {
    opacity: 0;
  }
  55% {
    opacity: 0.18;
  }
  100% {
    opacity: 0.34;
  }
}
@keyframes landing-cinema-camera {
  0% {
    transform: translate3d(-0.45%, -0.2%, 0) rotateZ(-0.12deg) scale(1.018);
    filter: saturate(0.98) contrast(1.04) brightness(0.98);
  }
  100% {
    transform: translate3d(0.45%, 0.3%, 0) rotateZ(0.12deg) scale(1.04);
    filter: saturate(1) contrast(1.05) brightness(1.01);
  }
}
@keyframes landing-art-breathe {
  0% {
    transform: translate3d(-0.25%, -0.15%, 0) scale(1.01);
    filter: saturate(0.98) contrast(1.02) brightness(1.01);
  }
  100% {
    transform: translate3d(0.25%, 0.1%, 0) scale(1.025);
    filter: saturate(1) contrast(1.03) brightness(1.02);
  }
}
@keyframes landing-cinema-light {
  0%, 100% {
    opacity: 0.34;
    transform: translate3d(-1%, 0, 0);
  }
  50% {
    opacity: 0.58;
    transform: translate3d(1%, -0.6%, 0);
  }
}
@keyframes landing-cinema-petals {
  from {
    background-position: 0 -260px;
  }
  to {
    background-position: 90px 260px;
  }
}
@keyframes landing-art-hold {
  0% {
    transform: translate3d(0, 0, 0) scale(1.01);
    filter: saturate(0.98) contrast(1.02) brightness(1.01);
  }
  50% {
    transform: translate3d(0, 0, 0) scale(1.018);
    filter: saturate(0.98) contrast(1.02) brightness(0.98) blur(0.5px);
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1.02);
    filter: saturate(0.94) contrast(1.01) brightness(0.82) blur(1.2px);
  }
}
@keyframes landing-video-push {
  0% {
    transform: translate3d(-0.35%, -0.2%, 0) rotateZ(-0.08deg) scale(1.018);
    filter: saturate(1.02) contrast(1.03) brightness(0.98);
  }
  38% {
    transform: translate3d(0, 0.2vh, 38px) rotateX(0.45deg) scale(1.055);
    filter: saturate(1.03) contrast(1.04) brightness(1.03);
  }
  100% {
    transform: translate3d(0, 1vh, 92px) rotateX(0.9deg) scale(1.11);
    filter: saturate(1.01) contrast(1.03) brightness(1.07) blur(0.65px);
  }
}
@keyframes tunnel-layer-fade {
  0% {
    opacity: 0;
  }
  14% {
    opacity: 0.92;
  }
  74% {
    opacity: 0.78;
  }
  100% {
    opacity: 0;
  }
}
@keyframes content-release {
  to {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }
}
@keyframes scroll-arrive {
  0%, 8% {
    opacity: 0;
    transform: translate3d(-50%, -38%, 0) rotateX(16deg) scale(0.78);
  }
  18% {
    opacity: 1;
    transform: translate3d(-50%, -46%, 0) rotateX(7deg) scale(1.02);
  }
  34% {
    opacity: 1;
    transform: translate3d(-50%, -50%, 0) rotateX(0deg) scale(1);
  }
  100% {
    opacity: 1;
    transform: translate3d(-50%, -50%, 0) rotateX(0deg) scale(1);
  }
}
@keyframes scroll-unfurl {
  0%, 24% {
    clip-path: inset(0 49% 0 49% round 8px);
  }
  48%, 100% {
    clip-path: inset(0 0 0 0 round 8px);
  }
}
@keyframes scroll-rod-glow {
  0%, 100% {
    filter: brightness(1);
  }
  48%, 78% {
    filter: brightness(1.18);
  }
}
@media (prefers-reduced-motion: reduce) {
  #landing.landing--entering .landing-start,
  #landing.landing--entering::before,
  #landing.landing--entering .landing-content,
  #landing.landing--entering .landing-details {
    animation-duration: 0.01ms;
  }
}
@media (max-width: 760px) {
  .landing-details {
    inset: clamp(78px, 10vh, 96px) 12px auto;
    gap: 10px;
  }
  .landing-party {
    width: min(43vw, 176px);
    padding: 8px 8px 9px;
    background: rgba(255, 241, 203, 0.58);
  }
  .landing-party h2 {
    font-size: clamp(17px, 5vw, 24px);
    margin-bottom: 5px;
  }
  .landing-party p {
    font-size: clamp(9px, 2.6vw, 12px);
    line-height: 1.18;
  }
  .landing-party span {
    margin: 6px auto;
  }
  .landing-party-role {
    font-size: clamp(15px, 4.6vw, 22px) !important;
  }
  .landing-party p:nth-of-type(n + 3),
  .landing-party span {
    display: none;
  }
  .landing-scroll {
    top: 50%;
    width: min(90vw, 430px);
  }
  .landing-scroll-paper {
    min-height: 250px;
    padding: 16px 22px;
  }
  .landing-scroll-paper h2 {
    font-size: clamp(34px, 10vw, 48px);
  }
  .landing-scroll-paper p {
    font-size: 12px;
  }
  .landing-scroll-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 10px;
  }
}
@media (max-width: 520px) {
  .landing-start {
    background-position: center center;
  }
  .landing-content {
    padding: 0 14px max(26px, env(safe-area-inset-bottom));
  }
  .landing-enter {
    max-width: calc(100vw - 36px);
    padding: 12px 24px;
    font-size: 9px;
    letter-spacing: 0.24em;
    white-space: normal;
    text-align: center;
  }
  .landing-details {
    top: 78px;
  }
  .landing-scroll {
    top: 48vh;
    width: min(94vw, 360px);
    min-width: 0;
    filter: drop-shadow(0 14px 18px rgba(28, 11, 0, 0.34)) drop-shadow(0 28px 32px rgba(28, 11, 0, 0.28));
  }
  .landing-scroll-cap {
    flex-basis: 24px;
    margin: -8px -2px;
  }
  .landing-scroll-cap::before, .landing-scroll-cap::after {
    width: 34px;
    height: 14px;
  }
  .landing-scroll-paper {
    min-height: 204px;
    padding: 14px 14px;
  }
  .landing-scroll-paper h2 {
    font-size: clamp(31px, 11vw, 42px);
  }
  .landing-scroll-paper p {
    font-size: 11px;
    line-height: 1.22;
  }
  .landing-scroll-paper span {
    display: none;
  }
  .landing-scroll-kicker {
    font-size: 8px !important;
    letter-spacing: 0.24em;
  }
  .landing-scroll-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    margin-top: 8px;
  }
  .landing-scroll-details div {
    padding: 6px 4px;
  }
  .landing-scroll-details dt {
    font-size: 7px;
    letter-spacing: 0.16em;
  }
  .landing-scroll-details dd {
    font-size: 10px;
  }
}
@media (max-width: 360px) {
  .landing-scroll {
    top: 49vh;
    width: 96vw;
  }
  .landing-scroll-paper {
    min-height: 190px;
    padding: 12px 10px;
  }
  .landing-scroll-cap {
    flex-basis: 18px;
  }
}
.invite-panel {
  position: relative;
  text-align: center;
  overflow: hidden;
  padding: clamp(22px, 4vw, 34px) clamp(18px, 5vw, 44px) clamp(24px, 4vw, 34px);
  border: 1px solid rgba(139, 92, 24, 0.24);
  background: radial-gradient(circle at 15% 10%, rgba(139, 26, 53, 0.055), transparent 20%), radial-gradient(circle at 84% 68%, rgba(196, 154, 60, 0.1), transparent 20%), repeating-linear-gradient(92deg, rgba(119, 74, 21, 0.025) 0 1px, transparent 1px 14px), linear-gradient(180deg, rgba(255, 248, 223, 0.96), rgba(249, 226, 172, 0.94));
  border-radius: 8px;
  margin: -22px clamp(12px, 4vw, 40px) 28px;
  box-shadow: inset 0 0 34px rgba(112, 61, 10, 0.12), 0 24px 44px rgba(43, 18, 0, 0.18);
}
.invite-panel > * {
  position: relative;
  z-index: 1;
}
.invite-panel::before, .invite-panel::after {
  content: "";
  position: absolute;
  top: 16px;
  bottom: 16px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(139, 92, 24, 0.42), transparent);
}
.invite-panel::before {
  left: 14px;
}
.invite-panel::after {
  right: 14px;
}

.invite-panel::selection {
  background: rgba(139, 26, 53, 0.18);
}

.invite-panel .ornament {
  position: relative;
  margin-top: 18px;
  margin-bottom: 18px;
}

.invite-panel .ornament::before,
.invite-panel .ornament::after {
  content: "";
  position: absolute;
  top: 50%;
  width: clamp(34px, 9vw, 82px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196, 154, 60, 0.8));
}

.invite-panel .ornament::before {
  right: calc(100% + 10px);
}

.invite-panel .ornament::after {
  left: calc(100% + 10px);
  transform: scaleX(-1);
}

.tagline-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 16px;
  padding: 7px 12px;
  border-top: 1px solid rgba(196, 154, 60, 0.26);
  border-bottom: 1px solid rgba(196, 154, 60, 0.26);
  background: rgba(255, 247, 218, 0.42);
}

.ganesha-icon {
  width: 48px;
  height: 56px;
  flex-shrink: 0;
  object-fit: contain;
  /* mix-blend-mode removes the white background from the PNG */
  mix-blend-mode: multiply;
  filter: drop-shadow(0 1px 4px rgba(139, 105, 20, 0.2));
}

.tagline {
  font-size: clamp(11px, 2vw, 13px);
  letter-spacing: 0.24em;
  color: var(--gold);
  margin: 0;
  font-weight: 400;
}

.intro-text {
  font-size: clamp(14px, 2.5vw, 16px);
  color: var(--ink);
  margin: 2px 0 18px;
  font-weight: 300;
  line-height: 1.6;
}

.bride-name,
.groom-name {
  font-family: "Great Vibes", cursive;
  font-size: clamp(48px, 11vw, 78px);
  font-weight: 400;
  color: var(--maroon);
  margin: 0;
  line-height: 1.1;
  text-shadow: 0 1px 0 rgba(255, 248, 220, 0.85), 0 8px 20px rgba(139, 26, 53, 0.08);
}

.parent-line {
  font-size: clamp(11px, 1.8vw, 13px);
  color: var(--ink-soft);
  margin: 3px 0 12px;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.with-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 10px auto;
  max-width: 320px;
}

.with-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196, 154, 60, 0.8), transparent);
}

.with-word {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 400;
}

.ornament {
  margin: 14px auto;
  width: 100%;
  max-width: 260px;
  height: 28px;
}

.ornament svg {
  width: 100%;
  height: 100%;
}

.event-date {
  display: none;
  flex-direction: column;
  align-items: center;
  width: min(210px, 82%);
  margin: 12px auto 8px;
  padding: 14px 16px 12px;
  border-top: 1px solid rgba(139, 26, 53, 0.2);
  border-bottom: 1px solid rgba(139, 26, 53, 0.2);
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.52), transparent 56%), rgba(255, 244, 210, 0.36);
}

.date-month {
  font-size: clamp(12px, 2vw, 14px);
  letter-spacing: 0.32em;
  color: var(--ink);
  font-weight: 400;
  text-transform: uppercase;
}

.date-num {
  font-family: "Playfair Display", serif;
  font-size: clamp(44px, 10vw, 68px); /* was broken: clamp(50px,18vw,50px) */
  font-weight: 600;
  color: var(--maroon);
  line-height: 0.9;
  margin-top: -4px;
  margin-bottom: 6px;
}

.date-year {
  font-size: clamp(11px, 1.6vw, 13px);
  letter-spacing: 0.22em;
  color: var(--ink-soft);
  font-weight: 300;
  margin-top: 2px;
}

.muhurtham-block {
  display: none;
}

.muhurtham-label {
  font-family: "Great Vibes", cursive;
  font-size: clamp(24px, 5vw, 32px);
  color: var(--maroon);
  margin: 0;
  line-height: 1.2;
}

.muhurtham-time {
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
  margin: 2px 0 0;
}

.invite-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 16px auto 0;
  width: min(100%, 500px);
}

.invite-detail {
  min-height: 68px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid rgba(139, 92, 24, 0.24);
  border-radius: 8px;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.48), transparent 58%), linear-gradient(180deg, rgba(255, 249, 228, 0.66), rgba(242, 211, 143, 0.24));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.48), 0 8px 18px rgba(58, 29, 0, 0.08);
}
.invite-detail span {
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(90, 62, 43, 0.78);
}
.invite-detail strong,
.invite-detail a {
  font-family: "Playfair Display", serif;
  font-size: clamp(13px, 2.6vw, 16px);
  font-weight: 600;
  line-height: 1.18;
  color: var(--maroon);
}

.invite-detail--wide {
  grid-column: 1/-1;
}

.events-section {
  margin: 24px auto 0;
  width: min(100%, 680px);
  text-align: center;
}

.events-kicker {
  margin: 0 0 4px;
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(90, 62, 43, 0.72);
}

.events-section h2 {
  margin: 0 auto 16px;
  max-width: 460px;
  font-family: "Great Vibes", cursive;
  font-size: clamp(34px, 6.5vw, 50px);
  font-weight: 400;
  line-height: 1.08;
  color: var(--maroon);
}

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

.event-card {
  position: relative;
  overflow: hidden;
  min-height: 292px;
  border: 1px solid rgba(139, 92, 24, 0.28);
  border-radius: 8px;
  background: #241509;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 14px 26px rgba(58, 29, 0, 0.12);
  isolation: isolate;
}

.event-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 0.45s ease;
  z-index: -2;
}

.event-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23, 11, 0, 0.02) 22%, rgba(23, 11, 0, 0.78) 100%), radial-gradient(circle at 50% 16%, transparent 0 36%, rgba(23, 11, 0, 0.18) 72%);
  z-index: -1;
}

.event-card:hover img {
  transform: scale(1.05);
}

.event-copy {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 5px;
  padding: 120px 14px 14px;
  color: #fff9ea;
  text-shadow: 0 2px 10px rgba(21, 10, 0, 0.6);
}

.event-label {
  width: fit-content;
  margin: 0 auto;
  padding: 4px 9px;
  border: 1px solid rgba(255, 229, 161, 0.58);
  border-radius: 999px;
  background: rgba(72, 31, 5, 0.5);
  font-size: 8px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.event-copy h3 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(19px, 3.2vw, 25px);
  line-height: 1.12;
  color: #ffe9ad;
}

.event-copy p:not(.event-label) {
  margin: 0 auto;
  max-width: 28ch;
  font-size: 11px;
  line-height: 1.35;
  color: rgba(255, 249, 232, 0.9);
}

.event-details-toggle {
  display: inline-flex;
  align-self: center;
  justify-content: center;
  min-height: 32px;
  margin-top: 5px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 229, 161, 0.56);
  border-radius: 999px;
  background: rgba(72, 31, 5, 0.54);
  color: rgba(255, 236, 182, 0.96);
  font: inherit;
  font-size: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  text-shadow: 0 1px 5px rgba(21, 10, 0, 0.52);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.event-details-toggle:hover {
  background: rgba(139, 26, 53, 0.74);
  border-color: rgba(255, 229, 161, 0.78);
}
.event-details-toggle:active {
  transform: translateY(1px);
}

.event-details {
  width: min(100%, 255px);
  margin: 6px auto 0;
  padding: 9px 10px;
  border: 1px solid rgba(255, 229, 161, 0.34);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 248, 224, 0.16), rgba(72, 31, 5, 0.5)), rgba(33, 15, 2, 0.5);
  backdrop-filter: blur(3px);
  color: #fff9ea;
}
.event-details div + div {
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px solid rgba(255, 229, 161, 0.22);
}
.event-details dt {
  margin-bottom: 2px;
  font-size: 7px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 236, 182, 0.82);
}
.event-details dd {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: 13px;
  line-height: 1.2;
  color: #fff9ea;
}
.event-details a {
  color: #fff2c7;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 236, 182, 0.64);
}

.invite-rsvp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 22px;
  min-height: 42px;
  padding: 13px 28px;
  border: 1px solid rgba(255, 224, 142, 0.9);
  border-radius: 999px;
  background: linear-gradient(180deg, #a52746, var(--maroon));
  color: #fff8ef;
  font-family: "Lato", sans-serif;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 12px 22px rgba(76, 13, 28, 0.22), 0 0 0 6px rgba(196, 154, 60, 0.08);
  transition: transform 0.2s ease, background 0.25s ease;
}
.invite-rsvp-button:hover {
  background: var(--maroon-deep);
  transform: translateY(-1px);
}
.invite-rsvp-button:active {
  transform: translateY(1px);
}

.venue-link {
  color: var(--maroon);
  text-decoration: none;
  border-bottom: 1px solid rgba(139, 26, 53, 0.34);
  transition: border-color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.venue-link:visited {
  color: var(--maroon);
}
.venue-link:hover {
  border-color: var(--maroon);
}

.map-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  vertical-align: middle;
}

@media (max-width: 460px) {
  .invite-panel {
    margin: -14px 10px 22px;
    padding: 18px 16px 22px;
  }
  .invite-panel::before {
    left: 9px;
  }
  .invite-panel::after {
    right: 9px;
  }
  .invite-panel .ornament {
    margin-top: 12px;
    margin-bottom: 12px;
  }
  .invite-panel .ornament::before,
  .invite-panel .ornament::after {
    display: none;
  }
  .tagline-row {
    gap: 7px;
    padding-left: 8px;
    padding-right: 8px;
    margin-bottom: 12px;
  }
  .ganesha-icon {
    width: 34px;
    height: 42px;
  }
  .tagline {
    font-size: 10px;
    letter-spacing: 0.16em;
  }
  .intro-text {
    margin-bottom: 10px;
    font-size: 13px;
    line-height: 1.42;
  }
  .bride-name,
  .groom-name {
    font-size: clamp(42px, 15vw, 58px);
  }
  .parent-line {
    margin-bottom: 8px;
    font-size: 11px;
    line-height: 1.3;
  }
  .with-divider {
    margin: 7px auto;
    gap: 10px;
  }
  .with-word {
    font-size: 10px;
    letter-spacing: 0.16em;
  }
  .invite-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin-top: 12px;
  }
  .invite-detail {
    min-height: 58px;
    padding: 8px 6px;
  }
  .invite-detail span {
    font-size: 7px;
    letter-spacing: 0.14em;
  }
  .invite-detail strong,
  .invite-detail a {
    font-size: 11px;
    line-height: 1.12;
  }
  .invite-detail--wide {
    grid-column: 1/-1;
  }
  .events-section {
    margin-top: 18px;
  }
  .events-kicker {
    font-size: 8px;
    letter-spacing: 0.2em;
  }
  .events-section h2 {
    margin-bottom: 12px;
    font-size: clamp(30px, 10vw, 40px);
  }
  .events-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .event-card {
    min-height: 238px;
  }
  .event-copy {
    padding: 96px 12px 12px;
  }
  .event-copy h3 {
    font-size: 21px;
  }
  .event-copy p:not(.event-label) {
    font-size: 10px;
    line-height: 1.3;
  }
  .invite-rsvp-button {
    width: min(100%, 260px);
    min-height: 40px;
    margin-top: 16px;
    padding: 12px 18px;
    font-size: 9px;
    letter-spacing: 0.2em;
  }
  .map-icon {
    width: 14px;
    height: 14px;
  }
}
@media (max-width: 350px) {
  .invite-detail-grid {
    grid-template-columns: 1fr;
  }
}
.card {
  position: relative;
  margin: 24px clamp(12px, 4vw, 40px);
  background: radial-gradient(circle at 14% 8%, rgba(121, 65, 13, 0.08), transparent 18%), radial-gradient(circle at 86% 62%, rgba(121, 65, 13, 0.07), transparent 16%), repeating-linear-gradient(93deg, rgba(111, 66, 16, 0.035) 0 1px, transparent 1px 15px), linear-gradient(90deg, rgba(111, 62, 10, 0.2), transparent 8% 92%, rgba(111, 62, 10, 0.2)), linear-gradient(180deg, #fff2c8, #f8dda0 48%, #efd083);
  border: 1px solid rgba(135, 78, 14, 0.32);
  border-radius: 8px;
  padding: 34px clamp(24px, 6vw, 54px);
  text-align: left;
  box-shadow: inset 0 0 32px rgba(102, 56, 10, 0.18), inset 0 12px 18px rgba(255, 255, 255, 0.34), inset 0 -14px 22px rgba(102, 56, 10, 0.14), 0 22px 42px rgba(43, 18, 0, 0.26);
  filter: drop-shadow(0 30px 32px rgba(42, 18, 0, 0.18));
}
.card::before, .card::after {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 14px;
  width: clamp(18px, 4vw, 34px);
  border-radius: 999px;
  background: radial-gradient(ellipse at 50% 8%, #fff3ad, transparent 18%), linear-gradient(90deg, #5b3107, #d89b2b 26%, #fff0a7 52%, #b66e17 82%, #4c2704);
  box-shadow: inset 6px 0 10px rgba(255, 239, 143, 0.34), inset -8px 0 12px rgba(45, 19, 0, 0.36), 0 12px 18px rgba(45, 17, 0, 0.24);
  pointer-events: none;
}
.card::before {
  left: clamp(-18px, -2.5vw, -10px);
}
.card::after {
  right: clamp(-18px, -2.5vw, -10px);
}
.card h2 {
  font-family: "Great Vibes", cursive;
  font-size: clamp(42px, 8vw, 64px);
  font-weight: 400;
  margin: 10px 0 14px;
  color: var(--maroon);
  text-align: center;
}
.card .ornament {
  margin: 0 auto 18px;
}

.rsvp-scroll {
  margin-top: 34px;
  margin-bottom: 34px;
  padding: 42px clamp(26px, 6vw, 58px) 38px;
  background: linear-gradient(90deg, rgba(84, 40, 4, 0.28), transparent 7% 93%, rgba(84, 40, 4, 0.28)), radial-gradient(ellipse at 50% -4%, rgba(255, 255, 246, 0.78), transparent 34%), radial-gradient(ellipse at 50% 105%, rgba(104, 54, 6, 0.18), transparent 44%), repeating-linear-gradient(94deg, rgba(104, 60, 9, 0.04) 0 1px, transparent 1px 13px), linear-gradient(180deg, #fff4ca 0%, #f8df9b 48%, #edc775 100%);
  border-left: 0;
  border-right: 0;
  border-radius: 6px;
  box-shadow: inset 0 0 36px rgba(93, 48, 5, 0.2), inset 0 16px 20px rgba(255, 255, 255, 0.32), inset 0 -18px 24px rgba(93, 48, 5, 0.16), 0 26px 50px rgba(42, 18, 0, 0.3);
}
.rsvp-scroll::before, .rsvp-scroll::after {
  top: -18px;
  bottom: -18px;
  width: clamp(28px, 5.4vw, 46px);
  z-index: 2;
  background: radial-gradient(ellipse at 50% 10%, rgba(255, 247, 182, 0.96), transparent 18%), repeating-linear-gradient(0deg, rgba(255, 241, 153, 0.14) 0 10px, transparent 10px 20px), linear-gradient(90deg, #4e2804, #bc7418 18%, #fff1a8 47%, #d29425 72%, #492403);
  box-shadow: inset 8px 0 13px rgba(255, 240, 144, 0.36), inset -11px 0 15px rgba(45, 19, 0, 0.4), 0 16px 22px rgba(45, 17, 0, 0.28), 0 0 0 1px rgba(80, 36, 2, 0.2);
}
.rsvp-scroll::before {
  left: clamp(-22px, -3.2vw, -12px);
}
.rsvp-scroll::after {
  right: clamp(-22px, -3.2vw, -12px);
}
.rsvp-scroll h2 {
  margin-top: 4px;
  margin-bottom: 10px;
  text-shadow: 0 1px 0 rgba(255, 249, 224, 0.9), 0 8px 20px rgba(91, 34, 1, 0.12);
}
.rsvp-scroll .ornament {
  margin-bottom: 12px;
}

.rsvp-scroll::selection {
  background: rgba(139, 26, 53, 0.16);
}

.rsvp-scroll form {
  position: relative;
  margin-top: 24px;
  padding: 22px clamp(12px, 3vw, 24px) 4px;
  border-top: 1px solid rgba(129, 74, 13, 0.22);
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 255, 244, 0.38), transparent 54%);
}

.rsvp-scroll form::before,
.rsvp-scroll form::after {
  content: "";
  position: absolute;
  left: clamp(6px, 2vw, 18px);
  right: clamp(6px, 2vw, 18px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(129, 74, 13, 0.3), transparent);
}

.rsvp-scroll form::before {
  top: 8px;
}

.rsvp-scroll form::after {
  bottom: 0;
}

.rsvp-scroll .lede {
  width: min(100%, 420px);
  margin-left: auto;
  margin-right: auto;
}

.card > * {
  position: relative;
  z-index: 1;
}

.lede {
  text-align: center;
  color: var(--ink-soft);
  font-size: 13px;
  margin: 0 0 26px;
}
.lede strong {
  color: var(--ink);
  font-weight: 400;
}

.field {
  margin-bottom: 20px;
  border: 0;
  padding: 0;
  min-width: 0;
}

label,
legend {
  display: block;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 7px;
  font-weight: 400;
}

.hint {
  display: inline;
  text-transform: none;
  letter-spacing: 0.04em;
  font-size: 10px;
  opacity: 0.65;
  margin-left: 5px;
  font-style: italic;
}

input[type=text],
input[type=email],
select,
textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(129, 74, 13, 0.34);
  padding: 9px 0 7px;
  font-family: "Playfair Display", serif;
  font-size: 17px;
  color: var(--ink);
  outline: none;
  border-radius: 0;
  transition: border-color 0.2s;
  text-shadow: 0 1px 0 rgba(255, 247, 222, 0.64);
}
input[type=text]:focus,
input[type=email]:focus,
select:focus,
textarea:focus {
  border-bottom-color: var(--maroon);
}

textarea {
  font-family: "Lato", sans-serif;
  font-size: 14px;
  resize: vertical;
  min-height: 58px;
  padding-top: 9px;
}

select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'><path d='M1 1 L6 6 L11 1' fill='none' stroke='%238b1a35' stroke-width='1.4'/></svg>");
  background-repeat: no-repeat;
  background-position: right 4px center;
  background-size: 12px;
  padding-right: 24px;
  cursor: pointer;
}

.radio-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.radio {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 14px;
  border: 1px solid rgba(135, 78, 14, 0.3);
  background: rgba(255, 245, 216, 0.34);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  margin: 0;
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
  color: var(--ink);
  font-family: "Lato", sans-serif;
}
.radio input {
  appearance: none;
  -webkit-appearance: none;
  width: 13px;
  height: 13px;
  border: 1px solid var(--maroon);
  border-radius: 50%;
  margin: 0;
  display: grid;
  place-content: center;
  flex-shrink: 0;
}
.radio input::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--maroon);
  transform: scale(0);
  transition: transform 0.18s ease-out;
}
.radio input:checked::before {
  transform: scale(1);
}
.radio:has(input:checked) {
  background: rgba(139, 26, 53, 0.08);
  border-color: var(--maroon);
}
.radio:hover {
  border-color: var(--maroon);
}

.submit {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  background: linear-gradient(180deg, #a52746, var(--maroon));
  color: #fff8ef;
  border: 1px solid rgba(255, 229, 151, 0.58);
  padding: 13px 30px;
  font-family: "Lato", sans-serif;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.25s, transform 0.2s;
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 8px 16px rgba(76, 13, 28, 0.2), 0 0 0 5px rgba(196, 154, 60, 0.08);
}
.submit:hover {
  background: var(--maroon-deep);
}
.submit:active {
  transform: translateY(1px);
}
.submit:disabled {
  opacity: 0.5;
  cursor: wait;
}
.submit .arrow {
  font-size: 15px;
  transition: transform 0.2s;
}
.submit:hover .arrow {
  transform: translateX(4px);
}

.lookup {
  margin: 7px 0 0;
  font-size: 11px;
  font-style: italic;
  color: var(--gold);
}

.form-error {
  margin-top: 14px;
  padding: 9px 13px;
  background: rgba(140, 42, 26, 0.07);
  border-left: 2px solid var(--error);
  color: var(--error);
  font-size: 13px;
}

@media (max-width: 400px) {
  .card {
    margin-left: 10px;
    margin-right: 10px;
    padding: 24px 18px;
  }
  .card::before, .card::after {
    display: none;
  }
  .rsvp-scroll {
    margin-top: 24px;
    margin-bottom: 28px;
    padding: 26px 18px 26px;
  }
  .rsvp-scroll::before, .rsvp-scroll::after {
    display: block;
    top: -12px;
    bottom: -12px;
    width: 12px;
  }
  .rsvp-scroll::before {
    left: -5px;
  }
  .rsvp-scroll::after {
    right: -5px;
  }
  .rsvp-scroll h2 {
    font-size: clamp(38px, 13vw, 50px);
    margin-bottom: 8px;
  }
  .rsvp-scroll .ornament {
    margin-bottom: 8px;
  }
  .rsvp-scroll form {
    margin-top: 18px;
    padding: 18px 4px 2px;
  }
  .lede {
    margin-bottom: 18px;
    font-size: 12px;
    line-height: 1.45;
  }
  .field {
    margin-bottom: 16px;
  }
  label,
  legend {
    font-size: 9px;
    letter-spacing: 0.16em;
  }
  input[type=text],
  input[type=email],
  select,
  textarea {
    font-size: 16px;
    padding-top: 7px;
  }
  .hint {
    display: block;
    margin: 2px 0 0;
    font-size: 9px;
  }
  .radio {
    min-height: 44px;
    padding: 10px 12px;
    font-size: 12px;
  }
  .submit {
    width: 100%;
    justify-content: center;
    padding: 13px 18px;
    font-size: 9px;
    letter-spacing: 0.22em;
  }
  .radio-row {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 600px) {
  .submit {
    width: auto;
  }
}
.success {
  text-align: center;
  padding: 44px 24px;
}

.success-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 12px;
}

.success h2 {
  font-family: "Great Vibes", cursive;
  font-size: 48px;
  color: var(--maroon);
  margin: 0 0 8px;
}

.link-btn {
  background: transparent;
  border: 0;
  color: var(--maroon);
  font-family: "Lato", sans-serif;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  border-bottom: 1px solid currentColor;
  padding: 0 0 2px;
  margin-top: 18px;
}
.link-btn:hover {
  color: var(--maroon-deep);
}

.footer {
  text-align: center;
  padding: 16px 24px 20px;
  color: var(--ink-soft);
  font-size: 12px;
  letter-spacing: 0.07em;
  background: rgba(253, 246, 224, 0.9);
  margin: 0 clamp(12px, 4vw, 40px);
  border-radius: 2px;
}

.footer-names {
  font-family: "Great Vibes", cursive;
  font-size: clamp(22px, 5vw, 28px);
  color: var(--maroon);
  margin: 3px 0 0;
}

/*# sourceMappingURL=styles.css.map */
