:root {
  --ink: #2d2630;
  --muted: #786b73;
  --paper: #fff8f0;
  --paper-deep: #f5e5d7;
  --white: #ffffff;
  --accent: #9f6c56;
  --accent-dark: #5d352c;
  --rose: #d9a69b;
  --line: rgba(95, 53, 44, 0.16);
  --shadow: 0 24px 70px rgba(62, 40, 34, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 6%, rgba(217, 166, 155, 0.22), transparent 26rem),
    linear-gradient(180deg, #fffaf4 0%, #f6e6d9 100%);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

body.invitation-locked {
  overflow: hidden;
}

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

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

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

.reveal,
.reveal-image,
.reveal-card {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal-image {
  transform: translateY(24px) scale(0.96);
}

.reveal-card {
  transform: translateY(34px) scale(0.98);
}

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

.cover-gate__content {
  animation: coverIntro 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.cover-gate__image {
  animation: coverImageIntro 1.8s ease both;
}

@keyframes coverIntro {
  from {
    opacity: 0;
    filter: blur(8px);
  }

  to {
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes coverImageIntro {
  from {
    transform: scale(1.06);
  }

  to {
    transform: scale(1);
  }
}

.template-spesial-01 .cover-gate__content > *,
.template-spesial-02 .cover-gate__content > *,
.template-spesial-03 .cover-gate__content > *,
.template-spesial-04 .cover-gate__content > * {
  animation: coverTextRise 0.86s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--cover-item, 0) * 110ms + 120ms);
}

.template-spesial-01 .cover-gate__content > :nth-child(1),
.template-spesial-02 .cover-gate__content > :nth-child(1),
.template-spesial-03 .cover-gate__content > :nth-child(1),
.template-spesial-04 .cover-gate__content > :nth-child(1) {
  --cover-item: 1;
}

.template-spesial-01 .cover-gate__content > :nth-child(2),
.template-spesial-02 .cover-gate__content > :nth-child(2),
.template-spesial-03 .cover-gate__content > :nth-child(2),
.template-spesial-04 .cover-gate__content > :nth-child(2) {
  --cover-item: 2;
}

.template-spesial-01 .cover-gate__content > :nth-child(3),
.template-spesial-02 .cover-gate__content > :nth-child(3),
.template-spesial-03 .cover-gate__content > :nth-child(3),
.template-spesial-04 .cover-gate__content > :nth-child(3) {
  --cover-item: 3;
}

.template-spesial-01 .cover-gate__content > :nth-child(4),
.template-spesial-02 .cover-gate__content > :nth-child(4),
.template-spesial-03 .cover-gate__content > :nth-child(4),
.template-spesial-04 .cover-gate__content > :nth-child(4) {
  --cover-item: 4;
}

@keyframes coverTextRise {
  from {
    opacity: 0;
    filter: blur(8px);
    transform: translate3d(0, 18px, 0) scale(0.98);
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.template-spesial-01 .reveal,
.template-spesial-02 .reveal,
.template-spesial-03 .reveal,
.template-spesial-04 .reveal {
  transform: translateY(34px);
}

.template-spesial-01 .reveal-image,
.template-spesial-02 .reveal-image,
.template-spesial-03 .reveal-image,
.template-spesial-04 .reveal-image {
  filter: blur(5px);
  transform: translateY(26px) scale(0.92);
}

.template-spesial-01 .reveal-card,
.template-spesial-02 .reveal-card,
.template-spesial-03 .reveal-card,
.template-spesial-04 .reveal-card {
  transform: translateY(38px) scale(0.96);
}

.template-spesial-01 .reveal.is-visible,
.template-spesial-02 .reveal.is-visible,
.template-spesial-03 .reveal.is-visible,
.template-spesial-04 .reveal.is-visible,
.template-spesial-01 .reveal-image.is-visible,
.template-spesial-02 .reveal-image.is-visible,
.template-spesial-03 .reveal-image.is-visible,
.template-spesial-04 .reveal-image.is-visible,
.template-spesial-01 .reveal-card.is-visible,
.template-spesial-02 .reveal-card.is-visible,
.template-spesial-03 .reveal-card.is-visible,
.template-spesial-04 .reveal-card.is-visible {
  filter: blur(0);
  transform: translateY(0) scale(1);
}

.template-spesial-01 .gallery-grid img,
.template-spesial-02 .gallery-grid img,
.template-spesial-03 .gallery-grid img,
.template-spesial-04 .special-04-gallery-grid img {
  transition:
    opacity 0.8s ease,
    filter 0.8s ease,
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.cover-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 32px 20px;
  color: var(--white);
  text-align: center;
  transition: opacity 0.8s ease, visibility 0.8s ease, transform 0.8s ease;
}

.cover-gate.is-open {
  visibility: hidden;
  opacity: 0;
  transform: scale(1.03);
  pointer-events: none;
}

.cover-gate__image,
.cover-gate__veil,
.hero-panel__image,
.hero-panel__shade {
  position: absolute;
  inset: 0;
}

.cover-gate__image,
.hero-panel__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-gate__veil {
  background:
    linear-gradient(180deg, rgba(42, 28, 26, 0.18), rgba(42, 28, 26, 0.62)),
    radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.08), transparent 24rem);
}

.cover-gate__content {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
}

.script-label,
.ornament {
  margin: 0 0 10px;
  color: var(--accent);
  font-family: "Marcellus", Georgia, serif;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cover-gate .script-label,
.hero-panel .script-label {
  color: #ffe5d6;
}

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

h1 {
  font-size: clamp(58px, 16vw, 128px);
  text-shadow: 0 22px 48px rgba(0, 0, 0, 0.34);
}

h2 {
  font-size: clamp(44px, 8vw, 82px);
}

h3 {
  font-size: clamp(28px, 5vw, 43px);
}

.guest-card {
  width: min(390px, 100%);
  margin: 28px auto 0;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
}

.guest-card span,
.guest-card strong,
.guest-card small {
  display: block;
}

.guest-card span,
.guest-card small {
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
}

.guest-card strong {
  margin-top: 4px;
  font-size: 19px;
}

.guest-card small {
  margin-top: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 5px 20px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--white);
  background: var(--accent);
  box-shadow: 0 16px 34px rgba(95, 53, 44, 0.18);
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover,
.copy-button:hover {
  transform: translateY(-2px);
}

.button-light {
  margin-top: 28px;
  border-color: rgba(255, 255, 255, 0.88);
  color: var(--accent-dark);
  background: rgba(255, 255, 255, 0.92);
}

.button-outline {
  margin-top: 20px;
  color: var(--accent-dark);
  background: rgba(255, 255, 255, 0.48);
}

.invitation-page {
  min-height: 100vh;
}

.hero-panel {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 86px 20px 104px;
  color: var(--white);
  text-align: center;
}

.hero-panel__shade {
  background:
    linear-gradient(180deg, rgba(45, 31, 30, 0.16) 0%, rgba(45, 31, 30, 0.62) 100%),
    linear-gradient(90deg, rgba(45, 31, 30, 0.42), rgba(45, 31, 30, 0.05), rgba(45, 31, 30, 0.42));
}

.hero-panel__content {
  position: relative;
  z-index: 1;
  width: min(860px, 100%);
}

.hero-panel h2 {
  font-size: clamp(58px, 14vw, 132px);
  text-shadow: 0 24px 58px rgba(0, 0, 0, 0.34);
}

.lead,
.event-date {
  max-width: 720px;
  margin: 10px auto 0;
  color: var(--muted);
  font-size: 14px;
}

h4 {
  font-family: "Ocean Delight", cursive, serif;
  font-size: 21px;
  font-weight: 600;
  margin: 0;
  padding-top: 10px;
}

.hero-panel .lead,
.hero-panel .event-date {
  color: rgba(255, 255, 255, 0.88);
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(50px, 76px));
  justify-content: center;
  gap: 6px;
  margin: 24px auto 0;
}

.countdown div {
  min-height: 52px;
  display: grid;
  place-items: center;
  padding: 6px 5px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.countdown strong,
.countdown span {
  display: block;
}

.countdown strong {
  font-size: 20px;
  line-height: 1;
}

.countdown span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 9px;
  font-weight: 800;
}

.section {
  position: relative;
  overflow: hidden;
  padding: 86px clamp(20px, 6vw, 86px);
  text-align: center;
}

.section::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(159, 108, 86, 0.13);
  pointer-events: none;
}

.greeting-section {
  background: linear-gradient(180deg, #fffaf4, #f8ebe0);
}

.couple-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  max-width: 980px;
  margin: 25px auto 0;
}

.person-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
}

.person-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 8px;
}

.person-card h3 {
  margin-top: 20px;
}

.person-card p,
.event-cards p,
.event-cards small,
.gift-grid p,
.message-list p,
.empty {
  color: var(--muted);
}

.ampersand {
  color: var(--accent);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 50px;
  font-weight: 700;
}

.date-section {
  background:
    linear-gradient(rgba(255, 248, 240, 0.92), rgba(255, 248, 240, 0.92)),
    var(--date-image, url("https://images.unsplash.com/photo-1464366400600-7168b8af9bc3?auto=format&fit=crop&w=1600&q=80")) center / cover;
}

.quote {
  max-width: 780px;
  margin: 0 auto;
  color: var(--accent-dark);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1.08;
}

.quote-source {
  display: block;
  margin-top: 16px;
  color: var(--accent);
  font-weight: 800;
}

.event-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 980px;
  margin: 30px auto 0;
}

