:root {
  --blush: #f7e4de;
  --blush-deep: #f0cfc8;
  --rose: #b85d73;
  --rose-deep: #8d4458;
  --ink: #3f2a26;
  --muted: #5c3d38;
  --gold: #c6a36a;
  --cream: #fffaf6;
  --line: rgba(184, 93, 115, 0.35);
  --script: "Italianno", "Great Vibes", cursive;
  --serif: "Cormorant Garamond", Georgia, serif;
  --display: "Cinzel", "Times New Roman", serif;
  --arabic: "Amiri", serif;
  --nav: 3.6rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.28rem;
  line-height: 1.7;
  background:
    radial-gradient(ellipse at 50% 0%, #fff 0%, transparent 42%),
    radial-gradient(ellipse at 10% 20%, rgba(255, 255, 255, 0.7), transparent 30%),
    linear-gradient(180deg, #fbece7 0%, #f3d5ce 48%, #f8e6e1 100%);
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

img,
canvas,
.invite {
  -webkit-user-drag: none;
}

#ribbons {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 8;
  pointer-events: none;
}

#webgl {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

#envgl {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.envelope-screen {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background:
    radial-gradient(ellipse at 50% 18%, rgba(255, 255, 255, 0.85), transparent 42%),
    linear-gradient(180deg, #fbece7 0%, #f3d2cb 100%);
  transition: opacity 1.15s ease, visibility 0s linear 1.15s;
}

.envelope {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  padding: 0.4rem 0 0.2rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.env-stage {
  display: block;
  perspective: 1200px;
  perspective-origin: 50% 18%;
  width: min(360px, 92%);
  margin: 0 auto 1.35rem;
}

.env-shell {
  display: block;
  position: relative;
  height: 230px;
  transform-style: preserve-3d;
  animation: env-float 5.5s ease-in-out infinite;
}

.env-back,
.env-pocket,
.env-cardlet,
.env-flap {
  position: absolute;
  left: 0;
  right: 0;
}

.env-back {
  inset: 0;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.35), transparent 30%),
    linear-gradient(145deg, #f8ddd6, #e7b7b4);
  box-shadow: 0 22px 28px rgba(150, 84, 96, 0.22);
}

.env-cardlet {
  top: 16px;
  left: 18px;
  right: 18px;
  height: 74%;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  border-radius: 10px;
  border: 1px solid rgba(198, 163, 106, 0.55);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.65), transparent 28%),
    #fffaf6;
  color: var(--rose-deep);
  font-family: var(--script);
  font-size: 2.4rem;
  line-height: 0.9;
  transition: transform 1.85s cubic-bezier(0.22, 0.7, 0.2, 1) 0.55s;
}

.env-cardlet small {
  font-family: var(--display);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.env-pocket {
  inset: 0;
  z-index: 2;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), transparent 24%),
    linear-gradient(180deg, #fffdfb, #f6e4de);
  clip-path: polygon(0 0, 50% 62%, 100% 0, 100% 100%, 0 100%);
}

.env-flap {
  top: 0;
  height: 62%;
  z-index: 3;
  transform: translateY(0);
  transition: transform 1.9s cubic-bezier(0.33, 0, 0.2, 1);
}

.env-flap-face,
.env-flap-back {
  position: absolute;
  inset: 0;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  backface-visibility: hidden;
}

