*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --tone-bg: #ffffff;
}

html, body {
  scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
}

body {
  background: #ffffff;
  color: #1a1a1a;
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* Section */
.section {
  position: relative;
  max-width: 420px;
  margin: 0 auto;
  padding: 80px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.section + .section {
  border-top: 1px dashed #e5e5e5;
}

/* Cover */
.section--cover {
  min-height: 100dvh;
  padding: 40px 32px;
  gap: 18px;
  background: linear-gradient(to bottom, var(--tone-bg) 0%, #ffffff 100%);
  justify-content: center;
  align-items: center;
}

.cover__title {
  display: flex;
  justify-content: center;
}

.cover__title-img {
  display: block;
  width: 100%;
  height: auto;
}

.cover__illust {
  display: flex;
  justify-content: center;
  align-items: center;
  max-height: 36vh;
}

.cover__illust-img {
  display: block;
  width: 100%;
  max-height: 36vh;
  object-fit: contain;
}

.cover__names {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.cover__info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}

.cover__line {
  font-size: 11px;
  letter-spacing: 0.15em;
  color: #1a1a1a;
  line-height: 1.6;
}

/* Names */
.name__line {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #1a1a1a;
  line-height: 1.1;
}

.name__cat {
  display: block;
  width: 30px;
  height: auto;
}

/* Live D-day */
.dday {
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: #1a1a1a;
  opacity: 0.55;
  font-variant-numeric: tabular-nums;
}

/* Common outline button */
.btn {
  padding: 10px 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  font-family: inherit;
  font-size: 13px;
  color: #1a1a1a;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.btn:active {
  border-color: #1a1a1a;
}

/* Family */
.family {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 20px;
  width: 100%;
}

.family__person {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.family__parents {
  font-size: 13px;
  letter-spacing: 0.02em;
  color: #1a1a1a;
  line-height: 1.5;
}

/* Invite */
.invite__message {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  font-size: 15px;
  line-height: 1.8;
  color: #1a1a1a;
  text-align: center;
}


/* Location */
.loc {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
}

.loc__venue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.loc__venue-kr {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #1a1a1a;
}

.loc__venue-en {
  font-size: 10px;
  letter-spacing: 0.15em;
  color: #585757;
}

.loc__venue-addr {
  margin-top: 2px;
  font-size: 12px;
  color: #585757;
}

.loc__map {
  width: 100%;
}

.loc__map-img {
  display: block;
  width: 100%;
  height: auto;
}

.loc__directions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.loc__heading {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #1a1a1a;
}

.loc__row {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  align-items: start;
}

.loc__label {
  font-size: 12px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.6;
}

.loc__detail {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  line-height: 1.6;
  color: #585757;
}

.loc__actions {
  display: flex;
  gap: 8px;
}

/* Calendar */
.cal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
}

.cal__head {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cal__head-num {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.1;
  color: #1a1a1a;
  font-variant-numeric: tabular-nums;
}

.cal__sep {
  display: block;
  width: 28px;
  height: 1px;
  background: #1a1a1a;
  margin: 6px 0;
}

.cal__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 14px 4px;
  width: 100%;
  max-width: 320px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.cal__dow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #1a1a1a;
}

.cal__dow--mute,
.cal__day--mute {
  color: #c8c8c8;
}

.cal__day {
  position: relative;
  font-size: 13px;
  color: #1a1a1a;
}

.cal__day--target {
  font-weight: 700;
}

.cal__day--target::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 27px;
  height: 27px;
  transform: translate(-50%, -50%);
  border: 1.4px solid #1a1a1a;
  border-radius: 50%;
  pointer-events: none;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  width: 100%;
}

.gallery__item {
  aspect-ratio: 1 / 1;
  padding: 0;
  border: none;
  background: #f0f0f0;
  overflow: hidden;
  cursor: zoom-in;
  -webkit-tap-highlight-color: transparent;
}

.gallery__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  cursor: zoom-out;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transform: scale(0.98);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox.is-open .lightbox__img {
  transform: scale(1);
}

/* RSVP */
.rsvp {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.rsvp__heading {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #1a1a1a;
  text-align: center;
}

.rsvp__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rsvp__label {
  font-size: 12px;
  font-weight: 600;
  color: #1a1a1a;
  letter-spacing: 0.02em;
}

.rsvp__hint {
  font-weight: 400;
  color: #999;
}

.rsvp__input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
  color: #1a1a1a;
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
}

.rsvp__input:focus {
  border-color: #1a1a1a;
}

.rsvp__input::placeholder {
  color: #bbb;
}

.rsvp__toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.rsvp__btn {
  color: #999;
}

.rsvp__btn.is-active {
  border-color: #1a1a1a;
  color: #1a1a1a;
  background: #fafafa;
}

.rsvp__stepper {
  display: flex;
  align-items: center;
  gap: 16px;
}

.rsvp__step {
  width: 36px;
  height: 36px;
  border: 1px solid #ddd;
  border-radius: 50%;
  background: #fff;
  font-family: inherit;
  font-size: 18px;
  color: #1a1a1a;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.2s;
}

.rsvp__step:active {
  border-color: #1a1a1a;
}

.rsvp__count {
  font-size: 16px;
  font-weight: 600;
  min-width: 24px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.rsvp__textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
  color: #1a1a1a;
  background: #fff;
  outline: none;
  resize: none;
  transition: border-color 0.2s;
}

.rsvp__textarea:focus {
  border-color: #1a1a1a;
}

.rsvp__submit {
  width: 100%;
  padding: 12px 0;
  border: 1px solid #1a1a1a;
  border-radius: 4px;
  background: #1a1a1a;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  cursor: pointer;
  letter-spacing: 0.04em;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.2s;
}

.rsvp__submit:active {
  opacity: 0.8;
}

.rsvp__submit:disabled {
  opacity: 0.4;
  cursor: default;
}

.rsvp__done[hidden] {
  display: none;
}

.rsvp__done {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 40px 0;
}

.rsvp__done-text {
  font-size: 15px;
  line-height: 1.8;
  color: #1a1a1a;
  text-align: center;
}

.rsvp__done-sub {
  font-size: 13px;
  color: #999;
}

.rsvp__done-trivia {
  font-size: 12px;
  color: #ccc;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.rsvp__done-trivia-refresh {
  border: none;
  background: none;
  font-size: 10px;
  color: #ddd;
  cursor: pointer;
  padding: 0 2px;
  -webkit-tap-highlight-color: transparent;
}

.rsvp__done-trivia-refresh:active {
  color: #bbb;
}

.rsvp__field--hidden {
  display: none;
}

/* Account */
.account__heading {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #1a1a1a;
  text-align: center;
}

.account__group {
  width: 100%;
}

.account__toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border: none;
  border-bottom: 1px solid #eee;
  background: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: #1a1a1a;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.account__arrow {
  font-size: 16px;
  color: #bbb;
  transition: transform 0.2s;
}

.account__toggle.is-open .account__arrow {
  transform: rotate(90deg);
}

.account__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.account__list[hidden] {
  display: none;
}

.account__item {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 2px 12px;
  padding: 14px 0;
  border-bottom: 1px solid #f2f2f2;
}

.account__info {
  grid-column: 1;
  font-size: 13px;
  color: #1a1a1a;
  font-variant-numeric: tabular-nums;
}

.account__name {
  grid-column: 1;
  font-size: 12px;
  color: #999;
}

.account__copy {
  grid-column: 2;
  grid-row: 1 / -1;
  align-self: center;
  padding: 8px 14px;
}

/* Footer */
.footer__text {
  font-size: 13px;
  color: #1a1a1a;
  letter-spacing: 0.04em;
  text-align: center;
}


/* Scroll reveal */
.section:not(.section--cover) .cal,
.section:not(.section--cover) .gallery,
.section:not(.section--cover) .rsvp,
.section:not(.section--cover) .rsvp__done {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.section.is-visible .cal,
.section.is-visible .gallery,
.section.is-visible .rsvp,
.section.is-visible .rsvp__done {
  opacity: 1;
  transform: translateY(0);
}


