/* 콘셉트 A 「잔치 초대장」 스킨
   장식 요소(프레임·매듭 점·낙관 도장·구분선)는 전부 스크린 리더에서 숨긴다. */

body { background: #eae3cf; }

.container {
  position: relative;
  background: var(--bg);
  margin: 14px auto;
  padding: 30px 24px 40px;
  border-radius: 6px;
  box-shadow: 0 2px 16px rgba(43, 42, 36, 0.1);
  overflow: hidden; /* 표지 열림 연출이 카드 밖으로 새지 않게 */
}
@media (min-width: 520px) {
  .container { margin: 28px auto; }
}

/* 카드 이중 프레임 + 모서리 매듭 점 (순수 장식, 빈 요소) */
.frame {
  position: absolute;
  inset: 9px;
  border: 1px solid #c9c3ae;
  border-radius: 4px;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 5px 5px, #e06a25 4px, transparent 5px),
    radial-gradient(circle at calc(100% - 5px) 5px, #178e8e 4px, transparent 5px),
    radial-gradient(circle at 5px calc(100% - 5px), #178e8e 4px, transparent 5px),
    radial-gradient(circle at calc(100% - 5px) calc(100% - 5px), #e06a25 4px, transparent 5px);
  background-repeat: no-repeat;
}
.frame::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid #e3decb;
  border-radius: 2px;
}

/* ---- 표지 ---- */
.hero {
  text-align: center;
  padding: 18px 0 6px;
}

.hero-logo {
  display: block;
  width: 280px;
  max-width: 78%;
  height: auto;
  margin: 0 auto 16px;
}

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: #87866d;
  font-weight: 500;
  margin-bottom: 16px;
}

.title-row {
  position: relative;
  display: inline-block;
  margin-bottom: 8px;
}

.hero h1 {
  font-family: "Gowun Batang", serif;
  font-size: 2.7rem;
  line-height: 1.22;
  letter-spacing: 0.04em;
}

.subtitle {
  font-size: 0.9rem;
  letter-spacing: 0.45em;
  text-indent: 0.45em;
  color: #4a4938;
  font-weight: 500;
  margin-bottom: 20px;
}

/* 대표 이미지: 작년 함께하는 장날 단체사진의 수채화 변형 (순수 장식) */
.cover-photo {
  margin: 0 0 22px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e3decb;
  box-shadow: 0 3px 14px rgba(43, 42, 36, 0.14);
}
.cover-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-date {
  font-family: "Gowun Batang", serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.hero-when {
  font-size: 0.92rem;
  color: #4a4938;
  margin-bottom: 24px;
}

.hero-cta {
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.05em;
  box-shadow: 0 3px 10px rgba(224, 106, 37, 0.35);
}

/* ---- 본문 장(step) ---- */
main section { text-align: center; }
#rsvp { text-align: left; }
#rsvp h2 { text-align: center; }

main h2 {
  font-family: "Gowun Batang", serif;
  font-size: 1.35rem;
  margin-bottom: 4px;
}
main h2::after {
  content: "";
  display: block;
  width: 7px;
  height: 7px;
  background: var(--orange);
  transform: rotate(45deg);
  margin: 12px auto 18px;
}

/* ---- 접이식 스킨 (잔치 초대장 톤) ---- */
/* 제목은 명조 서체로 표지·본문과 결을 맞춘다. */
.fold-title {
  font-family: "Gowun Batang", serif;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
}
.fold[open] { box-shadow: 0 2px 10px rgba(43, 42, 36, 0.08); }

/* 세부 일정: 각 항목 앞에 다이아몬드 말머리(장식, 스크린리더 미읽음).
   여러 줄로 넘어가도 본문이 말머리 오른쪽에 맞춰 정렬되도록 매달린 들여쓰기. */
.fold-info p {
  position: relative;
  padding-left: 18px;
  margin-bottom: 12px;
}
.fold-info p:last-child { margin-bottom: 0; }
/* 지도 길찾기 링크 */
.fold-info .place-map {
  display: inline-block;
  margin-top: 6px;
  min-height: 32px;
  padding: 4px 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 2px;
}
/* 오시는 길 약도 (이룸센터 → 백년찌개집) */
.fold-info .route-map {
  max-width: 215px;
  margin: 10px auto 4px;
  border: 1px solid #e3decb;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(43, 42, 36, 0.08);
}
.fold-info .route-map img {
  display: block;
  width: 100%;
  height: auto;
}
.fold-info .route-map figcaption {
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
  padding: 6px 8px;
  background: rgba(23, 142, 142, 0.05);
}
.fold-info p::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.6em;
  width: 6px;
  height: 6px;
  background: var(--orange);
  transform: rotate(45deg);
}

/* 모시는 글: 초대 문안은 명조 서체로, 넉넉한 줄간격으로 */
.fold-quote .fold-inner {
  text-align: center;
}
.fold-quote .fold-inner p {
  font-family: "Gowun Batang", serif;
  line-height: 1.75;
  margin-bottom: 18px;
  text-wrap: balance; /* 수동 줄바꿈이 없더라도 줄 길이를 고르게 (미지원 시 무시) */
}
.fold-quote .fold-inner p:last-child { margin-bottom: 0; }
/* 서명: 초대 문안 아래 오른쪽으로, 위 여백을 넉넉히 */
.fold-quote .fold-inner p.quote-sign {
  margin-top: 24px;
  text-align: right;
}

/* ================= 펼침 애니메이션 ================= */
/* 접이식 본문은 JS가 height를 0↔내용 높이로 전환해 아래로 부드럽게 펼친다.
   JS가 없으면 <details>가 그대로 즉시 펼쳐진다(내용 접근 가능).
   prefers-reduced-motion에서는 JS가 애니메이션을 건너뛰고 즉시 토글한다. */
.fold-body { will-change: height; }
