:root {
  --ink: #8c5657;
  --muted: #9b7f7d;
  --paper: #fffefa;
  --wash: #fbf5f1;
  --gold: #cfb45b;
  --green: #12965f;
  --rose: #b06a6d;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.9), transparent 32rem),
    linear-gradient(180deg, #f9eeee 0%, #fffdf8 48%, #fbf8f2 100%);
  font-family: Inter, system-ui, sans-serif;
  overflow-x: hidden;
}

.invite-shell {
  min-height: 100vh;
  min-height: 100dvh;
}

.envelope-screen {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 18% 24%, rgba(255, 255, 255, 0.1), transparent 10rem),
    radial-gradient(circle at 78% 76%, rgba(0, 0, 0, 0.28), transparent 16rem),
    linear-gradient(135deg, #6b252b, #7f3338 48%, #532023);
  transition: opacity 1.1s ease, visibility 1.1s ease;
}

.envelope-screen::before,
.envelope-screen::after,
.envelope-button::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
}

.envelope-screen::before {
  opacity: 0.32;
  background-image:
    repeating-linear-gradient(35deg, rgba(255,255,255,0.08) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(115deg, rgba(0,0,0,0.13) 0 1px, transparent 1px 9px);
  mix-blend-mode: soft-light;
}

.envelope-screen::after {
  background:
    linear-gradient(32deg, transparent 0 49.8%, rgba(16, 4, 5, 0.42) 50%, transparent 50.8%),
    linear-gradient(148deg, transparent 0 49.8%, rgba(16, 4, 5, 0.42) 50%, transparent 50.8%);
}

.envelope-screen.is-open {
  opacity: 0;
  visibility: hidden;
}

.sparkle-field {
  position: absolute;
  inset: 0;
  z-index: 4;
  overflow: hidden;
  pointer-events: none;
}

.spark {
  position: absolute;
  left: var(--spark-x);
  top: var(--spark-y);
  width: var(--spark-size);
  height: var(--spark-size);
  border-radius: 50%;
  background: radial-gradient(circle, #fffdf2 0 24%, #ffe8a6 38%, rgba(255, 232, 166, 0) 72%);
  box-shadow:
    0 0 0.45rem rgba(255, 247, 208, 0.9),
    0 0 1rem rgba(207, 180, 91, 0.45);
  opacity: 0;
  animation: blow-spark var(--spark-duration) ease-in-out var(--spark-delay) infinite;
}

.spark::before,
.spark::after {
  position: absolute;
  inset: 50% auto auto 50%;
  width: calc(var(--spark-size) * 2.6);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 248, 221, 0.9), transparent);
  content: "";
  transform: translate(-50%, -50%) rotate(var(--spark-rotate));
}

.spark::after {
  transform: translate(-50%, -50%) rotate(calc(var(--spark-rotate) + 90deg));
}

.spark-burst {
  position: absolute;
  left: 50%;
  top: 22%;
  z-index: 5;
  width: var(--burst-size);
  height: var(--burst-size);
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0 20%, #f7d47e 42%, transparent 72%);
  box-shadow: 0 0 1.2rem rgba(255, 235, 170, 0.8);
  pointer-events: none;
  animation: spark-burst 0.9s ease-out forwards;
}

.envelope-button {
  position: relative;
  width: min(100vw, 1280px);
  height: min(100vh, 720px);
  height: min(100dvh, 720px);
  border: 0;
  color: #fffdf6;
  background: transparent;
  cursor: pointer;
  isolation: isolate;
}

