/* =========================================================
   ENGAGEMENT INVITATION — TASSYA & ARIF
   MOBILE DIGITAL INVITATION
   FONT : TIMES NEW ROMAN
========================================================= */

* {
  box-sizing: border-box;
}

:root {
  --ivory: #f2eadc;
  --ivory-soft: #d7cbb9;
  --olive: #a2a576;
  --olive-dark: #747853;

  --line: rgba(242, 234, 220, 0.20);

  --overlay: rgba(5, 3, 2, 0.56);
  --dark-glass: rgba(15, 9, 7, 0.30);
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

html {
  background: #0d0907;
}

body {
  background: #0d0907;
  color: var(--ivory);

  font-family:
    "Times New Roman",
    Times,
    serif;

  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font-family:
    "Times New Roman",
    Times,
    serif;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}


/* =========================================================
   MOBILE INVITATION FRAME
========================================================= */

.invitation-app {
  position: relative;

  width: 100%;
  max-width: 390px;

  height: 100vh;
  height: 100svh;
  height: 100dvh;

  margin: 0 auto;

  overflow: hidden;

  background-image:
    linear-gradient(
      var(--overlay),
      var(--overlay)
    ),
    url("assets/bg.jpg");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  box-shadow:
    0 0 60px rgba(0, 0, 0, 0.55);
}


/* subtle dark vignette */

.invitation-app::before {
  content: "";

  position: absolute;
  z-index: 20;

  inset: 0;

  pointer-events: none;

  background:
    radial-gradient(
      circle at center,
      transparent 35%,
      rgba(0, 0, 0, 0.08) 60%,
      rgba(0, 0, 0, 0.38) 100%
    );
}


/* =========================================================
   SLIDES
========================================================= */

.slides {
  position: relative;

  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;

  inset: 0;

  width: 100%;
  height: 100%;

  overflow-y: auto;
  overflow-x: hidden;

  scrollbar-width: none;

  opacity: 0;
  visibility: hidden;

  transform: translateX(100%);

  transition:
    transform 0.65s cubic-bezier(.77, 0, .18, 1),
    opacity 0.4s ease,
    visibility 0.4s ease;
}

.slide::-webkit-scrollbar {
  display: none;
}

.slide.active {
  z-index: 5;

  opacity: 1;
  visibility: visible;

  transform: translateX(0);
}

.slide.before {
  opacity: 0;
  visibility: hidden;

  transform: translateX(-100%);
}

.slide.after {
  opacity: 0;
  visibility: hidden;

  transform: translateX(100%);
}


/* =========================================================
   SLIDE CONTENT
========================================================= */

.slide-content {
  position: relative;
  z-index: 3;

  width: 100%;

  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;

  padding:
    max(38px, env(safe-area-inset-top))
    24px
    max(24px, env(safe-area-inset-bottom));

  display: flex;
  flex-direction: column;

  justify-content: center;
}


/* =========================================================
   COVER
========================================================= */

.cover-content {
  align-items: center;
  justify-content: center;

  text-align: center;

  padding-top:
    max(25px, env(safe-area-inset-top));

  padding-bottom:
    max(20px, env(safe-area-inset-bottom));
}


/* YOU'RE INVITED TO */

.cover-eyebrow {
  margin: 0;

  font-size: 7px;
  font-weight: 400;

  letter-spacing: 3.2px;

  color: var(--ivory-soft);
}


/* =========================================================
   THESE KIDS...
========================================================= */

.kids-title {
  margin: 12px 0 0;

  font-family:
    "Times New Roman",
    Times,
    serif;

  font-size: 22px;

  line-height: 1.15;

  font-weight: 400;

  letter-spacing: -0.3px;

  color: var(--ivory);

  white-space: nowrap;
}

.kids-title span {
  display: inline;

  margin: 0;

  font-size: inherit;

  color: var(--olive);

  font-style: italic;
}


/* =========================================================
   SINGLE PORTRAIT PHOTO
========================================================= */

.childhood-photo-single {
  position: relative;

  width: 100%;

  display: flex;
  justify-content: center;
  align-items: center;

   margin:
    26px
    auto
    11px;
}


/* FRAME FOTO */

.single-photo-card {
  position: relative;

  width: 185px;

  margin: 0;

  padding:
    6px
    6px
    20px;

  background: #e5dbc8;

  border:
    1px solid rgba(255, 255, 255, 0.18);

  box-shadow:
    0 15px 30px rgba(0, 0, 0, 0.42);

  transform: rotate(-1.5deg);
}


/* FOTO PORTRAIT */

.single-photo-card img {
  display: block;

  width: 100%;
  height: 235px;

  object-fit: cover;
  object-position: center;

  filter:
    sepia(0.32)
    saturate(0.72)
    contrast(0.96);
}


/* TAPE DI ATAS */

.single-tape {
  position: absolute;
  z-index: 3;

  top: -8px;
  left: 50%;

  width: 53px;
  height: 16px;

  transform:
    translateX(-50%)
    rotate(1deg);

  background:
    rgba(210, 195, 165, 0.68);

  backdrop-filter: blur(1px);
}


/* HP KECIL */

@media (max-width: 350px) {

  .single-photo-card {
    width: 170px;
  }

  .single-photo-card img {
    height: 215px;
  }

}


/* HP PENDEK */

@media (max-height: 700px) {

  .childhood-photo-single {
    margin:
      10px
      auto
      8px;
  }

  .single-photo-card {
    width: 160px;
  }

  .single-photo-card img {
    height: 200px;
  }

}


/* =========================================================
   GUEST
========================================================= */

.guest-box {
  position: relative;

  margin-top: 13px;

  padding-top: 10px;
}

.guest-box::before {
  content: "";

  position: absolute;

  top: 0;
  left: 50%;

  width: 30px;
  height: 1px;

  transform: translateX(-50%);

  background: var(--olive);
}

.guest-box p {
  margin: 0;

  font-size: 8px;

  color: var(--ivory-soft);
}

.guest-box h3 {
  margin:
    3px
    0
    0;

  font-size: 19px;

  font-weight: 400;
}


/* =========================================================
   OPEN INVITATION
========================================================= */

.open-button {
  width: min(100%, 265px);

  min-height: 42px;

  margin-top: 13px;

  padding:
    0
    18px;

  border:
    1px solid rgba(164, 167, 122, 0.55);

  background:
    rgba(100, 105, 70, 0.62);

  backdrop-filter: blur(5px);

  color: var(--ivory);

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 20px;

  font-size: 8px;

  font-weight: 400;

  letter-spacing: 2px;

  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.open-button:hover {
  background:
    rgba(100, 105, 70, 0.8);
}

.open-button:active {
  transform: scale(0.98);
}

.open-button span {
  font-size: 14px;
}

.cover-footer {
  margin:
    14px
    0
    0;

  font-size: 5.5px;

  letter-spacing: 2.5px;

  color:
    rgba(242, 234, 220, 0.55);
}


/* =========================================================
   COMMON TYPOGRAPHY
========================================================= */

.slide-number {
  margin-bottom: 17px;

  font-size: 9px;

  font-style: italic;

  color: var(--olive);
}

.eyebrow {
  margin: 0;

  font-size: 7px;

  font-weight: 400;

  letter-spacing: 2.7px;

  color: var(--ivory-soft);
}

.slide-title {
  max-width: 300px;

  margin:
    12px
    0
    23px;

  font-size: clamp(29px, 8vw, 35px);

  line-height: 0.98;

  font-weight: 400;

  letter-spacing: -0.8px;
}

.slide-title span {
  display: block;

  margin-top: 3px;

  color: var(--olive);

  font-style: italic;
}

.description {
  max-width: 280px;

  margin:
    -2px
    0
    20px;

  font-size: 12px;

  line-height: 1.55;

  color: var(--ivory-soft);
}

.description.centered {
  margin:
    12px
    auto
    0;

  text-align: center;

  font-size: 10px;

  line-height: 1.5;
}


/* =========================================================
   CALENDAR
========================================================= */

.calendar {
  width: 100%;

  padding:
    17px
    14px;

  background:
    rgba(15, 9, 7, 0.25);

  border-top:
    1px solid var(--line);

  border-bottom:
    1px solid var(--line);

  backdrop-filter: blur(4px);
}

.calendar-header {
  display: flex;

  align-items: center;
  justify-content: space-between;

  margin-bottom: 15px;
}

.calendar-header span {
  font-size: 13px;

  letter-spacing: 1.7px;
}

.calendar-header strong {
  font-size: 9px;

  font-weight: 400;

  letter-spacing: 1.7px;

  color: var(--olive);
}

.calendar-days,
.calendar-grid {
  display: grid;

  grid-template-columns:
    repeat(7, 1fr);

  text-align: center;
}

.calendar-days {
  margin-bottom: 6px;

  font-size: 6px;

  color: var(--ivory-soft);
}

.calendar-grid {
  row-gap: 5px;

  font-size: 10px;
}

.calendar-grid span {
  position: relative;

  min-height: 23px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.special-date {
  border:
    1px solid var(--olive);

  border-radius: 50%;
}

.special-date i {
  position: absolute;

  top: -14px;
  right: -3px;

  font-size: 12px;

  font-style: normal;

  color: var(--olive);
}

.calendar-date {
  margin:
    15px
    0
    0;

  text-align: center;

  font-size: 11px;

  font-style: italic;

  color: var(--ivory);
}


/* =========================================================
   OUR ENGAGEMENT
========================================================= */

.quote-mark {
  height: 33px;

  margin-top: 10px;

  font-size: 51px;

  line-height: 1;

  color: var(--olive);
}

.engagement-text {
  max-width: 285px;

  margin:
    10px
    0
    22px;

  font-size: 14px;

  line-height: 1.6;

  color: var(--ivory-soft);
}

.couple-signature {
  font-size: 23px;

  font-style: italic;
}

.couple-signature span {
  margin: 0 4px;

  color: var(--olive);
}

.signature-date {
  margin:
    6px
    0
    0;

  font-size: 6px;

  letter-spacing: 2px;

  color: var(--ivory-soft);
}


/* =========================================================
   EVENT DETAIL
========================================================= */

.date-display {
  display: grid;

  grid-template-columns:
    1fr
    auto
    1fr;

  gap: 13px;

  align-items: center;

  margin:
    7px
    0
    22px;
}

.date-side {
  padding:
    8px
    2px;

  text-align: center;

  border-top:
    1px solid var(--line);

  border-bottom:
    1px solid var(--line);

  font-size: 6px;

  letter-spacing: 1.5px;

  color: var(--ivory-soft);
}

.date-main {
  text-align: center;
}

.date-main strong {
  display: block;

  font-size: 47px;

  line-height: 0.85;

  font-weight: 400;
}

.date-main span {
  display: block;

  margin-top: 7px;

  font-size: 6px;

  letter-spacing: 1.5px;

  color: var(--olive);
}

.event-grid {
  display: grid;

  grid-template-columns:
    1fr
    1fr;

  gap: 8px;
}

.event-item {
  padding:
    14px
    11px;

  border:
    1px solid var(--line);

  background:
    rgba(15, 9, 7, 0.28);

  backdrop-filter: blur(5px);
}

.event-item p {
  margin:
    0
    0
    6px;

  font-size: 6px;

  letter-spacing: 1.7px;

  color: var(--olive);
}

.event-item h3 {
  margin:
    0
    0
    4px;

  font-size: 14px;

  font-weight: 400;
}

.event-item span {
  font-size: 7.5px;

  line-height: 1.4;

  color: var(--ivory-soft);
}


/* =========================================================
   LOCATION
========================================================= */

.location-card {
  padding:
    22px
    17px;

  text-align: center;

  border:
    1px solid var(--line);

  background:
    rgba(15, 9, 7, 0.35);

  backdrop-filter: blur(6px);
}

.location-icon {
  width: 36px;
  height: 36px;

  margin:
    0
    auto
    12px;

  display: flex;
  align-items: center;
  justify-content: center;

  border:
    1px solid var(--olive);

  border-radius: 50%;

  color: var(--olive);

  font-size: 16px;
}

.location-label {
  margin:
    0
    0
    7px;

  font-size: 6px;

  letter-spacing: 1.8px;

  color: var(--ivory-soft);
}

.location-card h3 {
  margin: 0;

  font-size: 19px;

  font-weight: 400;
}

.address {
  max-width: 270px;

  margin:
    8px
    auto
    11px;

  font-size: 9.5px;

  line-height: 1.55;

  color: var(--ivory-soft);
}

.location-note {
  margin:
    12px
    0
    15px;

  padding:
    10px
    12px;

  border-top:
    1px solid var(--line);

  border-bottom:
    1px solid var(--line);
}

.location-note span {
  display: block;

  margin-bottom: 4px;

  font-size: 5.5px;

  letter-spacing: 1.7px;

  color: var(--olive);
}

.location-note p {
  margin: 0;

  font-size: 9px;

  font-style: italic;

  line-height: 1.45;

  color: var(--ivory-soft);
}

.maps-button {
  min-height: 39px;

  padding:
    0
    15px;

  display: inline-flex;

  align-items: center;
  justify-content: center;

  gap: 14px;

  border:
    1px solid rgba(164, 167, 122, 0.5);

  background:
    rgba(100, 105, 70, 0.55);

  color: var(--ivory);

  text-decoration: none;

  font-size: 7px;

  letter-spacing: 1.5px;
}


/* =========================================================
   COUNTDOWN
========================================================= */

.countdown {
  display: grid;

  grid-template-columns:
    repeat(4, 1fr);

  margin-top: 13px;

  padding:
    21px
    0;

  border-top:
    1px solid var(--line);

  border-bottom:
    1px solid var(--line);

  background:
    rgba(15, 9, 7, 0.18);
}

.count-item {
  text-align: center;

  border-right:
    1px solid var(--line);
}

.count-item:last-child {
  border-right: 0;
}

.count-item strong {
  display: block;

  font-size: clamp(22px, 6vw, 27px);

  font-weight: 400;
}

.count-item span {
  display: block;

  margin-top: 5px;

  font-size: 5.5px;

  letter-spacing: 1.2px;

  color: var(--ivory-soft);
}

.countdown-date {
  margin:
    15px
    0
    0;

  text-align: center;

  font-size: 10px;

  font-style: italic;

  color: var(--olive);
}

.small-heart {
  margin-top: 14px;

  text-align: center;

  font-size: 16px;

  color: var(--olive);
}


/* =========================================================
   FORMS
========================================================= */

.rsvp-form,
.wish-form {
  width: 100%;
}

.form-label,
.input-group label,
.guest-count-group label {
  display: block;

  margin:
    0
    0
    7px;

  font-size: 6px;

  font-weight: 400;

  letter-spacing: 1.5px;

  color: var(--ivory-soft);
}


/* =========================================================
   ATTENDANCE
========================================================= */

.attendance-options {
  display: grid;

  grid-template-columns:
    1fr
    1fr;

  gap: 7px;

  margin-bottom: 13px;
}

.attendance-card {
  position: relative;

  min-height: 67px;

  padding:
    11px
    9px;

  display: flex;

  align-items: flex-start;

  gap: 7px;

  border:
    1px solid var(--line);

  background:
    rgba(15, 9, 7, 0.28);

  cursor: pointer;
}

.attendance-card input {
  position: absolute;

  opacity: 0;

  pointer-events: none;
}

.radio-circle {
  flex: 0 0 auto;

  width: 12px;
  height: 12px;

  margin-top: 2px;

  border:
    1px solid var(--olive);

  border-radius: 50%;
}

.attendance-card input:checked + .radio-circle {
  border:
    3px solid var(--olive);
}

.attendance-card:has(input:checked) {
  background:
    rgba(110, 115, 78, 0.25);

  border-color:
    rgba(164, 167, 122, 0.6);
}

.attendance-card strong {
  display: block;

  margin-bottom: 3px;

  font-size: 12px;

  font-weight: 400;
}

.attendance-card small {
  font-size: 7px;

  color: var(--ivory-soft);
}


/* =========================================================
   INPUTS
========================================================= */

.guest-count-group,
.input-group {
  margin-bottom: 12px;
}

select,
input,
textarea {
  width: 100%;

  border:
    1px solid var(--line);

  border-radius: 0;

  outline: none;

  padding:
    10px
    11px;

  background:
    rgba(14, 9, 7, 0.4);

  color: var(--ivory);

  font-size: 11px;
}

select {
  color-scheme: dark;
}

textarea {
  min-height: 82px;

  resize: none;

  line-height: 1.45;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--olive);
}

textarea::placeholder,
input::placeholder {
  color:
    rgba(242, 234, 220, 0.38);
}


/* =========================================================
   FORM BUTTON
========================================================= */

.form-button {
  width: 100%;

  min-height: 40px;

  border:
    1px solid rgba(164, 167, 122, 0.5);

  background:
    rgba(100, 105, 70, 0.6);

  color: var(--ivory);

  display: flex;

  align-items: center;
  justify-content: space-between;

  padding:
    0
    14px;

  font-size: 7px;

  font-weight: 400;

  letter-spacing: 1.5px;
}

.form-message {
  min-height: 12px;

  margin:
    7px
    0
    0;

  text-align: center;

  font-size: 8px;

  font-style: italic;

  color: var(--olive);
}


/* =========================================================
   WISHES
========================================================= */

.wishes-preview {
  width: 100%;

  max-height: 90px;

  margin-top: 12px;

  overflow-y: auto;

  scrollbar-width: none;
}

.wishes-preview::-webkit-scrollbar {
  display: none;
}

/* belum ada ucapan = tidak tampil */

.wishes-preview:empty {
  display: none;
}

.wish-card {
  padding:
    9px
    0;

  border-top:
    1px solid var(--line);
}

.wish-card > div {
  display: flex;

  align-items: center;
  justify-content: space-between;

  margin-bottom: 4px;
}

.wish-card strong {
  font-size: 12px;

  font-weight: 400;
}

.wish-card span {
  color: var(--olive);
}

.wish-card p {
  margin: 0;

  font-size: 9px;

  line-height: 1.5;

  color: var(--ivory-soft);
}


/* =========================================================
   NAVIGATION
========================================================= */

.navigation {
  width: 100%;

  margin-top: auto;

  padding-top: 21px;

  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 8px;
}

.single-next {
  justify-content: flex-end;
}

.nav-button {
  border: 0;

  background: transparent;

  color: var(--ivory);

  padding:
    8px
    0;

  display: flex;

  align-items: center;

  gap: 9px;

  font-size: 6.5px;

  font-weight: 400;

  letter-spacing: 1.3px;
}

.nav-button span {
  color: var(--olive);

  font-size: 13px;
}

.nav-text {
  border: 0;

  background: transparent;

  color:
    rgba(242, 234, 220, 0.5);

  padding:
    8px
    0;

  font-size: 5.5px;

  font-weight: 400;

  letter-spacing: 1px;
}


/* =========================================================
   CLOSING
========================================================= */

.closing-content {
  align-items: center;

  text-align: center;
}

.closing-title {
  margin:
    14px
    0
    0;

  font-size: clamp(30px, 8vw, 36px);

  line-height: 0.98;

  font-weight: 400;

  letter-spacing: -0.8px;
}

.closing-title span {
  display: block;

  margin-top: 4px;

  color: var(--olive);

  font-style: italic;
}

.closing-heart {
  margin:
    33px
    0
    22px;

  font-size: 23px;

  color: var(--olive);
}

.closing-text {
  max-width: 240px;

  margin:
    0
    auto
    22px;

  font-size: 11px;

  line-height: 1.6;

  color: var(--ivory-soft);
}

.with-love {
  margin: 0;

  font-size: 10px;

  font-style: italic;

  color: var(--ivory-soft);
}

.closing-couple {
  margin:
    6px
    0
    0;

  font-size: 27px;

  font-weight: 400;
}

.closing-couple span {
  color: var(--olive);

  font-style: italic;
}

.closing-date {
  margin:
    8px
    0
    0;

  font-size: 7px;

  letter-spacing: 2px;

  color: var(--ivory-soft);
}

.back-start {
  margin-top: 34px;

  border: 0;

  background: transparent;

  color:
    rgba(242, 234, 220, 0.5);

  font-size: 6px;

  letter-spacing: 1.3px;
}


/* =========================================================
   SHORT PHONE
   iPhone SE / short Android
========================================================= */

@media (max-height: 700px) {

  .slide-content {
    justify-content: flex-start;

    padding-top: 25px;
  }

  .cover-content {
    justify-content: flex-start;

    padding-top: 18px;
  }

  .kids-title {
    margin-top: 9px;

    font-size: 22px;
  }

  .childhood-photos {
    width: 225px;
    height: 170px;

    margin-top: 10px;
  }

  .photo-card {
    width: 116px;

    padding:
      5px
      5px
      16px;
  }

  .photo-card img {
    height: 132px;
  }

  .cover-couple h2 {
    font-size: 24px;
  }

  .slide-title {
    font-size: 28px;

    margin-bottom: 18px;
  }

  .navigation {
    padding-top: 16px;
  }

}


/* =========================================================
   SMALL WIDTH
========================================================= */

@media (max-width: 350px) {

  .slide-content {
    padding-left: 19px;
    padding-right: 19px;
  }

  .kids-title {
    font-size: 22px;
  }

  .slide-title {
    font-size: 28px;
  }

  .childhood-photos {
    width: 225px;
  }

  .photo-card {
    width: 118px;
  }

  .photo-card img {
    height: 137px;
  }

}


/* =========================================================
   DESKTOP

   Tetap tampil seperti undangan ukuran HP.
========================================================= */

@media (min-width: 600px) {

  body {
    display: flex;

    align-items: center;
    justify-content: center;

    background: #0c0806;
  }

  .invitation-app {
    width: 390px;

    height: min(100dvh, 844px);

    box-shadow:
      0 0 80px rgba(0, 0, 0, 0.65);
  }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

  .slide {
    transition: none;
  }

}