:root {
  --ivory: #f7f2e8;
  --cream: #efe4d2;
  --linen: #fbf8f0;
  --sage: #3f5140;
  --sage-deep: #26362a;
  --moss: #6b755b;
  --gold: #b4965a;
  --rose: #e8c7bd;
  --ink: #243127;
  --shadow: 0 24px 70px rgba(38, 54, 42, 0.16);
  color-scheme: light;
}

@font-face {
  font-family: "Symphonie Calligraphy";
  src: url("./assets/fonts/SymphonieCalligraphyDEMO-Regular.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  line-height: 1.5;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(180, 150, 90, 0.85);
  outline-offset: 4px;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.16;
  background-image: radial-gradient(circle at 20% 10%, rgba(63, 81, 64, 0.18), transparent 18%),
    radial-gradient(circle at 80% 30%, rgba(180, 150, 90, 0.16), transparent 16%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0));
  mix-blend-mode: multiply;
}

.heart-field {
  position: fixed;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  overflow: hidden;
  contain: layout paint;
}

.heart {
  position: absolute;
  display: block;
  width: var(--heart-size, 1rem);
  height: var(--heart-size, 1rem);
  background: var(--heart-color, rgba(232, 199, 189, 0.82));
  box-shadow: 0 0 18px rgba(255, 250, 240, 0.24);
  opacity: var(--heart-opacity, 0.58);
  transform: rotate(45deg) scale(var(--heart-scale, 1));
  transform-origin: center;
  will-change: transform, opacity;
}

.heart::before,
.heart::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: inherit;
}

.heart::before {
  left: -50%;
  top: 0;
}

.heart::after {
  left: 0;
  top: -50%;
}

.floating-heart {
  left: var(--heart-x, 50%);
  bottom: -4rem;
  animation: heartFloat var(--heart-duration, 18s) linear infinite;
  animation-delay: var(--heart-delay, 0s);
}

.heart-burst {
  left: var(--burst-x, 50%);
  top: var(--burst-y, 50%);
  z-index: 1;
  opacity: 0;
  animation: heartBurst 1450ms cubic-bezier(0.14, 0.72, 0.2, 1) forwards;
}

.topbar {
  position: fixed;
  top: max(1rem, env(safe-area-inset-top));
  right: clamp(1rem, 4vw, 2.2rem);
  z-index: 90;
  color: var(--linen);
  pointer-events: none;
}

.topbar.scrolled {
  color: var(--sage-deep);
}

.audio-toggle {
  position: relative;
  width: 3.5rem;
  height: 3.5rem;
  border: 1px solid rgba(255, 250, 240, 0.72);
  border-radius: 999px;
  padding: 0;
  background: rgba(38, 54, 42, 0.26);
  backdrop-filter: blur(12px);
  color: var(--linen);
  line-height: 1;
  display: grid;
  place-items: center;
  box-shadow: 0 14px 36px rgba(11, 22, 15, 0.2);
  pointer-events: auto;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease,
    box-shadow 180ms ease;
}

.audio-toggle::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 0.15rem;
  border-top: 0.52rem solid transparent;
  border-bottom: 0.52rem solid transparent;
  border-left: 0.82rem solid currentColor;
}

.audio-toggle[aria-pressed="true"]::before {
  width: 0.84rem;
  height: 1rem;
  margin-left: 0;
  border: 0;
  background: linear-gradient(
    90deg,
    currentColor 0 0.28rem,
    transparent 0.28rem 0.56rem,
    currentColor 0.56rem 0.84rem
  );
}

.topbar.scrolled .audio-toggle {
  border-color: rgba(38, 54, 42, 0.34);
  background: rgba(247, 242, 232, 0.84);
  color: var(--sage-deep);
  box-shadow: 0 14px 36px rgba(38, 54, 42, 0.14);
}

.section {
  position: relative;
  padding: clamp(5rem, 10vw, 8rem) clamp(1.25rem, 5vw, 4rem);
}

