/* 가족북톡 — 따뜻한 종이 · 코랄 강조 · 선 대신 면(이중 실선 쓰지 않음) */
.bt {
  --bt-ink: var(--c-text, #2b2622); --bt-sub: color-mix(in srgb, var(--c-text, #2b2622) 70%, #fff); --bt-mut: var(--c-muted, #8a8178);
  --bt-ac: var(--c-accent, #e0704f); --bt-ac-soft: var(--c-accent-soft, #fbe4da); --bt-card: var(--c-card, #fff); --bt-panel: var(--c-panel, #f6efe4);
  color: var(--bt-ink); word-break: keep-all;
}
.bt-wrap { width: min(var(--w, 1180px), calc(100% - 48px)); margin: 0 auto; padding: 32px 0 72px; display: flex; flex-direction: column; gap: 36px; }
.bt h1, .bt h2, .bt h3 { margin: 0; letter-spacing: -.03em; line-height: 1.3; }
.bt h2 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; }
.bt-label { display: inline-block; margin-bottom: 10px; font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--bt-ac); }
.bt-sub { margin: 8px 0 0; color: var(--bt-sub); line-height: 1.75; }
.bt-empty { padding: 36px 20px; border-radius: 20px; background: var(--bt-panel); text-align: center; color: var(--bt-sub); }
.bt-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.bt-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--bt-ac); color: #fff !important; font: inherit; font-weight: 800; text-decoration: none !important; cursor: pointer; box-shadow: 0 10px 22px -10px color-mix(in srgb, var(--bt-ac) 80%, transparent); transition: transform .15s, filter .15s; }
.bt-btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.bt-btn--line { background: var(--bt-card); color: var(--bt-ink) !important; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--bt-ink) 16%, transparent); }

/* 히어로 */
.bt-hero { position: relative; overflow: hidden; padding: 56px 52px; border-radius: 32px; background: var(--bt-panel); }
.bt-hero h1 { font-size: clamp(30px, 4.2vw, 50px); font-weight: 900; line-height: 1.22; }
.bt-hero p { max-width: 620px; margin: 16px 0 0; font-size: 17px; line-height: 1.8; color: var(--bt-sub); }
.bt-hero--sm { padding: 40px 44px; }
.bt-hero--sm h1 { font-size: clamp(26px, 3.2vw, 38px); }

