@font-face{font-family:"Gowun Batang";src:url(fonts/GowunBatang-Regular.woff2) format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:"Gowun Batang";src:url(fonts/GowunBatang-Bold.woff2) format("woff2");font-weight:700;font-display:swap}
:root{--ink:#2b2622;--soft:#6b5f54;--accent:#7a5433;--line:#e6dccf;--paper:#fffdf9;--warm:#f6efe5;--sun:#b0442f}
*{box-sizing:border-box}html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{margin:0;background:#efe7db;color:var(--ink);font:400 18px/1.85 "Gowun Batang",serif;word-break:keep-all}
main{max-width:480px;margin:0 auto;background:var(--paper);overflow:hidden}
section,footer{padding:64px 28px;text-align:center}
p{margin:0 0 14px}h1,h2{font-weight:700;line-height:1.4;margin:0 0 28px}h1{font-size:23px}h2{font-size:26px}
.eyebrow{font-size:15px;letter-spacing:.14em;color:var(--accent);margin-bottom:22px}
.hero{background:linear-gradient(#f6efe5,#fffdf9);padding:48px 28px 28px;text-align:center}
.cover{display:block;width:min(74%,300px);height:auto;margin:0 auto 30px;box-shadow:0 18px 40px rgba(60,40,20,.28)}
.hero-when{font-size:21px;font-weight:700;margin-bottom:4px}.hero-where{font-size:18px;color:var(--soft);margin-bottom:18px}
.down{display:inline-block;color:var(--accent);text-decoration:none;font-size:22px;padding:6px 16px}
.sign{margin:30px 0 0;font-weight:700}
.date,.book{background:var(--warm)}
.big{font-size:21px;font-weight:700;line-height:1.5;margin-bottom:26px}
.cal{width:100%;max-width:340px;margin:0 auto 22px;border-collapse:collapse;table-layout:fixed;font-size:17px}
.cal caption{font-weight:700;padding-bottom:12px}.cal th{font-weight:400;font-size:15px;color:var(--soft);padding:6px 0}
.cal td{height:42px;text-align:center;padding:0}.cal .sun{color:var(--sun)}
.cal .day{position:relative;z-index:0;color:#fff;font-weight:700}
.cal .day:before{content:"";position:absolute;z-index:-1;left:50%;top:50%;width:38px;height:38px;margin:-19px 0 0 -19px;border-radius:50%;background:var(--accent)}
.dday{color:var(--accent);font-weight:700;margin-bottom:24px}
.actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:center}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:52px;padding:10px 20px;border:1px solid var(--accent);background:var(--paper);color:var(--accent);font:inherit;font-size:17px;border-radius:6px;text-decoration:none;cursor:pointer;flex:1 1 40%}
.btn.solid{background:var(--accent);color:#fff}.btn.dark{background:#2b2622;border-color:#2b2622;color:#fff;flex:none;min-width:200px}
.btn:focus-visible,.down:focus-visible,a:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.addr{color:var(--soft);margin:-14px 0 24px}.note{font-size:16px;color:var(--soft);min-height:1px;margin:10px 0 0}
.ways{margin:34px 0 0;text-align:left;border-top:1px solid var(--line)}.ways div{padding:16px 2px;border-bottom:1px solid var(--line)}
.ways dt{font-weight:700;margin-bottom:2px}.ways dd{margin:0;color:var(--soft)}.ways a{color:var(--accent)}
.book p{margin-bottom:26px;color:var(--soft)}
.contact a{color:var(--accent)}
footer .share{width:100%}.copy-fallback{margin-top:14px;text-align:left}.copy-fallback input{width:100%;font:inherit;padding:10px;border:1px solid var(--line)}
.js .reveal{opacity:0;transform:translateY(16px);transition:opacity .7s ease,transform .7s ease}.js .reveal.in{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}.js .reveal{opacity:1;transform:none;transition:none}}

/* 수정안: 1 첫 화면을 폰 높이에 맞춤 */
.hero{min-height:100vh;min-height:100svh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:28px 28px 12px}
.hero .eyebrow{margin-bottom:18px}
.cover{width:auto;height:auto;max-width:min(74%,300px);max-height:58vh;max-height:58svh;margin:0 auto 24px}
body{font-size:clamp(16px,5vw,18px)}h1{font-size:clamp(20px,6.3vw,23px)}
/* 7 주소 복사 */
.addr{margin:-14px 0 2px}
.link-copy{background:none;border:0;padding:8px 12px;font:inherit;font-size:16px;color:var(--accent);text-decoration:underline;text-underline-offset:3px;cursor:pointer}
#addr-status{margin:0 0 6px}
.place .actions{margin-top:16px}
/* 8 문의·공유 간격 */
.contact{line-height:2.2}.contact a{font-size:19px}
.contact-sec{padding-bottom:40px}footer{padding-top:0}
@media (max-width:340px){section,footer,.hero{padding-left:20px;padding-right:20px}}
/* 화면 단위 구성: 스크롤은 자유롭게, 멈추면 invite.js가 가까운 화면으로 천천히 맞춘다(msg 1021) */
html,body{height:100%;overflow:hidden}
main{height:100vh;height:100svh;overflow-x:hidden;overflow-y:auto;scroll-behavior:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;overscroll-behavior-y:contain}
main::-webkit-scrollbar{display:none}
.hero,.letter,.date,.place,.last{min-height:100vh;min-height:100svh}
.letter,.date,.place{display:flex;flex-direction:column;justify-content:center;padding-top:40px;padding-bottom:72px}
.hero{padding-bottom:72px}
.place .actions{width:100%}.date .actions{width:100%}
.ways{width:100%;margin-top:24px}.ways div{display:grid;grid-template-columns:68px 1fr;column-gap:8px;padding:12px 2px;font-size:16px;line-height:1.7}.ways dt{margin:0}
@media (max-height:620px){.cover{max-height:48vh;max-height:48svh;margin-bottom:14px}.hero{padding-top:14px;padding-bottom:52px}.hero .eyebrow{margin-bottom:10px}.hero-when{font-size:19px}}
.last{display:flex;flex-direction:column}
.book{flex:1 1 auto;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:40px 28px}
.contact-sec{padding:32px 28px 24px}footer{padding:0 28px 28px}
.next{position:fixed;left:50%;bottom:calc(14px + env(safe-area-inset-bottom));transform:translateX(-50%);width:48px;height:48px;border:0;background:none;color:var(--accent);font:inherit;font-size:24px;cursor:pointer;transition:opacity .25s}
.next[hidden]{display:none}
@media (max-height:700px){.letter,.date,.place{padding-top:20px;padding-bottom:56px}.eyebrow{margin-bottom:10px}.big{margin-bottom:12px}h1{margin-bottom:16px}.cal{margin-bottom:10px}.cal caption{padding-bottom:4px}.cal th{padding:2px 0}.cal td{height:32px}.cal .day:before{width:30px;height:30px;margin:-15px 0 0 -15px}.dday{margin-bottom:10px}.btn{min-height:46px}.ways{margin-top:12px}.ways div{padding:6px 2px}.book{padding:20px 28px}.book h2{margin-bottom:12px}.book p{margin-bottom:14px}.contact-sec{padding:14px 28px 10px}.contact{line-height:1.8}footer{padding-bottom:16px}}

/* 대표 결정 A(15953): 베이지 바탕 + 흐린 제도 선화. 글·단추 바탕은 비쳐 보이게 */
:root{--paper:#EFE7DB;--warm:#EFE7DB;--btn-line:#B8622B;--btn-ink:#6B4A2B}
html,body{background:#EFE7DB}
body::before{content:'';position:fixed;inset:0;z-index:0;pointer-events:none;background:url(line-art.svg) center top/100% auto no-repeat}
@media (min-width:520px){body::before{background-size:480px auto}}
main{position:relative;z-index:1;background:transparent}
.next{z-index:5}
.hero,.date,.book,.place,.letter,.contact-sec,footer{background:transparent}
.btn,.btn.solid,.btn.dark{background:rgba(255,250,240,.45);border:1px solid var(--btn-line);color:var(--btn-ink)}
.title-soft{color:#a8a297}
/* 공유 6개 */
.share-title{margin-bottom:12px}
.sns-grid{display:grid;grid-template-columns:repeat(3,1fr);row-gap:12px;justify-items:center;width:100%}
.sns{display:flex;flex-direction:column;align-items:center;gap:6px;background:none;border:0;padding:0;font:inherit;color:#4A3A2B;cursor:pointer;min-width:64px}
.sns-icon{width:48px;height:48px;border-radius:50%;display:flex;align-items:center;justify-content:center}
.sns-name{font-size:13.500px;line-height:1.2;white-space:nowrap}
.sns:focus-visible{outline:3px solid var(--accent);outline-offset:3px;border-radius:8px}
.share-status{min-height:1.400em;font-size:15px;line-height:1.4}
.last{justify-content:space-evenly}
.book{flex:0 1 auto;padding:40px 28px 18px}.contact-sec{padding:14px 28px 10px}footer{padding:6px 28px 22px}
.book h2{margin-bottom:14px}.book p{margin-bottom:16px}.contact{line-height:1.900}.contact a{font-size:18px}
@media (max-height:760px){.book{padding:18px 28px 8px}.book h2{font-size:22px;margin-bottom:6px}.book p{margin-bottom:8px;font-size:15px;line-height:1.5}.book .eyebrow{margin-bottom:6px}.contact-sec{padding:6px 28px 2px}.contact-sec .eyebrow{margin-bottom:0}.contact{line-height:1.5;margin-bottom:4px}.contact a{font-size:16px}.share-title{margin-bottom:6px}.sns-grid{row-gap:6px}.sns-icon{width:42px;height:42px}.btn.dark{min-height:42px}footer{padding:0 28px 8px}}
/* 배경 음악 단추 */
.music{position:fixed;top:calc(12px + env(safe-area-inset-top));right:max(12px,calc(50% - 228px));z-index:5;width:44px;height:44px;border-radius:50%;border:1px solid var(--line);background:rgba(255,253,249,.88);color:var(--soft);display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0;transition:background-color .2s,color .2s}
.music[aria-pressed="true"]{background:var(--accent);border-color:var(--accent);color:#fff}
.music-off{position:absolute;width:26px;height:1.500px;background:currentColor;transform:rotate(-45deg);border-radius:1px}
.music[aria-pressed="true"] .music-off{display:none}
.music:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.music-gate{position:fixed;inset:0;z-index:4;display:flex;align-items:flex-end;justify-content:center;padding:0 20px calc(26px + env(safe-area-inset-bottom));cursor:pointer;touch-action:none;background:linear-gradient(to top,rgba(239,231,219,.96) 0,rgba(239,231,219,0) 22%)}
.music-gate[hidden]{display:none}
.gate-pill{padding:11px 18px;border-radius:999px;background:#7a5433;color:#fff;font-size:15px;line-height:1.3;text-align:center;animation:gatePulse 2.2s ease-in-out infinite}
@keyframes gatePulse{50%{opacity:.72}}
@media (prefers-reduced-motion:reduce){.gate-pill{animation:none}}

/* 소유자 msg 1122: 어르신이 읽기 쉽게 글자를 키우고 색을 진하게 */
:root{--ink:#1c1712;--soft:#3d3229;--accent:#6b4423;--btn-line:#8f4a1f;--btn-ink:#4f3218}
body{font-size:clamp(17px,5.2vw,20px);line-height:1.8}
.eyebrow{font-size:17px;color:#5c3a1c;letter-spacing:.1em}
h1{font-size:clamp(22px,6.6vw,26px)}h2{font-size:29px}
.hero-when{font-size:clamp(21px,6vw,24px)}.hero-where{font-size:clamp(18px,5.200vw,20px);color:var(--soft)}
.letter{padding-left:18px;padding-right:18px}
.big{font-size:clamp(22px,6.200vw,25px);line-height:1.45;margin-bottom:18px}
.cal{font-size:19px;max-width:360px}.cal caption{font-size:19px}.cal th{font-size:17px;color:var(--soft)}.cal td{height:44px}
.dday{font-size:19px}
.btn{font-size:19px;min-height:54px;color:var(--btn-ink)}
.addr{color:var(--soft);font-size:clamp(18px,5.200vw,20px);margin:-8px 0 12px}
.link-copy{font-size:17px;color:var(--btn-ink)}.note{font-size:16px;color:var(--soft)}
.contact a{font-size:21px;color:var(--btn-ink)}
.sns{color:#2b2622}.sns-icon{width:54px;height:54px}.sns-name{font-size:15px}.share-title{font-size:17px}
.share-status{font-size:16px}.gate-pill{font-size:17px;background:#6b4423}
.title-soft{color:#8a8377}
/* 오시는 길: 지도 */
.place .actions{margin-top:12px}
.kmap-wrap{display:block;width:100%;margin:0 0 6px;border:1px solid #b9a78f;border-radius:8px;overflow:hidden;background:#e2d8c8}
.kmap{width:100%;height:clamp(110px,21vh,210px);pointer-events:none}
.kmap-wrap[hidden]{display:none}
/* 글자가 커져 책 소개만 화면을 나눔 */
.book{min-height:100vh;min-height:100svh;display:flex;flex-direction:column;align-items:stretch;justify-content:center;padding:40px 24px 72px}
.ways{margin-top:10px}
.ways div{grid-template-columns:78px 1fr;font-size:17px;padding:8px 2px;line-height:1.45}.ways dt{color:var(--ink)}.ways dd{color:var(--soft)}
.book{text-align:center;align-items:center}
.book h2{font-size:29px;margin-bottom:20px}.book p{font-size:clamp(18px,5.200vw,20px);margin-bottom:26px;line-height:1.7;color:var(--soft)}.book .eyebrow{font-size:17px;margin-bottom:20px}
.btn.dark{min-height:56px;min-width:220px}
.last{justify-content:center;gap:clamp(10px,3vh,34px);padding:36px 0 18px}
.contact-sec{padding:0 24px}.contact-sec .eyebrow{margin-bottom:10px}.contact{line-height:1.9;margin:0}
footer{padding:0 24px}.sns-grid{row-gap:14px}
@media (max-height:700px){.letter,.date,.place{padding-top:14px;padding-bottom:50px}.eyebrow{margin-bottom:8px}h1{margin-bottom:12px}.letter p{margin-bottom:8px;line-height:1.6}.sign{margin-top:12px}
.big{margin-bottom:8px;font-size:21px}.cal{margin-bottom:6px;font-size:17px}.cal caption{padding-bottom:0;font-size:17px}.cal th{padding:0;font-size:15px}.cal td{height:29px}.cal .day:before{width:27px;height:27px;margin:-13.500px 0 0 -13.500px}.dday{margin-bottom:6px;font-size:17px;line-height:1.3}.btn{min-height:44px;font-size:17px}
.addr{margin:-6px 0 2px}.kmap{height:clamp(84px,17vh,120px)}.kmap-wrap{margin-bottom:0}.link-copy{padding:2px 12px;line-height:1.3}.place .actions{margin-top:2px}.ways{margin-top:4px}.ways div{padding:4px 2px;font-size:16px;line-height:1.35}
.hero-when{font-size:20px}.hero-where{font-size:17px}.book h2{font-size:26px}.sns-icon{width:44px;height:44px}.sns-grid{row-gap:6px}.sns-name{font-size:14px;line-height:1.15}.contact a{font-size:18px}.contact{line-height:1.6}.last{padding:14px 0 6px;gap:10px}.share-title{margin-bottom:6px;font-size:16px}}
