:root {
  --poster-w: 941;
  --poster-h: 1672;
  --ink: #565741;
  --brown: #6f5541;
  --paper: #eee6d8;
  --line: rgba(139, 112, 76, .56);
  --script: "Marck Script", "Segoe Script", cursive;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Montserrat", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: #e9dfcf;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  font-family: var(--sans);
  background:
    radial-gradient(circle at 50% 0, rgba(255,255,255,.54), transparent 420px),
    #e6dccb;
}

body::-webkit-scrollbar {
  width: 12px;
}

body::-webkit-scrollbar-track {
  background: #e1d5c4;
}

body::-webkit-scrollbar-thumb {
  border: 3px solid #e1d5c4;
  border-radius: 999px;
  background: linear-gradient(180deg, #666b49, #3f432d);
}

.poster-shell {
  width: 100%;
  padding: 0;
}

.mobile-invite {
  display: none;
}

.invite-poster {
  position: relative;
  width: min(941px, 100vw);
  aspect-ratio: var(--poster-w) / var(--poster-h);
  margin: 0 auto;
  overflow: hidden;
  background: url("assets/reference.png") center top / 100% 100% no-repeat;
  box-shadow: 0 18px 44px rgba(68, 52, 33, .12);
  container-type: inline-size;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.map-hotspot,
.poster-submit {
  position: absolute;
  z-index: 5;
  display: block;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.map-hotspot {
  left: 67.4%;
  top: 56.8%;
  width: 18.8%;
  height: max(2.3%, 24px);
}

.live-countdown {
  position: absolute;
  left: 18.7%;
  top: 27.1%;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.95%;
  width: 61.3%;
  height: 6.35%;
}

.count-card {
  display: grid;
  place-items: center;
  align-content: center;
  min-width: 0;
  border: 1px solid rgba(151, 124, 86, .58);
  border-radius: .8cqw;
  background:
    linear-gradient(138deg, rgba(255, 252, 244, .97), rgba(235, 224, 206, .94)),
    #f2eadc;
  box-shadow: 0 .45cqw 1cqw rgba(77, 57, 32, .07);
}

.count-card strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(20px, 6.65cqw, 63px);
  font-weight: 700;
  line-height: .84;
  letter-spacing: .08em;
  font-variant-numeric: tabular-nums;
}

.count-card span {
  margin-top: .35cqw;
  color: #4e4638;
  font-family: var(--serif);
  font-size: clamp(8px, 1.9cqw, 18px);
  font-weight: 600;
  line-height: 1;
}

.rsvp-overlay,
.poster-field,
.poster-group,
.poster-choice,
.form-status {
  position: absolute;
  z-index: 4;
}

.rsvp-overlay {
  inset: 0;
}

.poster-field input {
  width: 100%;
  height: 100%;
  padding: 0 1cqw;
  border: 1px solid transparent;
  border-radius: .72cqw;
  outline: none;
  background: transparent;
  color: #3f392f;
  font: 500 clamp(9px, 1.18cqw, 12px) var(--sans);
  box-shadow: none;
}

.poster-field input::placeholder {
  color: transparent;
}

.poster-field input:focus {
  border-color: #636842;
  background: rgba(255, 252, 246, .76);
  box-shadow: 0 0 0 .35cqw rgba(94, 101, 63, .14);
}

.field-name {
  left: 7.9%;
  top: 87.18%;
  width: 27.8%;
  height: max(1.42%, 22px);
}

.field-phone {
  left: 7.9%;
  top: 90.12%;
  width: 27.8%;
  height: max(1.42%, 22px);
}

.field-plus {
  left: 7.9%;
  top: 93.03%;
  width: 27.8%;
  height: max(1.42%, 22px);
}

.poster-group {
  position: static;
  margin: 0;
  padding: 0;
  border: 0;
}

.poster-choice {
  display: flex;
  align-items: center;
  gap: .55cqw;
  min-width: 18px;
  min-height: 18px;
  color: #4c4436;
  font: 500 clamp(7px, 1.04cqw, 10px) var(--sans);
  line-height: 1;
  white-space: nowrap;
}

.poster-choice input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0;
  opacity: .001;
  accent-color: #5b623d;
}

.poster-choice span {
  opacity: 0;
  transform: translateY(.03cqw);
}

.poster-choice:has(input:checked)::after {
  content: "";
  position: absolute;
  left: clamp(3px, .42cqw, 4px);
  top: clamp(3px, .42cqw, 4px);
  width: clamp(5px, .72cqw, 7px);
  height: clamp(5px, .72cqw, 7px);
  border-radius: 50%;
  background: #5a5d3e;
  box-shadow: 0 0 0 1px rgba(255, 250, 240, .4);
  pointer-events: none;
}

.poster-choice input[type="checkbox"] + span::before {
  content: "";
}

.poster-choice:has(input[type="checkbox"]:checked)::after {
  left: clamp(3px, .38cqw, 4px);
  top: clamp(1px, .2cqw, 2px);
  width: clamp(6px, .82cqw, 8px);
  height: clamp(10px, 1.16cqw, 11px);
  border-radius: 0;
  border-right: 2px solid #5a5d3e;
  border-bottom: 2px solid #5a5d3e;
  background: transparent;
  box-shadow: none;
  transform: rotate(40deg);
}

.attend-yes {
  left: 39.6%;
  top: 87.16%;
}

.attend-no {
  left: 39.6%;
  top: 89.15%;
}

.menu-fish {
  left: 39.6%;
  top: 92.05%;
}

.menu-meat {
  left: 48.0%;
  top: 92.05%;
}

.menu-veg {
  left: 57.1%;
  top: 92.05%;
}

.menu-vegetarian {
  left: 39.6%;
  top: 94.1%;
}

.menu-other {
  left: 53.8%;
  top: 94.1%;
}

.plan-ceremony {
  left: 67.0%;
  top: 88.15%;
}

.plan-banquet {
  left: 67.0%;
  top: 90.0%;
}

.plan-only {
  left: 67.0%;
  top: 91.82%;
}

.plan-kids {
  left: 67.0%;
  top: 93.65%;
}

.plan-allergy {
  left: 67.0%;
  top: 95.48%;
}

.plan-other {
  left: 67.0%;
  top: 97.28%;
}

.poster-submit {
  left: 27.45%;
  top: 95.15%;
  width: 41.45%;
  height: max(2.55%, 44px);
  border-radius: .9cqw;
}

.poster-submit:focus-visible {
  outline: .32cqw solid rgba(255, 255, 255, .9);
  outline-offset: .14cqw;
}

.poster-submit:disabled {
  cursor: progress;
}

.form-status {
  left: 17%;
  top: 98.05%;
  width: 66%;
  min-height: 1.4%;
  margin: 0;
  color: #5b623d;
  text-align: center;
  font: 700 clamp(8px, 1.15cqw, 12px) var(--sans);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .55);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 20;
  width: min(440px, calc(100vw - 28px));
  padding: 13px 17px;
  border: 1px solid rgba(135, 112, 76, .44);
  border-radius: 8px;
  background: rgba(247, 239, 225, .97);
  box-shadow: 0 14px 26px rgba(76, 60, 39, .16);
  color: #3f392f;
  text-align: center;
  font: 600 14px var(--sans);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, calc(100% + 40px));
  transition: opacity .24s ease, transform .24s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (max-width: 560px) {
  body {
    background: #e9dfcf;
  }

  .invite-poster {
    display: none;
  }

  .mobile-invite {
    display: block;
    width: min(100%, 430px);
    margin: 0 auto;
    padding: 0 9px 24px;
    overflow: hidden;
    background: #eee6d8;
    color: var(--ink);
  }

  .mobile-invite::before {
    content: "";
    display: block;
    width: calc(100% + 18px);
    margin: 0 -9px;
    aspect-ratio: 941 / 1354;
    background: url("assets/reference.png") center top / 100% auto no-repeat;
    box-shadow: 0 10px 24px rgba(77,57,32,.08);
  }

  .mobile-hero,
  .mobile-countdown,
  .mobile-story,
  .mobile-info,
  .mobile-panels,
  .mobile-program {
    display: none;
  }

  .mobile-invite h1,
  .mobile-invite h2,
  .mobile-polaroid p,
  .mobile-date em,
  .mobile-brush,
  .mobile-rsvp footer {
    font-family: var(--script);
    letter-spacing: 0;
  }

  .mobile-hero {
    position: relative;
    min-height: 616px;
    text-align: center;
  }

  .mobile-heart {
    margin: 0;
    font: 34px var(--script);
    line-height: 1;
  }

  .mobile-hero h1 {
    margin: 0;
    color: #4e5639;
    font-size: clamp(62px, 19vw, 82px);
    font-weight: 400;
    line-height: .74;
  }

  .mobile-hero h1 span {
    font-size: .5em;
    line-height: 1;
  }

  .mobile-leaves {
    color: #5a5d3e;
    font: 25px var(--serif);
    text-align: center;
  }

  .mobile-lead {
    margin: 8px 0 15px;
    color: #4c473d;
    font-size: 16px;
    line-height: 1.48;
  }

  .mobile-date,
  .mobile-info a,
  .mobile-rsvp button {
    color: #fff8e9;
    background:
      linear-gradient(90deg, transparent 0 2%, rgba(78,85,50,.96) 4% 96%, transparent 98%),
      linear-gradient(178deg, rgba(80,86,52,.95), rgba(49,54,34,.98));
  }

  .mobile-date {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 58px;
    padding: 10px 12px;
    font: 700 23px var(--serif);
  }

  .mobile-date em {
    font-size: 1.15em;
    font-weight: 400;
  }

  .mobile-polaroids {
    position: relative;
    height: 315px;
    margin-top: 18px;
  }

  .mobile-polaroid {
    position: absolute;
    width: min(47%, 188px);
    padding: 10px 10px 9px;
    border-radius: 3px;
    background: #f1e8da;
    box-shadow: 0 14px 28px rgba(65,52,34,.2);
  }

  .mobile-polaroid::before {
    content: "";
    position: absolute;
    left: 28%;
    top: -16px;
    width: 48%;
    height: 25px;
    background: rgba(178, 162, 129, .52);
    transform: rotate(-7deg);
  }

  .mobile-polaroid img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
  }

  .mobile-polaroid p {
    margin: 7px 0 0;
    color: var(--brown);
    font-size: 22px;
  }

  .mobile-polaroid.bride {
    left: 3%;
    top: 14px;
    transform: rotate(-7deg);
  }

  .mobile-polaroid.groom {
    right: 3%;
    top: 76px;
    transform: rotate(8deg);
  }

  .mobile-countdown h2,
  .mobile-story h2,
  .mobile-panels h2,
  .mobile-program h2,
  .mobile-rsvp h2 {
    margin: 0;
    color: var(--brown);
    font-size: clamp(31px, 10vw, 43px);
    font-weight: 400;
    line-height: 1.05;
    text-align: center;
  }

  .mobile-count-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 11px;
  }

  .mobile-count-card,
  .mobile-info article,
  .mobile-panels article,
  .mobile-rsvp {
    border: 1px solid rgba(151,124,86,.58);
    border-radius: 8px;
    background: linear-gradient(138deg, rgba(255,252,244,.86), rgba(235,224,206,.82));
    box-shadow: 0 10px 20px rgba(77,57,32,.08);
  }

  .mobile-count-card {
    min-height: 105px;
    display: grid;
    place-items: center;
    align-content: center;
  }

  .mobile-count-card strong {
    color: var(--ink);
    font: 700 48px / .85 var(--serif);
    letter-spacing: .08em;
    font-variant-numeric: tabular-nums;
  }

  .mobile-count-card span {
    color: #4e4638;
    font: 600 17px var(--serif);
  }

  .mobile-story {
    margin-top: 26px;
    text-align: center;
  }

  .mobile-story img {
    display: block;
    width: min(100%, 390px);
    margin: 0 auto 18px;
    filter: drop-shadow(0 12px 18px rgba(61,49,36,.18));
  }

  .mobile-story p:not(.mobile-brush) {
    margin: 13px 0 0;
    color: #4b473d;
    font-size: 17px;
    line-height: 1.45;
  }

  .mobile-brush {
    display: block;
    margin: 12px auto 0;
    padding: 9px 16px;
    color: var(--brown);
    background: linear-gradient(90deg, transparent 0 2%, rgba(210,190,166,.74) 5% 95%, transparent 98%);
    font-size: 27px;
    line-height: 1;
    text-align: center;
  }

  .mobile-info,
  .mobile-panels {
    display: grid;
    gap: 10px;
    margin-top: 20px;
  }

  .mobile-info {
    grid-template-columns: 1fr;
  }

  .mobile-info article,
  .mobile-panels article {
    padding: 18px 14px;
    text-align: center;
  }

  .mobile-info span {
    display: block;
    color: var(--ink);
    font-size: 26px;
  }

  .mobile-info strong {
    display: block;
    color: #3f392f;
    font: 700 25px / 1.15 var(--serif);
  }

  .mobile-info small {
    display: block;
    margin-top: 4px;
    font-size: 14px;
  }

  .mobile-info a {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 20px;
    font: 24px var(--script);
    text-decoration: none;
  }

  .mobile-panels p {
    margin: 8px 0 0;
    color: #4b473d;
    font-size: 16px;
    line-height: 1.36;
  }

  .mobile-swatches {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
  }

  .mobile-swatches span {
    width: 42px;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.68);
    background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.18), transparent 25%), var(--swatch);
  }

  .mobile-program {
    margin-top: 23px;
  }

  .mobile-program div {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 3px 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(135,112,76,.28);
  }

  .mobile-program time {
    grid-row: span 2;
    color: var(--brown);
    font: 700 23px var(--serif);
  }

  .mobile-program strong {
    color: #3f392f;
    font-size: 14px;
    text-transform: uppercase;
  }

  .mobile-program p {
    margin: 0;
    color: #4b473d;
    font-size: 13px;
    line-height: 1.3;
  }

  .mobile-rsvp {
    margin-top: 20px;
    padding: 17px 12px;
  }

  .mobile-rsvp > p {
    margin: 7px 0 14px;
    color: #4b473d;
    font-size: 14px;
    line-height: 1.38;
    text-align: center;
  }

  .mobile-rsvp label,
  .mobile-rsvp legend {
    color: #4b473d;
    font-size: 14px;
    line-height: 1.35;
  }

  .mobile-rsvp label {
    display: block;
    margin-top: 9px;
  }

  .mobile-rsvp input[type="text"],
  .mobile-rsvp input[type="tel"] {
    width: 100%;
    min-height: 42px;
    margin-top: 5px;
    padding: 0 12px;
    border: 1px solid rgba(135,112,76,.58);
    border-radius: 8px;
    background: rgba(255,250,241,.5);
    color: #3f392f;
    font: 500 16px var(--sans);
    outline: none;
  }

  .mobile-rsvp input:focus {
    border-color: #636842;
    box-shadow: 0 0 0 3px rgba(94,101,63,.14);
  }

  .mobile-rsvp fieldset {
    margin: 14px 0 0;
    padding: 12px 0 0;
    border: 0;
    border-top: 1px solid rgba(135,112,76,.28);
  }

  .mobile-rsvp fieldset label {
    display: flex;
    gap: 9px;
    align-items: center;
    min-height: 28px;
  }

  .mobile-rsvp input[type="radio"],
  .mobile-rsvp input[type="checkbox"] {
    width: 19px;
    height: 19px;
    margin: 0;
    accent-color: #5b623d;
  }

  .mobile-rsvp button {
    display: block;
    width: min(100%, 330px);
    min-height: 52px;
    margin: 18px auto 0;
    border: 0;
    border-radius: 8px;
    color: #fff8e9;
    text-transform: uppercase;
    font: 700 18px var(--serif);
  }

  .mobile-rsvp .form-status {
    position: static;
    width: 100%;
    min-height: 22px;
    margin-top: 10px;
    color: #5b623d;
    font: 700 13px var(--sans);
    text-align: center;
  }

  .mobile-rsvp footer {
    margin-top: 8px;
    color: var(--brown);
    font-size: 25px;
    text-align: center;
  }

  .invite-poster {
    box-shadow: none;
  }

  .poster-shell {
    background: #eee6d8;
  }

  .poster-choice {
    gap: 2px;
    letter-spacing: 0;
  }

  .mobile-hero,
  .mobile-countdown,
  .mobile-story,
  .mobile-info,
  .mobile-panels,
  .mobile-program {
    display: none !important;
  }

  .mobile-invite::before {
    aspect-ratio: 941 / 410;
    background-image: url("assets/mobile-section-hero.png");
    background-size: 100% 100%;
  }

  .mobile-countdown,
  .mobile-story,
  .mobile-info,
  .mobile-panels,
  .mobile-program {
    display: block !important;
    position: relative;
    width: calc(100% + 18px);
    margin: 0 -9px;
    overflow: hidden;
    background-position: center top;
    background-size: 100% 100%;
    background-repeat: no-repeat;
  }

  .mobile-countdown {
    aspect-ratio: 941 / 185;
    background-image: url("assets/mobile-section-countdown.png");
  }

  .mobile-countdown h2 {
    display: none;
  }

  .mobile-count-grid {
    position: absolute;
    left: 18.8%;
    top: 31.5%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.8%;
    width: 61.1%;
    height: 57.5%;
    margin: 0;
  }

  .mobile-count-card {
    min-height: 0;
    border: 1px solid rgba(151,124,86,.58);
    border-radius: 5px;
    background: linear-gradient(138deg, rgba(255,252,244,.96), rgba(235,224,206,.94));
    box-shadow: 0 3px 8px rgba(77,57,32,.06);
  }

  .mobile-count-card strong {
    font-size: clamp(22px, 8.5vw, 35px);
    line-height: .78;
    letter-spacing: .06em;
  }

  .mobile-count-card span {
    margin-top: 2px;
    font-size: clamp(8px, 2.4vw, 10px);
    line-height: 1;
  }

  .mobile-story {
    aspect-ratio: 941 / 302;
    background-image: url("assets/mobile-section-story.png");
  }

  .mobile-info {
    aspect-ratio: 941 / 174;
    background-image: url("assets/mobile-section-details.png");
  }

  .mobile-panels {
    aspect-ratio: 941 / 210;
    background-image: url("assets/mobile-section-panels.png");
  }

  .mobile-program {
    aspect-ratio: 941 / 146;
    background-image: url("assets/mobile-section-program.png");
  }

  .mobile-story > *,
  .mobile-panels > *,
  .mobile-program > *,
  .mobile-info article {
    display: none !important;
  }

  .mobile-info article:nth-child(3) {
    display: block !important;
    position: absolute;
    left: 66.7%;
    top: 48%;
    width: 20%;
    height: 32%;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .mobile-info article:nth-child(3) > *:not(a) {
    display: none !important;
  }

  .mobile-info article:nth-child(3) a {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    opacity: 0;
    font-size: 0;
  }

  .mobile-rsvp {
    margin-top: 10px;
  }
}

