:root {
  --cream: #f7efe2;
  --paper: #fff8ea;
  --burgundy: #8b0017;
  --burgundy-dark: #65000f;
  --ink: #2d2825;
  --muted: #6e625c;
  --line: rgba(45, 40, 37, 0.28);
  --white: #fffdf6;
  --shadow: 0 18px 45px rgba(23, 13, 12, 0.22);
  --soft-shadow: 0 12px 28px rgba(40, 20, 15, 0.18);
  --radius: 28px;
  --script: "Caveat", cursive;
  --body: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: #191312;
  font-family: var(--body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::selection {
  color: var(--paper);
  background: var(--burgundy);
}

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

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

a {
  color: inherit;
}

.page-backdrop {
  position: fixed;
  inset: -24px;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(15, 10, 10, 0.86), rgba(15, 10, 10, 0.34) 50%, rgba(15, 10, 10, 0.86)),
    image-set(
      url("assets/optimized/photo4-backdrop-900.webp") type("image/webp"),
      url("assets/photo4.jpg") type("image/jpeg")
    ) center / cover no-repeat;
  filter: grayscale(1) blur(10px);
  transform: scale(1.04);
  opacity: 0.72;
}

.invitation {
  position: relative;
  width: min(100%, 620px);
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 0 0 1px rgba(255, 248, 234, 0.14), 0 24px 80px rgba(0, 0, 0, 0.42);
  isolation: isolate;
}

.invitation::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 12%, rgba(139, 0, 23, 0.06) 0 2px, transparent 2.4px),
    radial-gradient(circle at 78% 34%, rgba(45, 40, 37, 0.05) 0 1.4px, transparent 1.8px),
    linear-gradient(135deg, rgba(255, 255, 255, 0.35), transparent 36%),
    repeating-linear-gradient(0deg, rgba(45, 40, 37, 0.022) 0 1px, transparent 1px 8px);
  background-size: 98px 98px, 74px 74px, 100% 100%, 100% 100%;
  mix-blend-mode: multiply;
}

.section {
  position: relative;
  padding: 74px clamp(22px, 7vw, 58px);
}

.section--paper {
  background:
    radial-gradient(circle at 12% 20%, rgba(139, 0, 23, 0.055), transparent 26%),
    radial-gradient(circle at 88% 70%, rgba(45, 40, 37, 0.045), transparent 22%),
    var(--paper);
}

.section--burgundy {
  color: var(--paper);
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 248, 234, 0.1), transparent 26%),
    radial-gradient(circle at 90% 76%, rgba(255, 248, 234, 0.08), transparent 22%),
    linear-gradient(145deg, var(--burgundy), var(--burgundy-dark));
}

.section--burgundy::before,
.section--burgundy::after {
  content: "";
  position: absolute;
  left: -4%;
  right: -4%;
  height: 30px;
  pointer-events: none;
  background: var(--paper);
  z-index: 1;
}

.section--burgundy::before {
  top: -1px;
  clip-path: polygon(0 0, 100% 0, 100% 62%, 86% 46%, 70% 74%, 55% 50%, 40% 69%, 24% 44%, 10% 58%, 0 39%);
}