.env-flap-face {
  background: linear-gradient(180deg, #fff8f4 0%, #f0c9c4 100%);
}

.env-flap-back {
  background: linear-gradient(180deg, #f6d2cc 0%, #fff7f4 100%);
  transform: rotateX(180deg);
}

.env-seal {
  position: absolute;
  left: 50%;
  bottom: 16%;
  width: 4.4rem;
  height: 4.4rem;
  margin-left: -2.2rem;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fffaf6;
  background: radial-gradient(circle at 35% 30%, #e7c27a, #b85d73 62%, #8d4458);
  box-shadow:
    0 8px 16px rgba(141, 68, 88, 0.35),
    inset 0 0 0 4px rgba(255, 250, 246, 0.28);
  font-family: var(--display);
  letter-spacing: 0.12em;
  line-height: 1;
}

.env-seal i {
  font-family: var(--script);
  font-style: normal;
  letter-spacing: 0;
  font-size: 1.15rem;
  line-height: 0.7;
}

.env-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.env-kicker,
.env-tap {
  font-family: var(--display);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.84rem;
  color: var(--rose);
}

.env-script {
  margin-top: 0.35rem;
  font-family: var(--script);
  font-size: clamp(3.2rem, 12vw, 4.6rem);
  line-height: 0.85;
  color: var(--rose);
}

.env-names {
  margin: 0.45rem 0 0.7rem;
  font-family: var(--serif);
  font-size: 1.55rem;
}

.env-names i {
  font-family: var(--script);
  font-style: normal;
  color: var(--gold);
  font-size: 1.7rem;
}

.env-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  margin-top: 0.35rem;
  padding: 0.65rem 1.2rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 250, 246, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 10px 28px rgba(150, 84, 96, 0.12);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.7s ease, transform 0.7s ease, visibility 0.7s ease;
}

.env-hint.is-shown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.env-arrow {
  width: 0.55rem;
  height: 0.55rem;
  margin-bottom: 0.15rem;
  border-right: 2px solid var(--rose-deep);
  border-bottom: 2px solid var(--rose-deep);
  transform: rotate(-135deg);
}

.env-tap {
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--rose-deep);
}

.env-tap-bn {
  font-family: "Noto Serif Bengali", serif;
  font-size: 0.98rem;
  color: var(--rose-deep);
}

body.is-opening .env-shell,
.envelope-screen.is-opening .env-shell {
  animation: none;
  transform: none;
}

body.is-opening .env-flap,
.envelope-screen.is-opening .env-flap {
  transform: translateY(-52%);
}

body.is-opening .env-cardlet,
.envelope-screen.is-opening .env-cardlet {
  z-index: 4;
  transform: translateY(-54%);
}

@keyframes env-float {
  0%,
  100% {
    transform: translateY(0) rotateX(2deg);
  }
  50% {
    transform: translateY(-8px) rotateX(6deg);
  }
}

body.is-open .envelope-screen,
.envelope-screen.is-open {
  opacity: 0;
  pointer-events: none;
}

body:not(.is-open):not(.is-opening) {
  overflow: hidden;
}

body:not(.is-open) .nav,
body:not(.is-open) main,
body:not(.is-open) footer {
  visibility: hidden;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 30;
  background: var(--rose);
  color: white;
  padding: 0.55rem 0.8rem;
  text-decoration: none;
}

.skip:focus {
  top: 0.6rem;
}

.nav {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 1.1rem;
  min-height: var(--nav);
  padding: 0.85rem 1rem 0.2rem;
}

.brand,
.nav a {
  color: var(--rose-deep);
  text-decoration: none;
  font-family: var(--display);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand {
  letter-spacing: 0.28em;
}

.nav nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0.9rem;
}

.nav nav a:hover,
.nav nav a:focus-visible {
  color: var(--rose);
}

main {
  position: relative;
}

.footer {
  position: relative;
  z-index: 2;
}

.card-stage {
  position: relative;
  z-index: 2;
  perspective: 1400px;
  width: min(520px, calc(100% - 1.25rem));
  margin: 0.6rem auto 0;
}

.lang-screen {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(120, 72, 78, 0.28);
  backdrop-filter: blur(4px);
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.lang-card {
  width: min(420px, 100%);
  padding: 1.85rem 1.6rem 1.6rem;
  border-radius: 22px;
  text-align: center;
  background: rgba(255, 250, 246, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 24px 50px rgba(120, 64, 72, 0.22);
  backdrop-filter: blur(12px);
  transform: translateY(0) scale(1);
  opacity: 1;
  transition: transform 0.45s cubic-bezier(0.22, 0.8, 0.28, 1), opacity 0.4s ease;
}

.lang-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.lang-screen.is-hidden .lang-card {
  transform: translateY(16px) scale(0.96);
  opacity: 0;
}

.lang-kicker {
  margin: 0;
  font-family: var(--display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.88rem;
  color: var(--rose);
}

.lang-screen h2 {
  margin: 0.55rem 0 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 6vw, 2.6rem);
  line-height: 1.15;
  color: var(--ink);
}

.lang-sub {
  margin: 0.35rem 0 1.15rem;
  font-family: "Noto Serif Bengali", serif;
  font-size: 1.25rem;
  line-height: 1.4;
  color: var(--rose-deep);
}

.lang-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.85rem;
}

.lang-btn {
  flex: 1;
  max-width: 10.5rem;
  min-height: 3.15rem;
  padding: 0 1rem;
  border-radius: 999px;
  border: 1px solid var(--rose);
  background: #fff;
  color: var(--rose-deep);
  font-family: "Noto Serif Bengali", var(--serif);
  font-size: 1.28rem;
  line-height: 1;
  cursor: pointer;
}

.lang-btn:hover,
.lang-btn:focus-visible {
  background: var(--rose);
  color: #fff;
}

html[lang="bn"] body {
  font-family: "Noto Serif Bengali", var(--serif);
}

html[lang="bn"] h1 .script-name {
  font-size: clamp(1.65rem, 5.6vw, 2.2rem);
  line-height: 1.25;
}

h1 .script-name[data-i18n="bride-name"] {
  white-space: nowrap;
}
html[lang="bn"] .script-name,
html[lang="bn"] .with,
html[lang="bn"] .signature,
html[lang="bn"] .panel h2,
html[lang="bn"] .env-script,
html[lang="bn"] .env-cardlet,
html[lang="bn"] .medallion strong {
  font-family: "Noto Serif Bengali", serif;
}

.invite {
  position: relative;
  width: 100%;
  margin: 0;
  transform-style: preserve-3d;
  cursor: grab;
  touch-action: pan-y;
  background: rgba(255, 252, 250, 0.78);
  border: 1px solid rgba(214, 170, 160, 0.85);
  border-radius: 28px 28px 22px 22px;
  box-shadow:
    0 24px 60px rgba(166, 96, 104, 0.16),
    inset 0 0 0 7px rgba(255, 250, 246, 0.65),
    inset 0 0 0 8px rgba(214, 176, 164, 0.45);
  overflow: hidden;
}

.garland {
  position: absolute;
  top: 0;
  width: 34%;
  height: 68%;
  object-fit: cover;
  object-position: left top;
  mix-blend-mode: multiply;
  opacity: 0.67;
  pointer-events: none;
  z-index: 1;
}

.garland-left {
  left: 0;
}

.garland-right {
  right: 0;
  transform: scaleX(-1);
  object-position: left top;
}

.invite-copy {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 1.15rem 10% 1.6rem;
}

.arch {
  color: var(--gold);
  width: min(280px, 78%);
  margin: 0.35rem auto 0;
}

.arch svg {
  width: 100%;
  height: auto;
  display: block;
}

.bismillah {
  margin: 0.45rem 0 0.9rem;
  font-family: var(--arabic);
  font-size: clamp(1.35rem, 4.2vw, 1.7rem);
  line-height: 1.35;
  color: var(--rose-deep);
}

.bismillah-small {
  font-size: 1.45rem;
}

.kicker,
.venue-label,
.role,
.count-label {
  margin: 0;
  font-family: var(--display);
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rose-deep);
}

.invite-copy .kicker {
  font-weight: 600;
}

.lead {
  margin: 0.85rem 0 0;
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1.55;
}

.lead-strong {
  margin-top: 0.7rem;
  font-family: var(--display);
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rose-deep);
}

