/* 메인(랜딩) */
body.landing { background: var(--ink) url('/img/texture/ink.jpg') center top / 1600px auto repeat; }

.site-header {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 24px;
  padding: 12px clamp(16px, 4vw, 40px); background: rgba(18,13,10,.82); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(214,168,90,.18);
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo b { font-family: var(--brush); font-weight: 400; font-size: 30px; line-height: 1; color: var(--paper); }
.site-header nav { display: flex; gap: 22px; margin-left: auto; font-family: var(--serif); font-size: 15px; color: #cdbb9c; }
.site-header nav a:hover { color: var(--gold); }

/* 히어로 */
.hero { position: relative; overflow: hidden; text-align: center; padding: clamp(48px, 8vw, 90px) 20px 0; }
.hero-glow { position: absolute; left: 50%; top: -10%; width: 900px; height: 700px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(230,140,60,.30), rgba(230,140,60,0)); pointer-events: none; }
.hero-inner { position: relative; max-width: 760px; margin: 0 auto; }
.kicker { display: inline-block; padding: 6px 16px; border: 1px solid rgba(214,168,90,.45); border-radius: 999px; color: var(--gold); font-family: var(--serif); font-size: 14px; letter-spacing: 2px; }
.hero h1 { font-family: var(--brush); font-weight: 400; font-size: clamp(64px, 11vw, 124px); line-height: .92; margin: 22px 0 14px; color: #fff3dc; text-shadow: 0 5px 0 rgba(90,20,10,.85), 0 0 40px rgba(0,0,0,.5); }
.hero h1 em { font-style: normal; color: var(--red-glow); }
.hero .lead { font-size: clamp(16px, 2vw, 19px); line-height: 1.8; color: #d8c8aa; margin: 0 auto; }
.hero-cta { display: flex; gap: 12px; justify-content: center; margin: 26px 0 18px; flex-wrap: wrap; }
.today { display: inline-flex; align-items: center; gap: 12px; background: var(--paper); color: var(--text-on-paper); border-radius: 12px; padding: 8px 16px 8px 8px; box-shadow: 0 8px 20px rgba(0,0,0,.35); max-width: 100%; }
.today span { flex: none; font-family: var(--serif); font-size: 12px; color: #fff; background: var(--red); padding: 4px 8px; border-radius: 6px; }
.today b { font-family: var(--pen); font-weight: 400; font-size: 22px; line-height: 1.2; text-align: left; }

.bench { position: relative; margin-top: 30px; }
.crowd { position: relative; z-index: 2; display: flex; justify-content: center; align-items: flex-end; gap: 0; padding: 0 10px; }
.seat { position: relative; width: clamp(120px, 15vw, 190px); margin: 0 -10px; transition: transform .25s; }
.seat svg, .seat img { width: 100%; display: block; filter: drop-shadow(0 14px 18px rgba(0,0,0,.55)); }
.seat span { position: absolute; left: 50%; bottom: 18%; transform: translateX(-50%) translateY(6px); opacity: 0; transition: .2s; font-family: var(--brush); font-size: 26px; color: #fff; background: var(--red); padding: 2px 10px; border-radius: 6px; white-space: nowrap; }
.seat:hover { transform: translateY(-8px); }
.seat:hover span { opacity: 1; transform: translateX(-50%); }
.bench-wood { position: relative; z-index: 1; height: 40px; margin-top: -26px; background: linear-gradient(180deg, #7a4d27, #4b2d16); box-shadow: 0 -2px 0 #9a6a3c inset, 0 20px 40px rgba(0,0,0,.6); }

/* 섹션 공통 */
.section { max-width: 1120px; margin: 0 auto; padding: clamp(56px, 8vw, 90px) 20px 0; }
.sec-head { text-align: center; margin-bottom: 34px; }
.eyebrow { font-family: var(--serif); font-size: 14px; letter-spacing: 3px; color: var(--gold); }
.sec-head h2 { font-family: var(--brush); font-weight: 400; font-size: clamp(44px, 6vw, 64px); line-height: 1; margin: 8px 0 0; color: #fff3dc; }
.sec-head p { color: #bfae92; margin: 14px 0 0; }

/* 할매 점방 카드 */
.stalls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px 22px; }
@media (max-width: 900px) { .stalls { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .stalls { grid-template-columns: 1fr; } .site-header nav { display: none; } .site-header .btn { margin-left: auto; } }
.stall { position: relative; display: flex; flex-direction: column; border-radius: 18px; overflow: visible; background: var(--paper) url('/img/texture/hanji.jpg') center/cover; color: var(--text-on-paper); box-shadow: 0 16px 34px rgba(0,0,0,.45); transition: transform .25s, box-shadow .25s; }
.stall:hover { transform: translateY(-6px); box-shadow: 0 24px 44px rgba(0,0,0,.55); }
.stall .sign { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); z-index: 3; background: linear-gradient(180deg, #3a2414, #24160c); border: 2px solid var(--gold-2); border-radius: 6px; padding: 5px 14px; box-shadow: 0 6px 12px rgba(0,0,0,.4); white-space: nowrap; }
.stall .sign span { font-family: var(--serif); font-size: 14px; color: #f3d690; letter-spacing: 1px; }
.stall .art { position: relative; height: 280px; border-radius: 18px 18px 0 0; overflow: hidden; }
.stall .art .scene-svg, .stall .art .scene-img { position: absolute; inset: 0; width: 100%; height: 100%; background-size: cover; background-position: center; }
.stall .hm { position: absolute; left: 50%; bottom: -34px; width: 236px; transform: translateX(-50%); transition: transform .3s; }
.stall .hm svg, .stall .hm img { width: 100%; display: block; filter: drop-shadow(0 10px 14px rgba(0,0,0,.5)); }
.stall:hover .hm { transform: translateX(-50%) scale(1.04); }
.stall .bubble { position: absolute; left: 14px; right: 14px; top: 30px; z-index: 2; background: #fffaf0; color: var(--text-on-paper); border-radius: 14px; padding: 8px 12px; font-family: var(--pen); font-size: 21px; line-height: 1.22; box-shadow: 0 6px 16px rgba(0,0,0,.35); opacity: 0; transform: translateY(-8px); transition: .25s; }
.stall .bubble::after { content: ''; position: absolute; bottom: -8px; left: 50%; border: 8px solid transparent; border-top-color: #fffaf0; border-bottom: 0; transform: translateX(-50%); }
.stall:hover .bubble { opacity: 1; transform: none; }
.stall .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; border-top: 4px solid var(--red); }
.stall .row1 { display: flex; justify-content: space-between; align-items: center; }
.stall .who { font-family: var(--serif); font-size: 15px; color: var(--red-2); }
.stall .pages { font-size: 12px; color: #8a755c; }
.stall h3 { margin: 2px 0 0; font-family: var(--brush); font-weight: 400; font-size: 44px; line-height: 1; color: var(--text-on-paper); }
.stall p { margin: 2px 0 10px; color: #5a4636; font-size: 15px; }
.stall .row2 { margin-top: auto; display: flex; justify-content: space-between; align-items: center; }
.stall .price { font-family: var(--serif); font-size: 22px; color: var(--text-on-paper); }

/* 이용 순서 */
.how { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
@media (max-width: 820px) { .how { grid-template-columns: repeat(2, 1fr); } }
.how li { position: relative; background: rgba(255,244,224,.04); border: 1px solid rgba(214,168,90,.22); border-radius: 16px; padding: 22px 18px 20px; }
.how b { display: block; font-family: var(--brush); font-weight: 400; color: var(--red-glow); font-size: 44px; line-height: 1; }
.how strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 19px; margin: 8px 0 4px; color: #fff3dc; }
.how span { color: #bfae92; font-size: 14.5px; line-height: 1.6; }

/* 견본 */
.book-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
@media (max-width: 820px) { .book-row { grid-template-columns: repeat(5, 62%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; } .book-row figure { scroll-snap-align: center; } }
.book-row figure { margin: 0; text-align: center; }
.book-row img { width: 100%; display: block; border-radius: 4px; box-shadow: 0 14px 30px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.05); transition: transform .25s; }
.book-row figure:hover img { transform: translateY(-6px) rotate(-1deg); }
.book-row figcaption { margin-top: 10px; font-family: var(--serif); font-size: 14px; color: #bfae92; }

/* 계산 신뢰 */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 820px) { .trust { grid-template-columns: 1fr 1fr; } }
.trust div { background: var(--paper) url('/img/texture/hanji.jpg') center/cover; color: var(--text-on-paper); border-radius: 14px; padding: 20px 18px; box-shadow: 0 10px 24px rgba(0,0,0,.35); }
.trust b { display: block; font-family: var(--serif); font-weight: 400; font-size: 19px; color: var(--red-2); margin-bottom: 6px; }
.trust span { font-size: 14.5px; line-height: 1.65; color: #4a3a2c; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: rgba(255,244,224,.04); border: 1px solid rgba(214,168,90,.22); border-radius: 12px; padding: 0 18px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-family: var(--serif); font-size: 17px; color: #fff3dc; display: flex; justify-content: space-between; }
.faq summary::after { content: '+'; color: var(--gold); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq p { margin: 0 0 16px; color: #cdbb9c; line-height: 1.7; }

.site-footer { margin-top: 90px; padding: 40px 20px 50px; text-align: center; border-top: 1px solid rgba(214,168,90,.15); color: #8e7d66; }
.site-footer .logo { justify-content: center; margin-bottom: 14px; }
.site-footer p { max-width: 640px; margin: 0 auto 8px; font-size: 13px; line-height: 1.8; }
@media (max-width: 560px) {
  .hero h1 { font-size: 58px; }
  .crowd { flex-wrap: wrap; row-gap: 0; }
  .seat { width: 33%; margin: 0 0 -18px; }
  .seat span { font-size: 20px; }
  .bench-wood { margin-top: 0; height: 24px; }
}

/* 가판 카드: 상담방과 같은 구도를 작게 */
.stall .art.has-mini { container-type: size; height: auto; aspect-ratio: 1 / 1; }
/* 2인 종합사주: 한 줄을 다 쓰는 특별 카드 (그림 왼쪽 · 설명 오른쪽) */
.stall.v-couple { grid-column: 1 / -1; }
.stall.v-couple .stall-main { display: grid; grid-template-columns: minmax(240px, 1fr) 2fr; }
.stall.v-couple .art { border-radius: 18px 0 0 18px; }
.stall.v-couple .body { border-top: 0; border-left: 4px solid var(--red); justify-content: center; padding: 26px 30px; }
.stall.v-couple .badge2 { align-self: flex-start; font-family: var(--serif); font-size: 13px; color: #fff3d6; background: linear-gradient(90deg, #7a2e3c, #a8443a); border-radius: 999px; padding: 4px 12px; margin-bottom: 4px; letter-spacing: .5px; }
.stall.v-couple .feat { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 12px; padding: 0; list-style: none; font-size: 14px; color: #5a4636; }
.stall.v-couple .feat li::before { content: '◆ '; color: #a8443a; font-size: 10px; vertical-align: 2px; }
@media (max-width: 560px) { .stall.v-couple .stall-main { display: block; } .stall.v-couple .art { border-radius: 18px 18px 0 0; } .stall.v-couple .body { border-left: 0; border-top: 4px solid var(--red); padding: 16px 18px 18px; } }
.stall .mini { position: absolute; left: 0; width: 100cqw; aspect-ratio: 2 / 3; top: calc((.035 - var(--tz)) * 150cqw); transition: transform .4s; transform-origin: 50% 40%; }
.stall .mini .cz { position: absolute; inset: 0; transform-origin: 0 0; }
.stall .mini .scene-img { position: absolute; inset: 0; background-size: 100% 100%; }
.stall .mini .fg { z-index: 2; }
.stall .mini .slot { position: absolute; z-index: 1; display: block; filter: drop-shadow(0 8px 10px rgba(0,0,0,.4)); }
.stall:hover .mini { transform: scale(1.04); }
.stall .art.has-mini::after { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(transparent 70%, rgba(20,10,4,.35)); }
.stall .art .bubble { z-index: 3; }

/* 카드: 링크 영역 + 목차 펼치기 */
.stall .stall-main { display: flex; flex-direction: column; flex: 1; color: inherit; text-decoration: none; }
.stall.talk .bubble { opacity: 1; transform: none; }
@media (hover: hover) { .stall.talk .bubble { opacity: 0; transform: translateY(-8px); } .stall:hover .bubble { opacity: 1; transform: none; } }
.stall .toc { margin: 0 18px 16px; border-top: 1px dashed rgba(90,60,30,.35); padding-top: 10px; font-size: 14px; }
.stall .toc summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; color: #7a3a22; font-weight: 700; padding: 4px 0; }
.stall .toc summary::-webkit-details-marker { display: none; }
.stall .toc summary::after { content: '▾'; transition: transform .2s; }
.stall .toc[open] summary::after { transform: rotate(180deg); }
.stall .toc summary em { font-style: normal; font-weight: 400; color: #8e7d66; margin-left: auto; margin-right: 8px; }
.stall .toc ol { margin: 8px 0 4px; padding-left: 22px; line-height: 1.65; color: #3d2c1c; }
.stall .toc ol li::marker { color: #b8321f; font-weight: 700; }
.stall .toc-note { margin: 4px 0 0; font-size: 12.5px; color: #8e7d66; }

/* 골목 벤치 말풍선 */
.bench { position: relative; }
.crowd-bubble { position: absolute; z-index: 5; max-width: 220px; width: max-content; transform: translate(-50%, calc(-100% - 6px)) scale(.9); opacity: 0; pointer-events: none;
  background: #fffaf0; color: var(--text-on-paper); border-radius: 14px; padding: 8px 12px; font-family: var(--pen); font-size: 20px; line-height: 1.22; box-shadow: 0 8px 18px rgba(0,0,0,.45); transition: opacity .25s, transform .25s; }
.crowd-bubble::after { content: ''; position: absolute; bottom: -8px; left: calc(50% + var(--tail, 0px)); border: 8px solid transparent; border-top-color: #fffaf0; border-bottom: 0; transform: translateX(-50%); }
.crowd-bubble.show { opacity: 1; transform: translate(-50%, calc(-100% - 6px)) scale(1); }
.seat.speaking { transform: translateY(-8px); }
@media (hover: none) { .seat span { opacity: 1; transform: translateX(-50%); font-size: 17px; padding: 1px 8px; } }
@media (max-width: 560px) { .crowd-bubble { font-size: 17px; max-width: 190px; } }
.bench { margin-top: 64px; }
@media (max-width: 560px) { .bench { margin-top: 78px; } }

/* 목차를 펼쳐도 같은 줄의 다른 카드가 같이 늘어나지 않게 */
.stalls { align-items: start; }
.stall .stall-main .body p { min-height: 2.9em; }

/* 후기 */
.reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; max-width: 1080px; margin: 0 auto; }
.reviews .rv { margin: 0; background: #f4ead3 url(/img/texture/hanji.jpg) center/cover; color: #2a1d14; border-radius: 14px; padding: 18px 18px 14px; box-shadow: 0 10px 24px rgba(0,0,0,.35); display: flex; flex-direction: column; gap: 8px; }
.reviews .st { color: #e0a21c; letter-spacing: 2px; } .reviews .st i { color: #d9c9a6; font-style: normal; }
.reviews blockquote { margin: 0; line-height: 1.65; font-size: 15px; white-space: pre-wrap; display: -webkit-box; -webkit-line-clamp: 8; -webkit-box-orient: vertical; overflow: hidden; }
.reviews figcaption { font-size: 13px; color: #7a6650; margin-top: auto; }
.rv-note { text-align: center; font-size: 12.5px; color: #9c8b72; margin: 16px auto 0; max-width: 680px; }
#rvSum b { color: #f2b25a; }

/* 전자책 띠 */
.ebook-band { max-width: 980px; margin: 0 auto; display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: center; background: linear-gradient(135deg, rgba(184,50,31,.18), rgba(30,20,12,.4)); border: 1px solid rgba(242,178,90,.25); border-radius: 18px; padding: 28px; }
.eb-cover { position: relative; aspect-ratio: 2 / 3; border-radius: 4px 12px 12px 4px; background: #1d140e url(/img/texture/ink.jpg) center/cover; box-shadow: 0 18px 36px rgba(0,0,0,.5), inset 6px 0 0 rgba(0,0,0,.25); overflow: hidden; padding: 18px 16px; box-sizing: border-box; color: #fff3df; }
.eb-cover span { font-family: var(--serif); font-size: 10px; letter-spacing: 3px; color: #e2a54d; display: block; }
.eb-cover b { display: block; font-family: var(--brush); font-weight: 400; font-size: 36px; line-height: 1; margin-top: 10px; }
.eb-cover img { position: absolute; right: -24px; bottom: -8px; width: 150px; }
.eb-txt h3 { font-family: var(--serif); font-size: 26px; margin: 6px 0 10px; color: #fff3df; }
.eb-txt p { color: #e6d3ae; line-height: 1.7; margin: 0 0 10px; }
.eb-price b { color: #f2b25a; }
@media (max-width: 680px) { .ebook-band { grid-template-columns: 1fr; text-align: center; } .eb-cover { width: 180px; margin: 0 auto; } }

/* 하단 법적 고지 */
.site-footer .legal-links a { color: #d6a85a; }
.site-footer .bizline { font-size: 12.5px; color: #9c8b72; line-height: 1.7; }
