/* 사주책방 공개 사이트 — 에디토리얼 서점 스타일.
   브랜드 색(config/brand.json)과 같은 남색·금색을 쓰되, 면보다 선과 여백으로 정리한다. */
:root {
  --ink: #1B2340;          /* 브랜드 남색: 제목, 주요 버튼 */
  --ink-soft: #3A4161;
  --text: #2B2A28;
  --muted: #7C776F;
  --gold: #B8975A;         /* 장식선·포인트 */
  --gold-text: #8A6A35;    /* 금색 글자 (작은 글씨 대비 확보) */
  --paper: #F8F5EF;
  --paper-2: #F1ECE3;
  --white: #FFFFFF;
  --line: rgba(27, 35, 64, 0.12);
  --line-strong: rgba(27, 35, 64, 0.22);
  --wood: #4F7A5C; --fire: #B0503F; --earth: #BE9643; --metal: #8E959C; --water: #34506F;
  --serif: "Noto Serif KR", "Hahmlet", serif;
  --accent: "Cormorant Garamond", "Noto Serif KR", serif;
  --sans: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --r: 10px;
  --shadow: 0 1px 2px rgba(27, 35, 64, .04), 0 8px 24px rgba(27, 35, 64, .06);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font: 400 16px/1.75 var(--sans); letter-spacing: -0.005em;
  word-break: keep-all; overflow-wrap: break-word; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--serif); color: var(--ink); font-weight: 600; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(30px, 5.4vw, 52px); line-height: 1.22; }