.lead-tight {
  margin-top: 0.2rem;
}

h1 {
  margin: 1.25rem 0 0;
  font-weight: 400;
}

.script-name,
.script-name-long,
h1 .surname {
  display: block;
  font-family: var(--script);
  font-size: clamp(2.4rem, 8vw, 3.4rem);
  line-height: 1.05;
  color: var(--rose);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  margin-top: 0.15rem;
  padding: 0 0.2rem;
}

.with {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  margin: 0.85rem 0 0.35rem;
  font-family: var(--script);
  font-size: 1.8rem;
  color: var(--gold);
}

.with::before,
.with::after {
  content: "";
  width: 2.2rem;
  height: 1px;
  background: rgba(198, 163, 106, 0.7);
}

.occasion {
  margin: 1.85rem 0 0;
  font-family: var(--display);
  font-size: clamp(0.98rem, 3vw, 1.12rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rose-deep);
}

.when {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.45rem;
}

.side-date,
.medallion {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.side-date span,
.medallion span,
.side-date em,
.medallion em,
.medallion small {
  font-style: normal;
  font-family: var(--display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  font-size: 0.88rem;
}

.side-date strong,
.side-date b,
.medallion strong {
  font-weight: 500;
}

.side-date strong {
  margin-top: 0.35rem;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 3.6vw, 1.5rem);
  line-height: 1.25;
  color: var(--ink);
}

.side-date b {
  margin-top: 0.25rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.12rem;
  color: var(--rose);
}

.medallion {
  width: 9.2rem;
  height: 9.2rem;
  border-radius: 50%;
  border: 1px solid #e4c7b4;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.9), rgba(255, 246, 242, 0.4) 70%);
  box-shadow:
    inset 0 0 0 4px rgba(255, 250, 246, 0.95),
    inset 0 0 0 5px rgba(198, 163, 106, 0.55);
  padding: 0.7rem;
}

.medallion strong {
  font-family: var(--script);
  font-size: 2rem;
  line-height: 0.9;
  color: var(--rose);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}

.medallion em {
  color: var(--rose-deep);
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-transform: none;
  max-width: 7.2rem;
}

.venue-label {
  margin-top: 0.95rem;
}

.venue {
  margin: 0.55rem 0 0;
  font-size: clamp(1.2rem, 3.6vw, 1.45rem);
  line-height: 1.55;
}

.venue-link {
  color: inherit;
  text-decoration: none;
  display: inline-block;
}

.venue-map {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 0.45rem;
  font-family: var(--display);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rose);
}