.section--burgundy::after {
  bottom: -1px;
  clip-path: polygon(0 40%, 12% 56%, 28% 36%, 42% 64%, 58% 42%, 72% 68%, 88% 48%, 100% 58%, 100% 100%, 0 100%);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
.names,
.brush-note,
.hand-label-m,
.hand-label-w,
.calendar-card__top,
.polaroid figcaption,
.time-big {
  font-family: var(--script);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: 0.01em;
}

h1 {
  max-width: 10ch;
  margin: 0 auto 12px;
  color: var(--burgundy);
  font-size: clamp(4.35rem, 17vw, 7.45rem);
  text-align: center;
}

h2 {
  margin-bottom: 16px;
  color: var(--burgundy);
  font-size: clamp(3.05rem, 13vw, 4.55rem);
  text-align: center;
}

.section--burgundy h2 {
  color: var(--paper);
}

h3 {
  font-size: clamp(1.4rem, 5vw, 2rem);

}

.eyebrow,
.section-kicker {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-align: center;
  text-transform: uppercase;
}

.section--burgundy .eyebrow,
.section--burgundy .section-kicker {
  color: rgba(255, 248, 234, 0.74);
}

.hero {
  min-height: 100svh;
  padding-top: clamp(46px, 11vh, 96px);
  padding-bottom: 38px;
  text-align: center;
}

.names {
  position: relative;
  display: inline-block;
  margin: 0 0 24px;
  color: var(--burgundy);
  font-size: clamp(2.25rem, 10vw, 4.4rem);
}

/* .names::after {
  content: "";
  position: absolute;
  right: -36px;
  bottom: 0.12em;
  width: 28px;
  height: 28px;
  border: 3px solid currentColor;
  border-radius: 60% 60% 0 60%;
  transform: rotate(45deg);
  opacity: 0.9;
} */

.kids-scene {
  position: relative;
  width: min(100%, 430px);
  margin: 0 auto 26px;
  padding: 14px 6px 24px;
}

.polaroid {
  margin: 0;
  padding: 12px 12px 18px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid rgba(45, 40, 37, 0.08);
  border-radius: 6px;
  box-shadow: var(--soft-shadow);
  transform-origin: center;
}

.polaroid picture {
  display: block;
}

.polaroid img {
  width: 100%;
  border-radius: 2px;
  background: #ddd;
  object-fit: cover;
}

.polaroid figcaption {
  margin-top: 12px;
  color: var(--burgundy);
  font-size: clamp(1.55rem, 7vw, 2.35rem);
  text-align: center;
}

.polaroid--hero {
  position: relative;
  z-index: 2;
  padding: 14px 14px 20px;
  transform: rotate(-2deg);
}

.polaroid--hero img {
  aspect-ratio: 1.08 / 1;
}

.polaroid--hero::after {
  content: "";
  position: absolute;
  inset: 10px;
  z-index: 1;
  pointer-events: none;
  border: 4px solid rgba(139, 0, 23, 0.88);
  border-radius: 12px;
}

.hand-label-m {
  position: absolute;
  z-index: 4;
  color: rgba(255, 248, 234, 0.9);
  font-size: clamp(1.75rem, 7.2vw, 2.75rem);
  text-shadow: 0 3px 0 var(--burgundy);
  pointer-events: none;
}
.hand-label-w {
  position: absolute;
  z-index: 4;
  color: var(--burgundy);
  font-size: clamp(1.75rem, 7.2vw, 2.75rem);
  text-shadow: 0 3px 0 rgba(255, 248, 234, 0.9);
  pointer-events: none;
}

.hand-label--groom {
  left: 7%;
  top: 65%;
  transform: rotate(-13deg);
}

.hand-label--bride {
  right: 10%;
  top: 57%;
  transform: rotate(13deg);
}

.small-heart {
  position: absolute;
  z-index: 5;
  color: var(--burgundy);
  font-family: var(--script);
  font-size: 2.6rem;
  line-height: 1;
  animation: float-heart 5s ease-in-out infinite;
}

.small-heart--one {
  top: 10%;
  left: 6%;
  transform: rotate(-15deg);
}

.small-heart--two {
  right: -5%;
  top: 14%;
  animation-delay: 0.9s;
}

.small-heart--three {
  left: 38%;
  top: 0%;
  font-size: 3rem;
  animation-delay: 1.5s;
}

.brush-note {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 248px;
  min-height: 52px;
  margin: 0 auto 26px;
  padding: 6px 28px 10px;
  color: var(--paper);
  background: var(--burgundy);
  border-radius: 60% 38% 56% 44% / 52% 46% 58% 43%;
  font-size: clamp(2.05rem, 8vw, 3.4rem);
  transform: rotate(-1deg);
  box-shadow: 0 10px 22px rgba(139, 0, 23, 0.22);
}

.lead {
  max-width: 33rem;
  margin: 0 auto 30px;
  font-size: clamp(1rem, 3.9vw, 1.18rem);
  font-weight: 600;
}

.doodle {
  position: absolute;
  z-index: 3;
  font-family: var(--script);
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}

.doodle--heart {
  color: var(--burgundy);
  font-size: 3.5rem;
}

.doodle--cream {
  color: var(--paper);
  font-size: 3.6rem;
}

.hero__heart-one {
  top: 28px;
  right: 28px;
  transform: rotate(12deg);
}

.hero__heart-two {
  top: 20%;
  left: 22px;
  opacity: 0.22;
  transform: rotate(-18deg);
}

.then {
  padding-top: 52px;
  padding-bottom: 68px;
  text-align: center;
}

.then p,
.intro-copy,
.section-text,
.location-card p,
.time p:not(.time-big),
.dress p,
.rsvp__intro {
  max-width: 34rem;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(1rem, 3.8vw, 1.16rem);
}

.then p {
  color: var(--muted);
  font-weight: 600;
}

.curly-line {
  width: 190px;
  height: 22px;
  margin: 24px auto 0;
  background:
    radial-gradient(50% 100% at 50% 0, transparent 58%, var(--burgundy) 61% 68%, transparent 70%) 0 0 / 28px 18px repeat-x;
  opacity: 0.92;
}

.story {
  padding-top: 86px;
  padding-bottom: 86px;
}

.story__heart {
  top: 42px;
  right: 42px;
  opacity: 0.88;
}

.story .section-text {
  margin-bottom: 30px;
  color: rgba(255, 248, 234, 0.86);
  text-align: center;
}

.polaroid-grid {
  display: grid;
  gap: 26px;
  max-width: 470px;
  margin: 0 auto;
}

.polaroid-grid .polaroid img {
  aspect-ratio: 0.82 / 1;
}

.polaroid--tilt-left {
  transform: rotate(-3deg);
}

.polaroid--tilt-right {
  transform: rotate(3deg);
}

.polaroid--tilt-small {
  transform: rotate(1.4deg);
}

.polaroid--tilt-left-alt {
  transform: rotate(-1.8deg);
}

.calendar {
  text-align: center;
}

.intro-copy {
  margin-bottom: 32px;
  color: var(--muted);
  font-weight: 700;
}

.calendar-card {
  max-width: 485px;
  margin: 0 auto;
  padding: 22px 18px 28px;
  border: 1.8px solid rgba(45, 40, 37, 0.2);
  border-radius: 24px;
  background: rgba(255, 253, 246, 0.68);
  box-shadow: 0 10px 32px rgba(45, 40, 37, 0.08);
}

.calendar-card__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--burgundy);
}

