/* 01-invite · 핑크 초대장 — 아이보리 · 블러시 핑크 · 코랄 포인트 */
:root {
  --ivory: #FFF8F3;
  --paper: #FFFDFB;
  --blush: #F7D6D9;
  --blush-2: #FBE7E6;
  --blush-3: #E9A7A9;
  --coral: #E8604C;      /* 장식용 */
  --coral-ink: #B9412F;  /* 글자용 (대비 4.5:1 이상) */
  --coral-btn: #C94735;  /* 흰 글자 버튼 */
  --plum: #4A2E35;
  --plum-soft: #6E4C54;

  --serif: 'Gowun Batang', 'Nanum Myeongjo', serif;
  --sans: 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --r-lg: 32px;
  --r-md: 22px;
  --shadow: 0 18px 50px -24px rgba(74, 46, 53, .35);

  --bar-bg: rgba(255, 248, 243, .96);
  --bar-visit-bg: var(--coral-btn);
  --bar-visit-fg: #fff;
  --bar-tg-bg: var(--plum);
  --bar-tg-fg: var(--ivory);
  --float-bg: var(--plum);
  --float-fg: var(--ivory);
  --focus: var(--coral-btn);
  --ph-bg: var(--blush);
  --banner-radius: 22px;
  --banner-max: 1000px;
}

body {
  background: var(--ivory);
  color: var(--plum);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.75;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 16px; }
.banner-wrap { --banner-pad: 8px 16px 36px; }
.banner-wrap .banner { filter: drop-shadow(0 10px 22px rgba(74, 46, 53, .08)); }

/* ── 머리말 ─────────────────────────────── */
.site-head { position: relative; z-index: 5; }
.head-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; text-decoration: none; font-family: var(--serif); font-weight: 700; font-size: 20px; }
.logo-seal { width: 22px; height: 22px; color: var(--coral); }
.head-visit { display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px; border-radius: 999px; border: 1.5px solid rgba(74, 46, 53, .25);
  text-decoration: none; font-weight: 700; font-size: 15px; transition: background .2s, border-color .2s; }
.head-visit:hover { background: var(--blush-2); border-color: var(--coral); }

/* ── 버튼 ──────────────────────────────── */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn-visit { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 58px; padding: 14px 28px; border-radius: 999px;
  background: var(--coral-btn); color: #fff; text-decoration: none; font-weight: 700; font-size: 17px; line-height: 1.25;
  box-shadow: 0 12px 26px -12px rgba(201, 71, 53, .8); transition: transform .2s, background .2s; }