.hero {
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--linen);
  text-align: center;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  --hero-scroll: 0px;
  transform: scale(1.04) translate3d(0, var(--hero-scroll), 0);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero-overlay {
  background:
    linear-gradient(180deg, rgba(20, 32, 24, 0.5), rgba(20, 32, 24, 0.24) 44%, rgba(20, 32, 24, 0.64)),
    radial-gradient(circle at 50% 42%, rgba(255, 247, 229, 0.18), transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  padding-inline: 1rem;
  margin-top: clamp(-4.5rem, -7vh, -2.5rem);
  animation: heroReveal 620ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--gold);
  font-family: Optima, Candara, "Segoe UI", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.hero .eyebrow,
.hero-date span {
  color: rgba(255, 250, 240, 0.82);
}

.hero .eyebrow {
  font-size: 13.32px;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 400;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(4.5rem, 17vw, 11rem);
  display: grid;
  gap: 0.28em;
  line-height: 1;
  text-shadow: 0 20px 70px rgba(0, 0, 0, 0.34);
}

h1 span {
  display: block;
  font-family: "Symphonie Calligraphy", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  line-height: 0.86;
}

h1 span:not(.amp) {
  font-size: 1em;
}

h1 .amp {
  color: rgba(255, 250, 240, 0.82);
  font-size: 0.5em;
  line-height: 1;
}

h2 {
  font-size: clamp(3rem, 8vw, 6.7rem);
  line-height: 0.95;
  color: var(--sage-deep);
}

h3 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}

.hero-subtitle {
  margin: 1.5rem auto 0;
  max-width: 35rem;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
}

.hero-subtitle span {
  display: block;
}

.hero-subtitle span:first-child {
  margin-bottom: 0.25rem;
}

.hero-subtitle span:last-child {
  font-size: clamp(1.75rem, 4.2vw, 2.7rem);
  line-height: 1.12;
}

.hero-date {
  font-family: Optima, Candara, "Segoe UI", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.22em;
}

.scratch-card {
  position: relative;
  isolation: isolate;
  width: min(31rem, calc(100% - 2rem));
  min-height: 8.8rem;
  display: grid;
  place-items: center;
  margin: 2.5rem auto 0;
  padding: 1.15rem 1rem;
  border: 1px solid rgba(255, 250, 240, 0.36);
  background: rgba(20, 32, 24, 0.22);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  cursor: crosshair;
  touch-action: none;
  backdrop-filter: blur(12px);
  animation: dateFloatIn 760ms ease 420ms both;
  --spotlight-x: 50%;
  --spotlight-y: 50%;
}

.scratch-card:focus-visible {
  outline: 2px solid rgba(255, 250, 240, 0.9);
  outline-offset: 5px;
}

.scratch-card::before,
.scratch-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.scratch-card::before {
  z-index: 1;
  background:
    linear-gradient(120deg, transparent 24%, rgba(255, 255, 255, 0.34), transparent 48%),
    radial-gradient(circle at 18% 26%, rgba(255, 250, 240, 0.2), transparent 18%),
    radial-gradient(circle at 78% 72%, rgba(180, 150, 90, 0.22), transparent 22%);
  mix-blend-mode: screen;
  transform: translateX(-110%);
  animation: dateSheen 2.8s ease-in-out 1.2s infinite;
}

.scratch-card::after {
  z-index: 4;
  border: 1px solid rgba(255, 250, 240, 0.28);
  opacity: 1;
  transition: opacity 520ms ease;
}

.scratch-card.is-revealed {
  cursor: default;
}

.scratch-card.is-revealed::before,
.scratch-card.is-revealed::after {
  opacity: 0;
}

.scratch-date-content {
  display: grid;
  gap: 0.55rem;
  width: 100%;
  transform: scale(0.98);
  opacity: 0.82;
  transition: opacity 520ms ease, transform 520ms ease, filter 520ms ease;
  filter: saturate(0.9);
}

.scratch-card.is-revealed .scratch-date-content {
  opacity: 1;
  transform: scale(1);
  filter: saturate(1.1);
}

.scratch-canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  opacity: 1;
  transition: opacity 600ms ease, transform 600ms ease;
}

.scratch-card.is-revealed .scratch-canvas {
  opacity: 0;
  transform: scale(1.025);
  pointer-events: none;
}

