* {
  box-sizing: border-box;
}

:root {
  --pink: #e6b9b8;
  --pink-deep: #c98f92;
  --cream: #f8f5ed;
  --paper: #fbfaf5;
  --sage: #819777;
  --sage-dark: #5e7258;
  --gold: #b99a62;
  --ink: #514038;
  --muted: #786861;
  --shadow: 0 18px 50px rgba(74, 48, 42, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #ead1cf;
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
}

button,
a {
  font: inherit;
}

.site-shell {
  /* width: min(100%, 560px); */
  width: min(100%, 425px);
  margin: 0 auto;
  background: var(--paper);
  min-height: 100vh;
  box-shadow: 0 0 60px rgba(55, 35, 31, 0.12);
  position: relative;
  overflow: hidden;
}

#invitation {
  background: var(--paper);
}

.door-screen {
  position: fixed;
  inset: 0;
  background: #e7d8cf;
  z-index: 1000;
  display: flex;
  justify-content: center;
  transition: opacity 0.9s ease, visibility 0.9s ease;
}

.door-screen.opened {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.door-bg {
  position: relative;
  width: min(100vw, 560px);
  height: 100vh;
  overflow: hidden;
  perspective: 1400px;
  background: #f7f5ee;
}

.door-panel {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  background-image: url("door-cover.jpg");
  background-repeat: no-repeat;
  background-size: 200% 100%;
  transition: transform 1.35s cubic-bezier(0.77, 0, 0.18, 1);
  z-index: 2;
  will-change: transform;
  box-shadow: 0 0 28px rgba(40, 25, 18, 0.22);
}

.door-left {
  left: 0;
  background-position: left top;
  transform-origin: left center;
}

.door-right {
  right: 0;
  background-position: right top;
  transform-origin: right center;
}

.door-screen.opened .door-left {
  transform: translateX(-106%) rotateY(11deg);
}

.door-screen.opened .door-right {
  transform: translateX(106%) rotateY(-11deg);
}

.open-door {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 55%;
  transform: translate(-50%, -50%);
  border: 0;
  background: rgba(73, 49, 37, 0.9);
  color: #fff8ef;
  padding: 14px 25px 12px;
  border-radius: 999px;
  letter-spacing: 2.5px;
  font-size: 11px;
  box-shadow: 0 10px 28px rgba(30, 20, 14, 0.22);
  cursor: pointer;
  transition: opacity 0.25s, transform 0.25s;
}

.open-door:hover {
  transform: translate(-50%, -50%) scale(1.03);
}

.open-door .tap-icon {
  display: block;
  font-size: 15px;
  margin-bottom: 3px;
  color: #eac8a1;
}

.open-door small {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: 12px;
  letter-spacing: 0.5px;
  margin-top: 5px;
  opacity: 0.85;
}

.door-screen.opened .open-door {
  opacity: 0;
}

section {
  position: relative;
}

.hero {
  min-height: 100vh;
  padding: 100px 34px 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-image: url("1.png");
  background-size: cover;
  background-position: center top;
  isolation: isolate;
}

.hero-wash {
  position: absolute;
  inset: 0;
  /* background: linear-gradient(180deg, rgba(255, 250, 248, .14), rgba(255, 255, 255, .38) 42%, rgba(255, 255, 255, .12)); */
  z-index: -1;
}

.hero-content {
  max-width: 480px;
  margin-top: -5vh;
  text-shadow: 0 1px 12px rgba(255, 255, 255, 0.65);
}

.tiny-script {
  font-family: "Great Vibes", cursive;
  font-size: 24px;
  color: var(--pink-deep);
}

.blessing {
  font-family: "Cormorant Garamond", serif;
  font-size: 18px;
  margin-top: 2px;
}

.eyebrow {
  font-size: 10px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  margin-top: 36px;
  color: var(--muted);
}

h1 {
  font-family: "Great Vibes", cursive;
  font-weight: 400;
  font-size: 57px;
  line-height: 0.92;
  margin: 18px 0 22px;
  color: #654a41;
}

h1 span {
  display: block;
}

h1 i {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: 25px;
  font-style: normal;
  color: var(--gold);
  margin: 14px 0;
}

.hero-line {
  font-family: "Cormorant Garamond", serif;
  font-size: 19px;
  line-height: 1.4;
  /* margin: 0; */
  margin-bottom: 10px;
}

.ornament {
  font-family: serif;
  color: var(--gold);
  font-size: 30px;
  margin: 13px 0 4px;
}

.date-script {
  font-family: "Great Vibes", cursive;
  font-size: 25px;
  margin: 0;
  color: #6b5146;
}

.scroll-hint {
  position: absolute;
  bottom: 38px;
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #6d5a51;
}

.scroll-hint span {
  display: block;
  font-size: 17px;
  margin-top: 3px;
}

.floral-frame:after {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(181, 137, 134, 0.32);
  border-radius: 28px;
  pointer-events: none;
}

.section {
  padding: 78px 34px;
  text-align: center;
  background: var(--paper);
}

.section:before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(189, 157, 108, 0.18);
  border-radius: 24px;
  pointer-events: none;
}