.calendar-card__top h2,
.calendar-card__top span {
  margin: 0;
  font-size: clamp(3rem, 12vw, 5rem);
  line-height: 0.9;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 2px solid var(--line);
  border-left: 2px solid var(--line);
}

.calendar-grid > * {
  min-height: 54px;
  border-right: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
}

.calendar-grid__head {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 2px;
  font-family: var(--script);
  font-size: clamp(1.35rem, 5vw, 2rem);
  font-weight: 700;
}

.calendar-grid__head--active {
  color: var(--burgundy);
}

.calendar-day {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 88px;
  font-family: var(--script);
  font-size: clamp(2.2rem, 9vw, 3.7rem);
  font-weight: 700;
}

.calendar-day--current {
  color: var(--burgundy);
}

.calendar-day--current span {
  position: relative;
  z-index: 2;
  transform: translateY(1px);
}

.date-heart {
  position: absolute;
  left: 55%;
  top: 50%;
  z-index: 1;
  width: min(140px, 100%);
  height: auto;
  transform: translate(-50%, -45%) rotate(-2deg);
}

.date-heart path {
  fill: transparent;
  stroke: var(--burgundy);
  stroke-width: 6.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.location {
  padding-top: 86px;
  padding-bottom: 86px;
  text-align: center;
}

.location-card {
  position: relative;
  max-width: 440px;
  margin: 0 auto;
  padding: 34px 24px 30px;
  color: var(--ink);
  background: var(--paper);
  border-radius: 24px;
  box-shadow: 0 18px 42px rgba(30, 0, 7, 0.28);
}

.location-card::before {
  content: "";
  position: absolute;
  inset: 12px;
  pointer-events: none;
  border: 2px dashed rgba(139, 0, 23, 0.22);
  border-radius: 18px;
}

.pin-icon {
  width: 66px;
  height: 66px;
  margin: 0 auto 0px;
  color: var(--burgundy);
}

.pin-icon path,
.pin-icon circle,
.time-doodles path,
.time-doodles ellipse {
  fill: none;
  stroke: currentColor;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.location-card h3 {
  position: relative;
  margin: 0 0 20px;
  color: var(--burgundy);
  font-family: var(--script);
  font-size: clamp(2.7rem, 10vw, 4.2rem);
  line-height: 0.9;
}

.location-card p {
  position: relative;
  margin-bottom: 22px;
  color: var(--muted);
  font-weight: 700;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 13px 24px 14px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.button--light {
  color: var(--burgundy);
  background: var(--white);
  box-shadow: inset 0 0 0 2px rgba(139, 0, 23, 0.16), 0 12px 24px rgba(139, 0, 23, 0.12);
}

.button--primary {
  width: 100%;
  color: var(--paper);
  background: linear-gradient(145deg, var(--burgundy), var(--burgundy-dark));
  box-shadow: 0 14px 26px rgba(139, 0, 23, 0.22);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(45, 40, 37, 0.18);
}

.button:active {
  transform: translateY(0);
}

.button:focus-visible,
input:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(139, 0, 23, 0.46);
  outline-offset: 4px;
}

.section--burgundy .button:focus-visible {
  outline-color: rgba(255, 248, 234, 0.9);
}

.time {
  text-align: center;
}

.time-big {
  margin: 0 0 22px;
  color: var(--burgundy);
  font-size: clamp(2.55rem, 10.5vw, 5.5rem);
  line-height: 0.9;
  white-space: nowrap;
}

.time p:not(.time-big) {
  color: var(--muted);
  font-weight: 700;
}

.time-doodles {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 6vw, 34px);
  margin-top: 24px;
  color: var(--burgundy);
}

.time-doodles svg {
  width: clamp(50px, 15vw, 74px);
  height: clamp(50px, 15vw, 74px);
}

.time-doodles svg:nth-child(2) {
  transform: rotate(-8deg);
}

.time-doodles svg:nth-child(3) {
  transform: rotate(9deg);
}

.dress {
  padding-top: 28px;
}

.note-card {
  position: relative;
  max-width: 460px;
  margin: 0 auto;
  padding: 42px 26px 32px;
  text-align: center;
  background: rgba(255, 253, 246, 0.88);
  border: 1.5px solid rgba(45, 40, 37, 0.1);
  border-radius: 28px;
  box-shadow: var(--soft-shadow);
  transform: rotate(-1deg);
}

.note-card::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 18px;
  height: 8px;
  background: radial-gradient(50% 100% at 50% 0, transparent 54%, rgba(139, 0, 23, 0.86) 60% 68%, transparent 70%) 0 0 / 24px 8px repeat-x;
  opacity: 0.18;
}

