:root {
  color-scheme: light;
  --ink: #2e2928;
  --muted: #756d6a;
  --paper: #fff;
  --line: #e8e1dd;
  --placeholder-a: #d9c6bd;
  --placeholder-b: #8b6d62;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  line-height: 1.75;
}

.phone {
  width: min(100%, 390px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 0 40px;
  background: var(--paper);
}

.section {
  margin: 0;
  background: transparent;
  box-shadow: none;
}

.photo-slot {
  background:
    linear-gradient(135deg, var(--placeholder-a), var(--placeholder-b));
  background-position: center;
  background-size: cover;
}

.cover {
  min-height: 100svh;
  margin-bottom: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.cover__photo {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  color: #fff;
}

.cover__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(25, 18, 17, 0.08), rgba(25, 18, 17, 0.08) 45%, rgba(25, 18, 17, 0.54));
}

.cover__headline,
.cover__caption {
  position: relative;
  z-index: 1;
}

.script-title {
  margin: 24px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 39px;
  line-height: 0.86;
  text-align: center;
  letter-spacing: 0;
  text-transform: lowercase;
}

.cover__caption {
  padding: 0 20px 26px;
  text-align: center;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.36);
}

.date,
.quote {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  line-height: 1.28;
}

.quote {
  margin-top: 9px;
}

.invitation {
  overflow: hidden;
  padding-bottom: 34px;
}

.wide-photo {
  height: 148px;
  margin-top: 0;
}

.letter {
  padding: 46px 34px 48px;
  text-align: center;
  font-size: 14px;
  word-break: keep-all;
}

.couple-line {
  margin: 0 0 24px;
  font-size: 16px;
  font-weight: 600;
}

.letter p {
  margin-top: 0;
}

.profile {
  padding: 72px 28px 64px;
}

.profile__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.profile article {
  text-align: center;
}

.profile__photo {
  aspect-ratio: 1;
  margin-bottom: 14px;
  border-radius: 2px;
}

.role {
  margin: 0 0 16px;
  font-size: 12px;
  color: var(--muted);
}

.role span {
  color: var(--ink);
  font-weight: 600;
}

.profile-text {
  min-height: 84px;
  margin: 0;
  padding: 0 5px;
  font-size: 12px;
  color: #534d4b;
  word-break: keep-all;
}

.tag {
  margin: 18px 0 0;
  font-size: 12px;
  color: var(--ink);
}

.contact-button {
  display: block;
  width: 150px;
  margin: 34px auto 0;
  padding: 8px 12px;
  border: 1px solid #d8d0cc;
  border-radius: 4px;
  color: #6d6461;
  text-align: center;
  text-decoration: none;
  font-size: 12px;
  box-shadow: 0 2px 7px rgba(75, 61, 66, 0.1);
}

.details,
.parking {
  padding: 72px 28px 56px;
  text-align: center;
}

.section-title {
  margin: 0 0 16px;
  font-size: 16px;
  letter-spacing: 0.03em;
}

.detail-main {
  margin: 0;
  font-size: 14px;
}

.detail-sub,
.address,
.parking-text {
  margin: 6px 0 22px;
  color: #514b49;
  font-size: 13px;
  line-height: 1.7;
  word-break: keep-all;
}

.venue-card {
  width: 100%;
  min-height: 214px;
  margin: 0 auto 18px;
  overflow: hidden;
  border-radius: 6px;
}

.calendar {
  width: min(240px, 100%);
  margin: 10px auto 22px;
  color: #5a5351;
}

.calendar__month {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
}

.calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  font-size: 11px;
}

.calendar__grid span {
  min-height: 25px;
  display: grid;
  place-items: center;
}

.calendar__grid .is-day {
  color: #8a8380;
}

.calendar__grid .is-event {
  border-radius: 50%;
  background: #8a6f62;
  color: #fff;
}

.gallery {
  padding: 72px 26px 58px;
  text-align: center;
}

.gallery__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.gallery__grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  border-radius: 4px;
}

.ending {
  padding: 36px 0 84px;
  text-align: center;
  color: #6c6461;
  background: transparent;
  box-shadow: none;
}

.script-small {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  line-height: 1;
}

.float-actions {
  position: fixed;
  right: max(12px, calc((100vw - 390px) / 2 + 12px));
  bottom: 58px;
  display: grid;
  gap: 10px;
  z-index: 10;
}

.float-actions button,
.music {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(126, 118, 114, 0.36);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  box-shadow: 0 3px 9px rgba(45, 40, 42, 0.16);
}

.music {
  position: fixed;
  right: max(12px, calc((100vw - 390px) / 2 + 12px));
  bottom: 14px;
  z-index: 10;
}

.music.is-playing {
  background: rgba(45, 39, 39, 0.78);
}

.reveal {
  opacity: 0;
  transform: translateY(74px) scale(0.985);
  transition: opacity 850ms ease, transform 850ms cubic-bezier(0.18, 0.72, 0.24, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.slide-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 720ms ease, transform 720ms cubic-bezier(0.18, 0.72, 0.24, 1);
}

.reveal.is-visible .slide-item {
  opacity: 1;
  transform: translateY(0);
}

.reveal.is-visible .slide-item:nth-child(2),
.reveal.is-visible .profile__grid article:nth-child(2) {
  transition-delay: 120ms;
}

.reveal.is-visible .slide-item:nth-child(3) {
  transition-delay: 220ms;
}

.reveal.is-visible .slide-item:nth-child(4) {
  transition-delay: 320ms;
}

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

  .reveal,
  .slide-item {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 360px) {
  .script-title {
    font-size: 35px;
  }

  .letter,
  .profile,
  .details,
  .parking {
    padding-inline: 24px;
  }
}