.intro-card {
  background: linear-gradient(#fbfaf5, #f6f1e7);
}

.arch-title {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  color: var(--sage-dark);
  font-size: 11px;
  letter-spacing: 0.7px;
  line-height: 1.3;
}

.leaf {
  font-size: 21px;
}

.flip {
  transform: scaleX(-1);
}

.quote {
  font-family: "Cormorant Garamond", serif;
  font-size: 28px;
  font-style: italic;
  margin: 28px 0 7px;
}

.arabic {
  font-size: 36px;
  color: var(--gold);
  font-family: "Scheherazade New", serif;
  font-weight: 400;
  margin: 0px 0px 58px 0px;
}

.arabic2 {
  font-size: 21px;
  /* color: var(--sage-dark); */
  color: var(--gold);
}

.rule {
  height: 1px;
  width: 80px;
  background: var(--gold);
  margin: 25px auto;
}

.body-copy {
  max-width: 390px;
  margin: auto;
  font-family: "Cormorant Garamond", serif;
  font-size: 20px;
  line-height: 1.45;
  color: var(--muted);
}

.section-kicker {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 9px;
  color: var(--sage-dark);
  font-weight: 600;
}

.date {
  font-family: "Noto Serif Hebrew", serif;
}

h2 {
  /* font-family: "Cormorant Garamond", serif;
  font-size: 36px; */
  font-family: "Noto Serif Hebrew", serif;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.05;
  margin: 13px 0 25px;
  color: #5d473d;
}

.couple {
  /* background: linear-gradient(180deg, #f9f5ed, #f6eceb); */
  background-image: url("2.png");
  background-size: cover;
  background-position: center center;
  isolation: isolate;
}

.names-card {
  border: 1px solid rgba(185, 154, 98, 0.5);
  border-radius: 90px 90px 18px 18px;
  padding: 28px 18px 30px;
  position: relative;
  background: rgba(255, 255, 255, 0.42);
}

.person h3 {
  font-family: "Great Vibes", cursive;
  font-weight: 400;
  font-size: 36px;
  margin: 7px 0 0;
  color: #684f45;
}

.person p {
  font-family: "Cormorant Garamond", serif;
  margin: 2px 0 0;
  font-size: 17px;
  color: var(--muted);
}

.role {
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--sage-dark);
}

.amp {
  font-family: "Cormorant Garamond", serif;
  font-size: 29px;
  color: var(--gold);
  margin: 9px;
}

.schedule {
  /* background: #f4eee3; */
  background-image: url("3.png");
  background-size: cover;
  background-position: center center;
  isolation: isolate;
}

.schedule2 {
  /* background: #f4eee3; */
  background-image: url("4.png");
  background-size: cover;
  background-position: center center;
  isolation: isolate;
}

.day {
  font-family: "Great Vibes", cursive;
  font-size: 27px;
  color: var(--pink-deep);
  margin: -12px 0 27px;
}

.timeline {
  max-width: 410px;
  margin: auto;
  text-align: left;
}