.event-cards article,
.gift-grid article,
.rsvp-form,
.message-list article,
.story-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.event-cards article {
  padding: 30px;
}

.event-cards span,
.gift-grid span,
.message-list span,
.story-list span {
  display: block;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.event-cards strong,
.gift-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 23px;
}

.event-cards small {
  display: block;
}

.gift-section {
  background: var(--paper-deep);
}

.gift-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  max-width: 1040px;
  margin: 38px auto 0;
}

.gift-grid article {
  padding: 26px;
}

.copy-button {
  min-height: 40px;
  margin-top: 5px;
  padding: 3px 19px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent-dark);
  background: var(--white);
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.gallery-section {
  background: #fffaf4;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 12px;
  max-width: 1120px;
  margin: 30x auto 0;
  padding-top: 20px;
}

.gallery-grid img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(62, 40, 34, 0.12);
}

.gallery-grid img:nth-child(1),
.gallery-grid img:nth-child(6) {
  grid-column: span 2;
  grid-row: span 2;
  height: 512px;
}

.story-section {
  background: linear-gradient(180deg, #f7e8dc, #fffaf4);
}

.story-list {
  display: grid;
  gap: 16px;
  max-width: 900px;
  margin: 30px auto 0;
  text-align: left;
}

.story-list article {
  position: relative;
  padding: 26px 28px 26px 86px;
}

.story-list span {
  position: absolute;
  top: 28px;
  left: 28px;
}

.story-list h3 {
  font-size: 27px;
}

.rsvp-section {
  background: #fffdf9;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 25px;
}

.rsvp-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 820px;
  margin: 0 auto;
  padding: 24px;
  text-align: left;
}

