﻿:root {
  --bg: #120f12;
  --paper: rgba(28, 22, 27, 0.78);
  --paper-strong: #241c22;
  --ink: #f7efe7;
  --muted: #cab8ab;
  --line: rgba(214, 181, 141, 0.16);
  --accent: #d48f6b;
  --accent-deep: #f0c7a0;
  --accent-soft: #4a3232;
  --gold: #d9b57a;
  --gold-soft: #5b4631;
  --rose-mist: #50363f;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
  --shadow-soft: 0 16px 32px rgba(0, 0, 0, 0.24);
  --radius-xl: 32px;
  --radius-lg: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(117, 69, 60, 0.38), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(217, 181, 122, 0.12), transparent 18%),
    radial-gradient(circle at bottom right, rgba(212, 143, 107, 0.16), transparent 24%),
    linear-gradient(180deg, #161116 0%, #0f0c10 52%, #09070a 100%);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(212, 143, 107, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 143, 107, 0.03) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at center, transparent 48%, rgba(0, 0, 0, 0.24) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(212, 143, 107, 0.04));
  pointer-events: none;
}

.page-glow {
  position: fixed;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.78;
  pointer-events: none;
  animation: driftGlow 10s ease-in-out infinite;
}

.page-glow-left {
  top: -140px;
  left: -120px;
  background: rgba(120, 71, 61, 0.46);
}

.page-glow-right {
  right: -120px;
  bottom: -150px;
  background: rgba(217, 181, 122, 0.14);
  animation-delay: -8s;
}

.fireworks-layer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  mix-blend-mode: screen;
  animation: fireworksFade 3.6s ease-out forwards;
}

.invitation-shell {
  position: relative;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  z-index: 2;
  padding:
    max(20px, env(safe-area-inset-top))
    0
    max(40px, calc(28px + env(safe-area-inset-bottom)));
}

.hero-card,
.detail-card,
.story-card,
.rsvp-card,
.footer-card {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--paper);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.hero-card {
  min-height: min(900px, calc(100svh - 32px));
  border-radius: 40px;
  padding: 48px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(38, 29, 35, 0.94), rgba(24, 18, 22, 0.84)),
    var(--paper);
}

.hero-card::selection {
  background: rgba(217, 181, 122, 0.24);
}

.hero-card::before,
.hero-card::after {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
}

.hero-card::after {
  inset: 44px;
  border-style: dashed;
  opacity: 0.45;
}

.hero-card::before {
  animation: frameGlow 4.2s ease-in-out infinite;
}

.hero-card::after {
  animation: framePulse 5.2s linear infinite;
}

.hero-card > * {
  position: relative;
  z-index: 1;
}

.hero-card .monogram::after,
.hero-card .monogram::before {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 1px solid rgba(217, 181, 122, 0.18);
}

.hero-card .monogram::after {
  inset: -24px;
  opacity: 0.55;
  animation: haloSpin 10s linear infinite;
}

.kicker,
.label,
.section-title {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--accent-deep);
  font-weight: 700;
}

.monogram {
  width: 132px;
  height: 132px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  margin: 24px 0;
  border: 1px solid rgba(217, 181, 122, 0.34);
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 245, 230, 0.2), transparent 32%),
    radial-gradient(circle, rgba(56, 42, 37, 0.98), rgba(31, 23, 28, 0.95));
  font-family: "Cormorant Garamond", serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-deep);
  box-shadow:
    inset 0 0 0 10px rgba(255, 255, 255, 0.03),
    0 18px 40px rgba(0, 0, 0, 0.24);
  animation: monogramGlow 3.6s ease-in-out infinite;
}

.intro,
.date-block p,
.detail-card p,
.story-copy p,
.footer-card p {
  color: var(--muted);
  line-height: 1.75;
}

.intro {
  width: min(640px, 100%);
  margin: 0 0 18px;
  font-size: 1.02rem;
}

.headline {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 8px 0 18px;
  position: relative;
}

.headline::after {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  top: 50%;
  height: 120%;
  transform: translateY(-50%);
  background: linear-gradient(90deg, transparent, rgba(217, 181, 122, 0.1), transparent);
  filter: blur(14px);
  animation: titleSweepIn 0.7s ease-out 0s both;
  pointer-events: none;
}

.headline h1,
.detail-card h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
}

.headline h1 {
  font-size: clamp(3.4rem, 8vw, 6.6rem);
  font-weight: 600;
  line-height: 0.92;
  text-shadow: 0 0 18px rgba(217, 181, 122, 0.12);
  opacity: 0;
  transform: translateY(10px) scale(0.995);
  filter: blur(4px);
  animation: titleSnapIn 0.55s cubic-bezier(0.2, 0.9, 0.2, 1) 0s forwards;
}

