/*
Theme Name: 林间空地 · 阅读版
Version: 1.7
Text Domain: linjian
*/
:root {
  --serif: "Iowan Old Style", "Palatino Linotype", Georgia, Garamond, "Songti SC", STSong, "Noto Serif SC", SimSun, serif;
  --body-size: clamp(1.0625rem, 1rem + .18vw, 1.125rem);
  --lead-size: clamp(1.125rem, 1.06rem + .18vw, 1.1875rem);
  --brand-size: clamp(1.25rem, 1.16rem + .25vw, 1.375rem);
  --home-title: clamp(1.875rem, 1.68rem + .65vw, 2.25rem);
  --article-title: clamp(1.875rem, 1.63rem + .8vw, 2.375rem);
  --section-size: clamp(1.4375rem, 1.34rem + .27vw, 1.5625rem);
  --nav-size: .9375rem;
  --small-size: clamp(.8125rem, .78rem + .1vw, .875rem);
  --leading: 1.85;
  --measure: 42.5rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --muted: #575f56;
}
* { box-sizing: border-box; }
body { margin: 0; color: #252824; background: white; font: 400 var(--body-size)/var(--leading) var(--serif); font-synthesis: none; }
body>header,main,body>footer { max-width: 46rem; margin: auto; padding: 1.6rem var(--gutter); }
body>header { display: flex; flex-wrap: wrap; gap: .5em; align-items: center; justify-content: space-between; border-bottom: 1px solid #ddd; }
nav { display: flex; gap: 1.2em; }
body>header nav { font-size: var(--nav-size); }
.brand { font-size: var(--brand-size); font-weight: 600; color: inherit; text-decoration: none; }
a { color: #326044; text-underline-offset: .2em; }
main { min-height: 65vh; overflow-wrap: anywhere; }
body.single main { max-width: calc(var(--measure) + 2 * var(--gutter)); }
main :is(h1,h2,h3,h4,h5,h6) { line-height: 1.4; font-weight: 600; margin-block: 1.5em .55em; break-after: avoid; text-wrap: pretty; }
main h1 { font-size: var(--article-title); }
main h2 { font-size: var(--section-size); }
main h3 { font-size: var(--brand-size); }
main h4 { font-size: var(--lead-size); }
main :is(h5,h6) { font-size: var(--body-size); }
body.home main h2:has(+ .lj-intro) { font-size: var(--home-title); margin-top: 0; }
main p { margin-block: 0 1em; }
main .lj-intro,body.single .entry-content>h1+p:has(+ .meta) { font-size: var(--lead-size); }
main :is(b,strong) { font-weight: 600; }
main blockquote { margin: 1.4em 0; padding-inline-start: 1em; border-inline-start: 2px solid #cbd3ca; color: var(--muted); font-size: var(--body-size); }
main blockquote:lang(en) { line-height: 1.65; }
main figure { max-width: 100%; margin-inline: 0; }
time,.meta,main figcaption,main cite,body>footer { color: var(--muted); font-size: var(--small-size); }
main figcaption { line-height: 1.6; margin-top: .45em; }
main img, main video, main iframe { max-width: 100%; }
img { height: auto; }
pre { max-width: 100%; overflow: auto; }
body>footer { border-top: 1px solid #ddd; }
.entry { padding: .8em 0; border-bottom: 1px solid #e1e4df; display: grid; gap: .5em; }
.topics { margin: 1em 0 2em; }
.topics a { margin-right: 1em; }

/* Older page blocks supply their own typography after the theme stylesheet. */
body main .entry-content .lj-note { font: inherit; }
body main .entry-content .lj-note p { font-size: var(--body-size); line-height: var(--leading); margin-block: 0 1em; }
body main .entry-content .lj-note h1 { font: 600 var(--article-title)/1.4 var(--serif); letter-spacing: normal; }
body main .entry-content .lj-note h2 { font: 600 var(--section-size)/1.45 var(--serif); }
body main .entry-content .lj-note h3 { font-size: var(--brand-size); }
body main .entry-content .lj-note :is(.lj-note-eyebrow,.lj-note-muted,.lj-index-empty,.lj-note-origin) {
  font-family: var(--serif); font-size: var(--small-size) !important; line-height: 1.65; color: var(--muted); letter-spacing: normal;
}
body main .entry-content .lj-note a { color: #395b46; }
.filters{display:flex;flex-wrap:wrap;gap:.6em;margin:1.3em 0 2em}.chip{display:inline-block;padding:.12em .65em;border-radius:.4em;font:500 var(--small-size)/1.6 var(--serif);color:#38434b;background:#e9edf0}.chip.essay{color:#294b83;background:#e5edff}.chip.notes{color:#86501d;background:#faecd8}.chip.forest{color:#315f49;background:#e0f0e5}.filters button{cursor:pointer;border:1px solid transparent}.filters button[aria-pressed=true]{border-color:currentColor}.entry{display:grid;grid-template-columns:6.5em minmax(0,1fr) auto;align-items:baseline}.entry[hidden]{display:none}.entry>a{overflow-wrap:anywhere}@media(max-width:480px){.entry{grid-template-columns:minmax(0,1fr) auto}.entry time{grid-column:1/-1}}

.summary-wrap{min-width:0;position:relative;justify-self:start;overflow-wrap:anywhere}
.summary{display:none;position:absolute;z-index:3;top:100%;left:0;width:min(26rem,55vw);padding:.65rem .85rem;background:#fff;color:#343b35;border:1px solid #d9dfda;border-radius:.4rem;box-shadow:0 4px 16px #27362a18;font-size:.92rem;line-height:1.65}
.summary-wrap:not(.dismissed):is(:hover,:focus-within)>.summary{display:block}
@media (hover:none),(max-width:480px){.summary-wrap{justify-self:stretch}.summary-wrap>.summary,.summary-wrap:not(.dismissed):is(:hover,:focus-within)>.summary{position:static;display:block;width:auto;padding:0;border:none;box-shadow:none;background:none;color:#626860;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}}

.journal-layout{max-width:68rem;display:grid;grid-template-columns:clamp(5rem,14vw,10rem) minmax(0,1fr);align-items:start;gap:clamp(1rem,4vw,3.5rem);padding-top:clamp(2rem,5vw,4rem)}
.journal-layout .filters{margin:0;display:flex;flex-direction:column;align-items:flex-start;gap:.85rem}
.journal-layout .filters .chip{display:flex;align-items:center;gap:.65em;background:none;color:#505751;border:0;padding:.35em .1em}
.journal-layout .filters .chip::before{content:"";width:.95em;height:.95em;background:#e9edf0;border:1px solid #aeb6b9}.journal-layout .filters .essay::before{background:#e5edff;border-color:#86a9ee}.journal-layout .filters .notes::before{background:#faecd8;border-color:#dda76b}.journal-layout .filters .forest::before{background:#e0f0e5;border-color:#85b79a}.journal-layout .filters [aria-pressed=true]{font-weight:600;text-decoration:underline;text-underline-offset:4px}
.journal-posts{min-width:0}.journal-posts>p:first-child{margin-top:.2em}
@media(max-width:480px){.journal-layout{grid-template-columns:4rem minmax(0,1fr);gap:.8rem}.journal-layout .filters{gap:.55rem}}