.envelope-button span:first-child {
  position: absolute;
  z-index: 4;
  top: clamp(2rem, 6vw, 3rem);
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  font-family: "Great Vibes", cursive;
  font-size: clamp(3.2rem, 6.6vw, 5.7rem);
  font-weight: 400;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

.envelope-button::before {
  z-index: 1;
  background:
    radial-gradient(circle at 25% 40%, rgba(255,255,255,0.16), transparent 8rem),
    radial-gradient(circle at 75% 60%, rgba(0,0,0,0.22), transparent 12rem);
}

.envelope-flap {
  position: absolute;
  z-index: 2;
  top: -18vh;
  left: 50%;
  width: min(72rem, 90vw);
  height: min(38rem, 76vh);
  border-radius: 0 0 42% 42%;
  background:
    linear-gradient(160deg, rgba(255,255,255,0.12), transparent 30%),
    linear-gradient(135deg, #61262a, #8d3f43 58%, #431a1d);
  box-shadow: 1rem 1rem 2rem rgba(0, 0, 0, 0.5);
  transform: translateX(-50%) rotate(0deg);
  transform-origin: top center;
  transition: transform 1.3s cubic-bezier(.18,.76,.28,1), opacity 0.8s ease;
}

.envelope-screen.revealing .envelope-flap {
  opacity: 0.5;
  transform: translateX(-50%) rotateX(68deg) translateY(-18vh);
}

.envelope-pocket {
  position: absolute;
  z-index: 3;
  inset: auto 0 0;
  height: 56vh;
  background:
    linear-gradient(28deg, #4e1e21 0 49%, transparent 49.3%),
    linear-gradient(152deg, #6f2d31 0 49%, transparent 49.3%),
    linear-gradient(180deg, #82363a, #5d2428);
  box-shadow: inset 0 1.4rem 2.5rem rgba(0, 0, 0, 0.28);
}

.wax-seal {
  position: absolute;
  z-index: 6;
  left: 50%;
  top: 50%;
  width: clamp(5.2rem, 9vw, 7.1rem);
  height: clamp(5.2rem, 9vw, 7.1rem);
  display: grid;
  place-items: center;
  color: #f8dc82;
  border-radius: 48% 52% 46% 54% / 53% 45% 55% 47%;
  background:
    radial-gradient(circle at 33% 28%, rgba(255, 183, 165, 0.72), transparent 0.9rem),
    radial-gradient(circle at 70% 75%, rgba(82, 16, 22, 0.45), transparent 1.2rem),
    radial-gradient(circle at 50% 52%, #a8454c 0 34%, #8c2f37 58%, #641d25 100%);
  box-shadow:
    inset 0.25rem 0.3rem 0.45rem rgba(255, 205, 190, 0.34),
    inset -0.35rem -0.45rem 0.7rem rgba(57, 8, 13, 0.45),
    0 0.7rem 1.35rem rgba(20, 4, 6, 0.42);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.25rem, 2.4vw, 1.85rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-shadow:
    0 1px 0 rgba(75, 28, 13, 0.75),
    0 0 0.55rem rgba(255, 231, 155, 0.62);
  transform: translate(-50%, -50%) rotate(-6deg);
  transition: opacity 0.75s ease, transform 1.1s cubic-bezier(.18,.76,.28,1);
}

.wax-seal::before,
.wax-seal::after {
  position: absolute;
  content: "";
  border-radius: 50%;
  background: #7b2530;
  box-shadow:
    1.9rem -1.6rem 0 -0.45rem #96343d,
    -1.8rem 1.5rem 0 -0.5rem #76242c,
    1.8rem 1.7rem 0 -0.62rem #b04a51,
    -2rem -1.2rem 0 -0.65rem #8e2e38;
}

.wax-seal::before {
  inset: -0.28rem;
  z-index: -1;
}

.wax-seal::after {
  inset: 0.8rem;
  background: transparent;
  border: 1px solid rgba(248, 220, 130, 0.72);
  box-shadow:
    inset 0 0 0 1px rgba(80, 18, 23, 0.32),
    0 0 0.5rem rgba(248, 220, 130, 0.18);
}

.envelope-screen.revealing .wax-seal {
  opacity: 0;
  transform: translate(-50%, -70%) rotate(8deg) scale(0.72);
}

.invitation {
  position: relative;
  min-height: 100vh;
  padding: clamp(2.6rem, 7vw, 4.8rem) clamp(1.1rem, 4vw, 4rem) 7rem;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.94), transparent 24rem),
    radial-gradient(circle at 76% 12%, rgba(246, 232, 226, 0.75), transparent 21rem);
  overflow: hidden;
}

.paper-card {
  position: relative;
  z-index: 2;
  width: min(38.8rem, calc(100vw - 2.2rem));
  margin: 0 auto;
  padding: clamp(1.5rem, 4.5vw, 3.1rem) clamp(1.3rem, 5vw, 3.4rem) clamp(1.4rem, 4vw, 2rem);
  text-align: center;
  background: rgba(255, 255, 250, 0.9);
  border: 1px solid rgba(212, 182, 134, 0.48);
  border-radius: 2rem;
  box-shadow: 0 1.1rem 2.5rem rgba(125, 76, 73, 0.12), inset 0 0 0 0.35rem rgba(255, 250, 244, 0.78);
  backdrop-filter: blur(6px);
}

.hero-card {
  min-height: min(40rem, calc(100vh - 2.5rem));
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ganesha-mark {
  width: 4.4rem;
  height: 4.4rem;
  margin: 0 auto 1.2rem;
  display: grid;
  place-items: center;
  color: #2e2928;
  border: 1px solid rgba(46, 41, 40, 0.2);
  border-radius: 50%;
  font-family: "Cormorant Garamond", serif;
  font-size: 2.2rem;
  line-height: 1;
}

.sanskrit,
.intro,
.parents,
.date-help {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: clamp(0.95rem, 1.7vw, 1.13rem);
  line-height: 1.55;
  color: #8f7474;
}

.sanskrit {
  margin: 0 auto 1.35rem;
  max-width: 29rem;
}

.intro {
  margin: 0 auto 2.15rem;
  max-width: 30rem;
}

h1,
h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: 0;
}

h1 {
  display: grid;
  gap: clamp(1.35rem, 3vw, 2rem);
  font-size: clamp(4.5rem, 9vw, 6.1rem);
}

h1 small {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--gold);
  font-size: 1.75rem;
  line-height: 1;
}

h1 small::before,
h1 small::after {
  width: min(5rem, 18vw);
  height: 1px;
  background: rgba(207, 180, 91, 0.35);
  content: "";
}

.parents {
  margin: 2.2rem 0 0;
}

.corner {
  position: fixed;
  z-index: 3;
  width: 3.4rem;
  height: 3.4rem;
  pointer-events: none;
  border-color: rgba(207, 180, 91, 0.72);
}

.corner-tl {
  top: 1.25rem;
  left: 1.25rem;
  border-top: 2px solid;
  border-left: 2px solid;
}

.corner-tr {
  top: 1.25rem;
  right: 1.25rem;
  border-top: 2px solid;
  border-right: 2px solid;
}

.corner-bl {
  bottom: 1.25rem;
  left: 1.25rem;
  border-bottom: 2px solid;
  border-left: 2px solid;
}

.corner-br {
  right: 1.25rem;
  bottom: 1.25rem;
  border-right: 2px solid;
  border-bottom: 2px solid;
}

.scroll-cue {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  margin: 1.35rem auto 7rem;
  width: fit-content;
  color: #b17b7d;
  font-family: "Cormorant Garamond", serif;
  font-size: 0.8rem;
  letter-spacing: 0.36em;
  text-decoration: none;
  text-transform: uppercase;
}

.postal-divider {
  position: relative;
  z-index: 2;
  width: min(34rem, calc(100vw - 2rem));
  margin: clamp(1.5rem, 5vw, 2.6rem) auto clamp(1.6rem, 5vw, 2.9rem);
  display: grid;
  grid-template-columns: auto minmax(3rem, 1fr) auto;
  align-items: center;
  gap: clamp(0.7rem, 2vw, 1.25rem);
  color: rgba(140, 86, 87, 0.74);
}

.stamp-mark {
  position: relative;
  min-width: 5.1rem;
  min-height: 4.1rem;
  display: grid;
  place-items: center;
  padding: 0.55rem;
  border: 1px solid rgba(140, 86, 87, 0.38);
  border-radius: 0.35rem;
  background:
    radial-gradient(circle at 0.28rem 0.28rem, transparent 0 0.16rem, rgba(255, 254, 250, 0.9) 0.18rem),
    linear-gradient(145deg, rgba(255, 254, 250, 0.92), rgba(250, 237, 232, 0.82));
  background-size: 0.58rem 0.58rem, 100% 100%;
  box-shadow: 0 0.6rem 1.3rem rgba(139, 85, 85, 0.09);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-align: center;
}

.stamp-mark::before {
  position: absolute;
  inset: 0.45rem;
  border: 1px dashed rgba(207, 180, 91, 0.68);
  border-radius: 0.2rem;
  content: "";
}

.post-line {
  height: 1px;
  background:
    repeating-linear-gradient(90deg, rgba(207, 180, 91, 0.65) 0 2rem, transparent 2rem 2.45rem);
}

.postmark {
  min-width: max-content;
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.postal-divider-alt {
  margin-top: clamp(2rem, 7vw, 4rem);
}

.scroll-cue b {
  color: var(--ink);
  font-size: 1.45rem;
  font-weight: 400;
  animation: bob 1.5s ease-in-out infinite;
}

.date-section {
  position: relative;
  z-index: 2;
  min-height: 37rem;
  display: grid;
  align-content: start;
  justify-items: center;
  padding-top: 0.5rem;
  text-align: center;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--gold);
  font-size: 0.82rem;
  letter-spacing: 0.56em;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(3.8rem, 8vw, 5.45rem);
}

.date-help {
  margin: 2rem 0 3rem;
}

.scratch-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(8rem, 1fr));
  gap: clamp(1rem, 2.2vw, 1.7rem);
  width: min(30rem, 100%);
}

.countdown {
  width: min(35rem, 100%);
  margin-top: clamp(2.3rem, 5vw, 3.4rem);
  display: grid;
  grid-template-columns: repeat(4, minmax(4.4rem, 1fr));
  gap: 0.7rem;
}

.countdown-item {
  min-height: 5.2rem;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.35rem;
  border: 1px solid rgba(207, 180, 91, 0.34);
  border-radius: 0.6rem;
  background: rgba(255, 254, 250, 0.76);
  box-shadow: 0 0.75rem 1.6rem rgba(139, 85, 85, 0.08);
}

.countdown-item strong {
  color: var(--ink);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.65rem, 3.3vw, 2.4rem);
  line-height: 1;
  font-weight: 600;
}