.headline h1 span {
  font-style: italic;
  color: var(--gold);
}

.line {
  width: clamp(48px, 10vw, 120px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217, 181, 122, 0.84), transparent);
}

.date-block {
  display: grid;
  gap: 8px;
  padding: 18px 26px;
  margin-top: 6px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(42, 32, 38, 0.88), rgba(30, 23, 28, 0.82));
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  animation: cardLift 4.5s ease-in-out infinite;
  width: min(100%, 430px);
}

.date-block p,
.date-block strong {
  margin: 0;
}

.date-block strong {
  font-family: "Cormorant Garamond", serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent-deep);
}

.cta {
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, #e0b27f, #b67856 58%, #8f563f);
  color: #1a1212;
  text-decoration: none;
  font-weight: 700;
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 248, 236, 0.26);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: buttonGlow 2.4s ease-in-out infinite;
  -webkit-tap-highlight-color: transparent;
}

.hero-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-actions .cta {
  margin-top: 0;
}

.cta-secondary {
  background: linear-gradient(135deg, rgba(240, 199, 160, 0.18), rgba(217, 181, 122, 0.08));
  color: var(--accent-deep);
  border: 1px solid rgba(217, 181, 122, 0.2);
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 248, 236, 0.08);
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow:
    0 22px 40px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 248, 236, 0.26);
}

.details-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.detail-card,
.footer-card {
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.detail-card {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;
}

.detail-card:hover,
.footer-card:hover,
.countdown div:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.24);
}

.detail-card h2 {
  font-size: 2.2rem;
  margin: 12px 0 8px;
  color: var(--accent-deep);
}

.location-link {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: fit-content;
  margin-top: 10px;
  padding: 14px 24px;
  min-height: 56px;
  border-radius: 999px;
  border: 1px solid rgba(190, 224, 255, 0.58);
  background:
    linear-gradient(135deg, #bfe9ff 0%, #4fb3ff 48%, #1f6ed4 100%);
  color: #07172c;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow:
    0 16px 30px rgba(0, 0, 0, 0.28),
    0 0 0 6px rgba(79, 179, 255, 0.12),
    0 0 34px rgba(79, 179, 255, 0.34),
    inset 0 1px 0 rgba(236, 249, 255, 0.5);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  animation: locationPulse 2.1s ease-in-out infinite;
}

.location-link::before {
  content: "•";
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 50%;
  background: rgba(7, 23, 44, 0.16);
  color: #f0fbff;
  font-size: 1.45rem;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(236, 249, 255, 0.32);
}

.location-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.32), transparent);
  transform: translateX(-120%) skewX(-18deg);
  animation: locationShine 3.2s ease-in-out infinite;
}

.location-link:hover {
  transform: translateY(-4px) scale(1.03);
  border-color: rgba(224, 246, 255, 0.82);
  box-shadow:
    0 22px 38px rgba(0, 0, 0, 0.34),
    0 0 0 8px rgba(79, 179, 255, 0.16),
    0 0 42px rgba(79, 179, 255, 0.46),
    inset 0 1px 0 rgba(236, 249, 255, 0.56);
}

.detail-card:nth-child(1) {
  background: linear-gradient(180deg, rgba(37, 28, 33, 0.96), rgba(30, 22, 27, 0.82));
}

.detail-card:nth-child(2) {
  background: linear-gradient(180deg, rgba(41, 29, 34, 0.96), rgba(55, 34, 40, 0.82));
}

.detail-card:nth-child(3) {
  background: linear-gradient(180deg, rgba(37, 29, 24, 0.96), rgba(51, 39, 29, 0.82));
}

.story-card {
  margin-top: 24px;
  border-radius: var(--radius-xl);
  padding: 34px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 22px;
  background:
    linear-gradient(180deg, rgba(34, 26, 31, 0.96), rgba(24, 18, 23, 0.84));
  align-items: center;
}

.rsvp-card {
  margin-top: 24px;
  border-radius: var(--radius-xl);
  padding: 34px;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
  background:
    linear-gradient(180deg, rgba(39, 29, 34, 0.96), rgba(23, 18, 22, 0.88));
  animation: cardLift 5.4s ease-in-out infinite;
}

.rsvp-copy h2 {
  margin: 12px 0 14px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.1rem, 4vw, 3rem);
  color: var(--accent-deep);
}

.rsvp-copy p:last-child {
  color: var(--muted);
  line-height: 1.8;
}