.note-card__pin {
  position: absolute;
  top: 17px;
  left: 50%;
  width: 54px;
  height: 12px;
  border-radius: 999px;
  background: rgba(139, 0, 23, 0.85);
  transform: translateX(-50%) rotate(2deg);
  box-shadow: 0 3px 8px rgba(139, 0, 23, 0.18);
}

.note-card h2 {
  margin-bottom: 14px;
  font-size: clamp(2.8rem, 11vw, 4.8rem);
}

.note-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 700;
}

.countdown-section {
  padding-top: 86px;
  padding-bottom: 86px;
  text-align: center;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}

.countdown__item {
  min-width: 0;
  padding: 17px 8px 16px;
  color: var(--paper);
  border: 1px solid rgba(255, 248, 234, 0.24);
  border-radius: 22px;
  background: rgba(255, 248, 234, 0.09);
  box-shadow: inset 0 0 0 1px rgba(255, 248, 234, 0.06);
}

.countdown__item strong {
  display: block;
  font-family: var(--script);
  font-size: clamp(2.65rem, 10vw, 4.35rem);
  line-height: 0.92;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  transform: translateX(-0.08em);
}

.countdown__item span {
  display: block;
  margin-top: 6px;
  color: rgba(255, 248, 234, 0.78);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.party-message {
  margin: 22px auto 0;
  font-family: var(--script);
  font-size: clamp(2.7rem, 11vw, 4.6rem);
  font-weight: 700;
}

.rsvp {
  padding-top: 76px;
}

.rsvp h2 {
  max-width: 11ch;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(3.05rem, 11.2vw, 5rem);
  line-height: 1.02;
}

.rsvp__intro {
  margin-bottom: 28px;
  color: var(--muted);
  font-weight: 700;
  text-align: center;
}

.hidden-iframe {
  position: absolute;
  width: 0;
  height: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.rsvp-form {
  display: grid;
  gap: 18px;
  max-width: 460px;
  margin: 0 auto;
  padding: 24px clamp(16px, 5vw, 26px) 26px;
  background: rgba(255, 253, 246, 0.78);
  border: 1px solid rgba(45, 40, 37, 0.09);
  border-radius: 28px;
  box-shadow: var(--soft-shadow);
}

.form-field {
  display: grid;
  gap: 9px;
}

.form-field label,
.radio-field legend {
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 900;
}

.form-field input[type="text"],
.form-field textarea {
  width: 100%;
  border: 1.6px solid rgba(45, 40, 37, 0.14);
  border-radius: 18px;
  padding: 14px 15px;
  color: var(--ink);
  background: var(--white);
  box-shadow: inset 0 2px 0 rgba(45, 40, 37, 0.03);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.form-field textarea {
  resize: vertical;
  min-height: 92px;
}

.form-field input[type="text"]::placeholder,
.form-field textarea::placeholder {
  color: rgba(110, 98, 92, 0.72);
}

.form-field input[type="text"]:focus,
.form-field textarea:focus {
  border-color: rgba(139, 0, 23, 0.55);
  box-shadow: 0 0 0 4px rgba(139, 0, 23, 0.08);
}

.radio-field {
  margin: 0;
  padding: 0;
  border: 0;
}

.radio-field legend {
  margin-bottom: 9px;
}

.radio-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  margin-bottom: 8px;
  padding: 12px 14px;
  border: 1.5px solid rgba(45, 40, 37, 0.13);
  border-radius: 18px;
  background: var(--white);
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.radio-card:hover {
  border-color: rgba(139, 0, 23, 0.32);
  box-shadow: 0 8px 18px rgba(45, 40, 37, 0.08);
  transform: translateY(-1px);
}

.radio-card input {
  width: 18px;
  height: 18px;
  accent-color: var(--burgundy);
}

.radio-card span {
  font-weight: 800;
}

.form-status {
  min-height: 1.4em;
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.form-status.is-success {
  color: #286b38;
}

.form-status.is-error {
  color: var(--burgundy);
}

.footer {
  display: grid;
  gap: 6px;
  justify-items: center;
  padding: 42px 22px 46px;
  color: var(--paper);
  background: var(--burgundy-dark);
  text-align: center;
}

.footer span {
  opacity: 0.82;
}

.footer strong {
  font-family: var(--script);
  font-size: 2.7rem;
  line-height: 1;
}

.footer a {
  margin-top: 10px;
  color: rgba(255, 248, 234, 0.86);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
}

.reveal,
.reveal-card {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 740ms ease, transform 740ms ease;
}

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

.is-visible .polaroid--tilt-left {
  transform: rotate(-3deg);
}

.is-visible .polaroid--tilt-right {
  transform: rotate(3deg);
}

.is-visible .polaroid--tilt-small {
  transform: rotate(1.4deg);
}

.is-visible .polaroid--tilt-left-alt {
  transform: rotate(-1.8deg);
}

.reveal-card:nth-child(2) {
  transition-delay: 90ms;
}

.reveal-card:nth-child(3) {
  transition-delay: 180ms;
}

.reveal-card:nth-child(4) {
  transition-delay: 270ms;
}

@keyframes float-heart {
  0%, 100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -10px;
  }
}

@media (min-width: 480px) {
  .polaroid-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 20px;
  }

  .polaroid-grid .polaroid:nth-child(1),
  .polaroid-grid .polaroid:nth-child(4) {
    margin-top: 18px;
  }

  .countdown {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .invitation {
    margin-top: 32px;
    margin-bottom: 32px;
    border-radius: 34px;
  }

  .section {
    padding-left: 58px;
    padding-right: 58px;
  }

  .hero {
    min-height: auto;
    padding-top: 86px;
  }

  .polaroid:hover {
    transform: translateY(-6px) rotate(0deg);
    box-shadow: 0 20px 42px rgba(16, 8, 8, 0.22);
  }

  .polaroid-grid .polaroid:hover {
    transform: translateY(-7px) rotate(0deg);
  }
}

@media (max-width: 380px) {
  .section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hand-label-m,
  .hand-label-w {
    font-size: 1.65rem;
  }

  .calendar-grid__head {
    font-size: 1.22rem;
  }

  .calendar-day {
    min-height: 78px;
  }

  .rsvp-form {
    padding-left: 14px;
    padding-right: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .reveal,
  .reveal-card {
    opacity: 1;
    transform: none;
  }
}