.rsvp-form label {
  display: grid;
  gap: 8px;
  color: var(--accent-dark);
  font-weight: 800;
}

.rsvp-form .full,
.rsvp-form button {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  background: var(--paper);
}

input:disabled,
select:disabled,
textarea:disabled,
button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.demo-rsvp-note {
  grid-column: 1 / -1;
  margin: 0 0 4px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--accent-dark);
  background: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

small {
  color: #b42318;
}

.notice {
  max-width: 820px;
  margin: 0 auto 18px;
  padding: 14px 16px;
  border-radius: 8px;
  color: #245b37;
  background: #eaf7ed;
  font-weight: 700;
}

.message-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 1040px;
  margin: 20px auto 0;
  text-align: left;
}

.message-list:has(article:nth-child(10)),
.message-list:has(article:nth-child(1):last-child) article:has(hr:nth-of-type(9)) {
  max-height: 520px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) rgba(255, 255, 255, 0.28);
}

.message-list:has(article:nth-child(10))::-webkit-scrollbar,
.message-list:has(article:nth-child(1):last-child) article:has(hr:nth-of-type(9))::-webkit-scrollbar {
  width: 6px;
}

.message-list:has(article:nth-child(10))::-webkit-scrollbar-thumb,
.message-list:has(article:nth-child(1):last-child) article:has(hr:nth-of-type(9))::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: var(--accent);
}

.message-list:has(article:nth-child(10))::-webkit-scrollbar-track,
.message-list:has(article:nth-child(1):last-child) article:has(hr:nth-of-type(9))::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.message-list article {
  padding: 20px;
}

.message-list strong {
  display: block;
  font-size: 18px;
}

.closing-section {
  position: relative;
  min-height: 78svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 88px 20px 118px;
  color: var(--white);
  text-align: center;
}

.closing-section img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.closing-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(45, 31, 30, 0.58);
}

.closing-section div {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.closing-section p {
  margin: 0 auto 22px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 30;
  display: flex;
  width: min(520px, calc(100vw - 28px));
  transform: translateX(-50%);
  overflow: hidden;
  border: 1px solid rgba(95, 53, 44, 0.16);
  border-radius: 999px;
  background: rgba(255, 250, 244, 0.9);
  box-shadow: 0 18px 48px rgba(62, 40, 34, 0.18);
  backdrop-filter: blur(16px);
}

.bottom-nav a {
  flex: 1;
  padding: 12px 8px;
  color: var(--accent-dark);
  font-size: 15px;
  font-weight: 800;
  text-align: center;
}

.closing-section + .gift-section {
  display: none;
}

.invitation-footer {
  padding: 34px 20px 96px;
  color: var(--white);
  background: #b28f78;
  text-align: center;
}

.invitation-footer p {
  margin: 0;
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
}

.invitation-footer span {
  color: #ff304f;
}

.invitation-footer__socials {
  display: flex;
  justify-content: center;
  gap: 36px;
  margin-top: 34px;
}

.invitation-footer__socials a {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--white);
  font-size: 32px;
  line-height: 1;
}