.event {
  display: grid;
  grid-template-columns: 165px 1fr;
  gap: 45px;
  padding: 18px 20px 18px 45px;
  border-bottom: 1px solid rgba(126, 105, 91, 0.18);
  align-items: center;
}

.event:last-child {
  border-bottom: 0;
}

.time {
  /* font-family: "Cormorant Garamond", serif; */
  font-family: "Noto Serif Hebrew", serif;
  font-size: 18px;
  color: var(--gold);
  padding-top: 2px;
}

.event h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 22px;
  margin: 0 0 2px;
  font-weight: 600;
}

.event p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}

.venue-div {
  text-align: center;
  margin-top: 46px;
}

.venue {
  background: linear-gradient(160deg, #f9f4ed, #eef1e7);
}

.venue h2,
.walima h2 {
  font-size: 39px;
}

.venue p,
.walima p {
  font-family: "Cormorant Garamond", serif;
  font-size: 20px;
  line-height: 1.35;
  color: var(--muted);
}

.map-btn {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin-top: 17px;
  text-decoration: none;
  color: #fff;
  background: var(--pink-deep);
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 1px;
  /* box-shadow: 0 7px 20px rgba(72, 91, 66, .17) */
}

.walima {
  background: linear-gradient(180deg, #f9eceb, #f6f0e7);
}

.lotus {
  font-size: 35px;
  color: #c77e87;
  margin-bottom: 10px;
}

.walima-time {
  font-family: "Great Vibes", cursive;
  color: var(--pink-deep);
  font-size: 29px;
}

.venue-box {
  margin: 25px auto 0;
  max-width: 390px;
  padding: 22px 18px;
  border-top: 1px solid rgba(185, 154, 98, 0.4);
  border-bottom: 1px solid rgba(185, 154, 98, 0.4);
}

.venue-box h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 27px;
  margin: 0;
}

.venue-box p {
  margin: 6px 0 0;
  font-size: 18px;
}

.countdown-section {
  /* background: #eef1e8; */
  background-image: url("5.png");
  background-size: cover;
  background-position: center center;
  isolation: isolate;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  max-width: 430px;
  margin: 30px auto 0;
}

.countdown div {
  padding: 14px 5px;
  border: 1px solid rgba(94, 114, 88, 0.2);
  background: rgba(255, 255, 255, 0.48);
  border-radius: 14px;
}

.countdown strong {
  display: block;
  /* font-family: "Cormorant Garamond", serif; */
  font-family: "Noto Serif Hebrew", serif;
  font-size: 31px;
  font-weight: 500;
  color: #5b5047;
}

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

.closing {
  min-height: 80vh;
  padding: 85px 32px 60px;
  display: flex;
  align-items: flex-start;
  text-align: center;
  /* background: linear-gradient(rgba(239, 220, 216, .2), rgba(239, 220, 216, .7)), url("6.png"); */
  background-image: url("6.png");

  background-size: cover;
  background-position: center bottom;
}

.closing-inner {
  width: 100%;
  padding-bottom: 20px;
}

.closing h2 {
  font-family: "Great Vibes", cursive;
  font-size: 47px;
  font-weight: 400;
  margin: 12px auto 18px;
  max-width: 440px;
}

.closing-flower {
  font-size: 28px;
  color: var(--pink-deep);
  margin: 15px 0;
}

.closing p {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 18px;
}

.closing .friends {
  font-family: "DM Sans", sans-serif;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 5px;
}

.reveal {
  animation: rise 1.2s 0.35s both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 430px) {
  h1 {
    font-size: 51px;
  }

  .hero {
    padding-left: 25px;
    padding-right: 25px;
  }

  .section {
    padding-left: 27px;
    padding-right: 27px;
  }

  .hero-line {
    font-size: 18px;
  }

  .venue h2,
  .walima h2 {
    font-size: 35px;
  }
}

@media (min-width: 561px) {
  body {
    padding: 0 20px;
  }

  .site-shell {
    border-left: 1px solid rgba(100, 70, 60, 0.1);
    border-right: 1px solid rgba(100, 70, 60, 0.1);
  }
}
