/* Tobestbooks publisher site. Tokens follow implementation-spec §6. No remote fonts or images. */
:root {
  --bg: #FFFFFF;
  --card: #FFFFFF;
  --ink: #17120F;
  --ink-2: #5A5650;
  --accent: #784A2A;
  --link: #214D7B;
  --line: #E3DFD8;
  --deco: #967746;
  --tint: #F5F2EC;
  --cover-0: #1D4250;
  --cover-1: #4A3B2A;
  --cover-2: #2E4636;
  --cover-3: #3B3F55;
  --font-body: "Pretendard", system-ui, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-title: var(--font-body);
  --font-en: var(--font-body);
  --radius: 16px;
  --gutter: 20px;
  --fade: 500ms;
  color-scheme: light;
}
@media (min-width: 1024px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 17px; line-height: 1.75;
  word-break: keep-all; overflow-wrap: anywhere;
}
@media (min-width: 1024px) { body { font-size: 18px; } }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--font-title); font-weight: 800; color: var(--ink); line-height: 1.2; margin: 0 0 16px; letter-spacing: -0.03em; font-variant-numeric: lining-nums; }
h1 { font-size: clamp(2.25rem, 5.6vw, 4.25rem); line-height: 1.12; letter-spacing: -0.04em; }
h2 { font-size: clamp(28px, 3.4vw, 42px); }
h3 { font-size: 21px; line-height: 1.35; letter-spacing: -0.02em; }
p { margin: 0 0 16px; }
ul, ol { margin: 0 0 16px; padding: 0; }
cite { font-style: italic; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
/* long-form columns stay left-aligned with the page grid */
.narrow > * { max-width: 760px; }
.prose > * { max-width: 68ch; }

/* ---------- shell */
.skip-link { position: absolute; left: 12px; top: -100px; z-index: 100; background: var(--accent); color: #fff; padding: 12px 16px; border-radius: var(--radius); }
.skip-link:focus { top: 12px; }
.preview-bar { background: #F6E7B8; color: #3D3216; font-size: 14px; line-height: 1.5; text-align: center; padding: 8px var(--gutter); border-bottom: 1px solid #E2CF8E; }
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
@media (min-width: 1024px) { .header-inner { min-height: 72px; } }
.brand { font-family: var(--font-title); font-size: 24px; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); text-decoration: none; letter-spacing: 0.01em; }
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 4px; margin: 0; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--ink); text-decoration: none; border-radius: var(--radius); font-size: 16px; }
.site-nav a:hover { background: var(--tint); }
.site-nav a[aria-current] { box-shadow: inset 0 -2px 0 var(--deco); font-weight: 600; }
.menu-toggle { min-height: 44px; min-width: 44px; padding: 0 16px; font: inherit; font-size: 16px; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; }
.menu-toggle[aria-expanded="true"] { background: var(--tint); }
@media (max-width: 767px) {
  .has-js .site-nav { flex-basis: 100%; }
  .has-js .site-nav[data-collapsed] { display: none; }
  .has-js .site-nav ul { flex-direction: column; padding-bottom: 8px; }
  .has-js .site-nav a { width: 100%; }
}
@media (min-width: 768px) { .menu-toggle { display: none; } }
main { display: block; outline: none; }
.site-footer { border-top: 1px solid var(--line); background: var(--card); margin-top: 64px; padding: 32px 0 48px; font-size: 15px; color: var(--ink-2); }
.footer-inner { display: grid; gap: 16px; }
@media (min-width: 768px) { .footer-inner { grid-template-columns: 1fr auto; align-items: start; } .copyright { grid-column: 1 / -1; } }
.footer-name { font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.footer-address { margin-bottom: 4px; }
.footer-biz { display: flex; flex-wrap: wrap; gap: 0 14px; margin-bottom: 4px; }
.footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; }
.footer-links a { display: inline-flex; min-height: 44px; align-items: center; }
.copyright { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; }
.copyright a { font-weight: 700; }
.pending-value { display: inline-block; font-size: 0.9em; color: #6A4E1D; background: #F8EED6; border: 1px dashed #C9A86A; border-radius: 4px; padding: 0 6px; }
.draft-tag { display: inline-block; vertical-align: middle; margin-left: 8px; font-family: var(--font-body); font-size: 13px; font-weight: 600; line-height: 1.6; color: #6A4E1D; background: #F8EED6; border: 1px solid #E2CF8E; border-radius: 4px; padding: 0 6px; letter-spacing: 0; }

/* ---------- common bits */
.section { padding: 48px 0; }
@media (min-width: 1024px) { .section { padding: 64px 0; } }
.section--flush { padding-top: 8px; }
.section--tint { background: var(--tint); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 24px; }
.section-head h2 { margin: 0; }
.section-head .more-link { margin: 0; }
.page-head { padding-top: 24px; padding-bottom: 16px; }
.page-head h1 { margin-bottom: 16px; }
.lead { font-size: 1.08em; color: var(--ink); }
.eyebrow { font-size: 14px; letter-spacing: 0.04em; color: var(--ink-2); margin: 0 0 8px; font-weight: 600; }
.more-link a { font-weight: 600; }
.more-link a::after { content: " →"; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0 8px; margin: 0 0 16px; font-size: 14px; color: var(--ink-2); }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line); }
.breadcrumbs a { color: var(--ink-2); }
.status { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 15px; color: var(--ink-2); }
.status-badge { display: inline-block; font-size: 14px; font-weight: 600; line-height: 1.5; color: var(--accent); background: #F4ECE6; border: 1px solid #DDC8B8; border-radius: 999px; padding: 1px 10px; }
.status-badge--light { color: #fff; background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.45); }
.title-status { display: inline-block; vertical-align: middle; font-family: var(--font-body); font-size: 14px; font-weight: 600; color: var(--ink-2); border: 1px solid var(--line); background: var(--card); border-radius: 4px; padding: 0 6px; margin-left: 8px; letter-spacing: 0; line-height: 1.6; }
.button { display: inline-flex; align-items: center; min-height: 48px; padding: 0 26px; border-radius: 999px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 700; letter-spacing: -0.01em; }
.button:hover { background: #3A332E; }
.button--light { background: #fff; color: var(--ink); }
.button--light:hover { background: #F1ECE4; }
.bullets { padding-left: 1.2em; }
.bullets li { margin-bottom: 6px; }
.link-list { list-style: none; }
.link-list li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.empty, .empty-state p { color: var(--ink-2); }
.empty-state { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.spec { margin: 0 0 16px; border-top: 1px solid var(--line); }
.spec > div { display: grid; grid-template-columns: 8.5em 1fr; gap: 4px 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.spec dt { color: var(--ink-2); font-size: 15px; }
.spec dd { margin: 0; }
@media (max-width: 479px) { .spec > div { grid-template-columns: 1fr; } }
.updated { font-size: 15px; color: var(--ink-2); }

/* ---------- typeset covers */
.cover { position: relative; display: flex; flex-direction: column; aspect-ratio: 3 / 4; padding: 18px 16px 14px; color: #fff; background: var(--cover-0); border-radius: 4px; overflow: hidden; box-shadow: inset 6px 0 0 rgba(0,0,0,0.18); }
.cover::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(214,190,140,0.55); border-radius: 2px; pointer-events: none; }
.cover--1 { background: var(--cover-1); } .cover--2 { background: var(--cover-2); } .cover--3 { background: var(--cover-3); }
.cover-kicker { font-size: 12px; letter-spacing: 0.08em; color: #E3D3B0; margin: 6px 4px 0; }
.cover-title { font-family: var(--font-title); font-size: 22px; font-weight: 700; line-height: 1.3; margin: auto 4px 8px; }
.cover-en { font-family: var(--font-title); font-style: italic; font-size: 13px; line-height: 1.4; color: #EDE3CC; margin: 0 4px 12px; }
.cover-mark { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: #D9C59B; margin: 0 4px 4px; border-top: 1px solid rgba(214,190,140,0.55); padding-top: 8px; }
.cover--img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; padding: 0; object-fit: cover; background: none; box-shadow: 0 6px 16px rgba(20,24,32,0.18); }
.featured-art .cover--img, .set-cover { max-width: 260px; margin: 0 auto; }
.slide-img { display: block; width: 100%; height: auto; max-width: 480px; margin: 0 auto; border-radius: 4px; }
.volume-cover-img, .book-card-img, .book-cover-img { display: block; width: 100%; height: auto; border-radius: 3px; box-shadow: 0 6px 16px rgba(20,24,32,0.18); }

/* spines: the seven-volume set typeset as standing books */
.spines { display: flex; align-items: flex-end; justify-content: center; gap: clamp(3px, 1vw, 6px); padding: 24px clamp(8px, 2vw, 16px) 0; max-width: 100%; border-bottom: 10px solid #CFC5B2; min-height: 300px; }
.spine { display: flex; flex-direction: column; align-items: center; justify-content: space-between; width: clamp(28px, 7vw, 58px); height: 280px; overflow: hidden; padding: 12px 0 10px; background: var(--cover-0); color: #fff; border-radius: 3px 3px 0 0; box-shadow: inset 4px 0 0 rgba(255,255,255,0.08), inset -4px 0 0 rgba(0,0,0,0.2); }
.spine:nth-child(2n) { height: 266px; background: #234C5C; }
.spine:nth-child(3n) { height: 272px; }
.spine-vol { flex: none; white-space: nowrap; font-size: 12px; color: #E3D3B0; writing-mode: vertical-rl; text-orientation: upright; letter-spacing: 0.02em; margin-bottom: 8px; }
.spine-title { flex: 1 1 auto; min-height: 0; font-family: var(--font-title); font-size: clamp(13px, 1.5vw, 17px); line-height: 1.15; font-weight: 700; writing-mode: vertical-rl; text-orientation: upright; letter-spacing: 0.02em; overflow: hidden; }
.spine-mark { flex: none; white-space: nowrap; font-size: 11px; color: #D9C59B; writing-mode: vertical-rl; text-orientation: upright; border-top: 1px solid rgba(214,190,140,0.6); padding-top: 6px; margin-top: 8px; }
.spines--small { min-height: 0; padding-top: 0; border-bottom-width: 8px; }
.spines--small .spine { height: 210px; width: clamp(20px, 4.2vw, 44px); }
.spines--small .spine:nth-child(2n) { height: 198px; }
.spines--small .spine-title { font-size: clamp(11px, 1.2vw, 14px); }
.spines--small .spine-vol, .spines--small .spine-mark { font-size: 10px; }
.set-format { display: inline-block; margin: 12px 0 0; font-weight: 700; font-size: 15px; letter-spacing: 0.04em; color: var(--accent); border: 1px solid var(--accent); border-radius: 999px; padding: 2px 12px; }

/* ---------- home banner */
.upcoming { padding: 32px 0 48px; }
.intro { max-width: 1080px; margin-bottom: 24px; }
.intro p { max-width: 760px; }
.intro h1 { margin-bottom: 12px; }
.intro p { color: var(--ink-2); }
.banner { position: relative; }
.banner-slides { list-style: none; margin: 0; display: grid; gap: 16px; }
.slide { display: grid; gap: 28px; background: var(--slide-bg, var(--accent)); color: #fff; border-radius: var(--radius); padding: 28px 24px; overflow: hidden; }
/* each slide takes the dominant colour of its collection cover */
.slide[data-tone="wesley"] { --slide-bg: #10284A; }
.slide[data-tone="jfb"] { --slide-bg: #0B4651; }
.slide[data-tone="cambridge"] { --slide-bg: #12305E; }
.slide[data-tone="matthew-henry"] { --slide-bg: #173D25; }
.slide[data-tone="john-gill"] { --slide-bg: #7E2F12; }
.slide[data-tone="keil-delitzsch"] { --slide-bg: #5E1014; }
.slide[data-tone="bengel"] { --slide-bg: #2D466E; }
.slide[data-tone="barnes"] { --slide-bg: #2F3D22; }
@media (min-width: 768px) {
  .slide { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: center; padding: 48px 56px; min-height: 460px; }
  .slide-art, .slide > .slide-img { order: 2; }
}
.slide-art { display: flex; justify-content: center; }
.slide-art .cover { width: min(220px, 60%); box-shadow: 0 0 0 1px rgba(255,255,255,0.15), inset 6px 0 0 rgba(0,0,0,0.18); }
.slide-art .cover--img { width: min(280px, 70%); box-shadow: 0 18px 40px rgba(0,0,0,0.35); }
.slide-img { box-shadow: 0 18px 40px rgba(0,0,0,0.35); }
.slide-art--set { flex-direction: column; align-items: center; }
.slide-art--set .spines { border-bottom-color: rgba(255,255,255,0.35); }
.slide-art--set .spine { background: #F4EFE3; color: var(--ink); }
.slide-art--set .spine:nth-child(2n) { background: #E8E0CE; }
.slide-art--set .spine-vol, .slide-art--set .spine-mark { color: #7A5F33; }
.slide-art-label { margin-top: 12px; font-weight: 700; font-size: 15px; border: 1px solid rgba(255,255,255,0.6); border-radius: 999px; padding: 2px 12px; }
.slide-body { max-width: 560px; }
.slide-badge { margin-bottom: 12px; }
.slide-title { font-size: clamp(34px, 4.6vw, 60px); line-height: 1.12; letter-spacing: -0.04em; color: #fff; margin-bottom: 18px; }
.slide-title a { color: #fff; text-decoration: none; }
.slide-title a:hover { text-decoration: underline; }
.slide-text { color: rgba(255,255,255,0.86); font-size: 17px; line-height: 1.7; }
.slide-action { margin: 8px 0 0; }
.slide :focus-visible { outline-color: #F6E7B8; }
/* enhanced carousel: all slides share one grid cell, only the active one is shown */
.banner.is-enhanced .banner-slides { grid-template-areas: "stack"; gap: 0; }
.banner.is-enhanced .slide { grid-area: stack; opacity: 0; visibility: hidden; transition: opacity var(--fade) ease, visibility 0s linear var(--fade); }
.banner.is-enhanced .slide.is-active { opacity: 1; visibility: visible; transition: opacity var(--fade) ease, visibility 0s; }
.banner-controls { display: flex; align-items: flex-start; gap: 8px; margin-top: 16px; }
.banner-controls[hidden] { display: none; }
/* pager as numbered progress segments (current one filled), arrows and pause at the side */
.banner-pager { list-style: none; display: flex; gap: 8px; margin: 0; flex: 1; min-width: 0; }
.banner-pager li { flex: 1; min-width: 0; }
.banner-btn { min-height: 44px; min-width: 44px; padding: 0 14px; font: inherit; font-size: 15px; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 999px; cursor: pointer; }
.banner-page { display: flex; gap: 8px; align-items: baseline; width: 100%; min-height: 44px; padding: 10px 0 0; font: inherit; font-size: 14px; color: var(--ink-2); text-align: left; background: none; border: 0; border-top: 3px solid var(--line); border-radius: 0; cursor: pointer; }
.banner-page-no { font-variant-numeric: tabular-nums; font-weight: 700; }
.banner-page-name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
@media (max-width: 767px) { .banner-page-name { display: none; } }
.banner-page[aria-current="true"] { color: var(--ink); border-top-color: var(--accent); }
.banner-page:hover { color: var(--ink); border-top-color: var(--ink-2); }
.banner-btn:hover { border-color: var(--accent); }
/* home: rounded card panels in a soft tone of each cover, bold title and a "more" cue (Klarna) */
.card-art { border-radius: 20px; }
.card[data-tone="wesley"] .card-art { background: #DFE5EE; }
.card[data-tone="jfb"] .card-art { background: #D9E8E6; }
.card[data-tone="cambridge"] .card-art { background: #DEE3EF; }
.card[data-tone="matthew-henry"] .card-art { background: #DEE9DD; }
.card[data-tone="john-gill"] .card-art { background: #F4E1D3; }
.card[data-tone="keil-delitzsch"] .card-art { background: #EFDCDA; }
.card[data-tone="bengel"] .card-art { background: #DFE4EE; }
.card[data-tone="barnes"] .card-art { background: #E7EAD8; }
.card-link:hover .card-art { filter: brightness(0.97); }
.card-title { font-weight: 800; letter-spacing: -0.03em; }

.upcoming--static .intro { margin-bottom: 12px; }

/* ---------- collection cards */
.card-grid { list-style: none; display: grid; gap: 20px; margin: 0; grid-template-columns: 1fr; }
@media (min-width: 560px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card[hidden] { display: none; }
/* covers sit on a quiet panel like a shelf; text stays short underneath */
.card-link { display: flex; flex-direction: column; height: 100%; color: var(--ink); text-decoration: none; }
.card-link:hover .card-title { text-decoration: underline; }
.card-art { display: flex; justify-content: center; align-items: flex-end; background: var(--tint); border-radius: var(--radius); padding: 28px 22px 26px; margin-bottom: 16px; transition: background 0.2s ease; }

.card-art .cover { width: 82%; margin: 0; }
.card-link:hover .card-art .cover--img { transform: translateY(-4px); }
.card-art .cover--img { transition: transform 0.2s ease; }
@media (prefers-reduced-motion: reduce) { .card-art, .card-art .cover--img { transition: none; } .card-link:hover .card-art .cover--img { transform: none; } }
@media (max-width: 559px) { .card-link { flex-direction: row; gap: 14px; align-items: flex-start; } .card-art { flex: none; width: 116px; padding: 10px; margin: 0; } .card-link .card-art .cover { width: 100%; } .card-link .cover { width: 104px; flex: none; padding: 10px 8px; margin: 0; } .card-link .cover.cover--img { padding: 0; } .card-link .cover-title { font-size: 14px; } .card-link .cover-en, .card-link .cover-kicker, .card-link .cover-mark { display: none; } }
.card-body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.card-title { font-size: 20px; margin: 0 0 2px; color: var(--ink); }
.card-en { font-family: var(--font-en); font-style: normal; letter-spacing: 0; font-size: 14px; color: var(--ink-2); margin: 0 0 8px; line-height: 1.45; }
.card-text { font-size: 15px; line-height: 1.6; margin: 0 0 10px; }
.card-meta { font-size: 14px; color: var(--ink-2); margin: auto 0 6px; }
.card-status { margin: 0; }

/* ---------- featured */
.featured { display: grid; gap: 32px; }
@media (min-width: 1024px) { .featured { grid-template-columns: 5fr 6fr; align-items: center; } }
.featured-art { text-align: center; }
.volume-list { list-style: none; margin: 0 0 16px; border-top: 1px solid var(--line); }
.volume-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.vol-no { color: #7A5F33; font-weight: 700; margin-right: 4px; white-space: nowrap; }
.vol-scope { color: var(--ink-2); font-size: 15px; }

/* ---------- collections index */
.filter { margin: 8px 0 16px; }
.filter[hidden] { display: none; }
.filter-label { font-weight: 600; margin-bottom: 8px; }
.filter-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-btn { min-height: 44px; padding: 0 16px; font: inherit; font-size: 16px; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 999px; cursor: pointer; }
.filter-btn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.filter-count { font-variant-numeric: tabular-nums; opacity: 0.8; }
.filter-result { margin: 12px 0 0; font-size: 15px; color: var(--ink-2); }
.filter-note { font-size: 15px; color: var(--ink-2); max-width: 760px; }
.compare-table-wrap { display: none; }
@media (min-width: 768px) { .compare-table-wrap { display: block; } .compare-cards { display: none; } }
.compare-table { width: 100%; border-collapse: collapse; background: var(--card); font-size: 15px; line-height: 1.6; }
.compare-table th, .compare-table td { text-align: left; vertical-align: top; padding: 12px; border-bottom: 1px solid var(--line); }
.compare-table thead th { font-size: 14px; color: var(--ink-2); border-bottom: 2px solid var(--ink); }
.compare-table tbody th { width: 22%; }
.compare-en, .compare-alias { display: block; font-weight: 400; font-size: 13px; color: var(--ink-2); }
.compare-en { font-family: var(--font-en); font-style: normal; letter-spacing: 0; }
.compare-table tr[hidden], .compare-cards li[hidden] { display: none; }
.compare-cards { list-style: none; margin: 0; display: grid; gap: 16px; }
@media (min-width: 768px) { .compare-cards { display: none; } }
.compare-cards li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.compare-cards h3 { margin-bottom: 0; }
.compare-cards dl { margin: 8px 0 0; }
.compare-cards dl div { padding: 6px 0; border-top: 1px solid var(--line); }
.compare-cards dt { font-size: 14px; color: var(--ink-2); }
.compare-cards dd { margin: 0; font-size: 15px; }

/* ---------- collection detail */
.collection-title { display: grid; gap: 24px; align-items: end; }
@media (min-width: 768px) { .collection-title { grid-template-columns: 1fr 200px; } }
.collection-cover .cover { max-width: 200px; }
@media (max-width: 767px) { .collection-cover { display: none; } }
.title-en { font-family: var(--font-en); font-style: normal; letter-spacing: 0; font-size: 20px; color: var(--ink-2); margin-bottom: 8px; }
.collection-scope { font-weight: 600; margin-bottom: 4px; }
.set-hero { background: var(--tint); padding: 40px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.set-hero-inner { display: grid; gap: 32px; }
@media (min-width: 1024px) { .set-hero-inner { grid-template-columns: 6fr 5fr; align-items: center; } }
.set-figure { text-align: center; }
.set-figure .spines { background: linear-gradient(#F7F3EA, #EDE6D6); border-radius: var(--radius) var(--radius) 0 0; }
.set-scope { font-weight: 600; }
.set-note { color: var(--ink-2); }
.volume-jump-title { font-weight: 600; margin-bottom: 8px; }
.volume-jump ol { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; margin: 0; }
.volume-jump a { display: flex; align-items: center; min-height: 44px; padding: 6px 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); line-height: 1.4; font-size: 15px; }
.volume-jump a:hover { border-color: var(--accent); }
.volume-cards { list-style: none; display: grid; gap: 20px; margin: 0; }
@media (min-width: 768px) { .volume-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .volume-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.volume-card { display: grid; grid-template-columns: 104px 1fr; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; scroll-margin-top: 16px; }
.volume-card:target { border-color: var(--deco); box-shadow: 0 0 0 2px var(--deco); }
.volume-card h3 { font-size: 19px; margin-bottom: 4px; }
.volume-body p { font-size: 15px; line-height: 1.65; margin-bottom: 8px; }
.volume-cover, .book-cover { display: flex; flex-direction: column; aspect-ratio: 3 / 4; padding: 10px 8px; color: #fff; background: var(--cover-0); border-radius: 3px; position: relative; text-align: center; }
.volume-cover::before, .book-cover::before { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(214,190,140,0.55); pointer-events: none; }
.vc-series { font-size: 10px; color: #E3D3B0; line-height: 1.4; }
.vc-no { margin-top: auto; font-size: 12px; color: #E3D3B0; }
.vc-title { font-family: var(--font-title); font-weight: 700; font-size: 15px; line-height: 1.3; margin-bottom: auto; }
.vc-scope { font-size: 12px; color: #EDE3CC; }
.vc-pending { font-size: 10px; color: #D9C59B; border-top: 1px solid rgba(214,190,140,0.55); padding-top: 4px; }
.guide-intro { color: var(--ink-2); max-width: 720px; }
.guide-top { display: grid; gap: 24px; margin-bottom: 32px; }
@media (min-width: 1024px) { .guide-top { grid-template-columns: 7fr 4fr; align-items: start; } }
.facts { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 20px; }
.fact { display: grid; grid-template-columns: 9em 1fr; gap: 4px 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 16px; line-height: 1.6; }
.fact:last-child { border-bottom: 0; }
.fact dt { color: var(--ink-2); font-size: 15px; }
.fact dd { margin: 0; }
@media (max-width: 559px) { .fact { grid-template-columns: 1fr; } }
.source-links { font-size: 14px; line-height: 1.55; color: var(--ink-2); border-left: 3px solid var(--deco); padding: 4px 0 4px 14px; margin-bottom: 24px; }
.source-links-title { font-weight: 700; color: var(--ink); margin-bottom: 4px; font-size: 14px; }
.source-links ul { list-style: none; margin: 0; }
.source-links li { margin-bottom: 8px; }
.source-meta { display: block; font-size: 13px; }
.guide-index { font-size: 15px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; }
.guide-index-title { font-weight: 700; margin-bottom: 8px; }
.guide-index ol { padding-left: 1.4em; margin: 0; }
.guide-index li { margin: 4px 0; }
.guide-sections { padding: 0; margin: 0; max-width: 68ch; }
.guide-section { scroll-margin-top: 16px; padding-top: 8px; }
.guide-section h3 { font-size: 24px; margin-top: 24px; }
.to-top { font-size: 14px; }
.audience-list { list-style: none; display: grid; gap: 12px; margin: 0; }
.audience-list li { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--deco); border-radius: var(--radius); padding: 12px 16px; }
.source-works { font-size: 16px; }
.bundle-summary { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; scroll-margin-top: 16px; }
.outline-table { width: 100%; border-collapse: collapse; font-size: 16px; margin-top: 8px; }
.outline-table caption { text-align: left; font-weight: 600; padding-bottom: 8px; }
.outline-table th, .outline-table td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.outline-table thead th { font-size: 14px; color: var(--ink-2); }
.other-collections { list-style: none; display: grid; gap: 8px 24px; margin: 0 0 16px; }
@media (min-width: 768px) { .other-collections { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.other-collections li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.other-scope { display: block; font-size: 14px; color: var(--ink-2); }

/* ---------- books */
.book-grid { list-style: none; display: grid; gap: 20px; margin: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .book-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.book-card-link { display: flex; flex-direction: column; gap: 10px; height: 100%; color: var(--ink); text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.book-card-link:hover { border-color: var(--accent); }
.book-card-link:hover .card-title { text-decoration: underline; }
.book-card-link .card-title { font-size: 17px; }
.book-hero { display: grid; gap: 32px; padding-bottom: 32px; }
@media (min-width: 768px) { .book-hero { grid-template-columns: minmax(220px, 4fr) 7fr; align-items: start; } }
.book-cover-col { max-width: 360px; width: 100%; margin: 0 auto; }
@media (max-width: 767px) { .book-cover-col { max-width: 240px; } }
.book-cover { padding: 28px 20px; }
.book-cover .vc-series { font-size: 15px; }
.book-cover .vc-no { font-size: 18px; }
.book-cover .vc-title { font-size: 34px; }
.book-cover .vc-scope { font-size: 15px; margin-bottom: 12px; }
.book-cover .vc-pending { font-size: 13px; padding-top: 8px; }
.book-info h1 { font-size: clamp(2rem, 4vw, 3rem); }
.spec--rows { margin-top: 24px; }
.book-names { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; counter-reset: book; }
.book-names li { counter-increment: book; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px; font-size: 16px; }
.book-names li::before { content: counter(book) ". "; color: var(--ink-2); font-size: 14px; }
.toc { padding-left: 1.4em; }
.pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin: 8px 0 16px; }
.pager a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- static pages */
.prose h2 { margin-top: 40px; }
.prose h2:first-child { margin-top: 0; }
.contact-box { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 32px; }
.contact-label { font-weight: 700; margin-bottom: 4px; }
.contact-value { font-size: 20px; }
.excerpt-pair { display: grid; gap: 16px; margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
@media (min-width: 1024px) { .excerpt-pair { grid-template-columns: 1fr 1fr; } }
.excerpt-pair figcaption { font-size: 14px; color: var(--ink-2); }
.purchase ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .banner-controls, .preview-bar, .skip-link { display: none; }
}

/* TOBESTBOOKS wordmark: the designer's brand 2안 (chocolate brown), inline SVG from src/brand.mjs */
.brand { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); }
.wordmark { display: block; width: auto; height: auto; }
.wordmark--line { width: 200px; height: auto; }
@media (max-width: 380px) { .wordmark--line { width: 168px; } }

/* ================= home redesign (2026-10-19): Duna opening scene + Klarna sections ================= */
/* opening scene: landscape fading into white, centred title and one pill action */
.upcoming { padding: 0 0 48px; overflow-x: clip; }
.hero { --hero-h: clamp(340px, 48vw, 600px); position: relative; text-align: center; padding: 56px 0 8px; }
.hero--art { padding-top: calc(var(--hero-h) * 0.74); }
.hero-img { position: absolute; top: 0; left: 0; width: 100%; height: var(--hero-h); object-fit: cover; object-position: center 100%; -webkit-mask-image: linear-gradient(to bottom, #000 30%, rgba(0,0,0,0.35) 66%, transparent 90%); mask-image: linear-gradient(to bottom, #000 30%, rgba(0,0,0,0.35) 66%, transparent 90%); }
.hero-inner { position: relative; }
.upcoming .intro { max-width: 860px; margin: 0 auto; }
.upcoming .intro h1 { text-wrap: balance; font-weight: 700; font-size: clamp(2.4rem, 6vw, 4.6rem); letter-spacing: -0.045em; line-height: 1.08; margin-bottom: 18px; }
.upcoming .intro p { max-width: 620px; margin-inline: auto; color: var(--ink-2); font-size: 18px; }
.upcoming .banner { margin-top: 16px; }

/* upcoming carousel as a rounded card with dot pager underneath */
.slide { border-radius: 28px; }
@media (min-width: 768px) { .slide { padding: 56px 64px; min-height: 480px; gap: 48px; } }
.banner-controls { justify-content: center; align-items: center; gap: 6px; margin-top: 14px; }
.banner-pager { flex: 0 1 auto; gap: 0; }
.banner-pager li { flex: none; }
.banner-page { width: 52px; justify-content: center; align-items: center; padding: 0; border: 0; }
.banner-page::before { content: ""; display: block; width: 26px; height: 6px; border-radius: 3px; background: var(--line); transition: width 0.25s ease, background 0.25s ease; }
.banner-page[aria-current="true"]::before { width: 44px; background: var(--ink); }
.banner-page:hover::before { background: var(--ink-2); }
.banner-page-no, .banner-page-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.banner-btn { min-height: 40px; padding: 0 16px; font-size: 14px; background: var(--card); border-color: var(--line); }
@media (prefers-reduced-motion: reduce) { .banner-page::before { transition: none; } }

/* trust line with a few large figures */
.home-facts { padding: 24px 0 8px; }
.home-facts-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-block: 28px; }
.home-facts-lead { margin: 0; font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.3; }
.home-facts-lead mark { background: #F6DE9B; color: inherit; padding: 0 6px; border-radius: 6px; }
.home-facts-list { list-style: none; display: flex; gap: 40px; margin: 0; padding: 0; }
.home-facts-list li { display: flex; flex-direction: column; }
.home-facts-list strong { font-size: clamp(28px, 3vw, 38px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.home-facts-list span { font-size: 14px; color: var(--ink-2); }

/* collection tiles: centred heading, tone panel, status pill on the panel, short text */
#collections .section-head { flex-direction: column; align-items: center; text-align: center; margin-bottom: 36px; }
.card-art { position: relative; padding: 28px 22px 66px; }
.card-art .card-status { position: absolute; left: 0; right: 0; bottom: 18px; margin: 0; text-align: center; }
.card-art .status-badge { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(23,18,15,0.12); }
.card-text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-body::after { content: "전집 소개 →"; font-size: 15px; font-weight: 700; margin-top: 8px; }
@media (max-width: 559px) { .card-art { padding: 10px 10px 48px; } .card-art .card-status { bottom: 10px; } .card-art .status-badge { font-size: 11px; padding: 1px 8px; } }

/* featured set: volume titles as a large grey list, the hovered one turns ink */
.featured .volume-list a { font-size: clamp(20px, 2.2vw, 26px); font-weight: 800; letter-spacing: -0.03em; color: #ABA49B; text-decoration: none; }
.featured .volume-list a:hover, .featured .volume-list a:focus-visible { color: var(--ink); }
.featured .volume-list .vol-no { font-size: 14px; font-weight: 700; color: inherit; margin-right: 6px; }

/* dark footer with a large wordmark */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.72); border-top: 0; overflow: hidden; }
.site-footer a { color: #fff; }
.site-footer .footer-name { color: #fff; }

/* the partners note follows the tinted featured set; give it its own quiet band */
#partners.section--tint { background: var(--bg); border-top: 1px solid var(--line); }

/* ================= subpages aligned with the home (2026-10-19) ================= */
/* soft tone per Wesley volume, taken from each cover */
[data-vol="1"] { --vol-tone: #DCE3EC; } [data-vol="2"] { --vol-tone: #F1DADB; } [data-vol="3"] { --vol-tone: #DCE7DE; }
[data-vol="4"] { --vol-tone: #E7DCE6; } [data-vol="5"] { --vol-tone: #D8E6EA; } [data-vol="6"] { --vol-tone: #DCE2EE; } [data-vol="7"] { --vol-tone: #E0DFF0; }
.vol-art { display: flex; justify-content: center; background: var(--vol-tone, var(--tint)); border-radius: 20px; padding: 26px 20%; }
.vol-art img { width: 100%; box-shadow: 0 10px 22px rgba(20,24,32,0.22); transition: transform 0.2s ease; }
a:hover > .vol-art img, .vol-art:hover img { transform: translateY(-4px); }
@media (prefers-reduced-motion: reduce) { .vol-art img { transition: none; } a:hover > .vol-art img, .vol-art:hover img { transform: none; } }

/* collection page: volume cards become tiles (cover panel on top, text below), no borders */
.volume-card { display: flex; flex-direction: column; gap: 14px; background: none; border: 0; border-radius: 0; padding: 0; }
.volume-card:target .vol-art { box-shadow: 0 0 0 3px var(--deco); }
.volume-card h3 { font-size: 21px; font-weight: 800; letter-spacing: -0.03em; }
.volume-body p:not(.more-link):not(.status-inline):not(.vol-scope) { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.volume-cards { gap: 36px 28px; }
@media (min-width: 1024px) { .volume-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* books list: same tiles */
.book-card-link { background: none; border: 0; padding: 0; gap: 14px; }
.book-card-link:hover { border: 0; }
.book-card-link .card-title { font-weight: 800; letter-spacing: -0.03em; }
.book-grid { gap: 36px 28px; }

/* book page: other volumes as a cover strip */
.sibling-covers { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0 0 24px; padding: 0; }
.sibling-covers a, .sibling-covers span[aria-current] { display: flex; flex-direction: column; gap: 8px; color: var(--ink); text-decoration: none; }
.sibling-img { width: 100%; height: auto; border-radius: 3px; box-shadow: 0 6px 14px rgba(20,24,32,0.18); transition: transform 0.2s ease; }
.sibling-covers a:hover .sibling-img { transform: translateY(-3px); }
.sibling-label { font-size: 13px; line-height: 1.35; font-weight: 600; }
.sibling-covers .is-current .sibling-img { outline: 3px solid var(--deco); outline-offset: 3px; }
.sibling-covers + .volume-list { display: none; }

/* text pages: section headings one step quieter than the page title */
.prose h2 { font-size: clamp(24px, 2.4vw, 30px); font-weight: 800; }

/* links that move on ("… 보기 →") read as ink actions, as on the home */
.more-link a { color: var(--ink); font-weight: 700; text-decoration: none; }
.more-link a:hover { text-decoration: underline; }
@media (min-width: 640px) { .sibling-covers { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
@media (max-width: 767px) { .volume-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; } .vol-art { padding: 16px 14%; border-radius: 16px; } .volume-card h3 { font-size: 18px; } }

/* ================= about & contact (Duna opening scene + Klarna sections, 2026-10-19) ================= */
.page-hero { position: relative; text-align: center; padding: 40px 0 56px; overflow: hidden; }
.page-hero--art { --hero-h: clamp(300px, 40vw, 520px); padding-top: calc(var(--hero-h) * 0.66); }
.page-hero-img { position: absolute; top: 0; left: 0; width: 100%; height: var(--hero-h); object-fit: cover; object-position: center 100%; -webkit-mask-image: linear-gradient(to bottom, #000 30%, rgba(0,0,0,0.35) 66%, transparent 90%); mask-image: linear-gradient(to bottom, #000 30%, rgba(0,0,0,0.35) 66%, transparent 90%); }
.page-hero--soft { background: radial-gradient(120% 90% at 50% 0%, #E6ECF4 0%, #F4EFE6 55%, var(--bg) 100%); padding-top: 32px; }
.page-hero-inner { position: relative; max-width: 860px; }
.page-hero .breadcrumbs ol { justify-content: center; }
.page-hero h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); letter-spacing: -0.045em; line-height: 1.08; margin: 6px 0 18px; text-wrap: balance; }
.page-hero .eyebrow { justify-content: center; }
.page-hero-lead { max-width: 640px; margin: 0 auto; font-size: 18px; color: var(--ink-2); text-wrap: pretty; }

/* publisher: cream badge beside a large statement */
.about-brand-inner { display: grid; gap: 32px; align-items: center; }
@media (min-width: 768px) { .about-brand-inner { grid-template-columns: auto 1fr; gap: 64px; } }
.brand-badge { display: inline-flex; align-items: center; justify-content: center; justify-self: center; margin: 0; padding: clamp(28px, 4vw, 44px) clamp(32px, 5vw, 56px); background: #C9E6E0; color: var(--accent); border-radius: 22px; }
.brand-badge .wordmark--stack { width: clamp(150px, 18vw, 220px); height: auto; }
.big-text { font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.45; text-wrap: pretty; }

/* eight set covers in one row that wraps */
.center-head { text-align: center; max-width: 760px; margin: 0 auto 36px; }
.center-head p { color: var(--ink-2); }
.cover-row { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 18px; margin: 0; padding: 0; }
@media (min-width: 1024px) { .cover-row { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
.cover-row a { display: flex; flex-direction: column; gap: 10px; color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 700; line-height: 1.35; text-align: center; }
.cover-row img { width: 100%; height: auto; border-radius: 4px; box-shadow: 0 10px 22px rgba(20,24,32,0.2); transition: transform 0.25s ease, box-shadow 0.25s ease; }
.cover-row a:hover img, .cover-row a:focus-visible img { transform: translateY(-6px) rotate(-1deg); box-shadow: 0 18px 30px rgba(20,24,32,0.26); }
.center-action { text-align: center; margin: 36px 0 0; }

/* numbered principles */
.principles { list-style: none; display: grid; gap: 18px; margin: 24px 0 0; padding: 0; }
@media (min-width: 768px) { .principles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.principles li { background: var(--tint); border-radius: 22px; padding: 28px 26px 30px; }
.principles li:nth-child(2) { background: #E7EDE4; } .principles li:nth-child(3) { background: #E6E9F2; }
.principle-no { display: block; font-size: 40px; font-weight: 800; letter-spacing: -0.04em; color: var(--deco); margin-bottom: 10px; }
.principles p { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.45; }

/* facts card */
.about-facts-inner { max-width: 860px; }
.fact-card { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 8px 28px; box-shadow: 0 14px 34px -22px rgba(23,18,15,0.35); }
.fact-card div { display: grid; grid-template-columns: 160px 1fr; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); }
.fact-card div:first-child { border-top: 0; }
.fact-card dt { color: var(--ink-2); font-size: 15px; }
.fact-card dd { margin: 0; font-weight: 600; }
@media (max-width: 559px) { .fact-card div { grid-template-columns: 1fr; gap: 2px; } }

/* dark rounded call-to-action band */
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; background: var(--ink); color: rgba(255,255,255,0.8); border-radius: 28px; padding: 40px clamp(24px, 5vw, 56px); margin-bottom: 72px; }
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { margin: 0; }

/* contact */
.mail-pill { display: inline-flex; align-items: center; gap: 12px; margin: 28px 0 0; padding: 14px 26px; background: var(--ink); border-radius: 999px; font-size: clamp(18px, 2.2vw, 24px); font-weight: 700; box-shadow: 0 14px 30px -16px rgba(23,18,15,0.6); }
.mail-pill a { color: #fff; text-decoration: none; }
.mail-pill a:hover { text-decoration: underline; }
.mail-pill svg { width: 26px; height: 26px; fill: none; stroke: #F3EAD6; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.inquiry-cards { list-style: none; display: grid; gap: 22px; margin: 0; padding: 0; }
@media (min-width: 900px) { .inquiry-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.inquiry-card { background: #E6ECF4; border-radius: 26px; padding: 30px 28px 32px; transition: transform 0.25s ease; }
.inquiry-card[data-kind="1"] { background: #F1E3DA; } .inquiry-card[data-kind="2"] { background: #E3ECE2; }
.inquiry-card:hover { transform: translateY(-4px); }
.inquiry-icon { display: inline-flex; width: 52px; height: 52px; align-items: center; justify-content: center; background: #fff; border-radius: 16px; margin-bottom: 18px; box-shadow: 0 6px 14px -8px rgba(23,18,15,0.4); }
.inquiry-icon svg { width: 28px; height: 28px; fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.inquiry-card h2, .inquiry-card h3 { font-size: 26px; margin-bottom: 10px; }
.inquiry-card p { font-size: 16px; line-height: 1.7; }
.subject-chip { display: inline-block; font-size: 14px !important; background: rgba(255,255,255,0.7); border-radius: 999px; padding: 4px 14px; margin-bottom: 12px; }
.checks { list-style: none; margin: 14px 0 0; padding: 0; }
.checks li { position: relative; padding-left: 28px; margin: 8px 0; font-size: 15px; line-height: 1.55; }
.checks li::before { content: ""; position: absolute; left: 2px; top: 0.45em; width: 14px; height: 8px; border-left: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(-45deg); }
.notice { display: flex; gap: 14px; align-items: flex-start; max-width: 860px; margin: 32px auto 0; padding: 18px 22px; border: 1px solid var(--line); border-radius: 18px; color: var(--ink-2); font-size: 15px; }
.notice svg { flex: none; width: 24px; height: 24px; fill: none; stroke: var(--deco); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* scroll reveal: only when JS runs and motion is allowed; content is visible otherwise */
@media (prefers-reduced-motion: no-preference) {
  .has-js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .has-js .reveal.is-in { opacity: 1; transform: none; }
  .has-js li.reveal:nth-child(2) { transition-delay: 0.07s; } .has-js li.reveal:nth-child(3) { transition-delay: 0.14s; }
  .has-js li.reveal:nth-child(4) { transition-delay: 0.21s; } .has-js li.reveal:nth-child(5) { transition-delay: 0.28s; }
  .has-js li.reveal:nth-child(6) { transition-delay: 0.35s; } .has-js li.reveal:nth-child(7) { transition-delay: 0.42s; }
  .has-js li.reveal:nth-child(8) { transition-delay: 0.49s; }
}
@media (prefers-reduced-motion: reduce) { .cover-row img, .inquiry-card { transition: none; } .cover-row a:hover img, .inquiry-card:hover { transform: none; } }
@media print { .reveal { opacity: 1 !important; transform: none !important; } }

/* ================= partners, help, privacy (same opening and card language as about/contact, 2026-10-19) ================= */
.hero-icon { margin: 8px 0 14px; }
.hero-icon svg { width: 56px; height: 56px; padding: 13px; background: #fff; border-radius: 18px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; box-shadow: 0 10px 24px -14px rgba(23,18,15,0.5); }
.button--small { min-height: 40px; padding: 0 20px; font-size: 15px; }

/* partners: split opening with a cascade of set covers */
.page-hero--split { text-align: left; padding-bottom: 64px; }
.split-inner { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .split-inner { grid-template-columns: 1.05fr 1fr; gap: 56px; } }
.page-hero--split .breadcrumbs ol, .page-hero--split .eyebrow { justify-content: flex-start; }
.page-hero--split .page-hero-lead { margin: 0; }
.cover-cascade { list-style: none; position: relative; margin: 0 auto; padding: 0; width: min(100%, 460px); aspect-ratio: 1.25; }
.cover-cascade li { position: absolute; width: 38%; transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.cover-cascade img { display: block; width: 100%; height: auto; border-radius: 4px; box-shadow: 0 16px 30px -10px rgba(20,24,32,0.45); }
.cover-cascade li:nth-child(1) { left: 0; top: 18%; transform: rotate(-4deg); z-index: 1; }
.cover-cascade li:nth-child(2) { left: 15.5%; top: 9%; transform: rotate(-2deg); z-index: 2; }
.cover-cascade li:nth-child(3) { left: 31%; top: 0; z-index: 5; }
.cover-cascade li:nth-child(4) { left: 46.5%; top: 9%; transform: rotate(2deg); z-index: 2; }
.cover-cascade li:nth-child(5) { left: 62%; top: 18%; transform: rotate(4deg); z-index: 1; }
@media (prefers-reduced-motion: no-preference) {
  .has-js .cover-cascade.reveal { transform: none; }
  .has-js .cover-cascade.reveal:not(.is-in) li { transform: translateX(var(--gather, 0)) translateY(12px); }
  .has-js .cover-cascade li:nth-child(1) { --gather: 82%; } .has-js .cover-cascade li:nth-child(2) { --gather: 41%; }
  .has-js .cover-cascade li:nth-child(4) { --gather: -41%; } .has-js .cover-cascade li:nth-child(5) { --gather: -82%; }
}

/* partners: figures, materials board, numbered steps */
.figure-row { list-style: none; display: grid; gap: 18px; margin: 0; padding: 0; max-width: 760px; margin-inline: auto; }
@media (min-width: 640px) { .figure-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.figure-row li { background: var(--tint); border-radius: 24px; padding: 28px 30px; text-align: center; }
.figure-row li:nth-child(2) { background: #E6ECF4; }
.figure-row p { margin: 0; font-weight: 700; color: var(--ink-2); }
.figure-row .figure-n { font-size: clamp(56px, 8vw, 84px); font-weight: 800; letter-spacing: -0.05em; line-height: 1; color: var(--ink); margin-bottom: 8px; }
.figure-n small { font-size: 0.34em; letter-spacing: 0; margin-left: 4px; color: var(--ink-2); }
.material-board { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; }
@media (min-width: 900px) { .material-board { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
.material-board a, .material-board div { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; height: 100%; padding: 22px 22px 20px; border-radius: 22px; background: var(--card); border: 1px dashed #CFC8BC; color: var(--ink-2); text-decoration: none; }
.material-board .is-ready a, .material-board .is-ready div { border: 1px solid transparent; background: #fff; color: var(--ink); box-shadow: 0 12px 28px -18px rgba(23,18,15,0.45); }
.material-board a { transition: transform 0.25s ease; } .material-board a:hover { transform: translateY(-4px); }
.material-icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.material-label { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.state-chip { margin-top: auto; font-size: 13px; font-weight: 700; border-radius: 999px; padding: 3px 12px; background: #EEEAE3; color: var(--ink-2); }
.state-chip--ready { background: #E3ECE2; color: #2E4636; }
.steps { list-style: none; display: grid; gap: 16px; margin: 24px 0 0; padding: 0; counter-reset: none; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.steps li { position: relative; display: flex; gap: 16px; align-items: flex-start; padding: 24px 22px; background: var(--tint); border-radius: 22px; }
@media (min-width: 900px) { .steps li { flex-direction: column; } }
.step-no { flex: none; display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; }
.steps p { margin: 0; font-weight: 600; line-height: 1.55; }
.mail-pill--light { margin: 0; background: #fff; box-shadow: none; font-size: clamp(16px, 2vw, 20px); }
.mail-pill--light a { color: var(--ink); }
.mail-pill--light svg { stroke: var(--ink); }

/* help: topic chips and an accordion */
.topic-chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 28px 0 0; padding: 0; }
.topic-chips a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px 9px 14px; border-radius: 999px; background: #fff; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; box-shadow: 0 6px 16px -10px rgba(23,18,15,0.45); transition: transform 0.2s ease; }
.topic-chips a:hover { transform: translateY(-2px); }
.topic-chips svg, .faq-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.faq { max-width: 900px; display: grid; gap: 14px; }
.faq-item { background: var(--tint); border-radius: 24px; scroll-margin-top: 90px; }
.faq-item:nth-child(5n+2) { background: #E6ECF4; } .faq-item:nth-child(5n+3) { background: #E7EDE4; } .faq-item:nth-child(5n+4) { background: #F1E3DA; } .faq-item:nth-child(5n+5) { background: #E6E9F2; }
.faq-item summary { display: flex; align-items: center; gap: 16px; padding: 22px 24px; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { flex: none; display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; background: #fff; border-radius: 14px; }
.faq-icon svg { width: 24px; height: 24px; }
.faq-q { flex: 1; font-size: clamp(18px, 2vw, 21px); font-weight: 700; letter-spacing: -0.02em; }
.faq-toggle { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; background: #fff; }
.faq-toggle::before, .faq-toggle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: var(--ink); border-radius: 2px; transition: transform 0.25s ease; }
.faq-toggle::after { transform: rotate(90deg); }
.faq-item[open] .faq-toggle::after { transform: rotate(0deg); }
.faq-a { padding: 0 24px 24px 84px; }
.faq-a p { margin: 0 0 12px; line-height: 1.75; }
.faq-link { margin-top: 16px !important; }
@media (max-width: 559px) { .faq-a { padding: 0 16px 20px; } .set-vs-vol { padding: 14px; } .faq-item summary { padding: 18px; gap: 12px; } }
@media (prefers-reduced-motion: no-preference) { .faq-item[open] .faq-a { animation: faq-open 0.35s ease; } }
@keyframes faq-open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.set-vs-vol { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 22px; margin: 4px 0 20px; padding: 20px; background: rgba(255,255,255,0.7); border-radius: 18px; }
.set-vs-vol figcaption { margin-top: 8px; font-size: 14px; font-weight: 700; color: var(--ink-2); text-align: center; }
.svv-set img { display: block; width: 96px; height: auto; border-radius: 3px; box-shadow: 0 10px 20px -8px rgba(20,24,32,0.45); }
.svv-arrow svg { width: 28px; height: 28px; fill: none; stroke: var(--deco); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.svv-vols { flex: 1 1 180px; min-width: 0; }
.svv-vols ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.svv-vols li { flex: 1; max-width: 56px; }
.svv-vols img { display: block; width: 100%; height: auto; border-radius: 2px; box-shadow: 0 6px 12px -6px rgba(20,24,32,0.45); }

/* privacy: contents rail and section cards */
.updated-chip { display: inline-block; margin: 22px 0 0; padding: 6px 16px; border-radius: 999px; background: #fff; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.doc-layout { display: grid; gap: 28px; }
@media (min-width: 960px) { .doc-layout { grid-template-columns: 250px 1fr; gap: 48px; align-items: start; } .doc-toc { position: sticky; top: 96px; } }
.doc-toc ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
@media (min-width: 960px) { .doc-toc ol { flex-direction: column; gap: 2px; } }
.doc-toc a { display: flex; gap: 10px; padding: 8px 14px; border-radius: 12px; color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 600; background: var(--tint); }
@media (min-width: 960px) { .doc-toc a { background: none; } }
.doc-toc a span { color: var(--deco); font-weight: 800; }
.doc-toc a:hover, .doc-toc a[aria-current="true"] { background: var(--tint); color: var(--ink); }
.doc-body { display: grid; gap: 18px; min-width: 0; }
.doc-card { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 26px clamp(20px, 3vw, 32px) 24px; scroll-margin-top: 90px; box-shadow: 0 14px 34px -26px rgba(23,18,15,0.35); }
.doc-card-head { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 16px; align-items: center; margin-bottom: 14px; }
.doc-card-head .inquiry-icon { grid-row: span 2; margin: 0; background: var(--tint); box-shadow: none; }
.doc-no { margin: 0; font-size: 13px; font-weight: 800; color: var(--deco); letter-spacing: 0.06em; }
.doc-card h2 { margin: 0; font-size: 22px; }
.doc-card > p { line-height: 1.75; }
.kv { margin: 6px 0 0; }
.kv div { display: grid; grid-template-columns: minmax(0, 220px) 1fr; gap: 6px 18px; padding: 14px 0; border-top: 1px solid var(--line); }
.kv dt { color: var(--ink-2); font-size: 15px; }
.kv dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 559px) { .kv div { grid-template-columns: 1fr; gap: 2px; } }
.off-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 14px; padding: 0; }
.off-chips li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px 9px 12px; border-radius: 999px; background: #F1E3DA; font-weight: 700; font-size: 15px; }
.off-chips svg { width: 20px; height: 20px; fill: none; stroke: #9A4B32; stroke-width: 2; stroke-linecap: round; }
.notice--top { margin: 0; max-width: none; background: #FBF7EF; }

@media (prefers-reduced-motion: reduce) { .cover-cascade li, .material-board a, .topic-chips a, .faq-toggle::before, .faq-toggle::after { transition: none; } .material-board a:hover, .topic-chips a:hover { transform: none; } }

/* 2026-10-20 owner review: banner volume count on its own line, Korean line breaking, help inquiry guide */
body { word-break: keep-all; overflow-wrap: break-word; }
.nowrap { white-space: nowrap; }
.slide-title-sub { display: block; margin-top: 6px; font-size: 0.5em; font-weight: 700; letter-spacing: -0.01em; opacity: 0.85; }
.help-inquiry .center-head .mail-pill { margin-top: 18px; }
.help-inquiry .inquiry-cards, .help-inquiry .notice { max-width: 980px; margin-left: auto; margin-right: auto; }
.help-inquiry .inquiry-card h3 { font-size: 22px; }
.help-inquiry .inquiry-card { padding: 26px 24px 28px; }
#inquiry { scroll-margin-top: 80px; }
.help-inquiry { border-top: 1px solid var(--line); margin-top: 24px; }
.mail-pill { max-width: 100%; }
.mail-pill a { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 419px) { .mail-pill { font-size: 16px; padding: 12px 18px; gap: 10px; } .mail-pill svg { width: 22px; height: 22px; } }
.material-note { margin-top: -6px; font-size: 14px; color: var(--ink-2); }
@media (min-width: 900px) { .material-board { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.credits-title { margin: 28px 0 8px; font-size: 18px; }
.rights-note { margin: 16px 0 0; padding: 12px 16px; border-left: 3px solid var(--deco); background: rgba(150,119,70,0.08); border-radius: 0 10px 10px 0; font-size: 14px; color: var(--ink-2); line-height: 1.65; }
.excerpt .rights-note { margin-top: 12px; }
.credit-people { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.credit-people b { margin-right: 10px; }
.credit-people span { color: var(--ink-2); font-size: 15px; }
.credit-order { display: inline-block; margin-top: 6px; color: var(--ink-2); font-size: 13px; }

/* ---------------------------------------------------------------- 믿음의 서가 (2026-11-10)
   The faith covers share one frame (cream paper, two-colour print, logo bottom right), so every
   cover sits in the same 2:3 box with the same edge and shadow, uncropped and with nothing on top. */
:root { --paper: #FAE4BE; --paper-ink: #4E3B28; }
.shelf-switch ul { list-style: none; display: inline-flex; gap: 4px; margin: 0 0 20px; padding: 4px; background: var(--tint); border: 1px solid var(--line); border-radius: 999px; }
.shelf-switch a { display: block; padding: 6px 16px; border-radius: 999px; color: var(--ink-2); font-weight: 600; font-size: 15px; text-decoration: none; }
.shelf-switch a:hover { color: var(--ink); }
.shelf-switch a[aria-current="page"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 4px rgba(23,18,15,0.12); }
.shelf-intro { color: var(--ink-2); margin: -8px 0 24px; }
.shelf-heading { font-size: 26px; margin: 48px 0 0; padding-top: 24px; border-top: 1px solid var(--line); }
.shelf-group + .shelf-group { margin-top: 40px; }
.shelf-group-title { font-size: 19px; margin: 0 0 16px; }
.shelf-group-title a { color: var(--ink); }
.section--shelf { background: linear-gradient(180deg, #FBF6EE 0%, #fff 100%); }
.shelf-grid { list-style: none; margin: 0; display: grid; gap: 32px 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
@media (min-width: 560px) { .shelf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .shelf-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 28px; } }
.shelf-link { display: flex; flex-direction: column; gap: 14px; color: var(--ink); text-decoration: none; }
.shelf-link:hover .shelf-title { text-decoration: underline; }
.shelf-link:hover .shelf-cover { transform: translateY(-3px); box-shadow: 0 1px 0 rgba(23,18,15,0.08), 0 16px 28px rgba(23,18,15,0.22); }
.shelf-cover { display: block; aspect-ratio: 2 / 3; background: var(--paper); border-radius: 2px; overflow: hidden; box-shadow: 0 0 0 1px rgba(23,18,15,0.10), 0 10px 22px rgba(23,18,15,0.16); transition: transform 200ms ease, box-shadow 200ms ease; }
.shelf-cover img { display: block; width: 100%; height: 100%; object-fit: contain; }
.shelf-cover--pending { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 18% 12%; text-align: center; color: var(--paper-ink); }
.shelf-cover--pending::before { content: ""; width: 28px; border-top: 2px solid rgba(78,59,40,0.45); margin-bottom: 6px; }
.sc-title { font-weight: 800; font-size: clamp(15px, 1.7vw, 20px); line-height: 1.35; word-break: keep-all; }
.sc-sub { font-size: 13px; line-height: 1.4; word-break: keep-all; }
.sc-pending { margin-top: auto; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; color: rgba(78,59,40,0.75); }
.shelf-text { display: flex; flex-direction: column; gap: 4px; }
.shelf-title { font-size: 17px; line-height: 1.4; margin: 0; word-break: keep-all; }
.shelf-sub { font-size: 14px; color: var(--ink-2); word-break: keep-all; }
.shelf-by { font-size: 14px; color: var(--ink-2); }
.shelf-summary { font-size: 14px; line-height: 1.6; color: var(--ink); margin-top: 4px; }
.shelf-status { font-size: 14px; font-weight: 600; color: var(--accent); margin-top: 4px; }
.book-hero--faith .book-cover-col .shelf-cover { max-width: 360px; margin: 0 auto; }
.book-hero--faith .shelf-cover--pending .sc-title { font-size: 24px; }
.book-subtitle { font-size: 19px; color: var(--ink-2); margin: -4px 0 8px; word-break: keep-all; }
.book-byline { font-size: 16px; margin: 0 0 8px; }
/* Faith banner slide: the cover stands on cream paper; badge and button switch to dark-on-light. */
.slide[data-tone="faith"] { --slide-bg: var(--paper); color: var(--ink); }
.slide[data-tone="faith"] a, .slide[data-tone="faith"] .slide-title { color: var(--ink); }
.slide[data-tone="faith"] .slide-text { color: var(--ink-2); }
.slide[data-tone="faith"] .status-badge--light { color: var(--accent); background: rgba(255,255,255,0.7); border-color: #DDC8B8; }
.slide[data-tone="faith"] .button--light { background: var(--accent); color: #fff; }
.slide[data-tone="faith"] .button--light:hover { background: #5E3A21; }
.slide-art--book { display: flex; justify-content: center; }
.slide-cover { display: block; width: min(240px, 58%); height: auto; aspect-ratio: 2 / 3; object-fit: contain; border-radius: 2px; box-shadow: 0 0 0 1px rgba(23,18,15,0.10), 0 18px 36px rgba(23,18,15,0.24); }
/* Showcase row: the chosen faith books side by side, centred, same width at every size. */
.shelf-grid--row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 14px; max-width: 880px; margin: 0 auto; }
@media (min-width: 768px) { .shelf-grid--row { gap: 40px 36px; } }
@media (max-width: 559px) { .shelf-grid--row .shelf-title { font-size: 15px; } .shelf-grid--row .shelf-summary, .shelf-grid--row .shelf-by { display: none; } }
.shelf-series { font-size: 13px; font-weight: 600; color: var(--ink-2); letter-spacing: 0.02em; }
.series-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .series-links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.series-links a { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; background: var(--card); }
.series-links a:hover { border-color: var(--accent); }
.series-links b { font-size: 18px; }
.series-links span { font-size: 15px; color: var(--ink-2); }