audio {
  display: none;
}

.music-toggle {
  position: fixed;
  right: 16px;
  bottom: 82px;
  z-index: 32;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--white);
  background: var(--accent);
  box-shadow: var(--shadow);
  cursor: pointer;
}

.music-toggle.is-playing {
  animation: spin 4s linear infinite;
}

@media (min-width: 768px) {
  body {
    min-height: 100vh;
    padding: 28px 0;
    background:
      radial-gradient(circle at 18% 8%, rgba(255, 255, 255, 0.72), transparent 22rem),
      linear-gradient(135deg, #f7efe8 0%, #ead9cc 100%);
  }

  .invitation-shell {
    position: relative;
    width: min(390px, 100%);
    height: min(844px, calc(100vh - 230px));
    min-height: 640px;
    margin: 0 auto;
    overflow-x: hidden;
    overflow-y: auto;
    border: 10px solid #111827;
    border-radius: 34px;
    background: var(--paper);
    box-shadow: 0 24px 70px rgba(17, 24, 39, 0.26);
    scrollbar-width: thin;
  }

  body.invitation-locked .invitation-shell {
    height: min(844px, calc(100vh - 230px));
  }

  .cover-gate {
    position: absolute;
    min-height: 100%;
  }

  .invitation-page {
    min-height: 100%;
  }

  .bottom-nav {
    position: sticky;
    bottom: 14px;
    left: auto;
    width: calc(100% - 28px);
    margin: -76px auto 14px;
    transform: none;
  }

  .music-toggle {
    position: sticky;
    right: auto;
    bottom: 82px;
    margin: -138px 16px 82px auto;
  }

  .invitation-shell h1 {
    font-size: clamp(54px, 18vw, 78px);
  }

  .invitation-shell h2,
  .invitation-shell .hero-panel h2 {
    font-size: clamp(46px, 15vw, 72px);
  }

  .invitation-shell .cover-gate {
    padding: 24px 18px;
  }

  .invitation-shell .hero-panel {
    padding: 74px 20px 112px;
  }

  .invitation-shell .couple-grid,
  .invitation-shell .event-cards,
  .invitation-shell .gift-grid,
  .invitation-shell .message-list {
    grid-template-columns: 1fr;
  }

  .invitation-shell .couple-grid {
    max-width: 460px;
  }

  .invitation-shell .ampersand {
    line-height: 1;
  }

  .invitation-shell .countdown {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .invitation-shell .countdown div {
    min-height: 48px;
    padding: 5px 3px;
  }

  .invitation-shell .countdown strong {
    font-size: 18px;
  }

  .invitation-shell .section {
    padding: 45px 20px;
  }

  .invitation-shell .section::before {
    inset: 10px;
  }

  .invitation-shell .person-card {
    padding: 14px;
  }

  .invitation-shell .event-cards article,
  .invitation-shell .gift-grid article {
    padding: 24px 18px;
  }

  .invitation-shell .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .invitation-shell .bottom-nav {
    bottom: 10px;
  }

  .invitation-shell .bottom-nav a {
    padding: 10px 5px;
    font-size: 11px;
  }
}

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

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

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 900px) {

  .couple-grid,
  .event-cards,
  .gift-grid,
  .message-list {
    grid-template-columns: 1fr;
  }

  .couple-grid {
    max-width: 460px;
  }

  .ampersand {
    line-height: 1;
  }

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

@media (max-width: 620px) {
  h1 {
    font-size: clamp(54px, 18vw, 78px);
  }

  h2,
  .hero-panel h2 {
    font-size: clamp(46px, 15vw, 72px);
  }

  .cover-gate {
    padding: 24px 18px;
  }

  .hero-panel {
    padding: 74px 20px 112px;
  }

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

  .countdown div {
    min-height: 48px;
    padding: 5px 3px;
  }

  .countdown strong {
    font-size: 18px;
  }

  .section {
    padding: 45px 20px;
  }

  .section::before {
    inset: 10px;
  }

  .person-card {
    padding: 14px;
  }

  .event-cards article,
  .gift-grid article {
    padding: 24px 18px;
  }

  .gallery-grid {
    gap: 8px;
  }

  .gallery-grid img {
    height: 190px;
  }

  .gallery-grid img:nth-child(1),
  .gallery-grid img:nth-child(6) {
    height: 388px;
  }

  .story-list article {
    padding: 24px;
  }

  .story-list span {
    position: static;
    margin-bottom: 8px;
  }

  .rsvp-form {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .bottom-nav {
    bottom: 10px;
  }

  .bottom-nav a {
    padding: 10px 5px;
    font-size: 11px;
  }
}
