:root {
  --bg: #35261d;
  --bg-top: #3b2c23;
  --ink: #d8ebed;
  --ink-50: rgba(216, 235, 237, 0.5);
  --ink-25: rgba(216, 235, 237, 0.25);
  --red: #f87171;
  --glass-bg: rgba(216, 235, 237, 0.08);
  --glass-border: rgba(216, 235, 237, 0.2);
  --serif: "Nanum Myeongjo", serif;
  --sans: "Lato", system-ui, sans-serif;
  --script: "Pinyon Script", cursive;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--ink); font-family: var(--serif); word-break: keep-all; }
img { display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

.page { width: 100%; max-width: 430px; margin: 0 auto; background: var(--bg); overflow: hidden; }
section { display: flex; flex-direction: column; align-items: center; }

/* section label (INVITATION / LOCATION ...) */
.label {
  font-family: var(--sans); font-weight: 700; font-size: 14px; line-height: 21.383px;
  letter-spacing: 4.2766px; text-transform: uppercase; color: var(--ink-50); text-align: center;
}

/* ---------- Main ---------- */
.main {
  background: linear-gradient(to bottom, var(--bg-top) 50%, var(--bg));
  padding: 63.1px 0 63.1px;
}
.hero { position: relative; width: 375px; height: 370.745px; }
.hero__group { position: absolute; left: 50%; top: 0; width: 346.145px; height: 348.152px; transform: translateX(-50%); }
.main__body { display: flex; flex-direction: column; align-items: center; width: 315px; }
.eyebrow-wedding {
  font-family: var(--sans); font-weight: 700; font-size: 16px; line-height: 19.957px;
  letter-spacing: 4.4904px; opacity: 0.6; padding-bottom: 28.511px; white-space: nowrap;
}
.better-together { width: 315px; height: 148.313px; object-fit: cover; }
.main__spacer { height: 188.17px; }
.main__info { padding-top: 24.947px; opacity: 0.6; text-align: center; }
.main__date { font-size: 16px; line-height: 24px; letter-spacing: 0.1996px; }
.main__venue { font-weight: 700; font-size: 18px; line-height: 28px; letter-spacing: 0.1996px; padding-top: 9.979px; }

/* ---------- Profile ---------- */
.profile { padding: 40px 16px; gap: 19.957px; }
.profile__row { display: flex; align-items: center; justify-content: center; gap: 9.979px; white-space: nowrap; }
.profile__parents { font-size: 20px; line-height: 29.936px; }
.profile__rel { font-size: 14px; line-height: 24.947px; opacity: 0.6; }
.profile__name { font-weight: 800; font-size: 20px; line-height: 29.936px; }

/* ---------- Invitation ---------- */
.invitation { padding: 40px 16px 80px; }
.invitation__art { width: 160px; height: 229.31px; object-fit: cover; margin-bottom: 48px; }
.invitation .label { padding-bottom: 29.936px; }
.invitation__text { width: 308px; max-width: 100%; font-size: 14px; line-height: 32px; letter-spacing: -0.28px; text-align: center; opacity: 0.9; }

/* ---------- Date ---------- */
.date { padding: 80px 16px; gap: 20px; }
.date__head { width: 100%; text-align: center; }
.date__big { font-family: var(--script); font-size: 32px; line-height: 44.904px; }
.date__sub { font-size: 20px; line-height: 29.936px; opacity: 0.6; padding-top: 14.968px; }
.date__rule { width: 355.1px; max-width: calc(100% + 12px); height: 1.117px; border: 0; background: var(--ink); opacity: 0.1; }
.calendar {
  width: 355.1px; max-width: calc(100% + 12px); opacity: 0.8;
  display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 21.39px;
  font-family: var(--script); font-size: 14.968px; line-height: 22.452px; text-align: center;
}
.calendar span { display: flex; align-items: center; justify-content: center; height: 23px; }
.calendar .sun { color: var(--red); }
.calendar .day--wedding { position: relative; color: var(--bg); font-size: 17.106px; }
.calendar .day--wedding::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 31.267px; height: 31.267px;
  transform: translate(-50%, -50%); border-radius: 50%; background: var(--ink); z-index: -1;
}
.calendar .day--wedding { z-index: 0; }