.scratch-hint {
  position: absolute;
  inset: auto 1rem 0.85rem;
  z-index: 3;
  color: rgba(38, 54, 42, 0.9);
  font-size: clamp(1.05rem, 2.8vw, 1.45rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: opacity 280ms ease, transform 280ms ease;
  animation: scratchHintPulse 1.35s ease-in-out infinite;
  pointer-events: none;
}

.scratch-card.has-scratched .scratch-hint,
.scratch-card.is-scratching .scratch-hint,
.scratch-card.is-revealed .scratch-hint {
  opacity: 0;
  transform: translateY(0.5rem);
  animation: none;
}

.hero-date strong {
  font-size: clamp(1.25rem, 3vw, 2rem);
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-transform: none;
}

.scratch-date-content span {
  font-size: 24.35px;
  letter-spacing: 0.28em;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.2rem;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.85rem 1.4rem;
  font-family: Optima, Candara, "Segoe UI", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(38, 54, 42, 0.12);
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease,
    box-shadow 180ms ease;
  will-change: transform;
}

.button::after {
  content: "";
  position: absolute;
  inset: -30% auto -30% -45%;
  width: 38%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.58), transparent);
  transform: skewX(-18deg) translateX(-160%);
  transition: transform 700ms ease;
  pointer-events: none;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(38, 54, 42, 0.18);
}

.button:hover::after {
  transform: skewX(-18deg) translateX(460%);
}

.button.primary {
  background: var(--sage-deep);
  color: var(--linen);
  border-color: var(--sage-deep);
}

.hero .button.primary {
  background: var(--linen);
  color: var(--sage-deep);
  border-color: var(--linen);
}

.button.ghost {
  border-color: rgba(255, 250, 240, 0.72);
  color: var(--linen);
}

.button.ghost.dark {
  border-color: rgba(38, 54, 42, 0.35);
  color: var(--sage-deep);
}

.button.full {
  width: 100%;
}

.countdown {
  text-align: center;
  background: var(--sage-deep);
  color: var(--linen);
}

.countdown .eyebrow {
  font-size: clamp(1.2rem, 4vw, 2.1rem);
  letter-spacing: 0.38em;
  margin-bottom: 1.4rem;
}

.countdown-mala {
  position: relative;
  width: min(15.4rem, 52vw);
  margin: -0.15rem auto 1.25rem;
  filter: drop-shadow(0 1.45rem 2.4rem rgba(11, 22, 15, 0.38));
  animation: malaFloat 5.8s ease-in-out infinite;
  will-change: transform, filter;
}

.countdown-mala::before {
  content: "";
  position: absolute;
  inset: 18% 7% 12%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(180, 150, 90, 0.34), transparent 68%);
  opacity: 0.78;
  filter: blur(1.25rem);
  animation: malaGlow 5.8s ease-in-out infinite;
}

.countdown-mala img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
}

.countdown h2 {
  color: var(--linen);
  display: grid;
  gap: 0.35rem;
}

.countdown h2 span {
  color: var(--gold);
  font-family: Optima, Candara, "Segoe UI", sans-serif;
  font-size: clamp(0.8rem, 2vw, 1.15rem);
  letter-spacing: 0.28em;
  line-height: 1;
  text-transform: uppercase;
}

.countdown h2 strong {
  display: block;
  color: var(--linen);
  font-size: clamp(2.2rem, 6vw, 5.8rem);
  font-weight: 400;
  line-height: 0.95;
  white-space: nowrap;
  transition: color 260ms ease, text-shadow 260ms ease;
}

[data-scramble-date].is-scrambling {
  color: rgba(255, 250, 240, 0.82);
  text-shadow: 0 0 18px rgba(180, 150, 90, 0.22);
}

.countdown-grid.is-scrambling strong {
  color: rgba(255, 250, 240, 0.82);
  text-shadow: 0 0 16px rgba(180, 150, 90, 0.2);
}

.countdown-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.65rem, 2vw, 1.4rem);
  width: min(980px, 100%);
  margin: 3.1rem auto 0;
}

.countdown-grid div {
  width: clamp(6.2rem, 17vw, 11.4rem);
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 1rem 0.65rem;
  border: 1px solid rgba(255, 250, 240, 0.24);
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 22%, rgba(255, 250, 240, 0.16), transparent 42%),
    rgba(255, 250, 240, 0.055);
  box-shadow:
    inset 0 0 0 1px rgba(255, 250, 240, 0.08),
    0 18px 45px rgba(11, 22, 15, 0.18);
  transition: background 220ms ease, border-color 220ms ease, transform 220ms ease;
}