h2 { font-size: clamp(24px, 3.4vw, 34px); line-height: 1.3; }
h3 { font-size: 18px; line-height: 1.45; }
p { margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); font-size: 14px; }
.han { font-family: var(--serif); }
.eyebrow { font: 500 13px/1 var(--accent); letter-spacing: .28em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 14px; display: block; }
/* Cormorant 기본 숫자는 높낮이가 있는 옛 숫자라 라벨에서는 가지런한 숫자로 */
.eyebrow, .contents .pn, .process .n, .fortune .date, .jacket .en { font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
/* 한글 라벨용 (영문 eyebrow의 넓은 자간은 한글에 어울리지 않는다) */
.kicker { display: block; font: 600 13px/1.4 var(--sans); letter-spacing: .02em; color: var(--gold-text); margin-bottom: 8px; }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ── 헤더 ── */
.top { position: sticky; top: 0; z-index: 30; background: rgba(248, 245, 239, .88); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { display: flex; align-items: center; gap: 9px; font: 600 18px/1 var(--serif); color: var(--ink); white-space: nowrap; }
.logo i { width: 28px; height: 28px; line-height: 0; }
.logo i svg { width: 100%; height: 100%; }
.menu { display: flex; gap: 26px; }
.menu a { position: relative; font-size: 15px; color: var(--ink-soft); padding: 6px 0; white-space: nowrap; transition: color .2s; }
.menu a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1.5px; background: var(--ink); transform: scaleX(0); transition: transform .25s; }
.menu a:hover { color: var(--ink); }
.menu a.on { color: var(--ink); font-weight: 600; }
.menu a.on::after, .menu a:hover::after { transform: scaleX(1); }
.top .side { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.top .side .link { font-size: 14px; color: var(--muted); }
@media (max-width: 860px) {
  .top .wrap { height: auto; flex-wrap: wrap; row-gap: 0; padding-top: 12px; }
  .top .side .btn { display: none; }
  .menu { order: 3; width: 100%; gap: 20px; overflow-x: auto; scrollbar-width: none; padding: 6px 0 10px; }
  .menu::-webkit-scrollbar { display: none; }
}

/* ── 버튼 ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 24px;
  border-radius: 6px; border: 1px solid var(--ink); background: var(--ink); color: #fff;
  font: 600 15px/1 var(--sans); letter-spacing: 0; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.btn:hover { background: #10162B; }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn.ghost:hover { border-color: var(--ink); background: var(--white); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn.gold:hover { background: #A5844B; border-color: #A5844B; }
.btn.sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn.block { width: 100%; }
.arrow-link { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; transition: border-color .2s, gap .2s; }
.arrow-link:hover { border-color: var(--ink); gap: 10px; }
.arrow-link::after { content: "→"; font-weight: 400; }

/* ── 히어로 ── */
.hero { padding: 72px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 56px; align-items: center; }
.hero h1 em { font-style: normal; color: var(--gold-text); }
.hero .lead { font-size: 17px; color: #55524C; margin: 22px 0 32px; max-width: 30em; }
.hero .ctas { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.facts { display: flex; gap: 0; margin-top: 44px; border-top: 1px solid var(--line); padding-top: 22px; }
.facts div { flex: 1; padding-right: 16px; }
.facts div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.facts b { display: block; font: 600 22px/1.2 var(--serif); color: var(--ink); }
.facts span { font-size: 13px; color: var(--muted); }
@media (max-width: 520px) {
  .facts { margin-top: 32px; }
  .facts div { padding-right: 10px; }
  .facts div + div { padding-left: 12px; }
  .facts b { font-size: 18px; white-space: nowrap; }
  .facts span { font-size: 12px; line-height: 1.5; display: block; }
}
/* 히어로 무대: 따뜻한 밝은 바탕 위에 색이 다른 책 세 권 */
.stage { position: relative; aspect-ratio: 1 / 0.95; border-radius: 18px; overflow: hidden;
  background: radial-gradient(90% 80% at 60% 30%, #FBF8F2 0%, #EFE7D9 58%, #E6DCCB 100%); border: 1px solid var(--line); }
.stage::before { content: ""; position: absolute; left: 8%; right: 8%; bottom: 13%; height: 1px; background: rgba(138, 106, 53, .35); }
.stage::after { content: ""; position: absolute; left: 14%; right: 14%; bottom: 9%; height: 18px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(60, 45, 20, .22), transparent); filter: blur(4px); }
.stage .ring { position: absolute; width: 66%; aspect-ratio: 1; left: 17%; top: 8%; border-radius: 50%; border: 1px solid rgba(184, 151, 90, .35); }
.stage .ring::after { content: ""; position: absolute; inset: 7%; border-radius: 50%; border: 1px dashed rgba(184, 151, 90, .25); }
.book { position: absolute; width: 38%; aspect-ratio: 148 / 210; border-radius: 2px 5px 5px 2px; overflow: hidden; container-type: inline-size; z-index: 1;
  box-shadow: -1px 0 0 rgba(255,255,255,.12) inset, 14px 22px 34px rgba(40, 30, 15, .28), 3px 5px 10px rgba(40, 30, 15, .18); }
.book::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: linear-gradient(90deg, rgba(0,0,0,.32) 0, rgba(255,255,255,.12) 2.5%, rgba(0,0,0,0) 6%, rgba(0,0,0,0) 94%, rgba(0,0,0,.1) 100%); }
.book.front { left: 31%; top: 27%; transform: perspective(1400px) rotateY(-12deg) rotateZ(-1deg); z-index: 3; }
.book.back { left: 9%; top: 36%; width: 33%; transform: perspective(1400px) rotateY(-12deg) rotateZ(-6deg); }
.book.back2 { left: 60%; top: 37%; width: 32%; transform: perspective(1400px) rotateY(-12deg) rotateZ(5deg); }
@media (max-width: 900px) {
  .hero { padding: 36px 0 28px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; }
  .stage { aspect-ratio: 1 / 0.82; }
}

/* ── 빠른 입력 바 ── */
.quick { background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 22px 24px; }
.quick .head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.quick .head h2 { font-size: 20px; }
.quick-grid { display: grid; grid-template-columns: 150px 150px 1.2fr 1fr auto; gap: 10px; align-items: end; }
.quick-grid .actions { display: flex; gap: 8px; }
@media (max-width: 980px) { .quick-grid { grid-template-columns: 1fr 1fr; } .quick-grid .actions { grid-column: 1 / -1; } .quick-grid .actions .btn { flex: 1; } }

/* ── 폼 ── */
.field { margin-bottom: 14px; }
.quick .field { margin-bottom: 0; }
.label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.field input[type=date], .field input[type=time], .field input[type=text], .field input[type=email], .field input[type=tel], .field textarea {
  width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--white);
  font: 16px var(--sans); color: var(--text); transition: border-color .2s, box-shadow .2s; }
.field textarea { height: auto; min-height: 96px; padding: 12px 14px; line-height: 1.6; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(27, 35, 64, .08); }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; height: 46px; border: 1px solid var(--line-strong); border-radius: 6px; overflow: hidden; background: var(--white); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { display: flex; align-items: center; justify-content: center; font-size: 15px; color: var(--muted); cursor: pointer; transition: background .2s, color .2s; }
.seg label + input + label { border-left: 1px solid var(--line-strong); }
.seg input:checked + label { background: var(--ink); color: #fff; font-weight: 600; }
.seg input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: -3px; }
.check { display: inline-flex; gap: 7px; align-items: center; font-size: 13px; color: var(--muted); margin-top: 7px; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--ink); margin: 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .two { grid-template-columns: 1fr; } }
.error { border-left: 3px solid var(--fire); background: #FBF0EC; color: #8E3A2C; padding: 10px 14px; border-radius: 4px; margin-bottom: 16px; font-size: 15px; }
.panel-form { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 28px; box-shadow: var(--shadow); }
@media (max-width: 560px) { .panel-form { padding: 20px; } }

/* ── 섹션 ── */
section.block { padding: 88px 0; }
section.block.tight { padding: 56px 0; }
section.block.tint { background: var(--paper-2); }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 36px; flex-wrap: wrap; }
.sec-head p { color: var(--muted); margin-top: 10px; }
@media (max-width: 700px) { section.block { padding: 60px 0; } .sec-head { margin-bottom: 24px; } }

/* ── 서가 (상품 카드) ── */
.shelf { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 28px; }
@media (max-width: 1000px) { .shelf { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .shelf { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; } }
.bk { display: flex; flex-direction: column; }
.bk .cover { position: relative; width: 100%; container-type: inline-size; aspect-ratio: 148 / 210; border-radius: 2px 4px 4px 2px; overflow: hidden; background: var(--paper-2);
  box-shadow: 0 1px 1px rgba(0,0,0,.08), 0 12px 24px -8px rgba(27,35,64,.35); transition: transform .35s cubic-bezier(.2,.7,.3,1), box-shadow .35s; }
.bk .cover img { width: 100%; height: 100%; object-fit: cover; }
.bk .cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.28) 0, rgba(255,255,255,.1) 3%, transparent 7%); }
.bk:hover .cover { transform: translateY(-6px); box-shadow: 0 1px 1px rgba(0,0,0,.08), 0 22px 32px -10px rgba(27,35,64,.45); }
/* 서가용 책 표지 (상품마다 한자 하나로 구별) */
.jacket { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: 11% 9% 9%; color: #fff; text-align: center;
  background: radial-gradient(90% 60% at 50% 38%, color-mix(in srgb, var(--c, #1B2340) 80%, #fff) 0%, var(--c, #1B2340) 58%, color-mix(in srgb, var(--c, #1B2340) 78%, #000) 100%); }
.jacket::before { content: ""; position: absolute; inset: 5%; border: 1px solid rgba(184,151,90,.55); pointer-events: none; }
.jacket::after { content: ""; position: absolute; inset: 6.4%; border: 1px solid rgba(184,151,90,.22); pointer-events: none; }
.jacket .stars { position: absolute; inset: 0; opacity: .55;
  background-image: radial-gradient(1px 1px at 18% 24%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 78% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 30% 62%, #fff 50%, transparent 51%), radial-gradient(1.2px 1.2px at 70% 56%, #D9BE86 50%, transparent 51%),
    radial-gradient(1px 1px at 84% 74%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 12% 80%, #fff 50%, transparent 51%); }
.jacket .en { position: relative; font: 500 3.6cqw/1 var(--accent); letter-spacing: .32em; color: #D9BE86; }
.jacket .glyph { position: relative; width: 52%; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(184,151,90,.5);
  display: flex; align-items: center; justify-content: center; font: 600 25cqw/1 var(--serif); color: #D9BE86;
  box-shadow: 0 0 40px rgba(184,151,90,.18) inset; }
.jacket .ttl { position: relative; font: 600 8.4cqw/1.35 var(--serif); color: #fff; }
.jacket .ttl small { display: block; margin-top: 1.5cqw; font: 400 4.2cqw/1.4 var(--sans); color: rgba(255,255,255,.6); letter-spacing: .04em; }
.bk .tag { margin-top: 18px; font-size: 12px; color: var(--gold-text); letter-spacing: .04em; }
.bk h3 { margin-top: 4px; font-size: 18px; }
.bk p { margin-top: 6px; font-size: 14px; color: #5F5B54; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bk .meta { margin-top: 10px; display: flex; align-items: baseline; gap: 8px; font-size: 13px; color: var(--muted); }
.bk .price { font-weight: 700; font-size: 15px; color: var(--ink); }
.badge { display: inline-block; font: 600 11px/1 var(--sans); padding: 4px 7px; border-radius: 3px; background: var(--gold); color: #fff; margin-left: 6px; vertical-align: 3px; letter-spacing: .02em; }

/* 대표 상품 (가로 배너형) */
.feature { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 40px 48px; margin-bottom: 64px; box-shadow: var(--shadow); }
.feature .cover { max-width: 300px; }
.feature h3 { font-size: clamp(24px, 3vw, 30px); margin-top: 6px; }
.feature p.sum { font-size: 16px; color: #55524C; margin: 14px 0 0; }
.feature ul { list-style: none; padding: 0; margin: 20px 0 26px; display: grid; gap: 8px; }
.feature li { padding-left: 22px; position: relative; font-size: 15px; }
.feature li::before { content: ""; position: absolute; left: 0; top: .72em; width: 10px; height: 1px; background: var(--gold); }
.feature .row { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.feature .price { font: 600 26px/1 var(--serif); color: var(--ink); }
@media (max-width: 820px) { .feature { grid-template-columns: 1fr; padding: 28px 22px; gap: 24px; } .feature .cover { max-width: 190px; } }

.cat { display: flex; align-items: baseline; gap: 12px; margin: 0 0 24px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.cat h3 { font-size: 20px; }
.cat span { font-size: 13px; color: var(--muted); }
.cat-block + .cat-block { margin-top: 64px; }
.tabs { display: flex; gap: 22px; margin: 18px 0 44px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 10px 0 12px; font-size: 15px; color: var(--muted); white-space: nowrap; border-bottom: 1.5px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--ink); border-color: var(--ink); }

/* ── 제작 과정 ── */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.process::before { content: ""; position: absolute; left: 0; right: 0; top: 18px; height: 1px; background: var(--line-strong); }
.process div { position: relative; padding-right: 24px; }
.process .n { position: relative; display: inline-flex; width: 36px; height: 36px; border-radius: 50%; align-items: center; justify-content: center;
  background: var(--paper-2); border: 1px solid var(--gold); font: 500 15px/1 var(--accent); color: var(--gold-text); }
section.block:not(.tint) .process .n { background: var(--paper); }
.process h3 { margin-top: 18px; font-size: 17px; }
.process p { margin-top: 6px; font-size: 14px; color: #5F5B54; }
@media (max-width: 820px) {
  .process { grid-template-columns: 1fr; gap: 26px; }
  .process::before { left: 18px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .process div { padding-left: 56px; padding-right: 0; }
  .process .n { position: absolute; left: 0; top: 0; }
  .process h3 { margin-top: 4px; }
}

/* ── 미리보기 ── */
.pages { display: flex; gap: 18px; overflow-x: auto; padding: 6px 2px 18px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.pages figure { margin: 0; flex: none; scroll-snap-align: start; }
.pages img { height: 340px; width: auto; border-radius: 2px; box-shadow: 0 1px 1px rgba(0,0,0,.06), 0 14px 28px -10px rgba(27,35,64,.35); }
.pages figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); }
@media (max-width: 600px) { .pages img { height: 260px; } }

/* ── FAQ ── */
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; font-weight: 600; color: var(--ink); font-size: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 300 22px/1 var(--sans); color: var(--muted); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 12px; color: #5F5B54; font-size: 15px; max-width: 46em; }

/* ── 상품 상세 ── */
.detail { display: grid; grid-template-columns: 420px 1fr; gap: 72px; padding: 56px 0 40px; align-items: start; }
.detail .cover-col { position: sticky; top: 96px; }
.detail .cover-col .bk .cover { max-width: 360px; margin: 0 auto; }
.detail h1 { font-size: clamp(30px, 4vw, 44px); }
.detail .sum { font-size: 17px; color: #55524C; margin-top: 16px; }
.specs { display: grid; grid-template-columns: repeat(3, 1fr); margin: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.specs div { padding: 16px 0; }
.specs div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.specs b { display: block; font: 600 17px/1.3 var(--serif); color: var(--ink); }
.specs span { font-size: 12px; color: var(--muted); }
.buy { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.buy .price { font: 600 32px/1 var(--serif); color: var(--ink); }
.buy .btn { min-width: 200px; height: 52px; }
.notice { margin-top: 14px; font-size: 13px; color: var(--muted); }
.hl { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; }
.hl li { padding-left: 22px; position: relative; }
.hl li::before { content: ""; position: absolute; left: 0; top: .78em; width: 10px; height: 1px; background: var(--gold); }
.contents { margin-top: 56px; }
.contents ol { list-style: none; padding: 0; margin: 20px 0 0; }
.contents li.part { display: grid; grid-template-columns: 92px 1fr; gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); }
.contents li.part:last-child { border-bottom: 1px solid var(--line); }
.contents .pn { font: 500 14px/1.6 var(--accent); letter-spacing: .18em; color: var(--gold-text); }
.contents .pt { font: 600 18px/1.5 var(--serif); color: var(--ink); }
.contents .ph { font-size: 14px; color: var(--muted); margin-top: 2px; }
.contents ul { margin: 10px 0 0; padding: 0; list-style: none; color: #4F4B45; font-size: 15px; }
.contents ul li { padding: 3px 0; }
.contents ul li::before { content: "— "; color: var(--line-strong); }
@media (max-width: 920px) {
  .detail { grid-template-columns: 1fr; gap: 32px; padding-top: 28px; }
  .detail .cover-col { position: static; }
  .detail .cover-col .bk .cover { max-width: 220px; }
  .contents li.part { grid-template-columns: 1fr; gap: 4px; }
}
.sticky-buy { display: none; }
@media (max-width: 920px) {
  .sticky-buy { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; gap: 14px; align-items: center;
    padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-top: 1px solid var(--line); }
  .sticky-buy .price { font: 600 20px/1 var(--serif); color: var(--ink); }
  .sticky-buy .btn { flex: 1; }
  body.has-sticky { padding-bottom: 84px; }
}

/* ── 만세력 ── */
.page-head { padding: 56px 0 28px; }
.page-head p { color: #5F5B54; margin-top: 12px; max-width: 40em; }
@media (max-width: 700px) { .page-head { padding: 32px 0 20px; } }
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 14px; background: var(--white); overflow: hidden; }
.pillar { text-align: center; padding: 22px 6px 18px; }
.pillar + .pillar { border-left: 1px solid var(--line); }
.pillar.day { background: linear-gradient(180deg, #FBF7EE 0%, #FFFFFF 100%); box-shadow: inset 0 2px 0 var(--gold); }
.pillar .lbl { font-size: 13px; color: var(--muted); letter-spacing: .04em; }
.pillar .ss { font-size: 13px; color: #5F5B54; min-height: 20px; margin-top: 6px; }
.tile { width: 58px; height: 58px; border-radius: 8px; margin: 8px auto; display: flex; align-items: center; justify-content: center; color: #fff; font: 600 30px/1 var(--serif); }
@media (max-width: 440px) { .tile { width: 46px; height: 46px; font-size: 24px; } .pillar { padding: 16px 2px 14px; } }
.el-木 { background: var(--wood); } .el-火 { background: var(--fire); } .el-土 { background: var(--earth); } .el-金 { background: var(--metal); } .el-水 { background: var(--water); }
.tx-木 { color: var(--wood); } .tx-火 { color: var(--fire); } .tx-土 { color: var(--earth); } .tx-金 { color: var(--metal); } .tx-水 { color: var(--water); }
.pillar .sub { font-size: 12px; color: var(--muted); margin-top: 4px; }
.pillar .sal { font-size: 12px; color: var(--gold-text); min-height: 18px; margin-top: 4px; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 26px; margin-top: 16px; }
.panel h3 { font-size: 17px; margin-bottom: 16px; }
@media (max-width: 560px) { .panel { padding: 20px; } }
.dm { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; }
.dm .big { width: 84px; height: 84px; border-radius: 50%; border: 1px solid var(--line-strong); display: flex; align-items: center; justify-content: center; font: 600 42px/1 var(--serif); }
.dm h2 { font-size: 22px; }
.dm p { margin-top: 6px; color: #55524C; }
.bars { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.bars li { display: grid; grid-template-columns: 52px 1fr 64px; align-items: center; gap: 12px; font-size: 14px; }
.bars .track { height: 6px; background: var(--paper-2); border-radius: 3px; overflow: hidden; }
.bars .fill { display: block; height: 100%; border-radius: 3px; }
.bars .num { text-align: right; color: var(--muted); } .bars .num b { color: var(--ink); font-size: 15px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid2 .panel { margin-top: 16px; }
@media (max-width: 760px) { .grid2 { grid-template-columns: 1fr; gap: 0; } }
.yong { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; text-align: center; }
.yong div { padding: 10px 2px; }
.yong div + div { border-left: 1px solid var(--line); }
.yong div.main { background: #FBF7EE; }
.yong b { display: block; font: 600 22px/1.3 var(--serif); }
.yong span { font-size: 12px; color: var(--muted); }
.groups { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.groups div { padding: 14px 12px; }
.groups div + div { border-left: 1px solid var(--line); }
.groups .g { display: flex; justify-content: space-between; align-items: baseline; }
.groups .g b { font: 600 16px var(--serif); color: var(--ink); }
.groups .g em { font-style: normal; font: 600 20px var(--serif); color: var(--gold-text); }
.groups p { font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.5; }
@media (max-width: 760px) { .groups { grid-template-columns: 1fr 1fr; } .groups div:nth-child(odd) { border-left: 0; } .groups div { border-top: 1px solid var(--line); } .groups div:nth-child(-n+2) { border-top: 0; } }
.dw { display: flex; gap: 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
.dw div { flex: 1 0 68px; text-align: center; padding: 10px 0; }
.dw div + div { border-left: 1px solid var(--line); }
.dw div.now { background: var(--ink); color: #fff; }
.dw div.now b, .dw div.now span { color: #fff; }
.dw b { display: block; font: 600 18px/1.3 var(--serif); color: var(--ink); }
.dw span { font-size: 12px; color: var(--muted); }
.cta-band { margin: 56px 0 88px; border-radius: 18px; padding: 44px 48px; background: linear-gradient(120deg, #F3ECDF 0%, #EADFCB 100%); border: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; border: 1px solid rgba(184,151,90,.45); }
.cta-band::after { content: ""; position: absolute; right: -20px; top: -20px; width: 180px; height: 180px; border-radius: 50%; border: 1px dashed rgba(184,151,90,.3); }
.cta-band h3 { color: var(--ink); font-size: 22px; position: relative; }
.cta-band p { color: #5F5B54; margin-top: 6px; position: relative; }
.cta-band .btn { position: relative; }
@media (max-width: 560px) { .cta-band { padding: 30px 24px; } }

/* ── 오늘의 운세 ── */
.fortune { text-align: center; padding: 56px 0 8px; }
.fortune .date { font: 500 14px/1 var(--accent); letter-spacing: .2em; color: var(--gold-text); }
.fortune .day { font: 600 64px/1.1 var(--serif); color: var(--ink); margin-top: 14px; letter-spacing: .06em; }
.fortune .sub { color: var(--muted); font-size: 14px; margin-top: 6px; }
.meter { display: inline-flex; gap: 5px; margin: 18px 0 6px; }
.meter i { width: 30px; height: 3px; border-radius: 2px; background: var(--line-strong); }
.meter i.on { background: var(--gold); }
.fortune h1 { font-size: clamp(26px, 4.6vw, 36px); margin-top: 14px; }
.fortune p.body { font-size: 17px; color: #55524C; margin: 14px auto 0; max-width: 32em; }
.dodont { display: grid; grid-template-columns: 1fr 1fr; margin-top: 36px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--white); }
.dodont div { padding: 22px 24px; }
.dodont div + div { border-left: 1px solid var(--line); }
.dodont b { display: block; font-size: 12px; letter-spacing: .06em; margin-bottom: 6px; }
.dodont .do b { color: var(--wood); } .dodont .dont b { color: var(--fire); }
@media (max-width: 560px) { .dodont { grid-template-columns: 1fr; } .dodont div + div { border-left: 0; border-top: 1px solid var(--line); } }
.lucky { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 14px; text-align: center; }
.lucky div { padding: 16px 4px; }
.lucky div + div { border-left: 1px solid var(--line); }
.lucky span { display: block; font-size: 12px; color: var(--muted); }
.lucky b { color: var(--ink); font-weight: 600; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }

/* ── 가이드 ── */
.prose-page { max-width: 720px; }
.prose-page p { margin-bottom: 16px; color: #3E3B36; font-size: 17px; line-height: 1.85; }
.prose-page b { color: var(--ink); }
.prose-page h2 { margin: 48px 0 14px; font-size: 24px; }
.terms { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; margin: 0; }
.terms div { padding: 18px 0; border-top: 1px solid var(--line); }
.terms dt { font: 600 17px var(--serif); color: var(--ink); }
.terms dd { margin: 4px 0 0; color: #5F5B54; font-size: 15px; }
@media (max-width: 760px) { .terms { grid-template-columns: 1fr; } }

/* ── 주문 ── */
.order-wrap { display: grid; grid-template-columns: 1fr 340px; gap: 40px; padding: 48px 0 88px; align-items: start; }
.summary { position: sticky; top: 96px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.summary .bk .cover { max-width: 120px; }
.summary .row { display: flex; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.summary .row b { color: var(--ink); }
.summary .total b { font: 600 22px var(--serif); }
@media (max-width: 900px) { .order-wrap { grid-template-columns: 1fr; padding-top: 28px; } .summary { position: static; order: -1; } }
.receipt { max-width: 600px; margin: 0 auto; padding: 64px 0 96px; }
.receipt table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.receipt th, .receipt td { text-align: left; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; vertical-align: top; }
.receipt th { color: var(--muted); font-weight: 400; width: 32%; }
.account { border: 1px solid var(--gold); border-radius: 12px; padding: 22px; margin: 28px 0; background: #FCF9F3; }
.account .num { font: 600 22px/1.4 var(--serif); color: var(--ink); margin: 6px 0; letter-spacing: .02em; }
details.info { margin: 6px 0 14px; font-size: 14px; color: var(--muted); }
details.info summary { cursor: pointer; color: var(--ink-soft); }
details.info p { margin-top: 8px; line-height: 1.7; }

/* ── 푸터 ── */
footer.site { border-top: 1px solid var(--line); padding: 48px 0 56px; font-size: 13px; color: var(--muted); }
footer.site .cols { display: grid; grid-template-columns: 1.2fr 2fr; gap: 32px; }
footer.site .brand { font: 600 17px var(--serif); color: var(--ink); display: flex; align-items: center; gap: 8px; }
footer.site .brand i { width: 24px; height: 24px; line-height: 0; }
footer.site .brand i svg { width: 100%; height: 100%; }
footer.site .biz { line-height: 2; }
footer.site a { color: var(--ink-soft); border-bottom: 1px solid var(--line-strong); }
footer.site .disc { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
@media (max-width: 760px) { footer.site .cols { grid-template-columns: 1fr; gap: 16px; } }