.countdown-item span {
  color: #a98383;
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.scratch-card {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
}

.scratch-card p {
  margin: 0;
  color: #9d7274;
  font-family: "Cormorant Garamond", serif;
  font-size: 1rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
}

.scratch-card button {
  position: relative;
  width: 100%;
  aspect-ratio: 0.72;
  border: 0;
  border-radius: 0.85rem;
  color: var(--paper);
  background: #fff8f1;
  box-shadow: 0 0.8rem 1.7rem rgba(139, 85, 85, 0.16);
  cursor: pointer;
  overflow: hidden;
  touch-action: none;
}

.scratch-value {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--ink);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  font-weight: 600;
}

.scratch-card[data-value="DECEMBER"] .scratch-value {
  font-size: clamp(0.95rem, 1.8vw, 1.25rem);
}

.scratch-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: opacity 0.45s ease;
}

.scratch-card.revealed .scratch-canvas {
  opacity: 0;
  pointer-events: none;
}

.scratch-note {
  color: #a98383;
  font-family: "Cormorant Garamond", serif;
  font-size: 0.93rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.events-section {
  position: relative;
  z-index: 2;
  width: min(46rem, 100%);
  margin: clamp(3rem, 8vw, 5.5rem) auto 0;
  display: grid;
  justify-items: center;
  text-align: center;
}

.events-section h2 {
  margin-bottom: 1.7rem;
}

.venue-card {
  width: min(38rem, 100%);
  padding: clamp(1.35rem, 4vw, 2rem);
  border: 1px solid rgba(207, 180, 91, 0.38);
  border-radius: 1.2rem;
  background: rgba(255, 254, 250, 0.82);
  box-shadow: 0 1rem 2rem rgba(139, 85, 85, 0.1);
}

.venue-kicker,
.event-date,
.event-place,
.event-more {
  margin: 0;
  color: #a98383;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.venue-card h3 {
  margin: 0.4rem 0 0.8rem;
  color: var(--ink);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 4.4vw, 3rem);
  line-height: 1;
}