.countdown-grid div:hover {
  border-color: rgba(180, 150, 90, 0.65);
  background:
    radial-gradient(circle at 50% 22%, rgba(180, 150, 90, 0.22), transparent 44%),
    rgba(255, 250, 240, 0.075);
  transform: translateY(-0.18rem);
}

.countdown-grid strong {
  font-size: clamp(2.25rem, 5.2vw, 4.9rem);
  line-height: 0.9;
  font-weight: 400;
}

.countdown-grid span {
  font-family: Optima, Candara, "Segoe UI", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.rsvp p {
  color: rgba(36, 49, 39, 0.72);
}

.rsvp {
  background:
    linear-gradient(180deg, rgba(247, 242, 232, 0.2), rgba(247, 242, 232, 0.95)),
    url("https://images.unsplash.com/photo-1513278974582-3e1b4a4fa21e?auto=format&fit=crop&w=1700&q=80") center/cover;
}

.rsvp-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  width: min(1040px, 100%);
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3rem);
  background: rgba(251, 248, 240, 0.9);
  border: 1px solid rgba(63, 81, 64, 0.18);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  overflow: hidden;
  --spotlight-x: 50%;
  --spotlight-y: 50%;
}

.rsvp-card::before,
.scratch-card::before {
  background:
    radial-gradient(circle at var(--spotlight-x) var(--spotlight-y), rgba(255, 250, 240, 0.28), transparent 22rem),
    linear-gradient(120deg, transparent 24%, rgba(255, 255, 255, 0.34), transparent 48%),
    radial-gradient(circle at 18% 26%, rgba(255, 250, 240, 0.2), transparent 18%),
    radial-gradient(circle at 78% 72%, rgba(180, 150, 90, 0.22), transparent 22%);
}

.rsvp-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.rsvp-card:hover::before {
  opacity: 1;
}

form {
  display: grid;
  gap: 1rem;
}

label {
  display: grid;
  gap: 0.45rem;
  color: rgba(36, 49, 39, 0.82);
  font-family: Optima, Candara, "Segoe UI", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(63, 81, 64, 0.2);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
  padding: 0.9rem 0.95rem;
  outline: none;
  letter-spacing: 0;
  text-transform: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(63, 81, 64, 0.1);
}

textarea {
  resize: vertical;
}