.rsvp-form {
  display: grid;
  gap: 16px;
}

.hidden-field {
  display: none;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  color: var(--accent-deep);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 15px 16px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

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

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(202, 184, 171, 0.72);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(217, 181, 122, 0.42);
  box-shadow: 0 0 0 4px rgba(217, 181, 122, 0.08);
  transform: translateY(-1px);
}

.form-actions {
  display: grid;
  gap: 12px;
  align-items: start;
}

.rsvp-submit {
  border: 0;
  cursor: pointer;
  width: fit-content;
  min-height: 56px;
}

.rsvp-submit:disabled {
  cursor: wait;
  opacity: 0.72;
}

.rsvp-status {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.story-copy {
  max-width: 62ch;
}

.countdown-card {
  border-radius: 26px;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(42, 31, 37, 0.98), rgba(27, 20, 25, 0.9));
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.countdown div {
  padding: 18px 12px;
  text-align: center;
  border-radius: 20px;
  background: var(--paper-strong);
  border: 1px solid rgba(217, 181, 122, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 10px 24px rgba(0, 0, 0, 0.18);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: countdownFloat 2.3s ease-in-out infinite;
}

.countdown div:nth-child(2) {
  animation-delay: 0.5s;
}

.countdown div:nth-child(3) {
  animation-delay: 1s;
}

.countdown div:nth-child(4) {
  animation-delay: 1.5s;
}

.countdown strong {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--accent-deep);
}

.countdown span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.footer-card {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  background:
    linear-gradient(180deg, rgba(35, 27, 32, 0.96), rgba(24, 18, 22, 0.84));
}

.footer-card p {
  margin: 10px 0 0;
}

.reveal {
  opacity: 0;
  transform: translateY(8px) scale(0.995);
  animation: revealUp 0.22s cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
}

.delay-1 { animation-delay: 0.01s; }
.delay-2 { animation-delay: 0.02s; }
.delay-3 { animation-delay: 0.03s; }
.delay-4 { animation-delay: 0.04s; }
.delay-5 { animation-delay: 0.05s; }

@keyframes revealUp {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fireworksFade {
  0% {
    opacity: 0.98;
  }
  75% {
    opacity: 0.8;
  }
  100% {
    opacity: 0;
  }
}

@keyframes driftGlow {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(36px, -28px, 0) scale(1.18);
  }
}

@keyframes monogramGlow {
  0%, 100% {
    transform: translateY(0) scale(1);
    box-shadow:
      inset 0 0 0 10px rgba(255, 255, 255, 0.03),
      0 18px 40px rgba(0, 0, 0, 0.24);
  }
  50% {
    transform: translateY(-10px) scale(1.07);
    box-shadow:
      inset 0 0 0 10px rgba(255, 255, 255, 0.06),
      0 0 30px rgba(217, 181, 122, 0.12),
      0 28px 56px rgba(0, 0, 0, 0.34);
  }
}

@keyframes buttonGlow {
  0%, 100% {
    transform: translateY(0) scale(1);
    box-shadow:
      0 18px 34px rgba(0, 0, 0, 0.24),
      0 0 0 rgba(217, 181, 122, 0),
      inset 0 1px 0 rgba(255, 248, 236, 0.26);
  }
  50% {
    transform: translateY(-6px) scale(1.04);
    box-shadow:
      0 28px 44px rgba(0, 0, 0, 0.32),
      0 0 28px rgba(217, 181, 122, 0.24),
      inset 0 1px 0 rgba(255, 248, 236, 0.32);
  }
}

@keyframes locationPulse {
  0%, 100% {
    box-shadow:
      0 16px 30px rgba(0, 0, 0, 0.28),
      0 0 0 6px rgba(79, 179, 255, 0.12),
      0 0 34px rgba(79, 179, 255, 0.34),
      inset 0 1px 0 rgba(236, 249, 255, 0.5);
  }
  50% {
    box-shadow:
      0 20px 36px rgba(0, 0, 0, 0.32),
      0 0 0 10px rgba(79, 179, 255, 0.18),
      0 0 48px rgba(79, 179, 255, 0.52),
      inset 0 1px 0 rgba(236, 249, 255, 0.58);
  }
}

@keyframes locationShine {
  0%, 58% {
    transform: translateX(-120%) skewX(-18deg);
  }
  78%, 100% {
    transform: translateX(120%) skewX(-18deg);
  }
}

@keyframes countdownFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px) scale(1.03);
  }
}