.venue-map svg {
  width: 0.85rem;
  height: 0.85rem;
  flex: none;
}

.venue-link:hover .venue-map,
.venue-link:focus-visible .venue-map {
  color: var(--rose-deep);
}

.blessing {
  margin: 1.1rem auto 0.4rem;
  max-width: 13.5rem;
  padding: 0 0.35rem 0.6rem;
  font-family: var(--serif);
  font-size: 1.32rem;
  line-height: 1.65;
  color: var(--rose-deep);
}

html[lang="bn"] .blessing {
  font-family: "Noto Serif Bengali", serif;
  font-size: 1.22rem;
  line-height: 1.7;
  max-width: 14.5rem;
}

.garden-frame {
  position: relative;
  z-index: 2;
  height: 230px;
  margin-top: 1rem;
  overflow: hidden;
}

.garden-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  display: block;
}

.band,
.panel {
  position: relative;
  z-index: 2;
  width: min(720px, calc(100% - 1.5rem));
  margin: 2.2rem auto 0;
  text-align: center;
}

.count {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
  max-width: 420px;
  margin: 0.7rem auto 0;
}

.count div {
  background: rgba(255, 250, 246, 0.72);
  border: 1px solid rgba(214, 170, 160, 0.7);
  border-radius: 14px;
  padding: 0.65rem 0.2rem;
  backdrop-filter: blur(8px);
}

.count b {
  display: block;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.2rem, 4vw, 1.6rem);
  font-variant-numeric: tabular-nums;
  color: var(--rose-deep);
}

.count span {
  font-family: var(--display);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 1rem;
}

