/*
Theme Name: Literature Inn
Description: Custom theme for Literature Inn. Design modelled on LitCharts (search hero, category cards) and Interesting Literature (article feed). Built 2026-11-21.
Version: 1.0.0
Text Domain: literature-inn
*/
*{margin:0;padding:0;box-sizing:border-box}
body{font-family:-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;color:#1c1c1c;background:#f4f4f2}
a{color:#1a56db;text-decoration:none}
a:hover{text-decoration:underline}
.wrap{max-width:1120px;margin:0 auto;padding:0 20px}
/* header */
header.site{background:#fff;border-bottom:1px solid #e3e3e0}
header.site .wrap{display:flex;align-items:center;gap:28px;min-height:64px;flex-wrap:wrap;padding-top:8px;padding-bottom:8px}
.logo{font-family:Georgia,"Times New Roman",serif;font-size:25px;font-weight:700;color:#0d4f4a;white-space:nowrap}
.logo:hover{text-decoration:none}
.logo .bars{display:inline-flex;gap:2px;margin-right:8px}
.logo .bars i{display:inline-block;width:5px}
.logo .bars i:nth-child(1){height:10px;background:#2a9d8f}
.logo .bars i:nth-child(2){height:15px;background:#e9c46a}
.logo .bars i:nth-child(3){height:12px;background:#e4572e}
nav.main{display:flex;gap:20px;font-size:15px;flex-wrap:wrap}
nav.main a{color:#222;font-weight:600}
nav.main ul{list-style:none;display:flex;gap:20px;flex-wrap:wrap}
.headersearch{margin-left:auto}
.headersearch input{padding:8px 10px;border:1px solid #ccc;border-radius:6px;font-size:14px;width:170px}
.headersearch button{background:#111;color:#fff;border:0;border-radius:6px;padding:9px 14px;font-size:14px;font-weight:600;cursor:pointer}
/* hero */
.hero{background:#0d4f4a;color:#fff;padding:44px 0 42px}
.hero .hgrid{display:grid;grid-template-columns:1.25fr .85fr;gap:44px;align-items:center}
.hero .eyebrow{font-size:12.5px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:#9fd8cf;margin-bottom:14px}
.hero h1{font-family:Georgia,serif;font-weight:600;font-size:41px;line-height:1.22;margin-bottom:12px}
.hero .sub{color:#cfe6e2;font-size:16.5px;line-height:1.55;margin-bottom:24px;max-width:520px}
.hero .chips{display:flex;gap:9px;flex-wrap:wrap}
.hero .chips a{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.35);color:#fff;border-radius:20px;padding:7px 14px;font-size:13.5px;font-weight:600}
.hero .chips a:hover{background:rgba(255,255,255,.22);text-decoration:none}
.herocard{background:#fff;color:#1c1c1c;border-radius:10px;padding:18px 20px 10px}
.herocard h3{font-size:15px;font-weight:800;letter-spacing:.02em;color:#0d4f4a;text-transform:uppercase;margin-bottom:4px}
.herocard .lrow{padding:11px 0}
.herocard .lrow img,.herocard .lrow .noimg{width:84px;height:58px}
.herocard .lrow h4{font-size:15.5px}
/* compact rows */
.panel{background:#fff;border:1px solid #e6e6e2;border-radius:8px;padding:8px 22px}
.lrow{display:flex;gap:16px;padding:16px 0;border-bottom:1px solid #eee;align-items:flex-start}
.lrow:last-child{border-bottom:0}
.lrow img{width:148px;height:100px;object-fit:cover;border-radius:8px;flex:none}
.lrow .noimg{width:148px;height:100px;border-radius:8px;background:#e7f4ec;color:#0d4f4a;font-family:Georgia,serif;font-size:24px;display:flex;align-items:center;justify-content:center;flex:none}
.lrow h4{font-size:18px;line-height:1.35}
.lrow h4 a{color:#123}
.lrow .meta{font-size:13px;color:#777;margin-top:4px}
.rail h3{font-size:17px;font-weight:800;margin:0 0 6px}
.rail .panel{padding:4px 18px}
.rail .lrow img,.rail .lrow .noimg{width:108px;height:74px}
.rail .lrow h4{font-size:15.5px}
.rail .subbox{background:#fff;border:1px solid #e6e6e2;border-radius:8px;padding:20px;margin-top:18px}
.rail .subbox h4{font-size:16px;margin-bottom:8px}
.rail .subbox p{font-size:13.5px;color:#555;line-height:1.5;margin-bottom:12px}
.rail .subbox input{width:100%;padding:10px;border:1px solid #ccc;border-radius:5px;margin-bottom:10px;font-size:14px}
.rail .subbox button{width:100%;background:#222;color:#fff;border:0;border-radius:5px;padding:11px;font-size:14.5px;font-weight:700;cursor:pointer}
.authchips{display:flex;flex-wrap:wrap;gap:8px}
.authchips a{background:#fff;border:1px solid #d8d8d2;border-radius:20px;padding:7px 13px;font-size:13.5px;font-weight:600;color:#234}
.authchips a:hover{border-color:#0d4f4a;color:#0d4f4a;text-decoration:none}
.sidecol{display:flex;flex-direction:column}
.qbox{background:#f7faf8;border:1px solid #e2eae4;border-radius:8px;padding:18px;margin-top:16px}
.sidecol .toc + .qbox{margin-top:16px}
.sidecol > :first-child{margin-top:0}
.qbox h5{font-size:12.5px;letter-spacing:.07em;text-transform:uppercase;color:#0d4f4a;margin-bottom:10px}
.qbox li{list-style:none;font-size:14px;margin:9px 0;line-height:1.45}
.qbox li a{color:#234}
.qbox .moreq{font-size:13px;color:#777;margin-top:10px}
.relsec{max-width:820px;margin-top:38px;border-top:2px solid #0d4f4a;padding-top:18px}
.relsec h2{font-size:20px;font-weight:800;margin-bottom:10px}
.relsec .panel{border:0;padding:0}
/* category cards */
.cats{background:#fff;padding:34px 0 8px}
.cats h2,.recent h2,.latest h2,.archivehead h1{font-size:21px;font-weight:800;margin-bottom:16px}
.catgrid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.cat{background:#e7f4ec;border-radius:10px;padding:20px 18px;display:block}
.cat:hover{text-decoration:none}
.cat .ic{font-family:Georgia,serif;font-size:22px;color:#0d4f4a}
.cat h3{font-size:17px;margin:8px 0 5px;color:#123}
.cat p{font-size:13.5px;color:#445;line-height:1.45}
/* guide cards */
.recent{background:#fff;padding:26px 0 36px}
.ggrid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}
.guide{border:1px solid #e2e2de;border-radius:10px;padding:18px}
.glabel{font-size:11.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#0d4f4a;background:#e7f4ec;border-radius:4px;padding:3px 8px}
.guide h4{font-size:16.5px;margin:10px 0 6px}
.guide h4 a{color:#123}
.guide p{font-size:14px;color:#444;line-height:1.55}
/* latest feed */
.latest{padding:34px 0 10px}
.latest .cols{display:grid;grid-template-columns:1fr 320px;gap:36px;align-items:start}
.post{background:#fff;border:1px solid #e6e6e2;border-radius:6px;padding:24px 26px;margin-bottom:18px}
.articleimg{width:100%;height:auto;border-radius:8px;margin:4px 0 20px;display:block}
.articlewrap.hasside .relsec{max-width:790px;margin-left:0}
.post h3{font-size:23px;line-height:1.3}
.post h3 a{color:#111}
.byline{color:#666;font-size:13.5px;margin:7px 0 10px}
.post p{font-size:15.5px;line-height:1.65;color:#2b2b2b}
.more{display:inline-block;margin-top:10px;font-size:14.5px;font-weight:600}
.side .subbox{background:#fff;border:1px solid #e6e6e2;border-radius:6px;padding:20px}
.side .subbox h4{font-size:16px;margin-bottom:8px}
.side .subbox p{font-size:13.5px;color:#555;line-height:1.5;margin-bottom:12px}
.side input{width:100%;padding:10px;border:1px solid #ccc;border-radius:5px;margin-bottom:10px;font-size:14px}
.side button{width:100%;background:#222;color:#fff;border:0;border-radius:5px;padding:11px;font-size:14.5px;font-weight:700;cursor:pointer}
.pagination{margin:10px 0 30px;font-size:15px}
.pagination a,.pagination span{margin-right:8px}
footer.site{background:#fff;border-top:1px solid #e3e3e0;margin-top:36px;padding:26px 0;color:#666;font-size:13.5px}
footer.site a{color:#666}
/* archive */
.archivehead{background:#fff;padding:30px 0 6px}
.archivehead p{color:#555;font-size:15px;margin-bottom:14px}
/* article */
.articlewrap{background:#fff;border-top:1px solid #e3e3e0;padding:30px 0 44px}
.crumb{font-size:13.5px;color:#777;margin-bottom:14px}
.articlewrap h1{font-family:Georgia,serif;font-size:34px;line-height:1.25;color:#123;max-width:760px}
.abyline{color:#666;font-size:14px;margin:10px 0 20px}
.acols{display:grid;grid-template-columns:1fr 250px;gap:40px;align-items:start}
@media(min-width:901px){
 .acols .sidecol{grid-column:2;grid-row:1}
 .acols .abody{grid-column:1;grid-row:1}
}
.abody.solo{max-width:820px}
.articlewrap.issolo .wrap{max-width:860px}
@media(min-width:1300px){.articlewrap.hasside .wrap{margin-left:calc((100% - 1120px)/2 + 70px);margin-right:auto}}
@media(max-width:900px){.acols{grid-template-columns:1fr}.articlewrap.hasside .relsec{margin-left:0;max-width:820px}}
.toc{background:#f7faf8;border:1px solid #e2eae4;border-radius:8px;padding:18px}
.toc h5{font-size:12.5px;letter-spacing:.07em;text-transform:uppercase;color:#0d4f4a;margin-bottom:10px}
.toc li{list-style:none;font-size:14px;margin:8px 0}
.toc li a{color:#234}
.glance{background:#e7f4ec;border-radius:8px;padding:16px 18px;font-size:14.5px;line-height:1.6;margin-bottom:22px}
.abody p{font-family:Georgia,serif;font-size:17.5px;line-height:1.75;color:#222;margin-bottom:16px}
.abody h2{font-family:Georgia,serif;font-size:23px;margin:24px 0 10px;color:#123}
.abody h3,.abody h4,.abody h5{font-family:Georgia,serif;margin:20px 0 8px;color:#123}
.abody ul,.abody ol{font-family:Georgia,serif;font-size:17px;line-height:1.7;margin:0 0 16px 22px}
.abody img{max-width:100%;height:auto}
.postnav{display:flex;justify-content:space-between;gap:20px;margin-top:34px;font-size:15px;font-weight:600}
.pagebody{background:#fff;padding:30px 0 44px}
.pagebody h1{font-family:Georgia,serif;font-size:32px;color:#123;margin-bottom:18px}
.pagebody .abody{max-width:780px}
@media(max-width:900px){
 .hero .hgrid{grid-template-columns:1fr}
}
@media(max-width:760px){
 .catgrid{grid-template-columns:1fr 1fr}
 .ggrid{grid-template-columns:1fr}
 .latest .cols{grid-template-columns:1fr}
 .acols{grid-template-columns:1fr}
 .hero h1{font-size:29px}
 .articlewrap h1{font-size:27px}
 .lrow img,.lrow .noimg{width:110px;height:76px}
 .headersearch{margin-left:0;width:100%}
 .headersearch input{width:calc(100% - 92px)}
}

/* About page: author card + memorial panel */
.abody .authorcard{display:flex;gap:26px;align-items:flex-start;margin:8px 0 6px}
.abody .authorcard img{width:218px;height:auto;border-radius:10px;flex:none}
.abody .authorcard .who h3{font-size:23px;margin:2px 0 3px;color:#1c1c1c}
.abody .authorcard .who .role{font-family:-apple-system,"Segoe UI",Roboto,sans-serif;font-size:12.5px;letter-spacing:.14em;text-transform:uppercase;color:#0d4f4a;font-weight:700;margin:0 0 13px}
.abody .authorcard .who p{font-size:16.5px;color:#333}
.abody .memorial{margin-top:30px;background:#f4f8f5;border:1px solid #d9e6dc;border-top:3px solid #0d4f4a;border-radius:8px;padding:26px 30px 24px;text-align:center}
.abody .memorial .rule{width:44px;height:2px;background:#e9c46a;margin:0 auto 14px}
.abody .memorial h3{font-size:21px;color:#0d4f4a;margin:0 0 10px}
.abody .memorial p{font-size:16.5px;color:#3c4a42;margin:0 auto;max-width:560px}
@media(max-width:640px){.abody .authorcard{flex-direction:column}.abody .authorcard img{width:190px}}

/* Homepage rail: author box */
.authorbox{display:flex;gap:14px;background:#fff;border:1px solid #e2eae4;border-radius:10px;padding:16px;margin-bottom:22px}
.authorbox img{width:76px;height:88px;object-fit:cover;object-position:top;border-radius:8px;flex:none}
.authorbox h4{font-family:Georgia,serif;font-size:17px;margin:1px 0 2px;color:#1c1c1c}
.authorbox .arole{font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:#0d4f4a;font-weight:700;margin:0 0 7px}
.authorbox p{font-size:13.5px;line-height:1.55;color:#444;margin:0 0 7px}
.authorbox .amore{font-size:13px;font-weight:600;color:#0d4f4a;text-decoration:none}
.authorbox .amore:hover{text-decoration:underline}