/* ---------- Location ---------- */
.location { padding: 40px 16px; gap: 40px; }
.location__venue { font-weight: 700; font-size: 24px; line-height: 36px; text-align: center; white-space: nowrap; }
.map {
  display: block; width: 355.1px; max-width: calc(100% + 12px); height: 199.744px;
  border: 1.426px solid rgba(0, 0, 0, 0.05); border-radius: 12px; overflow: hidden;
}
.map img { width: 100%; height: 100%; object-fit: cover; }
.map-links { display: flex; gap: 9.979px; padding: 0 4.989px; width: 355.1px; max-width: calc(100% + 12px); justify-content: center; }
.pill {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  width: 108px; height: 38px; padding: 12px; border-radius: 999px; white-space: nowrap;
  background: var(--glass-bg); border: 1.426px solid var(--glass-border);
  -webkit-backdrop-filter: blur(5.702px); backdrop-filter: blur(5.702px);
  font-size: 14px; line-height: 20px; letter-spacing: 0.3564px;
}
.pill--tmap { gap: 8px; }
.transport { width: 100%; text-align: center; }
.transport h4 { font-weight: 800; font-size: 16px; line-height: 24.947px; opacity: 0.9; }
.transport p { font-size: 16px; line-height: 34.926px; opacity: 0.7; padding-top: 9.979px; }
.transport .transport__gap { padding-top: 39.915px; }

/* ---------- Gallery ---------- */
.gallery { padding: 20px 16px; gap: 18.532px; }
.gallery .label { width: 100%; }
.gallery__grid {
  width: 100%; display: grid; grid-template-columns: repeat(3, 1fr);
  column-gap: 1.426px; row-gap: 1px; border-radius: 4px; overflow: hidden;
}
.cell { aspect-ratio: 113.383 / 163.775; overflow: hidden; position: relative; }
.cell__inner { position: absolute; left: 0; top: 0; height: 100%; width: 108.33%; overflow: hidden; background: #f4f2ed; }
.cell__inner--full { width: 100%; }
.cell__inner img { position: absolute; max-width: none; }

/* ---------- Account ---------- */
.account { padding: 80px 16px; }
.account .label { width: 100%; margin-bottom: 34px; }
.account__lead { font-size: 16px; line-height: 34.926px; opacity: 0.8; margin-bottom: 39px; }
.accordion { width: 100%; }
.acc { border-top: 1.426px solid rgba(0, 0, 0, 0.1); }
.acc:last-child { border-bottom: 1.426px solid rgba(0, 0, 0, 0.1); }
.acc__trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 19.957px 9.979px; font-size: 16px; line-height: 24.947px; text-align: left;
}
.acc__trigger img { opacity: 0.5; transition: transform 0.25s ease; }
.acc:not(.is-open) .acc__trigger img { transform: rotate(180deg); }
.acc__panel { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 0.25s ease; }
.acc:not(.is-open) .acc__panel { grid-template-rows: 0fr; }
.acc__panel > .acc__row { overflow: hidden; min-height: 0; }
.acc.is-open .acc__panel { padding: 0 9.979px 19.957px; }
.acc:not(.is-open) .acc__panel { padding: 0 9.979px; }
.acc__row { display: flex; align-items: center; justify-content: space-between; padding: 14.968px; max-width: 335px; }
.acc:not(.is-open) .acc__row { padding-top: 0; padding-bottom: 0; }
.acc__name { font-size: 18px; line-height: 24.947px; }
.acc__num { font-size: 14px; line-height: 19.957px; opacity: 0.6; margin-top: 4.989px; }
.copy {
  display: flex; padding: 9.979px; border-radius: 8px;
  background: var(--glass-bg); border: 1.426px solid var(--glass-border);
  -webkit-backdrop-filter: blur(5.702px); backdrop-filter: blur(5.702px);
}

/* ---------- Share ---------- */
.share { padding: 40px 16px; }
.share__rule { width: 31.267px; height: 1.117px; background: var(--ink); opacity: 0.2; }
.share__art { width: 209px; aspect-ratio: 720 / 580; object-fit: cover; opacity: 0.9; margin-top: 24px; }
.share .label { margin-top: 24px; width: 209px; }
.share__lead { font-size: 16px; line-height: 34.926px; opacity: 0.8; margin-top: 10px; white-space: nowrap; }
.share__buttons { display: flex; align-items: flex-end; justify-content: center; gap: 39.915px; margin-top: 40px; }
.share__btn {
  display: flex; flex-direction: column; align-items: center; gap: 12.473px;
  font-family: var(--sans); font-size: 12px; line-height: 19.245px; letter-spacing: 1.9245px; text-transform: uppercase;
}
.share__btn { color: rgba(216, 235, 237, 0.8); }
.share__icon {
  display: flex; align-items: center; justify-content: center;
  width: 42.992px; height: 42.992px; border-radius: 50%; background: rgba(242, 232, 213, 0.08);
}

/* ---------- Footer ---------- */
.footer {
  padding: 40px 16px 16px; text-align: center;
  font-family: var(--sans); font-size: 10px; line-height: 18px; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--ink-25);
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translate(-50%, 12px);
  padding: 10px 16px; border-radius: 999px; background: rgba(216, 235, 237, 0.92); color: var(--bg);
  font-size: 14px; opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s; white-space: nowrap;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

button:focus-visible, a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
