:root{color-scheme:light;--paper:#f5f7f2;--ink:#1c312a;--muted:#51645b;--line:#cbd6cc;--green:#27604a;--tint:#e4ede4;--serif:"Songti SC","Noto Serif CJK SC",serif;--sans:system-ui,sans-serif}
*{box-sizing:border-box}
body{margin:0;background:var(--paper);color:var(--ink);font:1rem/1.65 var(--sans)}
a{color:var(--green);text-underline-offset:.24em}
a:hover{text-decoration-thickness:2px}
:focus-visible{outline:2px solid var(--green);outline-offset:4px}
.wrap{width:min(960px,calc(100% - 3rem));margin-inline:auto}
.top,.footer,.section-heading,.paging{display:flex;align-items:center;justify-content:space-between;gap:1rem}
.top{min-height:76px;border-bottom:1px solid var(--line)}
.top nav{display:flex;gap:clamp(.8rem,4vw,2rem);white-space:nowrap}
.brand{font-weight:750;color:var(--ink);text-decoration:none}
h1,h2,h3,p{margin:0}
h1,h2{font-family:var(--serif);line-height:1.2}
h1{font-size:clamp(2.3rem,7vw,4.5rem)}
h2{font-size:1.85rem}
.intro{position:relative;padding:clamp(2rem,7vw,4.6rem) 0 2.3rem}
.intro>p,.dek{margin-top:.8rem;color:var(--muted);font-size:1.08rem}
.shelf{position:absolute;right:3%;top:20%;display:flex;align-items:end;gap:clamp(3px,.9vw,10px);padding:0 .7rem .36rem;border-bottom:2px solid var(--green);transform:rotate(-5deg)}
.shelf i{width:clamp(9px,2vw,22px);height:72px;background:#7ca58c;border-radius:2px 2px 0 0}
.shelf i:nth-child(2n){height:100px;background:#3e735f}
.shelf i:nth-child(3n){height:58px;background:#b6cbb6}
.shelf i:last-child{transform:skew(9deg);height:82px}
.search{margin-top:2rem;max-width:35rem}
.search label{display:block;margin-bottom:.4rem;font-weight:650}
.search-row{display:flex;gap:.5rem}
.search input,.search button{font:inherit;border:1px solid var(--line);border-radius:5px;padding:.62rem .85rem}
.search input{flex:1;min-width:0;background:white;color:var(--ink)}
.search button{background:var(--green);color:white;border-color:var(--green);cursor:pointer;white-space:nowrap}
.results{margin-top:1rem;border-left:3px solid var(--line);padding-left:1rem}
.results ul{padding-left:1.2rem;margin-bottom:0}
.section{margin:1rem 0 2.7rem}
.section:first-child:has(>h1){margin-top:2.5rem}
.topics{margin-top:1rem;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,12rem),1fr));gap:.65rem}
.topics a{display:flex;justify-content:space-between;align-items:center;gap:.5rem;padding:.65rem .85rem;background:var(--tint);border:1px solid var(--line);border-radius:5px;text-decoration:none;font-weight:650}
.topics a:hover{background:#d9e8dc}
.topics small,.meta,.entries time,.footer span{color:var(--muted);font-weight:400}
.entries{list-style:none;padding:0;margin:1rem 0 0}
.entries li{border-top:1px solid var(--line);display:grid;grid-template-columns:7rem 1fr;gap:.7rem;padding:.95rem 0}
.entries h3{font-size:1.08rem}
.entries p{color:var(--muted);margin-top:.16rem}
.entries time{font-variant-numeric:tabular-nums}
.paging{justify-content:center;margin-top:1rem;flex-wrap:wrap}
.reading{max-width:42rem;margin:3rem auto}
.reading h1{font-size:clamp(2rem,6vw,3.4rem);margin-top:.65rem}
.meta{display:flex;gap:1rem;flex-wrap:wrap}
.prose{margin:2rem 0;line-height:1.9}
.prose p{margin:1em 0}
.prose img{max-width:100%;height:auto}
.prose pre{overflow:auto;padding:1rem;background:var(--tint)}
.footer{border-top:1px solid var(--line);padding:1rem 0 2rem;font-size:.9rem}
@media(max-width:630px){.shelf{display:none}.entries li{grid-template-columns:1fr;gap:.15rem}.entries time{font-size:.85rem}}
@media(max-width:360px){.wrap{width:calc(100% - 2rem)}.top nav{gap:.6rem}}
