@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Manrope:wght@400;500;600&family=Marck+Script&display=swap");
:root {
  --green: #2d4b3b;
  --ink: #243d31;
  --muted: #526356;
  --line: #aebbad;
  --paper: #f5f5f1;
  --serif: "Cormorant Garamond", Georgia, serif;
  --script: "Marck Script", cursive;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--ink);
  font-family: Manrope, sans-serif;
  font-size: 15px;
  background: #eceee9;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
img {
  display: block;
  max-width: 100%;
}
[hidden] {
  display: none !important;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 5px;
}
#silk,
.silk-fallback {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}
.silk-fallback {
  background:
    linear-gradient(#fff8, #fff8),
    url("/assets/silk.webp") center/cover;
  z-index: -2;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  padding: 28px 5%;
  color: var(--green);
}
.monogram {
  font: 30px var(--serif);
  letter-spacing: 3px;
}
.monogram span {
  font-style: italic;
  font-size: 20px;
}
.header-rsvp {
  font-size: 11px;
  letter-spacing: 0.7px;
  border-bottom: 1px solid #677b6555;
  padding: 8px 0;
}
.header-rsvp span {
  margin-left: 12px;
}
main {
  max-width: 1600px;
  margin: auto;
}
section {
  text-align: center;
  scroll-margin-top: 30px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
  line-height: 1.8;
  margin: 0 0 22px;
}
h1,
h2,
p {
  margin-top: 0;
}
h2 {
  font: 500 clamp(44px, 5vw, 68px)/1.1 var(--serif);
  margin-bottom: 30px;
}
.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  position: relative;
}
.hero-photo {
  height: 100svh;
  overflow: hidden;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  mask-image: linear-gradient(to right, #000 83%, transparent);
}
.hero-copy {
  padding: 90px 6% 60px;
}
.hero h1 {
  font: clamp(74px, 8vw, 130px)/0.92 var(--script);
  margin: 30px 0 38px;
}
.hero h1 span {
  display: block;
  font-size: 0.35em;
  margin: 12px 0;
}
.hero-date {
  font: italic 27px var(--serif);
}
.hero-date i {
  margin: 0 12px;
}
.scroll-cue {
  font-size: 9px;
  letter-spacing: 2px;
  display: block;
  margin-top: 70px;
  line-height: 1.8;
}
.scroll-cue span {
  font-size: 24px;
  display: block;
  margin-top: 16px;
}
.letter {
  padding: 100px 24px 75px;
  max-width: 700px;
  margin: auto;
}
.letter h2 {
  font-family: var(--script);
  font-size: 62px;
}
.letter-copy {
  font: italic 27px/1.5 var(--serif);
  max-width: 530px;
  margin: auto;
}
.letter-copy p {
  margin-bottom: 22px;
}
.date-line {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 40px auto 28px;
}
.date-line > span {
  font-size: 10px;
  letter-spacing: 3px;
}
.date-line strong {
  font: 70px var(--serif);
  letter-spacing: 3px;
}
.date-line i {
  font-size: 44px;
  font-weight: 400;
  color: #899982;
}
.text-link {
  font-size: 12px;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  display: inline-block;
}
.photo-section {
  padding: 30px 7% 70px;
  max-width: 1020px;
  margin: auto;
}
.photo-section img {
  width: 100%;
  aspect-ratio: 1.4;
  object-fit: cover;
}
.photo-section p {
  font: italic 28px var(--serif);
  margin: 26px 0 0;
}
.venue {
  padding: 60px 24px 90px;
}
.venue h2 {
  font: italic 60px var(--serif);
  letter-spacing: 4px;
}
.venue img {
  max-width: 760px;
  width: 100%;
  margin: 0 auto 30px;
}
.address {
  font: italic 26px var(--serif);
  margin-bottom: 22px;
}
.button {
  display: inline-flex;
  gap: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--green);
  background: var(--green);
  color: #fffdf6;
  border-radius: 30px;
  padding: 15px 30px;
  min-height: 49px;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.2s;
}
.button:hover {
  background: #1c3428;
}
.rsvp {
  background: #e7ede3b8;
  padding: 70px 24px;
}
.rsvp > p:not(.eyebrow) {
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
}
form {
  max-width: 440px;
  margin: 32px auto 0;
  text-align: left;
}
form > label,
#party-field > label {
  display: block;
  font-size: 12px;
  margin: 22px 0 10px;
}
form label small {
  color: var(--muted);
  font-size: 10px;
  margin-left: 8px;
}
input[type="text"],
input:not([type]),
input[type="password"],
textarea,
select {
  display: block;
  width: 100%;
  border: 1px solid #aab6a4;
  background: #ffffff88;
  border-radius: 3px;
  padding: 14px;
  color: var(--ink);
  font-size: 14px;
}
textarea {
  resize: vertical;
}
fieldset {
  padding: 0;
  border: 0;
  margin: 24px 0;
}
legend {
  font-size: 12px;
  margin-bottom: 12px;
}
.choice {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  font-size: 14px;
  cursor: pointer;
}
input[type="radio"] {
  accent-color: var(--green);
  width: 18px;
  height: 18px;
  margin: 0;
}
.rsvp .button {
  display: flex;
  margin: 25px auto 0;
  min-width: 200px;
}
.form-note {
  font-size: 10px;
  line-height: 1.7;
  display: block;
  text-align: center;
  color: var(--muted);
}
#form-status {
  font-size: 13px;
  line-height: 1.7;
  text-align: center;
  margin: 20px 0 12px;
}
#form-status.error {
  color: #9c3028;
}
.countdown-section {
  padding: 80px 24px;
}
.countdown-section h2 {
  font: italic 42px var(--serif);
}
.countdown {
  display: flex;
  justify-content: center;
  gap: 55px;
}
.countdown strong {
  font: italic 70px var(--serif);
  display: block;
}
.countdown span {
  font: italic 22px var(--serif);
}
.closing {
  position: relative;
  max-width: 1000px;
  margin: auto;
}
.closing img {
  width: 100%;
  max-height: 840px;
  object-fit: cover;
}
.closing:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 20%, #10271d99);
}
.closing > div {
  position: absolute;
  z-index: 1;
  bottom: 10%;
  left: 20px;
  right: 20px;
  color: #fffdf5;
  text-shadow: 0 2px 15px #15281d;
}
.closing p {
  font: italic clamp(44px, 5vw, 70px)/1.2 var(--serif);
  margin-bottom: 25px;
}
.closing span {
  font: italic 24px var(--serif);
}
footer {
  text-align: center;
  padding: 35px 20px;
  display: grid;
  gap: 10px;
  font-size: 9px;
  letter-spacing: 2px;
}
.footer-mark {
  font-size: 25px;
}
@media (max-width: 700px) {
  header {
    padding: 20px 6%;
    color: #fff;
    text-shadow: 0 1px 8px #0008;
  }
  .monogram {
    font-size: 26px;
  }
  .header-rsvp {
    font-size: 9px;
    border-color: #ffffff66;
  }
  .hero {
    display: block;
    min-height: 0;
  }
  .hero-photo {
    height: 65svh;
    min-height: 400px;
  }
  .hero-photo img {
    object-position: center 35%;
    mask-image: linear-gradient(#000 65%, transparent);
  }
  .hero-copy {
    position: relative;
    margin-top: -45px;
    padding: 0 22px 55px;
  }
  .hero-copy .eyebrow {
    font-size: 8px;
    letter-spacing: 2px;
  }
  .hero h1 {
    font-size: 86px;
    margin: 20px 0 28px;
  }
  .hero-date {
    font-size: 25px;
  }
  .scroll-cue {
    margin-top: 36px;
    font-size: 8px;
  }
  .letter {
    padding: 45px 25px 55px;
  }
  .letter h2 {
    font-size: 47px;
  }
  .letter-copy {
    font-size: 25px;
    line-height: 1.45;
  }
  .eyebrow {
    font-size: 9px;
    letter-spacing: 2px;
  }
  .photo-section {
    padding: 15px 6% 40px;
  }
  .photo-section p {
    font-size: 25px;
  }
  .venue {
    padding: 45px 22px 60px;
  }
  .venue h2 {
    font-size: 50px;
  }
  .address {
    font-size: 24px;
  }
  .rsvp {
    padding: 55px 24px;
  }
  .rsvp h2 {
    font-size: 44px;
  }
  .rsvp > p:not(.eyebrow) {
    font-size: 12px;
  }
  .countdown-section {
    padding: 60px 20px;
  }
  .countdown-section h2 {
    font-size: 35px;
  }
  .countdown {
    gap: 32px;
  }
  .countdown strong {
    font-size: 58px;
  }
  .countdown span {
    font-size: 20px;
  }
  .closing img {
    aspect-ratio: 0.85;
    object-position: center;
  }
  .closing p {
    font-size: 42px;
  }
  .closing span {
    font-size: 21px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body:not(.owner-page) header .monogram {
  color: #fffdf5;
  text-shadow: 0 1px 10px #0007;
}

#silk {
  opacity: 0;
}
#silk[data-ready="true"] {
  opacity: 1;
}

.silk-fallback {
  inset: -6%;
  width: 112%;
  height: 112%;
  animation: silk-drift 9s ease-in-out infinite alternate;
}
.silk-paused .silk-fallback {
  animation-play-state: paused;
}
@keyframes silk-drift {
  from {
    transform: translate(-2%, -1%) rotate(-1deg) scale(1.03);
  }
  to {
    transform: translate(2%, 2%) rotate(1deg) scale(1.08);
  }
}

.footer-brand {
  display: block;
  justify-self: center;
  width: 175px;
}
.footer-brand img {
  width: 100%;
  height: auto;
  mix-blend-mode: normal;
}
.photo-section img,
.venue img,
.closing img {
  height: auto;
}

body.invitation-closed {
  overflow: hidden;
}
.opening {
  position: fixed;
  inset: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  border: 0;
  padding: 35px 24px;
  color: var(--green);
  background:
    linear-gradient(#f5f6f044, #f5f6f044),
    url("/assets/silk.webp") center/cover;
  overflow: hidden;
  touch-action: none;
  overscroll-behavior: contain;
}
.opening[open] {
  display: grid;
  place-items: center;
}
.opening::backdrop {
  background: #e6eae3;
}
.opening-content {
  text-align: center;
  width: min(100%, 600px);
}
.opening .eyebrow {
  font-size: 10px;
  letter-spacing: 3px;
}
.opening-seal {
  border: 1px solid #67806866;
  border-radius: 50%;
  width: 83px;
  height: 83px;
  display: grid;
  place-content: center;
  grid-auto-flow: column;
  align-items: center;
  gap: 5px;
  margin: 25px auto 35px;
  font: 26px var(--serif);
  box-shadow:
    inset 0 0 0 5px #ffffff44,
    0 7px 25px #203b2810;
}
.opening-seal i {
  font-size: 17px;
}
.opening h2 {
  font: clamp(64px, 10vw, 108px)/0.95 var(--script);
  margin: 0 0 28px;
}
.opening h2 span {
  display: block;
  font-size: 0.35em;
  margin: 12px 0;
}
.opening-date {
  font: italic 25px var(--serif);
  margin-bottom: 28px;
}
.opening-line {
  height: 46px;
  width: 1px;
  background: linear-gradient(transparent, #5b795a);
  margin: 0 auto 18px;
  transform-origin: bottom;
  animation: invite-up 2.3s ease-in-out infinite;
}
.swipe-label {
  font-size: 12px;
  line-height: 1.9;
  letter-spacing: 0.3px;
  margin-bottom: 22px;
}
.opening-button {
  color: var(--green);
  border: 1px solid #5b795a88;
  background: #ffffff88;
  border-radius: 30px;
  padding: 13px 25px;
  min-height: 46px;
  font-size: 12px;
}
.opening-button:hover {
  background: #fff;
}
.opening.revealing {
  pointer-events: none;
}
.tap-heart {
  position: fixed;
  pointer-events: none;
  z-index: 10000;
  line-height: 1;
  user-select: none;
  text-shadow: 0 2px 7px #ffffff99;
  will-change: transform, opacity;
}
@keyframes invite-up {
  0%,
  100% {
    transform: translateY(5px) scaleY(0.7);
    opacity: 0.4;
  }
  50% {
    transform: translateY(-5px) scaleY(1);
    opacity: 1;
  }
}
@media (max-height: 800px) {
  .opening {
    padding: 20px;
  }
  .opening-seal {
    width: 60px;
    height: 60px;
    margin: 12px auto 20px;
  }
  .opening h2 {
    font-size: 65px;
    margin-bottom: 18px;
  }
  .opening-date {
    margin-bottom: 15px;
  }
  .opening-line {
    height: 26px;
    margin-bottom: 12px;
  }
  .swipe-label {
    margin-bottom: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .opening-line {
    animation: none;
  }
}

/* Preserve the original invitation artwork without clipping its composition. */
.venue img {
  object-fit: contain;
}
.closing img {
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
}
.pdf-date > span {
  font: italic 30px var(--serif);
  letter-spacing: 0;
}
.pdf-date > strong {
  font: italic 38px var(--serif);
  letter-spacing: 0;
}
@media (max-width: 700px) {
  .hero-photo {
    height: auto;
    min-height: 0;
    aspect-ratio: 5 / 7;
  }
  .hero-photo img {
    object-fit: contain;
    object-position: center;
  }
  .closing img {
    aspect-ratio: auto;
  }
}

/* Silk opens from the centre while the invitation settles into focus. */
.opening {
  background: transparent;
}
.opening::backdrop {
  background: transparent;
}
.opening-curtain {
  position: absolute;
  top: 0;
  bottom: -6%;
  width: 50.2%;
  background-image:
    linear-gradient(#f5f6f030, #f5f6f030), url("/assets/silk.webp");
  background-size: 200% 100%;
  will-change: transform;
}
.curtain-left {
  left: 0;
  background-position: left center;
  transform: translateX(calc(-1 * var(--swipe, 0px)));
  transform-origin: top left;
  box-shadow: 8px 0 28px #29412c18;
}
.curtain-right {
  right: 0;
  background-position: right center;
  transform: translateX(var(--swipe, 0px));
  transform-origin: top right;
  box-shadow: -8px 0 28px #29412c18;
}
.opening-content {
  position: relative;
  z-index: 1;
}
.tap-heart {
  width: 1em;
  height: 1em;
}
.tap-heart svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 1px 3px #ffffff88);
}

.envelope-scene {
  width: min(460px, 90%);
  height: 310px;
  position: relative;
  margin: 20px auto 22px;
  perspective: 1100px;
}
.envelope-back {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 160px;
  border: 1px solid #a7b59d;
  border-radius: 6px;
  background: #cbd6c4;
  box-shadow: 0 20px 40px #263e2c20;
}
.envelope-card {
  position: absolute;
  bottom: 30px;
  left: 10%;
  width: 80%;
  height: 280px;
  padding: 10px 10px 7px;
  background: #fffdf6;
  border: 1px solid #e6e7dc;
  border-radius: 4px;
  box-shadow: 0 5px 20px #263e2c23;
  transform: rotate(-3deg);
}
.envelope-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center 42%;
  border-radius: 2px;
}
.envelope-card p {
  font: 24px var(--script);
  margin: 12px 0 0;
}
.envelope-flap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 160px;
  background:
    linear-gradient(#f6f7efdd, #dbe3d2dd),
    url("/assets/silk.webp") center/cover;
  clip-path: polygon(0 0, 100% 0, 50% 78%);
  transform-origin: center top;
  z-index: 3;
  backface-visibility: hidden;
}
.envelope-front {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 160px;
  background:
    linear-gradient(125deg, #f5f6eecc, #d5dfcacc),
    url("/assets/silk.webp") center/cover;
  clip-path: polygon(0 0, 50% 42%, 100% 0, 100% 100%, 0 100%);
  border-radius: 0 0 6px 6px;
  z-index: 4;
}
.envelope-seal {
  position: absolute;
  bottom: 58px;
  left: calc(50% - 28px);
  width: 56px;
  height: 56px;
  display: grid;
  place-content: center;
  grid-auto-flow: column;
  align-items: center;
  gap: 3px;
  border-radius: 50%;
  background: #49654b;
  color: #faf8e9;
  border: 3px double #bac5a1;
  box-shadow: 0 3px 12px #29402a35;
  font: 19px var(--serif);
  z-index: 5;
}
.envelope-seal i {
  font-size: 13px;
}
.opening h2 {
  font-size: 43px;
  line-height: 1.05;
  margin-bottom: 12px;
}
.opening h2 span {
  display: inline;
  font-size: 0.65em;
  margin: 0 7px;
}
.opening-date {
  font-size: 22px;
  margin-bottom: 15px;
}
.opening-line {
  height: 24px;
  margin-bottom: 10px;
}
.opening .swipe-label {
  margin-bottom: 16px;
}
.opening.revealing .envelope-flap {
  animation: envelope-unfold 0.8s cubic-bezier(0.3, 0.6, 0.2, 1) forwards;
}
.opening.revealing .envelope-seal {
  animation: seal-release 0.45s ease-in forwards;
}
.opening.revealing .envelope-card {
  animation: photo-emerge 1.4s 0.2s cubic-bezier(0.22, 0.7, 0.18, 1) both;
}
@keyframes envelope-unfold {
  to {
    transform: rotateX(175deg);
    opacity: 0.2;
  }
}
@keyframes seal-release {
  to {
    transform: translateY(15px) scale(0.75);
    opacity: 0;
  }
}
@keyframes photo-emerge {
  0% { opacity: 0; transform: translateY(110px) rotate(-3deg); }
  20% { opacity: 1; }
  35% {
    transform: translateY(-115px) rotate(0deg);
  }
  100% {
    transform: translateY(-180px) rotate(0deg) scale(1.15);
    opacity: 0;
  }
}
@media (max-height: 750px) {
  .envelope-scene {
    height: 250px;
    width: min(380px, 85%);
    margin: 12px auto 15px;
  }
  .envelope-card {
    height: 235px;
    bottom: 15px;
  }
  .envelope-card img {
    height: 180px;
  }
  .envelope-card p {
    font-size: 21px;
    margin-top: 8px;
  }
  .envelope-back,
  .envelope-flap,
  .envelope-front {
    height: 135px;
  }
  .envelope-seal {
    bottom: 46px;
  }
  .opening h2 {
    font-size: 36px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .opening.revealing .envelope-card,
  .opening.revealing .envelope-flap,
  .opening.revealing .envelope-seal {
    animation: none;
  }
}

.envelope-card img {
  object-position: center 25%;
}
@media (max-height: 750px) {
  .envelope-scene {
    margin-top: 25px;
  }
  .envelope-card {
    bottom: 38px;
  }
}

/* A clear upward invitation, framed in soft sage silk. */
.opening-curtain {
  background-color: #e4e9db;
  background-blend-mode: multiply;
}
.opening-line {
  width: 40px;
  height: 44px;
  background: none;
  margin: 4px auto 8px;
}
.opening-line svg {
  width: 32px;
  height: 44px;
  fill: none;
  stroke: #496b52;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.opening .swipe-label {
  font-size: 13px;
  line-height: 1.7;
}
.swipe-label strong {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.5px;
}
.tap-heart svg {
  filter: drop-shadow(0 2px 3px #ffffff80);
}
@media (min-height: 751px) {
  .envelope-scene {
    width: min(490px, 94%);
    height: 320px;
  }
}
@media (max-height: 750px) {
  .envelope-scene {
    width: min(430px, 92%);
    height: 250px;
    margin-top: 20px;
  }
  .opening-date {
    margin-bottom: 5px;
  }
  .opening .swipe-label {
    margin-bottom: 10px;
  }
}
@media (max-height: 620px) {
  .envelope-scene {
    height: 190px;
    width: min(340px, 82%);
    margin: 12px auto;
  }
  .envelope-card {
    height: 190px;
    bottom: 15px;
  }
  .envelope-card img {
    height: 150px;
  }
  .envelope-back,
  .envelope-front,
  .envelope-flap {
    height: 105px;
  }
  .envelope-seal {
    bottom: 28px;
  }
  .opening h2 {
    font-size: 30px;
    margin-bottom: 5px;
  }
  .opening-line {
    height: 30px;
  }
  .opening-line svg {
    height: 30px;
  }
}

/* Stationery proportions: a photo keepsake inside a folded sage envelope. */
.envelope-scene {
  width: min(380px, 82%);
  height: 310px;
  margin: 25px auto 26px;
  filter: drop-shadow(0 16px 18px #263e2c1a);
}
.envelope-back {
  height: 175px;
  background: #72836c;
  border-color: #9aa88d;
}
.envelope-card {
  left: 9%;
  width: 82%;
  height: 270px;
  bottom: 35px;
  padding: 9px;
  transform: rotate(-4deg);
}
.envelope-card img {
  height: 220px;
  object-position: center 25%;
}
.envelope-front {
  height: 175px;
  background: linear-gradient(
    32deg,
    #c2cbb5 0%,
    #edf0e4 49%,
    #bcc8b0 50%,
    #dce3d1 100%
  );
  clip-path: polygon(0 0, 50% 48%, 100% 0, 100% 100%, 0 100%);
  border: 1px solid #9aaa8a70;
}
.envelope-flap {
  height: 175px;
  background: linear-gradient(165deg, #f3f4e9, #cbd5be);
  clip-path: polygon(0 0, 100% 0, 50% 55%);
}
.envelope-seal {
  bottom: 49px;
  width: 52px;
  height: 52px;
  left: calc(50% - 26px);
  background: radial-gradient(circle at 35% 25%, #6e8460, #3c573d);
  border: 3px double #aab994;
  box-shadow: 0 4px 8px #29402a40;
}
@media (max-height: 750px) {
  .envelope-scene {
    width: min(350px, 80%);
    height: 240px;
    margin: 20px auto;
  }
  .envelope-card {
    height: 220px;
    bottom: 27px;
  }
  .envelope-card img {
    height: 175px;
  }
  .envelope-back,
  .envelope-front,
  .envelope-flap {
    height: 135px;
  }
  .envelope-seal {
    bottom: 31px;
  }
}
@media (max-height: 620px) {
  .envelope-scene {
    height: 175px;
    width: min(280px, 75%);
    margin: 12px auto;
  }
  .envelope-card {
    height: 170px;
    bottom: 15px;
  }
  .envelope-card img {
    height: 135px;
  }
  .envelope-back,
  .envelope-front,
  .envelope-flap {
    height: 95px;
  }
  .envelope-seal {
    bottom: 19px;
    width: 44px;
    height: 44px;
    left: calc(50% - 22px);
  }
}

/* Keep the keepsake hidden until the envelope is opened. */
.opening:not(.revealing) .envelope-card { opacity: 0; }
.opening.revealing .envelope-card { opacity: 0; z-index: 6; }

/* The moving keepsake is the only photograph during the opening reveal. */
body.invitation-closed main .hero-photo { visibility: hidden; }

/* Prevent any stationary invitation photo from showing through the curtains. */
body.invitation-closed main { visibility: hidden; }
.envelope-card[hidden] { display: none; }

.music-toggle { position: fixed; right: 18px; bottom: 20px; z-index: 100; width: 44px; height: 44px; border-radius: 50%; border: 1px solid #64816b80; background: #f1f3eae8; color: #2e5140; box-shadow: 0 3px 14px #203b2820; font-size: 20px; cursor: pointer; }
.music-toggle[hidden] { display: none; }
