
:root {
  --ivory: #f7f2ea;
  --paper: #fffdf8;
  --ink: #2c2926;
  --muted: #766f68;
  --sage: #8f9b86;
  --line: rgba(44,41,38,.16);
  --warm: #e8ddcf;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--ivory);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--ivory);
  font-family: "Apple SD Gothic Neo", "Noto Sans KR", Arial, sans-serif;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

img, video, iframe {
  max-width: 100%;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 58px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(44,41,38,.08);
  background: rgba(247,242,234,.92);
  backdrop-filter: blur(14px);
}

.brand {
  color: var(--ink);
  text-decoration: none;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
}

.share-button {
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-size: .75rem;
  border-radius: 999px;
}

.cover {
  padding: 44px 18px 0;
}

.cover-copy {
  max-width: 620px;
  margin: 0 auto 32px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: .64rem;
  letter-spacing: .18em;
  color: var(--sage);
}

h1, h2, h3, p {
  margin-top: 0;
}

h1, h2 {
  font-family: Georgia, "Times New Roman", "Noto Serif KR", serif;
  font-weight: 400;
}

.cover h1 {
  margin-bottom: 18px;
  font-size: clamp(3rem, 15vw, 5.4rem);
  line-height: .95;
  letter-spacing: -.04em;
}

.cover h1 span {
  color: var(--sage);
  font-size: .58em;
}

.hairline {
  width: 56px;
  height: 1px;
  margin: 20px auto;
  background: var(--warm);
}

.date,
.place {
  margin: 0;
  font-size: .78rem;
  letter-spacing: .06em;
}

.place {
  margin-top: 5px;
  color: var(--muted);
}

.cover-photo {
  margin: 0 auto;
  width: min(560px, 100%);
  background: var(--paper);
}

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

.section {
  padding: 78px 22px;
  text-align: center;
}

.soft-section {
  background: var(--paper);
}

.section h2 {
  margin-bottom: 18px;
  font-size: clamp(2.2rem, 9vw, 3.6rem);
  line-height: 1.05;
}

.intro-copy,
.section-copy {
  max-width: 560px;
  margin: 0 auto;
  color: var(--muted);
}

.countdown-grid {
  max-width: 440px;
  margin: 32px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.countdown-grid div {
  padding: 22px 8px;
  border-right: 1px solid var(--line);
}

.countdown-grid div:last-child {
  border-right: 0;
}

.countdown-grid strong,
.countdown-grid span {
  display: block;
}

.countdown-grid strong {
  font-family: Georgia, serif;
  font-size: 2rem;
  font-weight: 400;
}

.countdown-grid span {
  margin-top: 3px;
  color: var(--muted);
  font-size: .72rem;
}

.video-wrap {
  width: min(720px, 100%);
  margin: 30px auto 0;
  background: #000;
}

.video-wrap video {
  display: block;
  width: 100%;
  height: auto;
}

.gallery {
  width: min(720px, 100%);
  margin: 30px auto 0;
}

.gallery-stage {
  position: relative;
  min-height: 58vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
}

.gallery-slide {
  grid-area: 1 / 1;
  width: 100%;
  margin: 0;
  display: none;
  align-items: center;
  justify-content: center;
}

.gallery-slide.active {
  display: flex;
}

.gallery-slide img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 72vh;
  object-fit: contain;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border: 1px solid rgba(44,41,38,.18);
  border-radius: 50%;
  background: rgba(255,253,248,.82);
  color: var(--ink);
  font-size: 1.1rem;
}

.gallery-arrow.prev { left: 10px; }
.gallery-arrow.next { right: 10px; }

.gallery-meta {
  margin-top: 12px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  font-size: .7rem;
  color: var(--muted);
}

.progress {
  height: 1px;
  overflow: hidden;
  background: var(--line);
}

.progress span {
  display: block;
  height: 100%;
  width: 5%;
  background: var(--sage);
  transition: width .2s ease;
}

.detail-card {
  max-width: 620px;
  margin: 30px auto 0;
  text-align: left;
  border-top: 1px solid var(--line);
}

.detail-row {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.detail-row span {
  color: var(--muted);
  font-size: .78rem;
}

.detail-row strong {
  font-weight: 500;
}

.timeline {
  max-width: 620px;
  margin: 30px auto 0;
  text-align: left;
}

.timeline-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-item time {
  color: var(--sage);
  font-size: .78rem;
}

.timeline-item h3 {
  margin-bottom: 5px;
  font-size: 1rem;
}

.timeline-item p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: .9rem;
}

.notice,
.arrival-note {
  max-width: 620px;
  margin: 28px auto 0;
  padding: 18px 20px;
  border-left: 3px solid var(--sage);
  background: rgba(143,155,134,.10);
  text-align: left;
}

.notice strong {
  display: block;
  margin-bottom: 6px;
}

.notice p {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
}

.map-card {
  width: min(720px, 100%);
  height: 320px;
  margin: 30px auto 0;
  overflow: hidden;
  border: 1px solid var(--line);
}

.map-card iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.map-links {
  max-width: 720px;
  margin: 12px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.map-links a {
  padding: 12px 8px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  font-size: .72rem;
}

.subway {
  max-width: 720px;
  margin: 34px auto 0;
  text-align: left;
}

.subway-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.line-badge {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  font-weight: 700;
}

.line2 { background: #00A84D; }
.line8 { background: #E6186C; }

.route-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.route-list li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.route-list li > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--sage);
  border-radius: 50%;
  color: var(--sage);
  font-size: .72rem;
}

.route-list p {
  margin: 1px 0 0;
  color: var(--muted);
}

.route-list strong {
  color: var(--ink);
  font-weight: 600;
}

.disabled-button {
  margin-top: 24px;
  padding: 13px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--warm);
  color: var(--muted);
}

.closing {
  padding: 90px 22px 105px;
  text-align: center;
  background: var(--ink);
  color: var(--ivory);
}

.closing .eyebrow {
  color: var(--warm);
}

.closing h2 {
  margin-bottom: 12px;
  font-family: Georgia, "Times New Roman", "Noto Serif KR", serif;
  font-size: 2.1rem;
  font-weight: 400;
}

.closing p:last-child {
  margin: 0;
  color: rgba(255,255,255,.62);
  font-size: .72rem;
  letter-spacing: .08em;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 50;
  transform: translate(-50%, 20px);
  padding: 11px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-size: .76rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (min-width: 760px) {
  .section {
    padding-top: 100px;
    padding-bottom: 100px;
  }

  .cover {
    padding-top: 70px;
  }

  .gallery-stage {
    min-height: 72vh;
  }
}

@media (max-width: 480px) {
  .gallery-section {
    padding-left: 0;
    padding-right: 0;
  }

  .gallery-section > .eyebrow,
  .gallery-section > h2,
  .gallery-section > .section-copy {
    margin-left: 22px;
    margin-right: 22px;
  }

  .gallery-stage {
    border-left: 0;
    border-right: 0;
    min-height: 50vh;
  }

  .gallery-slide img {
    width: 100%;
    max-height: none;
  }

  .gallery-meta {
    padding: 0 22px;
  }

  .timeline-item {
    grid-template-columns: 92px 1fr;
  }

  .map-links {
    grid-template-columns: 1fr;
  }
}


/* =========================
   VERSION 2 — ACCOUNT / RSVP / GUESTBOOK
   ========================= */

.account-section {
  background: var(--ivory);
}

.account-list {
  width: min(620px, 100%);
  margin: 32px auto 0;
  display: grid;
  gap: 12px;
}

.account-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: stretch;
  border: 1px solid var(--line);
  background: var(--paper);
  text-align: left;
}

.account-person {
  padding: 19px 17px;
  border-right: 1px solid var(--line);
}

.account-person strong,
.account-person span {
  display: block;
}

.account-person strong {
  margin-top: 4px;
  font-weight: 600;
}

.account-relation {
  color: var(--sage);
  font-size: .7rem;
  letter-spacing: .04em;
}

.account-copy {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 2px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.account-copy span {
  color: var(--muted);
  font-size: .76rem;
}

.account-copy strong {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .02em;
}

.account-copy small {
  margin-top: 5px;
  color: var(--sage);
  font-size: .68rem;
}

.account-copy:active {
  background: rgba(143,155,134,.09);
}

.account-coming {
  padding: 19px 18px;
  display: flex;
  align-items: center;
  color: var(--muted);
  font-size: .84rem;
}

.account-pending {
  opacity: .78;
}

.account-footnote {
  width: min(620px, 100%);
  margin: 16px auto 0;
  color: var(--muted);
  font-size: .74rem;
}

.attendance-buttons {
  width: min(480px, 100%);
  margin: 30px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.attendance-choice {
  padding: 17px 10px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: 2px;
  font-size: .95rem;
  cursor: pointer;
}

.attendance-choice.selected {
  border-color: var(--sage);
  background: var(--sage);
  color: white;
}

.expandable-form,
.guestbook-form {
  width: min(560px, 100%);
  margin: 22px auto 0;
  padding: 24px 20px;
  border: 1px solid var(--line);
  background: var(--paper);
  text-align: left;
}

.expandable-form[hidden] {
  display: none;
}

.selected-attendance {
  margin: -2px 0 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--sage);
  font-size: .8rem;
  font-weight: 600;
  text-align: center;
}

.form-field {
  display: block;
  margin-bottom: 18px;
}

.form-field > span {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: .8rem;
}

.form-field em {
  color: var(--sage);
  font-style: normal;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 13px 12px;
  border: 1px solid var(--line);
  border-radius: 0;
  outline: 0;
  background: white;
  color: var(--ink);
  font: inherit;
  font-size: .9rem;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--sage);
}

.form-field textarea {
  resize: vertical;
}

.form-submit {
  width: 100%;
  padding: 14px 16px;
  border: 0;
  background: var(--ink);
  color: white;
  font-size: .88rem;
  cursor: pointer;
}

.form-submit:disabled {
  opacity: .55;
  cursor: wait;
}

.form-status {
  min-height: 1.4em;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: .75rem;
  text-align: center;
}

.message-list {
  width: min(560px, 100%);
  margin: 24px auto 0;
  display: grid;
  gap: 10px;
  text-align: left;
}

.message-card {
  padding: 16px 17px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.message-card strong {
  display: block;
  margin-bottom: 5px;
  font-size: .82rem;
}

.message-card p {
  margin: 0;
  color: var(--muted);
  font-size: .88rem;
  white-space: pre-wrap;
}

.message-empty {
  padding: 18px;
  color: var(--muted);
  font-size: .78rem;
  text-align: center;
}

@media (max-width: 480px) {
  .account-card {
    grid-template-columns: 118px 1fr;
  }

  .account-person {
    padding-left: 14px;
    padding-right: 14px;
  }

  .attendance-buttons {
    width: 100%;
  }
}