.btn-visit svg { width: 22px; height: 22px; flex: none; }
.btn-visit:hover { background: #B23C2C; transform: translateY(-2px); }
.tg-btn { background: var(--paper); color: var(--plum); border: 1.5px solid rgba(74, 46, 53, .28); font-size: 16px; transition: border-color .2s, background .2s; }
.tg-btn svg { color: #2A8BC0; }
.tg-btn:hover { border-color: var(--plum); background: #fff; }
.tg-btn .tg-handle { color: var(--plum-soft); opacity: 1; }
/* 첫 화면 · 마지막 초대의 주 버튼 = 텔레그램 */
.tg-btn.tg-primary { justify-content: center; min-height: 60px; padding: 14px 30px; border: 0; background: var(--coral-btn); color: #fff; font-size: 17.5px;
  box-shadow: 0 12px 26px -12px rgba(201, 71, 53, .8); transition: transform .2s, background .2s; }
.tg-btn.tg-primary svg { color: #fff; }
.tg-btn.tg-primary:hover { background: #B23C2C; border: 0; transform: translateY(-2px); }
.first-visit { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 15px; line-height: 1.6; color: var(--plum-soft); }
.first-visit::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }
.float-tg { background: var(--float-bg); color: var(--float-fg); border: 0; }
.float-tg svg, .float-tg .tg-handle { color: inherit; }
@media (max-width: 519px) {
  .actions .btn-visit, .actions .tg-btn { width: 100%; justify-content: center; }
}

.eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 14.5px; font-weight: 500; color: var(--plum-soft); }
.eyebrow-en { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--coral-ink); letter-spacing: .04em; }
.eyebrow-en::after { content: ""; display: inline-block; width: 26px; height: 1.5px; margin-left: 10px; vertical-align: middle; background: currentColor; opacity: .6; }

/* ── 첫 화면 · 펼친 초대장 ───────────────── */
.hero { padding: 4px 0 28px; }
.invite-card { position: relative; background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--shadow);
  padding: 92px 20px 32px; overflow: hidden; }
.invite-card::after { content: ""; position: absolute; inset: 10px; border: 1.5px dashed rgba(233, 167, 169, .8); border-radius: 24px; pointer-events: none; }
.flap { position: absolute; left: 0; right: 0; top: 0; height: 58px; }
.flap-shape { width: 100%; height: 100%; fill: var(--blush); }
.seal { position: absolute; left: 50%; top: 100%; width: 52px; height: 52px; transform: translate(-50%, -62%); display: grid; place-items: center;
  border-radius: 50%; background: var(--coral-btn); color: var(--ivory); z-index: 2;
  box-shadow: 0 0 0 5px rgba(201, 71, 53, .18), 0 8px 18px -6px rgba(120, 30, 20, .55); }
.seal svg { width: 24px; height: 24px; }

.hero-grid { position: relative; z-index: 1; display: grid; grid-template-areas: "head" "photo" "body"; gap: 26px; }
.hero-head { grid-area: head; text-align: center; }
.hero-head .eyebrow { justify-content: center; }
.hero h1 { margin-top: 14px; font-size: clamp(40px, 11.5vw, 72px); line-height: 1.18; letter-spacing: -.02em; }
.nowrap { white-space: nowrap; }
.h1-heart { font-size: .72em; vertical-align: .08em; }
.hero-body { grid-area: body; }
.lead { font-size: 18px; line-height: 1.7; text-align: center; }

.invite-meta { margin: 24px 0 0; border-top: 1.5px solid var(--blush); }
.invite-meta div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 12px 4px; border-bottom: 1.5px dotted var(--blush-3); }
.invite-meta dt { font-size: 14.5px; color: var(--plum-soft); }
.invite-meta dd { margin: 0; font-family: var(--serif); font-weight: 700; font-size: 19px; }

/* 사진 — 아치 액자 + 겹친 작은 카드 */
.hero-photos { grid-area: photo; position: relative; width: 100%; max-width: 380px; margin-inline: auto; padding: 0 12% 34px 0; }
.arch { position: relative; padding: 8px; border-radius: 999px 999px 26px 26px; background: var(--blush-2); }
.arch-ph { aspect-ratio: 3 / 4; border-radius: 999px 999px 20px 20px; }
.note-card { position: absolute; right: 0; bottom: 0; width: 42%; padding: 7px 7px 0; background: #fff; border-radius: 16px;
  box-shadow: 0 16px 30px -14px rgba(74, 46, 53, .55); transform: rotate(5deg); }
.note-ph { aspect-ratio: 4 / 5; border-radius: 11px; }
.note-cap { display: block; padding: 6px 0 8px; text-align: center; font-family: var(--serif); font-weight: 700; font-size: 14px; color: var(--coral-ink); }
.sparkle { position: absolute; color: var(--coral); }
.sp1 { width: 22px; height: 22px; left: -4px; top: 14%; }
.sp2 { width: 14px; height: 14px; left: 6%; top: 4%; opacity: .7; }

/* ── 편지 ──────────────────────────────── */
.letter-sec { padding: 16px 0 56px; }
.letter { position: relative; max-width: 760px; margin-inline: auto; padding: 44px 22px 32px; border-radius: var(--r-lg);
  background: var(--blush-2); }