.form-status {
  min-height: 1.35rem;
  margin: 0;
  color: rgba(36, 49, 39, 0.72);
  font-family: Optima, Candara, "Segoe UI", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.confirmation {
  grid-column: 1 / -1;
  margin-top: 1rem;
  padding: 1.4rem;
  border: 1px solid rgba(63, 81, 64, 0.18);
  background: var(--ivory);
  text-align: center;
  animation: dialogBloom 520ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.confirmation h3 {
  margin-bottom: 0.6rem;
}

.footer {
  padding: 2rem 1.25rem;
  background: var(--sage-deep);
  color: rgba(255, 250, 240, 0.76);
  text-align: center;
  font-size: 0.92rem;
}

.reveal {
  opacity: 0;
  transform: translate3d(0, 1.4rem, 0) scale(0.985);
  transition: opacity 760ms ease, transform 760ms cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

@keyframes heroDrift {
  from {
    transform: scale(1.04) translate3d(-0.7rem, calc(var(--hero-scroll) - 0.4rem), 0);
  }
  to {
    transform: scale(1.09) translate3d(0.7rem, calc(var(--hero-scroll) + 0.4rem), 0);
  }
}

@keyframes heroReveal {
  from {
    opacity: 0;
    transform: translate3d(0, 1.2rem, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes dateFloatIn {
  from {
    transform: translate3d(0, 1rem, 0) scale(0.98);
  }
  to {
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes dialogBloom {
  from {
    opacity: 0;
    transform: translate3d(0, 0.8rem, 0) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes dateSheen {
  0%,
  18% {
    transform: translateX(-110%);
  }
  46%,
  100% {
    transform: translateX(110%);
  }
}

@keyframes scratchHintPulse {
  0%,
  100% {
    opacity: 0.74;
    transform: translateY(0) scale(1);
  }
  50% {
    opacity: 1;
    transform: translateY(-0.16rem) scale(1.06);
  }
}

@keyframes malaFloat {
  0%,
  100% {
    filter: drop-shadow(0 1.45rem 2.4rem rgba(11, 22, 15, 0.38));
    transform: translate3d(0, 0, 0) rotate(-0.8deg) scale(1);
  }
  50% {
    filter: drop-shadow(0 1.8rem 2.8rem rgba(11, 22, 15, 0.46));
    transform: translate3d(0, -0.45rem, 0) rotate(0.8deg) scale(1.015);
  }
}

@keyframes malaGlow {
  0%,
  100% {
    opacity: 0.58;
    transform: scale(0.95);
  }
  50% {
    opacity: 0.86;
    transform: scale(1.06);
  }
}

@keyframes heartFloat {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(45deg) scale(var(--heart-scale, 1));
  }
  9%,
  76% {
    opacity: var(--heart-opacity, 0.58);
  }
  50% {
    transform: translate3d(var(--heart-drift, 2rem), -54vh, 0)
      rotate(calc(45deg + var(--heart-spin, 90deg))) scale(var(--heart-scale, 1));
  }
  100% {
    opacity: 0;
    transform: translate3d(calc(var(--heart-drift, 2rem) * -0.4), -112vh, 0)
      rotate(calc(45deg + var(--heart-spin, 90deg))) scale(var(--heart-scale, 1));
  }
}

@keyframes heartBurst {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(45deg) scale(0.35);
  }
  12% {
    opacity: 0.96;
  }
  68% {
    opacity: 0.86;
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--burst-dx, 0px)), calc(-50% + var(--burst-dy, -10rem)))
      rotate(calc(45deg + var(--burst-spin, 160deg))) scale(var(--burst-scale, 1.1));
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }

  .heart-field {
    display: none;
  }

  .countdown-mala,
  .countdown-mala::before {
    animation: none;
  }
}

@media (max-width: 820px) {
  .audio-toggle {
    width: 3.25rem;
    height: 3.25rem;
    font-size: 1rem;
  }

  .rsvp-card {
    grid-template-columns: 1fr;
  }

  .countdown h2 strong {
    font-size: clamp(2rem, 7vw, 3.4rem);
  }
}

@media (max-width: 520px) {
  .section {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .countdown-grid strong {
    font-size: clamp(1.55rem, 8vw, 2.15rem);
  }

  .countdown {
    padding-top: 4.4rem;
    padding-bottom: 4.4rem;
  }

  .countdown .eyebrow {
    font-size: clamp(1.15rem, 6vw, 1.85rem);
    letter-spacing: 0.24em;
    margin-bottom: 1rem;
  }

  .countdown-mala {
    width: min(13.9rem, 58vw);
    margin-bottom: 1rem;
  }

  .countdown h2 {
    gap: 0.45rem;
  }

  .countdown h2 span {
    font-size: 0.72rem;
    letter-spacing: 0.22em;
  }

  .countdown h2 strong {
    font-size: clamp(1.75rem, 7.2vw, 2.15rem);
  }

  .countdown-grid {
    gap: 0.38rem;
    width: 100%;
    margin-top: 1.7rem;
  }

  .countdown-grid div {
    width: calc((100vw - 3.4rem) / 4);
    min-width: 0;
    padding: 0.7rem 0.2rem;
  }

  .countdown-grid span {
    font-size: 0.42rem;
    letter-spacing: 0.1em;
  }

  h1 {
    font-size: clamp(3.4rem, 15vw, 4.2rem);
    gap: 0.3em;
  }

  .hero-subtitle {
    max-width: 18rem;
    font-size: 1.02rem;
  }

  .hero-subtitle span:last-child {
    font-size: 1.7rem;
  }

  .hero .eyebrow {
    font-size: 16.32px;
    letter-spacing: 0.18em;
  }

  .hero-date {
    letter-spacing: 0.18em;
  }

  .scratch-card {
    width: min(31rem, 80vw);
    min-height: 8.3rem;
    padding-inline: 0.8rem;
  }

  .hero-date strong {
    font-size: clamp(1.18rem, 5vw, 1.55rem);
    letter-spacing: 0.03em;
  }

  .scratch-date-content span {
    font-size: 24.35px;
    letter-spacing: 0.2em;
  }

  .scratch-hint {
    bottom: 0.78rem;
    font-size: 1.02rem;
    letter-spacing: 0.13em;
  }
}