@keyframes cardLift {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes haloSpin {
  from {
    transform: rotate(0deg) scale(1);
  }
  to {
    transform: rotate(360deg) scale(1.05);
  }
}

@keyframes titleSnapIn {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.995);
    filter: blur(4px);
    text-shadow: 0 0 0 rgba(217, 181, 122, 0);
  }
  75% {
    opacity: 1;
    transform: translateY(0) scale(1.003);
    filter: blur(0);
    text-shadow:
      0 0 18px rgba(217, 181, 122, 0.16),
      0 0 28px rgba(217, 181, 122, 0.08);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
    text-shadow: 0 0 18px rgba(217, 181, 122, 0.12);
  }
}

@keyframes titleSweepIn {
  0% {
    transform: translate(-10%, -50%);
    opacity: 0;
  }
  40% {
    opacity: 0.55;
  }
  100% {
    transform: translate(8%, -50%);
    opacity: 0;
  }
}

@keyframes frameGlow {
  0%, 100% {
    box-shadow: inset 0 0 0 rgba(217, 181, 122, 0);
    border-color: var(--line);
  }
  50% {
    box-shadow: inset 0 0 30px rgba(217, 181, 122, 0.04);
    border-color: rgba(217, 181, 122, 0.28);
  }
}

@keyframes framePulse {
  0%, 100% {
    opacity: 0.35;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.01);
  }
}

@media (max-width: 920px) {
  .details-grid,
  .story-card,
  .rsvp-card,
  .footer-card {
    grid-template-columns: 1fr;
  }

  .hero-card {
    min-height: auto;
    padding: 68px 22px 44px;
  }

  .details-grid {
    gap: 14px;
  }

  .story-card,
  .rsvp-card,
  .footer-card {
    gap: 18px;
  }
}

@media (max-width: 640px) {
  .invitation-shell {
    width: min(100% - 14px, 1120px);
    padding-top: max(8px, env(safe-area-inset-top));
    padding-bottom: max(24px, calc(12px + env(safe-area-inset-bottom)));
  }

  .hero-card,
  .story-card,
  .rsvp-card,
  .detail-card,
  .footer-card {
    border-radius: 22px;
  }

  .hero-card::before {
    inset: 12px;
  }

  .hero-card::after {
    inset: 22px;
  }

  .headline {
    gap: 8px;
    margin-bottom: 14px;
  }

  .line {
    width: 28px;
  }

  .hero-card {
    min-height: calc(100svh - 18px);
    padding:
      max(26px, calc(14px + env(safe-area-inset-top)))
      16px
      max(24px, calc(12px + env(safe-area-inset-bottom)));
    justify-content: space-between;
  }

  .monogram {
    width: 100px;
    height: 100px;
    margin: 16px 0;
    font-size: 2rem;
  }

  .intro {
    width: 100%;
    margin-bottom: 12px;
    font-size: 0.96rem;
    line-height: 1.65;
  }

  .headline h1 {
    font-size: clamp(2.9rem, 15vw, 4.8rem);
    line-height: 0.9;
  }

  .date-block {
    width: 100%;
    gap: 6px;
    padding: 16px 14px;
    border-radius: 18px;
  }

  .date-block strong {
    font-size: 2.25rem;
  }

  .cta,
  .location-link,
  .rsvp-submit {
    width: 100%;
  }

  .hero-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }

  .details-grid,
  .story-card,
  .rsvp-card,
  .footer-card {
    margin-top: 16px;
  }

  .detail-card,
  .story-card,
  .rsvp-card,
  .footer-card {
    padding: 18px;
  }

  .detail-card h2,
  .rsvp-copy h2 {
    font-size: clamp(1.9rem, 8vw, 2.5rem);
  }

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

  .countdown-card {
    padding: 18px;
    border-radius: 20px;
  }

  .countdown div {
    padding: 14px 10px;
    border-radius: 16px;
  }

  .countdown strong {
    font-size: 2rem;
  }

  .field input,
  .field select,
  .field textarea {
    border-radius: 16px;
    padding: 14px 15px;
  }

  .field-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .invitation-shell {
    width: min(100% - 10px, 1120px);
  }

  .hero-card,
  .detail-card,
  .story-card,
  .rsvp-card,
  .footer-card {
    border-radius: 20px;
  }

  .headline {
    flex-direction: column;
    gap: 6px;
  }

  .line {
    width: 56px;
  }

  .headline h1 {
    font-size: clamp(2.6rem, 16vw, 4rem);
  }

  .kicker,
  .label,
  .section-title,
  .field span {
    letter-spacing: 0.12em;
  }

  .countdown {
    grid-template-columns: 1fr 1fr;
  }

  .footer-card {
    gap: 14px;
  }
}
