* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #fff;
}

body {
  font-family: Arial, Helvetica, sans-serif;
}

.invitation {
  min-height: 100svh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
}

.cover-wrap {
  position: relative;
  width: min(100%, 620px);
  line-height: 0;
}

.cover-image {
  display: block;
  width: 100%;
  height: auto;
  /* Tidak memakai cover/object-fit agar gambar tidak terpotong atau berubah rasio. */
}

.guest-name {
  position: absolute;
  left: 20%;
  top: 76%;
  width: 60%;
  margin: 0;
  padding: 0 4px;
  color: #304a7b;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: clamp(12px, 3.25vw, 20px);
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  overflow-wrap: anywhere;
  z-index: 2;
  pointer-events: none;
}

.open-invitation {
  position: absolute;
  left: 29%;
  top: 83.2%;
  width: 42%;
  height: 7.0%;
  display: block;
  border-radius: 999px;
  z-index: 3;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.open-invitation:focus-visible {
  outline: 3px solid #ff999e;
  outline-offset: 4px;
}

@media (min-width: 621px) {
  .guest-name {
    font-size: 20px;
  }
}
