/* 안나 카레니나 — 이 작품 전용 스타일. 공통 토큰은 assets/site.css 를 따른다. */
.part-section{padding:28px 0;border-top:1px solid var(--border)}
.part-heading{display:grid;grid-template-columns:1fr;gap:10px}
.part-heading h2{margin:0 0 6px}
.part-heading p{margin:0 0 18px;color:var(--ink-soft)}
.chapter-list{display:flex;flex-wrap:wrap;gap:8px 12px;padding:0;margin:0;list-style:none}
.chapter-list a{display:block;padding:8px 12px;border:1px solid var(--border);border-radius:8px;font-size:.92rem}
.chapter-list a:hover{border-color:var(--accent);color:var(--accent)}
.chapter-body{overflow-wrap:anywhere}
.chapter-body .line-emph{text-indent:0;text-align:center;letter-spacing:.06em;margin:2em 0}
.chapter-body blockquote p{text-indent:0;margin:0 0 .9em}
.chapter-body blockquote p:last-child{margin-bottom:0}
.editorial-notes{max-width:680px;margin:48px auto 0;font-size:.9rem}
.editorial-notes summary{cursor:pointer;padding:16px 18px;background:var(--bg-soft);border:1px solid var(--border);border-radius:8px;list-style:none}
.editorial-notes summary::-webkit-details-marker{display:none}
.editorial-notes summary::before{content:"＋ ";color:var(--accent)}
.editorial-notes[open] summary::before{content:"－ "}
.editorial-notes h2{margin:28px 0 12px;font-size:1rem;letter-spacing:.12em;color:var(--accent)}
.editorial-notes ol{padding-left:1.4em;line-height:1.9}
.editorial-notes li{margin-bottom:.5em}
.source-note{max-width:760px;margin:0 auto}
.source-note ul{padding-left:1.2em;line-height:2}
.source-note li{margin-bottom:.4em}
.source-note strong{color:var(--accent);margin-right:.4em}
.glossary-body{max-width:860px;margin:0 auto;font-size:1rem;line-height:1.95}
.glossary-body h2{margin:48px 0 14px;padding-bottom:10px;border-bottom:1px solid var(--border);font-size:1.3rem}
.glossary-body h3{margin:32px 0 10px;font-size:1.08rem;color:var(--accent)}
.glossary-body hr{border:0;border-top:1px solid var(--border);margin:40px 0}
.glossary-body ol,.glossary-body ul{padding-left:1.4em}
.glossary-body li{margin-bottom:.4em}
.glossary-body blockquote{margin:1.6em 0;padding:4px 0 4px 20px;border-left:3px solid var(--accent);color:var(--ink-soft)}
.glossary-body blockquote p{margin:0 0 .6em}
.glossary-body code{background:var(--bg-soft);border:1px solid var(--border);border-radius:5px;padding:1px 6px;font-size:.88em}
.table-scroll{overflow-x:auto;margin:20px 0;border:1px solid var(--border);border-radius:var(--radius);background:var(--card-bg)}
.glossary-body table{width:100%;border-collapse:collapse;font-size:.92rem;min-width:520px}
.glossary-body th,.glossary-body td{padding:10px 14px;border-bottom:1px solid var(--border);text-align:left;vertical-align:top}
.glossary-body thead th{background:var(--bg-soft);font-size:.85rem;letter-spacing:.04em;white-space:nowrap}
.glossary-body tbody tr:last-child td{border-bottom:0}
@media(max-width:700px){
  .chapter-list{gap:6px 8px}
  .chapter-list a{padding:7px 10px;font-size:.86rem}
  .hero h1{font-size:2.6rem}
}