.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--rose);
  background: var(--rose);
  color: #fffaf6;
  font-family: var(--display);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover,
.btn:focus-visible {
  background: var(--rose-deep);
}

.btn-ghost {
  background: rgba(255, 250, 246, 0.55);
  color: var(--rose-deep);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: #fff;
  color: var(--rose-deep);
}

.toast {
  min-height: 1.3rem;
  margin: 0.7rem 0 0;
  color: var(--rose-deep);
  font-style: italic;
}

.panel {
  background: rgba(255, 250, 246, 0.78);
  border: 1px solid rgba(214, 170, 160, 0.75);
  border-radius: 24px;
  padding: 1.6rem 1rem 1.4rem;
  box-shadow: 0 16px 40px rgba(166, 96, 104, 0.08);
  scroll-margin-top: 1rem;
}

.panel h2,
.panel h3 {
  font-weight: 500;
  margin: 0.2rem 0 0;
}

.panel h2 {
  font-family: var(--script);
  font-size: clamp(2.4rem, 7vw, 3.3rem);
  color: var(--rose);
  font-weight: 400;
  line-height: 1;
}

.families {
  display: grid;
  gap: 1.15rem;
  margin-top: 1.4rem;
  text-align: center;
}

.families article {
  padding: 1.35rem 1.1rem 1.25rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(230, 196, 186, 0.8);
}

.families h3 {
  font-size: 1.7rem;
}

.families p,
.families address {
  margin: 0.45rem 0 0;
  line-height: 1.55;
}

.families address {
  font-style: normal;
  color: var(--muted);
}

.letter {
  position: relative;
  margin-top: 1.35rem;
  text-align: left;
  background:
    linear-gradient(180deg, rgba(255, 253, 251, 0.94) 0%, rgba(255, 253, 251, 0.88) 58%, rgba(255, 248, 244, 0.72) 100%),
    url("images/letter-couple.jpg") center 70% / cover no-repeat;
  border-radius: 18px;
  padding: 1.7rem 1.4rem 1.8rem;
  border: 1px solid rgba(230, 196, 186, 0.9);
  overflow: hidden;
}

.letter p,
.letter .signature {
  position: relative;
  z-index: 1;
}

.letter p {
  margin: 0 0 1.15rem;
  line-height: 1.75;
  font-size: 1.35rem;
  color: var(--ink);
}

.greeting {
  font-family: var(--display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.92rem;
}

.dua {
  font-style: italic;
}

.signature {
  margin-bottom: 0.1rem !important;
  font-family: "Great Vibes", cursive;
  font-size: 2.3rem;
  line-height: 1;
  color: var(--rose);
}

.sign-families,
.regards {
  margin-bottom: 0.2rem !important;
}

.sign-families {
  margin-bottom: 0 !important;
}

.footer {
  text-align: center;
  padding: 1.6rem 1rem 2.4rem;
  color: var(--muted);
}

.footer p {
  margin: 0.15rem 0;
}

.invite,
.panel,
.band {
  scroll-margin-top: 0.8rem;
}

:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 3px;
}

::selection {
  background: rgba(184, 93, 115, 0.22);
}

@media (min-width: 720px) {
  .invite {
    margin-top: 0.4rem;
  }

  .garden-frame {
    height: 300px;
  }

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

  .letter {
    padding: 1.8rem 1.8rem 1.6rem;
  }

  .invite-copy {
    padding-inline: 14%;
  }
}

@media (max-width: 420px) {
  .garland {
    width: 28%;
    opacity: 0.32;
  }

  .invite-copy {
    padding-inline: 11%;
  }

  .medallion {
    width: 8.4rem;
    height: 8.4rem;
  }

  .medallion strong {
    font-size: 1.65rem;
  }

  .garden-frame {
    height: 210px;
  }
}

@media (max-width: 340px) {
  .when {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .medallion {
    order: -1;
  }
}

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

  .env-flap,
  .env-cardlet,
  .envelope-screen {
    transition: none;
  }

  .env-shell {
    animation: none;
  }
}