@media (max-width: 560px) {
  body {
    background: #efe7da !important;
  }

  .invite-poster {
    display: none !important;
  }

  .poster-shell {
    background: #efe7da !important;
  }

  .mobile-invite {
    display: block !important;
    width: min(100%, 430px);
    margin: 0 auto;
    padding: 0 10px clamp(260px, 50vh, 480px);
    overflow: visible;
    background:
      radial-gradient(circle at 14% 2%, rgba(255,255,255,.55), transparent 160px),
      radial-gradient(circle at 90% 28%, rgba(171,139,96,.12), transparent 190px),
      linear-gradient(135deg, rgba(103,91,67,.045) 0 1px, transparent 1px 42px),
      #efe7da !important;
    color: var(--ink);
  }

  .mobile-invite::before {
    display: none !important;
  }

  .mobile-hero,
  .mobile-countdown,
  .mobile-story,
  .mobile-info,
  .mobile-panels,
  .mobile-program,
  .mobile-rsvp {
    display: block !important;
    position: relative !important;
    width: auto !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    overflow: visible !important;
    background-image: none !important;
    aspect-ratio: auto !important;
  }

  .mobile-hero {
    min-height: 548px;
    margin: 12px 0 0 !important;
    padding: 18px 18px 24px;
    border-radius: 22px 22px 0 0;
    overflow: hidden !important;
    text-align: center;
    background:
      radial-gradient(ellipse at 9% 3%, rgba(57,65,43,.62) 0 10%, rgba(57,65,43,.2) 22%, transparent 38%),
      radial-gradient(ellipse at 92% 11%, rgba(80,88,58,.48) 0 11%, rgba(80,88,58,.16) 25%, transparent 44%),
      radial-gradient(ellipse at 24% 53%, rgba(255,252,235,.72) 0 14%, transparent 38%),
      radial-gradient(ellipse at 76% 58%, rgba(99,103,72,.22) 0 10%, transparent 32%),
      linear-gradient(112deg, rgba(255,255,255,.62) 0 13%, rgba(204,197,169,.26) 21%, rgba(247,238,215,.78) 31%, rgba(126,131,95,.26) 43%, rgba(236,226,202,.72) 59%, rgba(92,100,68,.28) 72%, rgba(246,238,218,.8) 100%),
      #ded5bd !important;
    box-shadow: 0 12px 26px rgba(65,52,34,.12);
  }

  .mobile-hero::before {
    content: "9:41";
    position: absolute;
    left: 30px;
    top: 18px;
    color: #fff;
    font: 700 14px var(--sans);
    text-shadow: 0 1px 4px rgba(0,0,0,.35);
  }

  .mobile-hero::after {
    content: "☰";
    position: absolute;
    right: 26px;
    top: 48px;
    color: #fff;
    font: 400 34px/1 var(--sans);
    text-shadow: 0 1px 5px rgba(0,0,0,.35);
  }

  .mobile-heart {
    position: absolute;
    left: 24px;
    top: 54px;
    margin: 0;
    color: #fff;
    font: 400 48px/1 var(--script);
    text-shadow: 0 1px 5px rgba(0,0,0,.35);
  }

  .mobile-hero h1 {
    margin: 104px auto 0;
    color: #4e5639;
    font: 400 clamp(54px, 17vw, 76px)/.84 var(--script);
    letter-spacing: 0;
    text-shadow: 0 1px 0 rgba(255,255,255,.42);
  }

  .mobile-hero h1 span {
    display: inline-block;
    font-size: .5em;
    line-height: .7;
    margin: -2px 0;
  }

  .mobile-hero .mobile-leaves {
    margin-top: 12px;
    color: #4f5639;
    font: 700 26px/1 var(--serif);
  }

  .mobile-lead {
    margin: 20px auto 0;
    max-width: 320px;
    color: #25241d;
    font: 600 17px/1.48 var(--sans);
  }

  .mobile-date {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 50px;
    width: min(315px, 100%);
    margin: 24px auto 0;
    padding: 8px 18px;
    color: #fff8e9;
    background:
      linear-gradient(90deg, transparent 0 2%, rgba(77,84,49,.96) 4% 96%, transparent 98%),
      linear-gradient(178deg, rgba(80,86,52,.95), rgba(49,54,34,.98)) !important;
    font: 700 24px/1 var(--serif);
  }

  .mobile-date em {
    font: 400 1.12em/1 var(--script);
  }

  .mobile-polaroids {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: min(100%, 330px);
    margin: 18px auto 16px;
    align-items: start;
  }

  .mobile-countdown {
    padding: 26px 14px 24px;
    background:
      linear-gradient(180deg, rgba(255,255,255,.28), rgba(232,218,197,.22)),
      #efe7da !important;
  }

  .mobile-countdown h2 {
    display: block !important;
    margin: 0 0 18px;
    color: #6f5541;
    font: 400 28px/1.15 var(--script);
    text-align: center;
  }

  .mobile-count-grid {
    position: static !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
  }

  .mobile-count-card {
    min-height: 90px;
    display: grid !important;
    place-items: center;
    align-content: center;
    border: 1px solid rgba(151,124,86,.44);
    border-radius: 7px;
    background:
      linear-gradient(145deg, rgba(255,251,241,.9), rgba(230,216,196,.72)),
      rgba(246,238,224,.9) !important;
    box-shadow: 0 8px 18px rgba(75,55,34,.08);
  }

  .mobile-count-card strong {
    color: #4f5639;
    font: 700 clamp(32px, 9vw, 48px)/.8 var(--serif);
    letter-spacing: .04em;
  }

  .mobile-count-card span {
    margin-top: 5px;
    color: #4e4638;
    font: 600 12px/1 var(--serif);
  }

  .mobile-story {
    padding: 24px 14px 30px;
    text-align: center;
    background: #f2eadf !important;
  }

  .mobile-story > * {
    display: block !important;
  }

  .mobile-story > img {
    width: min(100%, 348px);
    margin: 22px auto 0;
    border: 10px solid #f4ecdf;
    border-bottom-width: 22px;
    border-radius: 2px;
    transform: rotate(-2deg);
    box-shadow: 0 14px 26px rgba(65,52,34,.14);
  }

  .mobile-polaroid {
    padding: 8px 8px 9px;
    background: #f5ecdd;
    border-radius: 2px;
    box-shadow: 0 12px 22px rgba(66,51,30,.16);
  }

  .mobile-polaroid.bride {
    transform: rotate(-4deg);
  }

  .mobile-polaroid.groom {
    transform: rotate(5deg);
    margin-top: 10px;
  }

  .mobile-polaroid img {
    display: block !important;
    width: 100% !important;
    aspect-ratio: 4 / 5;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 1px !important;
    box-shadow: none !important;
    object-fit: cover;
    transform: none !important;
  }

  .mobile-polaroid p {
    margin: 7px 0 0 !important;
    color: #6f5541 !important;
    font: 400 20px/1 var(--script) !important;
  }

  .mobile-story h2,
  .mobile-panels h2,
  .mobile-program h2,
  .mobile-rsvp h2 {
    margin: 0;
    color: #6f5541;
    font: 400 clamp(34px, 10vw, 44px)/1.05 var(--script);
    text-align: center;
    letter-spacing: 0;
  }

  .mobile-story .mobile-brush,
  .mobile-panels .mobile-brush {
    display: inline-block !important;
    margin: 14px auto 0;
    padding: 9px 24px;
    color: #6f5541;
    background: linear-gradient(90deg, transparent 0 2%, rgba(207,187,160,.76) 5% 95%, transparent 98%);
    font: 400 26px/1 var(--script);
  }

  .mobile-story p:not(.mobile-brush) {
    margin: 16px 0 0;
    color: #343027;
    font: 500 17px/1.45 var(--sans);
  }

  .mobile-story .mobile-leaves {
    margin-top: 18px;
    color: #52583a;
    font: 700 24px/1 var(--serif);
  }

  .mobile-info {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 0 14px 28px;
    background: #f2eadf !important;
  }

  .mobile-info article,
  .mobile-info article:nth-child(3) {
    display: block !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    min-height: 136px;
    padding: 13px 7px !important;
    border: 1px solid rgba(151,124,86,.36) !important;
    border-radius: 7px;
    background: rgba(250,244,233,.68) !important;
    box-shadow: 0 8px 18px rgba(75,55,34,.06) !important;
    text-align: center;
  }

  .mobile-info article > *,
  .mobile-info article:nth-child(3) > *:not(a) {
    display: block !important;
  }

  .mobile-info span {
    color: #55583b;
    font: 700 25px/1 var(--serif);
  }

  .mobile-info strong {
    margin-top: 6px;
    color: #3f392f;
    font: 700 22px/1.08 var(--serif);
  }

  .mobile-info small {
    margin-top: 5px;
    color: #4b473d;
    font: 500 11px/1.25 var(--sans);
  }

  .mobile-info article:nth-child(3) a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: auto !important;
    height: 28px !important;
    margin: 8px auto 0 !important;
    padding: 0 10px !important;
    opacity: 1 !important;
    color: #fff8e9;
    text-decoration: none;
    background: #52583a !important;
    border-radius: 4px;
    font: 700 9px/1 var(--sans) !important;
    text-transform: uppercase;
  }

  .mobile-panels {
    display: grid !important;
    gap: 14px;
    padding: 26px 14px;
    background: #efe7da !important;
  }

  .mobile-panels > * {
    display: block !important;
  }

  .mobile-panels article {
    padding: 24px 18px;
    border: 1px solid rgba(151,124,86,.34);
    border-radius: 8px;
    background: rgba(250,244,233,.62);
    box-shadow: 0 10px 20px rgba(75,55,34,.06);
    text-align: center;
  }

  .mobile-panels p {
    margin: 12px 0 0;
    color: #343027;
    font: 500 16px/1.45 var(--sans);
  }

  .mobile-swatches {
    display: flex !important;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 22px;
  }

  .mobile-swatches span {
    width: 44px;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.72);
    background:
      radial-gradient(circle at 30% 20%, rgba(255,255,255,.18), transparent 25%),
      var(--swatch);
    box-shadow: 0 8px 14px rgba(75,55,34,.12);
  }

  .mobile-program {
    padding: 22px 14px 26px;
    background: #f2eadf !important;
  }

  .mobile-program > * {
    display: block !important;
  }

  .mobile-program div {
    display: grid !important;
    grid-template-columns: 72px 1fr;
    gap: 3px 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(135,112,76,.26);
  }

  .mobile-program time {
    grid-row: span 2;
    color: #6f5541;
    font: 700 23px/1 var(--serif);
  }

  .mobile-program strong {
    color: #3f392f;
    font: 700 14px/1.2 var(--sans);
    text-transform: uppercase;
  }

  .mobile-program p {
    margin: 0;
    color: #4b473d;
    font: 500 13px/1.3 var(--sans);
  }

  .mobile-rsvp {
    margin: 0 !important;
    padding: 28px 12px 22px !important;
    border: 1px solid rgba(151,124,86,.42);
    border-radius: 8px;
    background:
      linear-gradient(145deg, rgba(255,251,242,.66), rgba(238,226,207,.62)),
      #f3ebdf !important;
    box-shadow: 0 10px 20px rgba(75,55,34,.07);
  }

  .mobile-rsvp > p {
    margin: 10px auto 18px;
    max-width: 330px;
    color: #343027;
    font: 500 15px/1.45 var(--sans);
    text-align: center;
  }

  .mobile-rsvp label,
  .mobile-rsvp legend {
    color: #3f392f;
    font: 500 14px/1.35 var(--sans);
  }

  .mobile-rsvp label {
    display: block;
    margin-top: 12px;
  }

  .mobile-rsvp input[type="text"],
  .mobile-rsvp input[type="tel"] {
    width: 100%;
    min-height: 44px;
    margin-top: 6px;
    padding: 0 12px;
    border: 1px solid rgba(135,112,76,.54);
    border-radius: 5px;
    background: rgba(255,250,241,.58);
    color: #3f392f;
    font: 500 16px var(--sans);
    outline: none;
  }

  .mobile-rsvp fieldset {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px 12px;
    margin: 16px 0 0;
    padding: 14px 0 0;
    border: 0;
    border-top: 1px solid rgba(135,112,76,.25);
  }

  .mobile-rsvp fieldset legend {
    grid-column: 1 / -1;
    margin-bottom: 2px;
  }

  .mobile-rsvp fieldset label {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 32px;
    margin-top: 0;
  }

  .mobile-rsvp input[type="radio"],
  .mobile-rsvp input[type="checkbox"] {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: #52583a;
  }

  .mobile-rsvp button {
    display: block;
    width: 100%;
    min-height: 54px;
    margin: 20px auto 0;
    border: 0;
    border-radius: 5px;
    color: #fff8e9;
    background: #52583a !important;
    text-transform: uppercase;
    font: 700 18px var(--serif);
  }

  .mobile-rsvp .form-status {
    position: static;
    width: 100%;
    min-height: 22px;
    margin-top: 10px;
    color: #52583a;
    font: 700 13px var(--sans);
    text-align: center;
  }

  .mobile-rsvp footer {
    margin-top: 20px;
    color: #6f5541;
    font: 400 27px/1.15 var(--script);
    text-align: center;
  }

  .mobile-bottom-nav {
    position: fixed;
    left: 50%;
    bottom: 10px;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    width: min(410px, calc(100vw - 20px));
    min-height: 64px;
    padding: 7px 8px 6px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 10px;
    background: rgba(82, 88, 58, .98);
    box-shadow: 0 14px 28px rgba(54,42,28,.2);
    transform: translateX(-50%);
  }

  .mobile-bottom-nav a {
    display: grid;
    place-items: center;
    gap: 2px;
    color: #fff8e9;
    text-decoration: none;
    text-transform: uppercase;
    font: 600 9px/1.05 var(--sans);
  }

  .mobile-bottom-nav span {
    font-size: 22px;
    line-height: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