.venue-card p:not(.venue-kicker) {
  margin: 0 auto 1.2rem;
  max-width: 28rem;
  color: #8f7474;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.55;
}

.map-link,
.event-details a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.65rem;
  padding: 0 1.2rem;
  color: #fffdf8;
  border-radius: 999px;
  background: linear-gradient(135deg, #8c5657, #b06a6d);
  box-shadow: 0 0.75rem 1.4rem rgba(140, 86, 87, 0.18);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
}

.event-tabs {
  margin: 1.6rem 0 1rem;
  display: inline-grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.35rem;
  padding: 0.35rem;
  border: 1px solid rgba(207, 180, 91, 0.32);
  border-radius: 999px;
  background: rgba(255, 254, 250, 0.72);
}

.event-tab {
  min-width: 6.6rem;
  min-height: 2.45rem;
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  background: transparent;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}

.event-tab.is-active {
  color: #fffdf8;
  background: var(--ink);
}

.event-panel {
  width: min(38rem, 100%);
  display: none;
  gap: 0.9rem;
}

.event-panel.is-active {
  display: grid;
}

.event-card {
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 0.55rem;
  padding: 1.35rem;
  border: 1px solid rgba(207, 180, 91, 0.34);
  border-radius: 1rem;
  color: inherit;
  background: rgba(255, 252, 247, 0.86);
  box-shadow: 0 0.85rem 1.75rem rgba(139, 85, 85, 0.09);
  text-align: center;
}