.letter::before { content: ""; position: absolute; inset: 10px; border: 1.5px dashed rgba(233, 167, 169, .9); border-radius: 24px; pointer-events: none; }
.stamp { position: absolute; top: -18px; right: 18px; width: 58px; transform: rotate(7deg); filter: drop-shadow(0 6px 10px rgba(74, 46, 53, .18)); }
.stamp-edge { fill: #fff; }
.stamp-in { fill: var(--blush); }
.stamp-heart { fill: var(--coral); }
.letter-to { font-family: var(--serif); font-weight: 700; font-size: 16px; color: var(--coral-ink); padding-right: 56px; }
.letter h2 { margin-top: 10px; font-size: clamp(28px, 7.4vw, 40px); }
.letter-body { margin-top: 20px; }
.letter-body p + p { margin-top: 12px; }
.letter-from { margin-top: 22px; text-align: right; font-family: var(--serif); font-weight: 700; font-size: 20px; }
.letter-from::after { content: " 💗"; font-size: .8em; }
.letter-index { margin-top: 28px; padding-top: 22px; border-top: 1.5px dashed var(--blush-3); }
.index-title { font-size: 14.5px; color: var(--plum-soft); font-weight: 500; }
.letter-index ul { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.letter-index a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px; border-radius: 999px; background: var(--paper);
  text-decoration: none; font-weight: 700; font-size: 15.5px; border: 1.5px solid transparent; transition: border-color .2s; }
.letter-index a:hover { border-color: var(--coral); }

/* ── 순서 (이벤트 · 게임 · 선물) ───────────── */
.step { position: relative; padding: 20px 0 0; }
.step-grid { display: grid; gap: 28px; align-items: center; }
.step-no { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-weight: 700; font-size: 16px; color: var(--coral-ink); }
.step-no::before { content: ""; width: 12px; height: 12px; flex: none; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 5px var(--blush); }
.step-no::after { content: ""; flex: 1; max-width: 90px; height: 0; border-top: 1.5px dashed var(--blush-3); }
.step h2, .gallery h2 { margin-top: 14px; font-size: clamp(28px, 7.4vw, 42px); }
.step-text > p:not(.step-no) { margin-top: 16px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; margin-top: 12px; font-weight: 700; color: var(--coral-ink);
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 6px; text-decoration-color: rgba(185, 65, 47, .35); }
.text-link:hover { text-decoration-color: currentColor; }
.step .banner-wrap { padding-top: 40px; }

/* 이벤트 — RSVP 카드 */
.rsvp { position: relative; padding: 30px 24px 26px; border-radius: 26px; background: var(--paper); box-shadow: var(--shadow); text-align: center;
  border: 1.5px solid var(--blush); }
.rsvp::before, .rsvp::after { content: ""; position: absolute; top: 50%; width: 22px; height: 22px; border-radius: 50%; background: var(--ivory); transform: translateY(-50%); }
.rsvp::before { left: -12px; box-shadow: inset -2px 0 0 var(--blush); }
.rsvp::after { right: -12px; box-shadow: inset 2px 0 0 var(--blush); }
.rsvp-kicker { font-family: var(--serif); font-style: italic; font-size: 15px; letter-spacing: .3em; color: var(--coral-ink); }
.rsvp-q { margin-top: 8px; font-family: var(--serif); font-weight: 700; font-size: 25px; line-height: 1.4; }
.rsvp-yes { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 58px; margin-top: 20px; padding: 12px 22px; border-radius: 16px;
  background: var(--blush-2); border: 1.5px solid var(--blush-3); text-decoration: none; font-weight: 700; font-size: 17px; transition: background .2s, border-color .2s; }
.rsvp-yes:hover { background: var(--blush); border-color: var(--coral); }
.rsvp-check { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 8px; background: var(--coral-btn); color: #fff; }
.rsvp-check svg { width: 18px; height: 18px; }
.rsvp-note { margin-top: 16px; font-size: 14px; line-height: 1.6; color: var(--plum-soft); }

/* 게임 — 둥근 그림 */
.game-art { width: min(100%, 340px); margin-inline: auto; }
.game-art svg { width: 100%; height: auto; }

/* 선물 — 흐름 카드 */
.gift-card { display: grid; gap: 28px; padding: 32px 22px; border-radius: var(--r-lg); background: var(--blush); }
.gift-notice { margin-top: 12px !important; padding: 12px 16px; border-radius: 14px; background: rgba(255, 253, 251, .7); font-size: 14.5px; line-height: 1.6; }
.gift-text > p:not(.step-no):not(.gift-notice) { margin-top: 16px; }
.gift-flow { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 24px 12px; border-radius: 24px; background: var(--paper); }
.flow-item { display: flex; flex-direction: column; align-items: center; gap: 8px; font-family: var(--serif); font-weight: 700; font-size: 15px; text-align: center; }
.flow-item svg { width: clamp(72px, 22vw, 108px); height: auto; }
.flow-arrow { width: 40px; flex: none; margin-bottom: 30px; }

/* ── 사진관 ─────────────────────────────── */
.gallery { padding: 44px 0 0; }
.gallery-head { max-width: 640px; }
.gallery-head > p:not(.step-no) { margin-top: 16px; }
.rooms { display: grid; gap: 20px; margin-top: 30px; }
.room { position: relative; padding: 24px 22px 20px; border-radius: var(--r-lg); }
.room h3 { font-size: 26px; margin-top: 4px; }
.room > p:not(.room-tag) { margin-top: 10px; }
.room-tag { margin-top: 18px; font-size: 14.5px; font-weight: 700; letter-spacing: .02em; }
.room-art svg, .vip-envelope svg { width: 100%; height: auto; max-height: 200px; }
.room-link { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; margin-top: 10px; font-weight: 700; text-decoration: underline;
  text-decoration-thickness: 1.5px; text-underline-offset: 6px; }
.room-daily { background: var(--paper); border: 1.5px solid var(--blush); }
.room-daily .room-art { padding: 10px; border-radius: 22px; background: var(--blush-2); }
.room-daily .room-tag, .room-daily .room-link { color: var(--coral-ink); }
.room-daily .room-link { text-decoration-color: rgba(185, 65, 47, .35); }
.room-vip { background: var(--plum); color: var(--ivory); }
.room-vip .vip-envelope { padding: 10px; border-radius: 22px; background: rgba(255, 248, 243, .06); }
.room-vip .room-tag { color: #F4B3AA; }
.room-vip .room-link { color: var(--ivory); text-decoration-color: rgba(255, 248, 243, .45); }
.room-vip .room-link:hover, .room-daily .room-link:hover { text-decoration-color: currentColor; }

/* ── 마지막 초대 ─────────────────────────── */
.banner-last { padding-top: 40px; }
.banner-inline { padding: 28px 0 0; }
.closing { padding: 18px 0 56px; }
.closing-card { position: relative; max-width: 860px; margin-inline: auto; padding: 96px 22px 36px; text-align: center; border-radius: var(--r-lg);
  background: var(--paper); box-shadow: var(--shadow); overflow: hidden; }
.closing-card::after { content: ""; position: absolute; inset: 10px; border: 1.5px dashed rgba(233, 167, 169, .8); border-radius: 24px; pointer-events: none; }
.eyebrow-center { justify-content: center; }
.eyebrow-center .eyebrow-en::after { display: none; }
.closing h2 { margin-top: 10px; font-size: clamp(30px, 8vw, 46px); }
.closing-text { max-width: 520px; margin: 16px auto 0; }
.actions-center { justify-content: center; }
.closing-notice { max-width: 520px; margin: 22px auto 0; font-size: 14px; line-height: 1.6; color: var(--plum-soft); }

/* ── 꼬리말 ─────────────────────────────── */
.site-foot { border-top: 1.5px solid var(--blush); background: var(--blush-2); }
.foot-inner { padding-block: 28px; text-align: center; font-size: 14px; line-height: 1.7; color: var(--plum-soft); }
.foot-logo { font-family: var(--serif); font-weight: 700; font-size: 20px; color: var(--plum); }
.foot-copy { margin-top: 6px; }

/* ── 태블릿 이상 ─────────────────────────── */
@media (min-width: 600px) {
  .wrap { padding-inline: 28px; }
  .banner-wrap { --banner-pad: 8px 28px 40px; }
  .invite-card { padding: 92px 40px 44px; }
  .flap { height: 74px; }
  .letter { padding: 52px 44px 38px; }
  .stamp { width: 70px; right: 30px; }
  .gift-card { padding: 40px; }
  .rooms { grid-template-columns: 1fr 1fr; }
  .closing-card { padding: 108px 40px 44px; }
}

/* ── PC ─────────────────────────────────── */
@media (min-width: 900px) {
  body { font-size: 17px; }
  .wrap { padding-inline: 40px; }
  .banner-wrap { --banner-pad: 12px 40px 48px; --banner-max: 840px; }
  .banner-inline { padding: 36px 0 0; }
  .head-inner { min-height: 84px; }

  .hero { padding: 6px 0 36px; }
  .invite-card { padding: 108px 64px 60px; }
  .flap { height: 88px; }
  .seal { width: 62px; height: 62px; }
  .seal svg { width: 28px; height: 28px; }
  .hero-grid { grid-template-columns: minmax(0, 440px) minmax(0, 1fr); grid-template-areas: "photo head" "photo body"; grid-template-rows: auto 1fr; column-gap: 72px; row-gap: 0; align-items: start; }
  .hero-photos { max-width: 440px; padding: 0 56px 44px 0; }
  .hero-head { text-align: left; align-self: end; padding-top: 24px; }
  .hero-head .eyebrow { justify-content: flex-start; }
  .hero h1 { font-size: clamp(56px, 5vw, 72px); }
  .hero-body { padding-top: 20px; }
  .lead { text-align: left; font-size: 20px; }
  .invite-meta { max-width: 460px; }
  .note-card { width: 46%; }

  .letter-sec { padding: 28px 0 80px; }
  .letter { padding: 64px 72px 48px; }
  .letter-body { font-size: 17.5px; }

  .step { padding-top: 40px; }
  .step-grid { grid-template-columns: 1.15fr .85fr; gap: 72px; }
  .step-game .step-grid { grid-template-columns: .9fr 1.1fr; }
  .step-text { max-width: 520px; }
  .rsvp { padding: 40px 36px 30px; }
  .game-art { width: 100%; max-width: 400px; }
  .gift-card { grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; padding: 56px 60px; }
  .gift-flow { padding: 40px 20px; }
  .flow-item svg { width: 120px; }

  .gallery { padding-top: 64px; }
  .rooms { grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 40px; }
  .room { padding: 30px 30px 24px; }
  .room-vip { transform: translateY(28px); }
  .banner-last { padding-top: 96px; }
  .hero-body .actions { flex-direction: column; align-items: flex-start; }
  .hero-body .actions > a { min-width: 320px; }
  .gallery .banner-wrap { padding-top: 72px; }

  .closing { padding: 24px 0 88px; }
  .closing-card { padding: 124px 64px 56px; }
}

@media (prefers-reduced-motion: reduce) {
  .btn-visit:hover, .tg-btn.tg-primary:hover { transform: none; }
}

/* 좁은 화면 — 주 버튼·RSVP 문구가 한 줄에 들어가게 */
@media (max-width: 419px) {
  .tg-btn.tg-primary { gap: 8px; padding: 14px 14px; font-size: 16px; letter-spacing: -.01em; }
  .tg-btn.tg-primary svg { width: 22px; height: 22px; }
  .tg-btn .tg-text { text-align: center; }
  .rsvp { padding-inline: 18px; }
  .rsvp-yes { gap: 10px; padding: 12px 12px; font-size: 16px; letter-spacing: -.01em; }
  .rsvp-check { width: 26px; height: 26px; }
}