/* ===== 삽화 (2026-09 추가) ===== */
.chapter-figure{max-width:760px;margin:0 auto 40px}
.chapter-figure img{width:100%;height:auto;display:block;border-radius:var(--radius);box-shadow:var(--shadow-lg);border:1px solid var(--border)}
.chapter-body .chapter-figure{max-width:100%;margin:2.6em auto 2.8em}
.chapter-figure figcaption{
  font-family:var(--sans);
  font-size:.84rem;
  line-height:1.7;
  letter-spacing:.01em;
  color:var(--accent);
  text-align:center;
  margin-top:12px;
  text-indent:0;
}
.chapter-figure figcaption::before{content:"— ";opacity:.65}
.chapter-figure figcaption::after{content:" —";opacity:.65}

/* 표지·부 표지 */
.ak-hero{position:relative;overflow:hidden;padding:0;border-bottom:1px solid var(--border)}
.ak-hero-stage{position:absolute;inset:0;z-index:0}
.ak-hero-stage img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity 1.6s ease;transform:scale(1.04)}
.ak-hero-stage img.is-active{opacity:1;animation:akDrift 18s ease-in-out infinite alternate}
@keyframes akDrift{from{transform:scale(1.04)}to{transform:scale(1.12)}}
.ak-hero-veil{position:absolute;inset:0;z-index:1;background:
  linear-gradient(180deg,rgba(18,16,12,.62),rgba(18,16,12,.42) 45%,rgba(18,16,12,.78)),
  radial-gradient(ellipse at 50% 30%,rgba(0,0,0,.05),rgba(0,0,0,.35) 70%)}