button.event-card {
  cursor: pointer;
}

.event-card strong {
  color: var(--ink);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.2rem, 5vw, 3.35rem);
  font-weight: 600;
  line-height: 1;
  overflow-wrap: anywhere;
}

.event-details {
  max-height: 0;
  display: grid;
  justify-items: center;
  gap: 0.9rem;
  overflow: hidden;
  color: #8f7474;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 1rem;
  line-height: 1.45;
  transition: max-height 0.45s ease, padding-top 0.45s ease;
}

.event-card.is-open .event-details {
  max-height: 9rem;
  padding-top: 0.5rem;
}

.event-placeholder {
  opacity: 0.72;
}

.petals {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.petal {
  position: absolute;
  top: -3rem;
  width: var(--size);
  height: calc(var(--size) * 0.46);
  border-radius: 80% 0 80% 0;
  background: var(--color);
  opacity: 0.62;
  transform: rotate(var(--spin));
  animation: fall var(--duration) linear var(--delay) infinite;
}

.confetti-layer {
  position: fixed;
  inset: 0;
  z-index: 8;
  overflow: hidden;
  pointer-events: none;
}

.confetti-piece {
  position: absolute;
  top: var(--start-y);
  left: var(--start-x);
  width: var(--w);
  height: var(--h);
  border-radius: 0.18rem;
  background: var(--confetti-color);
  box-shadow: 0 0 0.8rem rgba(255, 255, 255, 0.28);
  animation: popper 1.75s cubic-bezier(.15,.74,.3,1) forwards;
}

@keyframes fall {
  0% {
    translate: 0 -5rem;
    rotate: 0deg;
  }
  100% {
    translate: var(--drift) calc(100vh + 7rem);
    rotate: 360deg;
  }
}

@keyframes bob {
  50% {
    transform: translateY(0.4rem);
  }
}

@keyframes blow-spark {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(0.35) rotate(0deg);
  }
  18% {
    opacity: 1;
  }
  72% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--spark-drift-x), var(--spark-drift-y), 0) scale(1.05) rotate(80deg);
  }
}