/* 주제 칩 */
.bt-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: -12px; }
.bt-chips a { padding: 9px 18px; border-radius: 999px; background: var(--bt-card); color: var(--bt-ink); font-weight: 700; font-size: 14px; text-decoration: none; box-shadow: 0 2px 8px rgba(43, 38, 34, .06); }
.bt-chips a.is-on { background: var(--bt-ink); color: #fff; }
.bt-chip { display: inline-flex; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; color: #4a3f36; }
.bt-age { font-size: 12.5px; font-weight: 600; color: var(--bt-mut); }

/* 책 카드 */
.bt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 22px; }
.bt-book { display: flex; flex-direction: column; gap: 8px; padding: 14px 14px 18px; border-radius: 24px; background: var(--bt-card); color: inherit; text-decoration: none; box-shadow: 0 14px 30px -20px rgba(43, 38, 34, .35); transition: transform .2s, box-shadow .2s; }
.bt-book:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -22px rgba(43, 38, 34, .45); }
.bt-book-meta { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.bt-book-title { font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.bt-book-sub { font-size: 13px; color: var(--bt-mut); }

/* 표지 — 이미지 또는 글자 표지 */
.bt-cover { display: block; aspect-ratio: 3 / 4; border-radius: 16px; overflow: hidden; background: var(--bt-panel); }
.bt-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bt-cover.is-text { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 20px 18px; background: linear-gradient(160deg, color-mix(in srgb, var(--bt-c) 70%, #fff), var(--bt-c)); }
.bt-cover.is-text::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 12px; background: rgba(0, 0, 0, .07); }
.bt-cover.is-text::after { content: "📖"; position: absolute; right: 16px; top: 14px; font-size: 22px; opacity: .55; }
.bt-cover.is-text b { position: relative; font-size: 21px; font-weight: 900; line-height: 1.3; color: #2b2622; letter-spacing: -.03em; }
.bt-cover.is-text small { position: relative; font-size: 12.5px; font-weight: 600; color: rgba(43, 38, 34, .62); }
.bt-cover--lg { width: 100%; max-width: 300px; border-radius: 22px; box-shadow: 0 28px 50px -26px rgba(43, 38, 34, .5); }
.bt-cover--lg.is-text b { font-size: 28px; }

/* 책 화면 */
.bt-crumb { margin: 0 0 -18px; font-size: 13px; color: var(--bt-mut); }
.bt-crumb a { color: inherit; }
.bt-bookhead { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 48px; align-items: center; }
.bt-bookhead h1 { margin-top: 12px; font-size: clamp(30px, 3.6vw, 44px); font-weight: 900; }
.bt-by { margin: 8px 0 0; color: var(--bt-mut); font-weight: 600; }
.bt-summary { margin: 20px 0 0; font-size: 17px; line-height: 1.9; color: var(--bt-sub); }
.bt-tip { padding: 24px 28px; border-radius: 22px; background: var(--bt-ac-soft); }
.bt-tip b { display: block; margin-bottom: 6px; font-size: 15px; color: var(--bt-ac); }
.bt-tip p { margin: 0; line-height: 1.85; }
.bt-qcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin: 20px 0 0; padding: 0; list-style: none; }
.bt-qcards li { position: relative; min-height: 150px; padding: 22px 22px 24px; border-radius: 22px; background: var(--bt-card); box-shadow: 0 12px 26px -18px rgba(43, 38, 34, .35); }
.bt-qcards li:nth-child(4n+1) { background: #fff6ee; } .bt-qcards li:nth-child(4n+2) { background: #f1f6fb; }
.bt-qcards li:nth-child(4n+3) { background: #f7f2fb; } .bt-qcards li:nth-child(4n+4) { background: #f1f8f1; }
.bt-qcards span { display: inline-grid; place-items: center; min-width: 38px; height: 28px; padding: 0 10px; border-radius: 999px; background: var(--bt-ac); color: #fff; font-size: 13px; font-weight: 900; }
.bt-qcards p { margin: 14px 0 0; font-size: 17px; font-weight: 700; line-height: 1.65; }
.bt-activity { padding: 32px; border-radius: 26px; background: var(--bt-panel); }
.bt-activity p { margin: 12px 0 0; font-size: 16px; line-height: 1.9; }

/* 대화 기록 */
.bt-logbox { padding: 34px; border-radius: 28px; background: var(--bt-card); box-shadow: 0 18px 40px -28px rgba(43, 38, 34, .4); }
.bt-form { display: grid; gap: 14px; margin-top: 20px; }
.bt-form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.bt-form label { display: grid; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--bt-sub); }
.bt-form input, .bt-form select, .bt-form textarea { width: 100%; padding: 12px 14px; border: 0; border-radius: 14px; background: var(--bt-panel); color: var(--bt-ink); font: inherit; font-weight: 500; }
.bt-form input:focus, .bt-form select:focus, .bt-form textarea:focus { outline: 2px solid var(--bt-ac); outline-offset: 1px; }
.bt-form .bt-btn { justify-self: start; }
.bt-logs { display: grid; gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; }
.bt-logs li { padding: 18px 20px; border-radius: 18px; background: var(--bt-panel); }
.bt-log-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--bt-mut); }
.bt-log-h a { color: var(--bt-ink); text-decoration: none; }
.bt-log-h form { margin: 0 0 0 auto; }
.bt-x { border: 0; background: none; color: var(--bt-mut); font: inherit; font-size: 12.5px; cursor: pointer; text-decoration: underline; }
.bt-log-q { margin: 8px 0 0; font-size: 13.5px; font-weight: 700; color: var(--bt-ac); }
.bt-log-words { margin: 8px 0 0; font-size: 16px; font-weight: 700; line-height: 1.7; }
.bt-log-note { margin: 6px 0 0; color: var(--bt-sub); line-height: 1.7; }

/* 홈 */
.bt-home-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; }
.bt-home-hero .bt-stack { position: relative; height: 340px; }
.bt-home-hero .bt-stack .bt-cover { position: absolute; width: 190px; box-shadow: 0 24px 44px -24px rgba(43, 38, 34, .55); }
.bt-home-hero .bt-stack .bt-cover:nth-child(1) { left: 6%; top: 34px; transform: rotate(-8deg); }
.bt-home-hero .bt-stack .bt-cover:nth-child(2) { left: 34%; top: 0; z-index: 2; }
.bt-home-hero .bt-stack .bt-cover:nth-child(3) { left: 60%; top: 40px; transform: rotate(7deg); }
.bt-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.bt-step { padding: 28px 26px; border-radius: 24px; background: var(--bt-card); box-shadow: 0 14px 30px -22px rgba(43, 38, 34, .35); }
.bt-step i { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 18px; font-size: 24px; font-style: normal; background: var(--bt-ac-soft); }
.bt-step h3 { margin-top: 16px; font-size: 19px; font-weight: 800; }
.bt-step p { margin: 8px 0 0; color: var(--bt-sub); line-height: 1.75; }
.bt-for { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.bt-for > div { padding: 30px; border-radius: 26px; background: var(--bt-panel); }
.bt-for h3 { font-size: 20px; font-weight: 800; }
.bt-for ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.bt-for li { position: relative; padding-left: 22px; line-height: 1.7; }
.bt-for li::before { content: "•"; position: absolute; left: 6px; color: var(--bt-ac); font-weight: 900; }
.bt-quote { padding: 44px 32px; border-radius: 28px; background: var(--bt-ink); color: #fff; text-align: center; }
.bt-quote p { margin: 0; font-size: clamp(19px, 2.2vw, 24px); font-weight: 800; line-height: 1.6; }
.bt-quote small { display: block; margin-top: 12px; font-size: 13px; color: rgba(255, 255, 255, .62); }
.bt-family { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 32px 36px; border-radius: 26px; background: var(--bt-card); box-shadow: 0 14px 30px -22px rgba(43, 38, 34, .35); }
.bt-family p { margin: 8px 0 0; color: var(--bt-sub); line-height: 1.75; }
.bt-family .bt-btns { margin: 0; }
.bt-more { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.bt-more a { font-weight: 700; color: var(--bt-ac); text-decoration: none; }

@media (max-width: 900px) {
  .bt-home-hero, .bt-bookhead { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .bt-home-hero .bt-stack { height: 280px; max-width: 460px; width: 100%; margin: 0 auto; }
  .bt-home-hero .bt-stack .bt-cover { width: 150px; }
  .bt-bookhead .bt-cover--lg { max-width: 220px; margin: 0 auto; }
  .bt-steps, .bt-for { grid-template-columns: minmax(0, 1fr); }
  .bt-family { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .bt-wrap { width: calc(100% - 32px); padding: 20px 0 56px; gap: 28px; }
  .bt-hero, .bt-hero--sm { padding: 30px 22px; border-radius: 24px; }
  .bt-form-row { grid-template-columns: minmax(0, 1fr); }
  .bt-logbox, .bt-activity { padding: 24px 20px; }
  .bt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .bt-book { padding: 10px 10px 14px; border-radius: 18px; }
  .bt-cover.is-text b { font-size: 16px; }
  .bt-btns .bt-btn { width: 100%; }
}