.ak-hero .wrap{position:relative;z-index:2;padding-top:110px;padding-bottom:92px;text-align:center}
.ak-hero .eyebrow{color:#e6d6b6}
.ak-hero h1{color:#fdfaf3;text-shadow:0 4px 26px rgba(0,0,0,.45)}
.ak-hero p.lead{color:rgba(253,250,243,.92);text-shadow:0 2px 16px rgba(0,0,0,.45)}
.ak-hero .btn-outline{color:#fdfaf3;border-color:rgba(253,250,243,.55)}
.ak-hero .btn-outline:hover{border-color:#fdfaf3;background:rgba(253,250,243,.12)}
.ak-hero-caption{position:relative;z-index:2;margin:0;padding:0 0 26px;text-align:center;
  font-family:var(--sans);font-size:.8rem;letter-spacing:.04em;color:rgba(253,250,243,.72)}
@media(prefers-reduced-motion:reduce){.ak-hero-stage img.is-active{animation:none}}

.part-figure{margin:0 0 22px;max-width:760px}
.part-figure img{width:100%;height:auto;display:block;border-radius:var(--radius);border:1px solid var(--border);box-shadow:var(--shadow)}
.part-figure figcaption{font-family:var(--sans);font-size:.82rem;color:var(--accent);margin-top:10px;letter-spacing:.01em}

/* 인물 스트립 */
.ak-people{padding:44px 0 8px;border-top:1px solid var(--border)}
.ak-people .section-kicker{font-family:"Helvetica Neue",Arial,sans-serif;font-size:.74rem;letter-spacing:.24em;color:var(--accent);text-transform:uppercase}
.ak-people h2{margin:10px 0 6px}
.ak-people p.sub{margin:0 0 22px;color:var(--ink-soft)}
.ak-people-rail{display:flex;gap:16px;overflow-x:auto;padding:4px 2px 18px;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch}
.ak-people-rail::-webkit-scrollbar{height:8px}
.ak-people-rail::-webkit-scrollbar-thumb{background:var(--border);border-radius:8px}
.ak-person{flex:0 0 152px;scroll-snap-align:start;text-decoration:none;color:inherit}
.ak-person img{width:152px;height:200px;object-fit:cover;border-radius:10px;border:1px solid var(--border);box-shadow:var(--shadow);filter:saturate(.92);transition:transform .35s ease,filter .35s ease}
.ak-person:hover img{transform:translateY(-5px);filter:saturate(1.02)}
.ak-person span{display:block;margin-top:10px;font-family:var(--sans);font-size:.82rem;line-height:1.5;color:var(--ink-soft);text-align:center}
.ak-person:hover span{color:var(--accent)}

/* 등장인물 페이지 초상 갤러리 */
.ak-portraits{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:18px;margin:26px 0 34px;padding:0;list-style:none}
.ak-portraits li{margin:0}
.ak-portraits figure{margin:0}
.ak-portraits img{width:100%;height:auto;aspect-ratio:3/4;object-fit:cover;border-radius:10px;border:1px solid var(--border);box-shadow:var(--shadow)}
.ak-portraits figcaption{font-family:var(--sans);font-size:.8rem;line-height:1.5;color:var(--ink-soft);margin-top:8px;text-align:center}
.ak-portraits figcaption em{display:block;font-style:normal;font-size:.74rem;color:var(--accent);margin-top:2px}

@media(max-width:700px){
  .ak-hero .wrap{padding-top:84px;padding-bottom:70px}
  .ak-person,.ak-person img{flex-basis:128px;width:128px}
  .ak-person img{height:170px}
  .chapter-figure figcaption{font-size:.8rem}
}


/* ===== 인물 스트립 좌우 버튼 · 캡션 페이드 (2026-09 보완) ===== */
.ak-rail-shell{position:relative;display:flex;align-items:center;gap:8px}
.ak-rail-shell .ak-people-rail{flex:1;min-width:0}
.ak-rail-btn{
  flex:0 0 auto;width:38px;height:38px;border-radius:50%;
  border:1px solid var(--border);background:var(--card-bg);color:var(--accent);
  display:flex;align-items:center;justify-content:center;cursor:pointer;
  box-shadow:var(--shadow);transition:background .2s ease,border-color .2s ease,opacity .2s ease
}
.ak-rail-btn svg{width:18px;height:18px}
.ak-rail-btn:hover:not(:disabled){border-color:var(--accent);background:var(--bg-soft)}
.ak-rail-btn:disabled{opacity:.28;cursor:default}
.ak-hero-caption{transition:opacity .5s ease}
.ak-hero-caption.is-fading{opacity:0}
@media(max-width:700px){.ak-rail-btn{display:none}}

/* ===== 소개 영상 (2026-09) ===== */
.ak-video-toggle{display:inline-flex;align-items:center;gap:8px;cursor:pointer;font:inherit}
.ak-video-icon{width:15px;height:15px;flex:0 0 auto}
.ak-hero .ak-video-toggle.is-active{background:rgba(253,250,243,.16);border-color:#fdfaf3}
.ak-video-panel{max-width:880px;margin:30px auto 0;opacity:0;transform:translateY(10px);transition:opacity .32s ease,transform .32s ease}
.ak-video-panel.is-open{opacity:1;transform:none}
.ak-video-frame{position:relative;aspect-ratio:16/9;border-radius:12px;overflow:hidden;background:#000;
  box-shadow:0 24px 60px rgba(0,0,0,.45);border:1px solid rgba(253,250,243,.18)}
.ak-video-frame video{position:absolute;inset:0;width:100%;height:100%;display:block;background:#000}
.ak-video-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px;
  font-family:var(--sans);font-size:.8rem;color:rgba(253,250,243,.75);text-align:left}
.ak-video-close{font:inherit;font-size:.8rem;color:#fdfaf3;background:transparent;border:1px solid rgba(253,250,243,.4);
  border-radius:999px;padding:4px 14px;cursor:pointer}
.ak-video-close:hover{border-color:#fdfaf3;background:rgba(253,250,243,.1)}
@media(max-width:700px){
  .ak-video-panel{margin-top:22px}
  .ak-video-frame{border-radius:8px}
  .ak-video-meta{font-size:.74rem}
}
.ak-video-toggle .ak-icon-close{display:none}
.ak-video-toggle.is-active .ak-icon-play{display:none}
.ak-video-toggle.is-active .ak-icon-close{display:block}
