/* 새 디자인 공통 스타일. 색은 theme.css의 변수만 쓴다. generate.py의 _v2_page가 만드는 페이지가 쓴다. */
:root { --serif:"KoPubWorld Batang",serif; --sans:"Space Grotesk","KoPubWorld Dotum",sans-serif;
  --pad:clamp(16px,4vw,48px); }
* { box-sizing:border-box; }
html,body { margin:0; }
body { background:var(--bg); color:var(--ink); font-family:var(--sans); -webkit-font-smoothing:antialiased; overflow-x:hidden; word-break:keep-all; line-height:1.55; }
a { color:inherit; text-decoration:none; }
.bar { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; padding:18px var(--pad); font-size:13px; }
.bar nav { display:flex; gap:clamp(12px,2vw,28px); white-space:nowrap; }
.bar nav a { color:var(--soft); }
.bar nav a:hover { color:var(--ink); text-decoration:underline; text-underline-offset:4px; }
.logo { font-family:var(--serif); font-weight:700; font-size:17px; display:flex; align-items:center; gap:8px; }
.logo::before { content:""; width:9px; height:9px; border-radius:50%; background:var(--yellow); box-shadow:0 0 0 1px var(--ink) inset; }
.bar .right { justify-self:end; display:flex; align-items:center; gap:10px; min-width:0; }
@media (max-width:720px) {
  .bar { grid-template-columns:auto 1fr; row-gap:12px; }
  .bar nav { grid-column:1/-1; grid-row:2; overflow-x:auto; scrollbar-width:none; }
  .bar .right { grid-column:1/-1; grid-row:3; justify-self:stretch; }
  .bar .right .chip { display:none; }
}
.hero { text-align:center; padding:clamp(28px,4vw,56px) 20px clamp(28px,3vw,40px); }
.eyebrow { font-size:11px; font-weight:700; letter-spacing:.14em; color:var(--muted); margin:0 0 14px; }
.hero h1 { font-family:var(--serif); font-weight:500; font-size:clamp(28px,4vw,48px); line-height:1.3; letter-spacing:-.02em; margin:0; }
.hero p.lead { max-width:560px; margin:16px auto 0; font-size:15px; color:var(--soft); }
.hero p.lead strong { color:var(--ink); background:linear-gradient(transparent 60%, var(--yellow) 60%); }
.tabs { margin-top:24px; display:inline-flex; gap:6px; flex-wrap:wrap; justify-content:center; }
.tabs a { font-size:13px; font-weight:700; padding:9px 18px; border-radius:99px; border:1px solid var(--border); }
.tabs a:hover { border-color:var(--ink); }
.tabs a.on { background:var(--yellow); border-color:var(--yellow); color:var(--on-yellow); }
main section { max-width:1120px; margin:0 auto; padding:clamp(40px,6vw,72px) var(--pad) 0; }
h2 { font-family:var(--serif); font-weight:700; font-size:clamp(20px,2.4vw,26px); margin:0 0 6px; }
.sub { margin:0 0 24px; font-size:13px; color:var(--muted); }
ol { list-style:none; margin:0; padding:0; }
.cv { display:block; flex:none; background:var(--ph); overflow:hidden; }
.cv img { display:block; width:100%; height:100%; object-fit:cover; }
.strip { display:flex; gap:6px; margin-top:10px; overflow:hidden; }
.strip .cv { width:44px; height:64px; }
.nocv { display:flex; height:100%; align-items:center; justify-content:center; padding:6px; font-family:var(--serif); font-size:11px; text-align:center; color:var(--soft); }
h3 { font-family:var(--serif); font-weight:700; margin:0; line-height:1.35; }
h3 a:hover, .who a:hover { text-decoration:underline; text-underline-offset:3px; }
.au { margin:2px 0 0; font-size:12px; color:var(--muted); }
.who { margin:8px 0 0; font-size:12px; color:var(--soft); line-height:1.7; }
.rk { font-weight:700; font-size:13px; color:var(--muted); font-variant-numeric:tabular-nums; }
.faces { display:flex; align-items:center; flex-wrap:wrap; row-gap:4px; padding-left:8px; }
.av { position:relative; flex:none; width:30px; height:30px; border-radius:50%; overflow:hidden; background:var(--ph); border:2px solid var(--bg); margin-left:-8px; display:inline-flex; align-items:center; justify-content:center; }
.av i { font-style:normal; font-size:11px; font-weight:700; color:var(--ph-ink); }
.av img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:50% 20%; }
.av.more { font-size:10px; font-weight:700; color:var(--soft); }
.cnt { font-size:12px; font-weight:700; margin:0 16px 0 -8px; background:var(--yellow); color:var(--on-yellow); padding:2px 8px; border-radius:99px; }
.top3 { display:grid; grid-template-columns:repeat(3,1fr); gap:clamp(16px,2.5vw,32px); }
.top3 li { display:flex; gap:16px; min-width:0; }
.top3 .cv { aspect-ratio:2/2.9; width:38%; max-width:150px; align-self:flex-start; }
.top3 .tx { min-width:0; flex:1; }
.top3 .rk { display:inline-block; font-size:12px; letter-spacing:.1em; color:var(--on-yellow); background:var(--yellow); border-radius:99px; padding:2px 10px; margin-bottom:8px; }
.top3 .rk::before { content:"TOP "; }
.top3 h3 { font-size:clamp(18px,2vw,22px); }
.top3 .n { margin:10px 0 8px; font-size:13px; font-weight:700; }
.top3 .av { width:36px; height:36px; }
.list { display:grid; grid-template-columns:repeat(2,1fr); column-gap:clamp(24px,4vw,56px); margin-top:clamp(32px,4vw,48px); border-top:1px solid var(--ink); }
.list li { display:flex; gap:14px; padding:16px 0; border-bottom:1px solid var(--line); min-width:0; }
.list .rk { width:22px; flex:none; padding-top:2px; }
.list .cv { width:60px; height:87px; }
.list .tx { min-width:0; flex:1; }
.list h3 { font-size:16px; }
.list .faces { margin-top:8px; }
.list .who { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
@media (max-width:820px) {
  .top3 { grid-template-columns:1fr; }
  .list { grid-template-columns:1fr; }
}
.grps { display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:8px; }
.grp { border:1px solid var(--border); border-radius:12px; padding:11px 14px; display:flex; flex-direction:column; transition:transform .15s; }
.grp:hover { transform:translateY(-2px); }
.grp b { font-family:var(--serif); font-size:15px; }
.grp small { font-size:11px; opacity:.75; }
.people { display:grid; grid-template-columns:repeat(auto-fill,minmax(170px,1fr)); gap:4px 12px; }
.person { display:flex; align-items:center; gap:10px; padding:7px 8px; border-radius:99px; min-width:0; }
.person:hover { background:var(--hover); }
.av.lg { width:42px; height:42px; margin:0; border:0; }
.av.lg i { font-size:14px; }
.av.xl { width:64px; height:64px; margin:0; border:0; }
.av.xl i { font-size:20px; }
.hid { display:none !important; }
.lang { font-size:12px; font-weight:700; white-space:nowrap; text-decoration:underline; text-underline-offset:3px; }
small.ko { font-family:var(--sans); font-size:12px; font-weight:400; color:var(--muted); }
/* 작가 목록(/author/) 카드 — 대표작 표지 3권을 겹쳐 세운다 */
.cards { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:clamp(12px,2vw,20px); }
.card { position:relative; display:flex; flex-direction:column; min-width:0; padding:16px 16px 18px; border:1px solid var(--border); border-radius:14px; transition:transform .15s; }
.card:hover { transform:translateY(-2px); border-color:var(--ink); }
.card .fan { display:flex; justify-content:center; align-items:flex-end; height:132px; margin-bottom:14px; }
.card .fan .cv { width:84px; height:122px; border-radius:3px; box-shadow:0 2px 8px rgba(0,0,0,.25); }
.card .fan .cv + .cv { margin-left:-26px; }
.card .fan .cv:nth-child(1) { transform:rotate(-6deg); transform-origin:bottom right; }
.card .fan .cv:nth-child(2) { position:relative; z-index:1; height:132px; width:90px; }
.card .fan .cv:nth-child(3) { transform:rotate(6deg); transform-origin:bottom left; }
.card .rk { position:absolute; top:12px; left:14px; font-size:12px; }
.card h3 { font-size:17px; }
.card .meta { margin:4px 0 0; font-size:12px; font-weight:700; color:var(--soft); }
.card .au { margin-top:6px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
