/* 북판 */
:root {
  --bg: #f4f3ef; --surface: #fff; --ink: #121212; --ink2: #2b2b2a; --sub: #74726c; --line: #e4e1da;
  --dark: #141414; --dark2: #1e1e1d; --accent: #1f5b4a; --accent-soft: #e7efeb; --warm: #c8a96a;
  --serif: var(--sans);
  --sans: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.65; word-break: keep-all; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.small { font-size: 13px; color: var(--sub); }
.label { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.dark .label { color: var(--warm); }
h1, h2, h3 { letter-spacing: -.03em; }

/* 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--ink); background: var(--ink); color: #fff;
  font: inherit; font-weight: 600; font-size: 14px; padding: 12px 22px; border-radius: 8px; cursor: pointer; text-decoration: none; transition: background .15s, color .15s, border-color .15s; white-space: nowrap; }
.btn:hover { background: #333; }
.btn.ghost { background: transparent; color: var(--ink); border-color: #cfccc4; }
.btn.ghost:hover { border-color: var(--ink); background: transparent; }
.btn.light { background: #fff; color: var(--ink); border-color: #fff; }
.btn.light:hover { background: #ecebe7; }
.btn.line-light { background: transparent; color: #fff; border-color: #4a4a48; }
.btn.line-light:hover { border-color: #fff; }
.btn.lg { padding: 15px 28px; font-size: 15px; }
.btn[disabled] { opacity: .4; cursor: wait; }

/* 상단바 */
.topbar { background: rgba(244,243,239,.85); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.topbar .wrap { display: flex; align-items: center; gap: 28px; height: 58px; }
.topbar .brand { font-weight: 800; font-size: 20px; text-decoration: none; letter-spacing: -.04em; display: flex; align-items: center; gap: 8px; }
.topbar .brand i { width: 22px; height: 22px; border-radius: 5px; background: var(--ink); display: inline-block; position: relative; }
.topbar .brand i::after { content: ""; position: absolute; left: 6px; top: 5px; width: 10px; height: 12px; border: 2px solid #fff; border-left-width: 3px; border-radius: 1px 2px 2px 1px; }
.topbar nav { display: flex; gap: 22px; }
.topbar nav a { text-decoration: none; font-size: 14px; color: var(--sub); font-weight: 500; }
.topbar nav a:hover { color: var(--ink); }
.topbar .right { margin-left: auto; }
.topbar .right .btn { padding: 8px 14px; font-size: 13px; }

/* 다크 히어로 */
.dark { background: var(--dark); color: #f1efe9; }
.feature { padding: 64px 0 0; overflow: hidden; }
.feature .grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: end; }
.feature h1 { font-size: clamp(34px, 4.6vw, 56px); font-weight: 800; line-height: 1.18; margin: 14px 0 16px; letter-spacing: -.045em; }
.feature .desc { color: #b7b4ac; font-size: 16px; max-width: 480px; margin: 0 0 28px; }
.feature .cta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 56px; }
.feature .art { position: relative; display: flex; justify-content: center; align-self: stretch; align-items: flex-end; }
.feature .art::before { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(closest-side, rgba(200,169,106,.28), transparent); bottom: -40px; }
.feature .art img { position: relative; width: 300px; border-radius: 4px 4px 0 0; box-shadow: 0 -10px 60px rgba(0,0,0,.45); transform: translateY(8px); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #2c2c2b; }
.stats div { padding: 22px 0 24px; }
.stats div + div { border-left: 1px solid #2c2c2b; padding-left: 24px; }
.stats b { display: block; font-size: 22px; font-weight: 700; letter-spacing: -.03em; color: #fff; }
.stats span { font-size: 12.5px; color: #8f8c85; }

/* 섹션 공통 */
.sec { padding: 72px 0; }
.sec + .sec { border-top: 1px solid var(--line); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 28px; }
.sec-head h2 { font-size: 26px; font-weight: 800; margin: 6px 0 0; }
.sec-head p { margin: 0; color: var(--sub); font-size: 14px; }
.white { background: var(--surface); }

/* 이용 단계 */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.steps div { background: var(--surface); padding: 26px 26px 28px; }
.steps em { font-style: normal; font-family: var(--serif); font-size: 13px; color: var(--accent); font-weight: 700; }
.steps b { display: block; font-size: 17px; margin: 8px 0 6px; letter-spacing: -.02em; }
.steps p { margin: 0; color: var(--sub); font-size: 14px; }

/* 문장 카드 */
.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.qcard { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 28px 28px 22px; display: flex; flex-direction: column; justify-content: space-between; min-height: 170px; }
.qcard p { font-size: 18px; font-weight: 600; line-height: 1.6; margin: 0 0 18px; color: var(--ink2); letter-spacing: -.02em; }
.qcard p::before { content: "“"; color: var(--warm); font-size: 30px; line-height: 0; vertical-align: -10px; margin-right: 4px; }
.qcard span { font-size: 12px; color: var(--sub); }
.qcard.dark-card { background: var(--dark); border-color: var(--dark); }
.qcard.dark-card p { color: #f1efe9; }

/* 책장 */
.shelf { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 22px; }
.book { text-decoration: none; color: inherit; display: block; }
.book .thumb { background: #e9e6df; border-radius: 10px; padding: 22px 26px; }
.book img { width: 100%; aspect-ratio: 2/3; object-fit: cover; border-radius: 3px; box-shadow: 0 14px 28px -12px rgba(0,0,0,.35); transition: transform .25s; }
.book:hover img { transform: translateY(-4px); }
.book .bt { font-weight: 700; margin-top: 14px; line-height: 1.45; letter-spacing: -.02em; }
.book .ba { font-size: 13px; color: var(--sub); margin-top: 2px; }
.book .bp { font-size: 14px; font-weight: 700; margin-top: 6px; display: flex; gap: 8px; align-items: center; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 2px 8px; border-radius: 4px; }
.soon .ph { width: 100%; aspect-ratio: 2/3; border: 1px dashed #c9c5bb; border-radius: 3px; display: grid; place-items: center; color: #a6a298; font-size: 13px; text-align: center; }
.soon .bt { color: #a6a298; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--sub); font-weight: 400; font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 0; color: var(--sub); font-size: 14px; }
.two { display: grid; grid-template-columns: 300px 1fr; gap: 56px; }

/* 책 상세 */
.detail { padding: 48px 0 64px; }
.detail .grid { display: grid; grid-template-columns: 360px 1fr; gap: 64px; align-items: start; }
.detail .coverbox { background: #e9e6df; border-radius: 14px; padding: 40px; position: sticky; top: 86px; }
.detail .coverbox img { width: 100%; border-radius: 3px; box-shadow: 0 24px 48px -18px rgba(0,0,0,.45); }
.detail h1 { font-size: clamp(32px, 4vw, 46px); font-weight: 800; line-height: 1.2; letter-spacing: -.045em; margin: 10px 0 8px; }
.detail .subt { font-size: 17px; color: var(--sub); margin: 0 0 24px; }
.detail .hook { font-size: 17px; line-height: 1.8; color: var(--ink2); padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 0 22px; }
.spec { display: grid; grid-template-columns: 90px 1fr; gap: 9px 12px; font-size: 14px; margin: 0 0 26px; }
.spec dt { color: var(--sub); } .spec dd { margin: 0; font-weight: 500; }
.pricebar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.pricebar .price { font-size: 26px; font-weight: 800; letter-spacing: -.03em; margin-right: 6px; }
.pricebar .price small { font-size: 14px; font-weight: 500; color: var(--sub); margin-left: 2px; }
.prose { max-width: 680px; }
.prose p { margin: 0 0 14px; color: #3a3935; }
.checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 0; margin: 0; list-style: none; }
.checks li { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px 14px 42px; position: relative; font-size: 14.5px; }
.checks li::before { content: ""; position: absolute; left: 16px; top: 18px; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cards3 div { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.cards3 em { font-style: normal; font-family: var(--serif); color: var(--warm); font-weight: 700; font-size: 22px; }
.cards3 b { display: block; font-size: 16px; margin: 6px 0 6px; letter-spacing: -.02em; }
.cards3 p { margin: 0; color: var(--sub); font-size: 14px; }
.excerpt { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 40px 48px; position: relative; max-height: 520px; overflow: hidden; }
.excerpt::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 180px; background: linear-gradient(transparent, #fff 75%); }
.excerpt .exlbl { font-size: 12px; color: var(--accent); font-weight: 700; }
.excerpt h3 { font-size: 23px; font-weight: 800; margin: 6px 0 22px; }
.excerpt .body { font-size: 16px; line-height: 1.95; color: var(--ink2); }
.excerpt .body p { margin: 0 0 1em; } .excerpt .body h2 { font-size: 18px; margin: 26px 0 10px; }
.excerpt-more { text-align: center; margin-top: -26px; position: relative; }
.toc { columns: 2; column-gap: 48px; }
.toc .grp { break-inside: avoid; margin-bottom: 22px; }
.toc .part { font-size: 12px; font-weight: 700; color: var(--accent); margin-bottom: 6px; letter-spacing: .02em; }
.toc .item { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.author { display: grid; grid-template-columns: 64px 1fr; gap: 20px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 28px; max-width: 760px; }
.author .av { width: 64px; height: 64px; border-radius: 50%; background: var(--dark); color: var(--warm); display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 20px; }
.author b { font-size: 17px; } .author p { margin: 6px 0 0; color: #4a4945; font-size: 14.5px; }
.buybox { background: var(--dark); color: #f1efe9; border-radius: 18px; padding: 40px; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.buybox h3 { margin: 0 0 4px; font-size: 30px; font-weight: 800; }
.buybox h3 small { font-size: 15px; color: #8f8c85; font-weight: 500; margin-left: 6px; }
.buybox ul { margin: 14px 0 0; padding: 0; list-style: none; color: #b7b4ac; font-size: 14px; display: grid; gap: 4px; }
.buybox li::before { content: "—  "; color: var(--warm); }
.recover { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; max-width: 520px; }
.recover input { flex: 1; min-width: 200px; padding: 11px 14px; border: 1px solid #cfccc4; border-radius: 8px; font: inherit; background: var(--surface); }
.recover input:focus { outline: none; border-color: var(--ink); }
.msg { margin-top: 8px; font-size: 13px; color: #b42318; }
.mbar { display: none; }

footer { background: var(--dark); color: #8f8c85; font-size: 13px; padding: 48px 0 56px; }
footer .fgrid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
footer b { color: #f1efe9; font-size: 18px; font-weight: 800; letter-spacing: -.03em; }
footer h4 { color: #f1efe9; font-size: 13px; margin: 0 0 10px; }
footer a { display: block; text-decoration: none; margin-bottom: 6px; }
footer a:hover { color: #fff; }
footer .copy { border-top: 1px solid #2c2c2b; margin-top: 36px; padding-top: 20px; font-size: 12px; }

/* 결제 확인 */
.center-page { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 24px; }
.center-page h1 { font-size: 26px; font-weight: 800; margin: 0 0 10px; }
.spinner { width: 26px; height: 26px; border: 2px solid var(--line); border-top-color: var(--ink); border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 22px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 리더 */
.reader { display: grid; grid-template-columns: 300px 1fr; min-height: 100vh; }
.side { background: var(--surface); border-right: 1px solid var(--line); padding: 26px 20px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side .home { font-weight: 800; font-size: 16px; line-height: 1.45; letter-spacing: -.03em; text-decoration: none; display: block; margin-bottom: 18px; }
.side .part { font-size: 11.5px; font-weight: 700; color: var(--accent); margin: 18px 0 4px; letter-spacing: .02em; }
.side a.ch { display: block; padding: 7px 10px; border-radius: 6px; text-decoration: none; font-size: 13.5px; color: #3a3935; }
.side a.ch:hover { background: var(--bg); }
.side a.ch.on { background: var(--ink); color: #fff; font-weight: 600; }
.side a.ch.lock { color: #b0aca2; }
.dl { display: grid; gap: 8px; margin: 0 0 12px; }
.dl a { font-size: 13.5px; padding: 10px; }
.notice { background: var(--bg); border-radius: 8px; padding: 11px 13px; font-size: 12.5px; color: var(--sub); }
.page { max-width: 680px; margin: 0 auto; padding: 72px 28px 140px; font-size: 17.5px; line-height: 1.95; color: #262624; }
.page .partlbl { font-family: var(--sans); font-size: 12px; font-weight: 700; color: var(--accent); letter-spacing: .04em; }
.page h1 { font-family: var(--sans); font-weight: 800; font-size: 32px; line-height: 1.35; letter-spacing: -.04em; margin: 8px 0 44px; color: var(--ink); }
.page h2 { font-family: var(--sans); font-weight: 700; font-size: 20px; letter-spacing: -.03em; margin: 52px 0 14px; color: var(--ink); }
.page p { margin: 0 0 1.15em; } .page p.blank { margin: 0; }
.page blockquote { margin: 1.4em 0; padding: .2em 1.2em; border-left: 2px solid var(--accent); color: var(--sub); }
.page hr { border: 0; text-align: center; margin: 2.4em 0; } .page hr::after { content: "· · ·"; color: #bbb; letter-spacing: .6em; }
.nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 72px; padding-top: 28px; border-top: 1px solid var(--line); font-family: var(--sans); }
.lockbox { font-family: var(--sans); text-align: center; background: var(--dark); color: #f1efe9; border-radius: 16px; padding: 44px 24px; margin-top: 24px; }
.lockbox h2 { font-size: 21px; margin: 0 0 8px !important; color: #fff !important; }
.lockbox p { color: #b7b4ac; font-size: 15px; margin: 0 0 22px; }
.lockbox .btn { background: #fff; color: var(--ink); border-color: #fff; }
.menu-btn { display: none; }

@media (max-width: 900px) {
  .wrap { padding: 0 20px; }
  .topbar nav { display: none; }
  .feature { padding-top: 40px; }
  .feature .grid { grid-template-columns: 1fr; gap: 8px; }
  .feature .cta { margin-bottom: 36px; }
  .feature .art img { width: 220px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats div:nth-child(3) { border-left: 0; padding-left: 0; }
  .stats div:nth-child(n+3) { border-top: 1px solid #2c2c2b; }
  .steps, .cards3 { grid-template-columns: 1fr; }
  .quotes, .checks { grid-template-columns: 1fr; }
  .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; }
  .book .thumb { padding: 16px 18px; }
  .two { grid-template-columns: 1fr; gap: 20px; }
  .sec { padding: 56px 0; }
  .detail .grid { grid-template-columns: 1fr; gap: 32px; }
  .detail .coverbox { position: static; padding: 32px 60px; }
  .excerpt { padding: 28px 22px; }
  .toc { columns: 1; }
  .buybox { grid-template-columns: 1fr; padding: 28px; }
  footer .fgrid { grid-template-columns: 1fr; }
  .mbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: rgba(255,255,255,.95); backdrop-filter: blur(8px); border-top: 1px solid var(--line); padding: 10px 16px; align-items: center; justify-content: space-between; gap: 12px; }
  .mbar b { font-size: 18px; } .mbar .btn { flex: 1; max-width: 220px; }
  body.has-mbar { padding-bottom: 68px; }
  .reader { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 18% 0 0; z-index: 40; transform: translateX(-102%); transition: transform .25s; height: 100%; box-shadow: 0 0 40px rgba(0,0,0,.18); }
  .side.open { transform: none; }
  .menu-btn { display: inline-flex; position: fixed; left: 14px; top: 14px; z-index: 41; padding: 8px 14px; font-size: 13px; }
  .page { padding: 72px 20px 110px; font-size: 17px; }
}

/* 리뷰 */
.rv-summary { display: flex; align-items: center; gap: 14px; }
.rv-avg { font-size: 34px; font-weight: 800; letter-spacing: -.03em; }
.stars { color: var(--warm); letter-spacing: 2px; }
.stars .off { color: #d9d5cb; }
.rv-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.rv { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; }
.rv-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; font-size: 13px; color: var(--sub); }
.rv-top b { color: var(--ink); font-size: 14px; }
.rv-badge { font-size: 11px; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 2px 7px; border-radius: 4px; margin-left: 6px; }
.rv p { margin: 0; font-size: 14.5px; color: #3a3935; white-space: pre-wrap; }
.rv-empty { background: var(--surface); border: 1px dashed #cfccc4; border-radius: 14px; padding: 36px; text-align: center; color: var(--sub); }
.rv-more { margin-top: 16px; text-align: center; }
dialog.rvd { border: 0; border-radius: 16px; padding: 28px; width: min(460px, 92vw); font-family: var(--sans); }
dialog.rvd::backdrop { background: rgba(0,0,0,.45); }
dialog.rvd h3 { margin: 0 0 6px; font-size: 20px; }
.star-pick { display: flex; gap: 4px; margin: 14px 0; }
.star-pick button { border: 0; background: none; font-size: 30px; cursor: pointer; color: #d9d5cb; padding: 0; line-height: 1; }
.star-pick button.on { color: var(--warm); }
dialog.rvd input, dialog.rvd textarea { width: 100%; border: 1px solid #cfccc4; border-radius: 8px; padding: 11px 13px; font: inherit; margin-bottom: 10px; background: #fff; }
dialog.rvd textarea { min-height: 120px; resize: vertical; }
dialog.rvd .row { display: flex; gap: 8px; justify-content: flex-end; align-items: center; }
@media (max-width: 900px) { .rv-list { grid-template-columns: 1fr; } }

/* 책이 한 권일 때: 가로 카드 */
.shelf.single { grid-template-columns: 1fr; }
.shelf.single .book { display: grid; grid-template-columns: 240px 1fr; grid-template-rows: auto auto auto auto 1fr; column-gap: 36px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.shelf.single .book .thumb { grid-row: 1 / -1; }
.shelf.single .book .bt { font-size: 24px; margin-top: 8px; }
.shelf.single .book .ba { font-size: 14px; }
.shelf.single .book .bp { font-size: 16px; margin-top: 10px; }
.shelf.single .book .bd { color: var(--sub); font-size: 15px; margin: 16px 0 20px; max-width: 520px; }
.shelf.single .book .bmore { justify-self: start; align-self: start; }
.book .bd, .book .bmore { display: none; }
.shelf.single .book .bd, .shelf.single .book .bmore { display: block; }
.shelf.single .book .bmore { display: inline-flex; }
@media (max-width: 900px) {
  .shelf.single .book { grid-template-columns: 120px 1fr; column-gap: 18px; padding: 16px; }
  .shelf.single .book .thumb { padding: 10px; }
  .shelf.single .book .bt { font-size: 17px; margin-top: 0; }
  .shelf.single .book .bd { display: none; }
  .shelf.single .book .bmore { margin-top: 12px; padding: 8px 14px; font-size: 13px; }
}

@media (max-width: 900px) { .sec-head { flex-direction: column; align-items: flex-start; gap: 6px; } .sec-head h2 { word-break: keep-all; } }

/* 들어가며 끝 구매 유도 */
.endcta { font-family: var(--sans); margin-top: 64px; padding: 36px 28px; text-align: center; border-radius: 18px; background: linear-gradient(140deg, #221e15, #121212); border: 1px solid #3a3324; }
.endcta h2 { margin: 8px 0 10px !important; font-size: 22px; color: var(--ink) !important; }
.endcta p { color: #b7b4ac; font-size: 15px; margin: 0 0 22px !important; }
.endcta .btn { background: var(--accent); border-color: var(--accent); color: #0b0b0b; }
/* 모바일 책 소개: 표지 먼저, 그 아래 제목·한 줄 소개·버튼 */
@media (max-width: 900px) {
  .detail { padding-top: 28px; }
  .detail .grid { display: flex; flex-direction: column; gap: 28px; }
  .detail .grid > div:not(.coverbox) { order: 2; }
  .detail .coverbox { order: 1; padding: 22px 96px; }
  .detail h1 { font-size: 30px; }
  .detail .hook { font-size: 15.5px; padding: 14px 0; margin-bottom: 16px; }
  .spec { margin-bottom: 20px; font-size: 13.5px; }
  .pricebar { gap: 10px; }
  .pricebar .price { width: 100%; font-size: 24px; }
  .pricebar .btn { flex: 1; padding: 13px 10px; }
}

.detail .meta { font-size: 13.5px; color: var(--sub); margin: 0 0 22px; }
.mbar .btn.ghost { flex: 1; max-width: none; } .mbar .btn.buy { flex: 1.3; max-width: none; }

/* 미색 테마 + 표지 박스만 어둡게 */
.detail .coverbox { background: #1b1a17; }
.mbar { background: rgba(255,255,255,.96); }
/* 리더: 책 소개로 나가는 버튼 */
.back-btn { position: fixed; right: 14px; top: 14px; z-index: 41; padding: 8px 14px; font-size: 13px; background: var(--surface); }

/* 무료 읽기를 메인 버튼으로 */
.btn.gold { background: var(--accent); border-color: var(--accent); color: #0b0b0b; font-weight: 700; }
.btn.gold:hover { background: #d6b97c; }
.detail .hook b { color: var(--ink); }
.mbar .btn { flex: 1; max-width: none; }
.mbar { gap: 8px; }

/* 메인 버튼: 배경색에 맞춰 흰 글자 */
.btn.gold { color: #fff; }
.btn.gold:hover { color: #fff; filter: brightness(1.1); background: var(--accent); }

.cards3.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .cards3.four { grid-template-columns: 1fr; } }