@keyframes spark-burst {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) translate(0, 0) scale(0.2);
  }
  16% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) translate(var(--burst-x), var(--burst-y)) scale(1.1);
  }
}

@keyframes sheen {
  0% {
    background-position: 180% 0;
  }
  100% {
    background-position: -80% 0;
  }
}

@keyframes popper {
  0% {
    opacity: 0;
    transform: translate(0, 0) rotate(0deg) scale(0.2);
  }
  12% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(var(--tx), var(--ty)) rotate(var(--rotate)) scale(1);
  }
}

@media (max-width: 760px) {
  body {
    background:
      radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.95), transparent 24rem),
      linear-gradient(180deg, #f9eeee 0%, #fffdf8 46%, #fbf8f2 100%);
  }

  .envelope-button span:first-child {
    top: max(5rem, env(safe-area-inset-top));
    font-size: clamp(3.1rem, 13vw, 4.1rem);
  }

  .wax-seal {
    top: 47%;
    width: clamp(4.6rem, 19vw, 5.4rem);
    height: clamp(4.6rem, 19vw, 5.4rem);
    font-size: 0.82rem;
  }

  .invitation {
    padding: max(1rem, env(safe-area-inset-top)) 1rem 4.5rem;
  }

  .paper-card {
    border-radius: 1.35rem;
    width: min(100%, 23rem);
    padding: 1.35rem 1rem 1.55rem;
  }

  .hero-card {
    min-height: min(38rem, calc(100dvh - 2rem));
  }

  h1 {
    font-size: clamp(3.25rem, 16vw, 4.6rem);
  }

  h2 {
    font-size: clamp(3.1rem, 14vw, 4.25rem);
  }

  .ganesha-mark {
    width: 3.9rem;
    height: 3.9rem;
    margin-bottom: 0.9rem;
  }

  .sanskrit,
  .intro,
  .parents,
  .date-help {
    font-size: 0.98rem;
    line-height: 1.45;
  }

  .scroll-cue {
    max-width: 15rem;
    margin: 1.25rem auto 3.9rem;
    font-size: 0.62rem;
    letter-spacing: 0.28em;
  }

  .postal-divider {
    width: min(21.5rem, 100%);
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
    margin: 1.25rem auto 1.45rem;
  }

  .stamp-mark {
    min-width: 4.4rem;
    min-height: 3.55rem;
    font-size: 0.88rem;
  }

  .postmark {
    grid-column: 1 / -1;
    justify-self: end;
    font-size: 0.56rem;
    letter-spacing: 0.2em;
  }

  .date-section {
    min-height: auto;
    padding-top: 0.5rem;
  }

  .date-help {
    margin: 1.2rem 0 2.2rem;
  }

  .scratch-grid {
    grid-template-columns: 1fr;
    width: min(12.5rem, 64vw);
    gap: 1rem;
  }

  .countdown {
    grid-template-columns: repeat(2, minmax(6rem, 1fr));
    width: min(20rem, 100%);
    margin-top: 2rem;
  }

  .events-section {
    margin-top: 2.4rem;
  }

  .venue-card,
  .event-card {
    border-radius: 0.85rem;
  }

  .venue-card h3 {
    font-size: clamp(2rem, 10vw, 2.65rem);
  }

  .event-tabs {
    position: sticky;
    top: 0.65rem;
    z-index: 6;
    backdrop-filter: blur(8px);
  }

  .event-card {
    padding: 1.15rem 0.9rem;
  }

  .event-card strong {
    font-size: clamp(2rem, 10.5vw, 2.85rem);
  }

  .event-date,
  .event-place,
  .event-more {
    font-size: 0.62rem;
    letter-spacing: 0.18em;
  }

  .corner {
    width: 2.1rem;
    height: 2.1rem;
  }
}

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