:root {
  --paper: #f3f0e9;
  --ink: #302e28;
  --muted: #77736b;
  --line: #ded8ca;
  --accent: #854438;
  --serif: 'Songti SC', 'Noto Serif CJK SC', 'Source Han Serif SC', SimSun, serif;
  --sans: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 14px/1.6 var(--sans); }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button, input { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
::selection { background: #e8dfce; }
.shell { max-width: 1040px; padding: 0 40px; margin: auto; }
.site-header { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding: 30px 0 22px; border-bottom: 1px solid var(--line); }
.brand { font: 600 29px/1.5 var(--serif); letter-spacing: 4px; }
.site-header nav { display: flex; gap: 26px; color: var(--muted); }
[aria-current='page'] { color: var(--ink); }
.site-header [aria-current] { text-decoration: underline; text-underline-offset: 7px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; }
h1 { font-size: 28px; line-height: 1.6; margin: 0 0 24px; }
.collection-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0 10px; }
.collection-heading h1 { font: 500 19px var(--serif); margin: 0; }
.collection-heading small { color: var(--muted); font-size: 12px; margin-left: 10px; }
.search input { background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: 6px 0; width: 160px; color: var(--ink); border-radius: 0; }
.filter-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 5px 0 17px; }
.filters { display: flex; gap: 20px; }
.filters button { background: none; border: 0; padding: 6px 0; color: var(--muted); }
.filters button[aria-pressed='true'] { color: var(--accent); }
.filters small { font-size: 10px; margin-left: 5px; }
.result-count { font-size: 12px; color: var(--muted); }
.entries { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.entry { display: flex; flex-direction: column; height: 286px; padding: 22px 28px 18px; background: #fffdf8; border: 1px solid #e5dfd3; box-shadow: 0 2px 4px #41351c04; }
.entry-label { color: var(--accent); font: 12px var(--serif); letter-spacing: 2px; margin-bottom: 10px; }
.entry h3 { font-size: 22px; line-height: 1.5; margin: 0 0 13px; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex-shrink: 0; }
.entry-bottom { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #eee9e0; padding-top: 11px; margin-top: auto; font-size: 11px; color: var(--muted); }
.entry-bottom .read-more { font-size: 12px; }
.read-more span { margin-left: 10px; }
.prose, .excerpt { font-family: var(--serif); font-size: 19px; line-height: 1.95; line-break: strict; overflow-wrap: anywhere; }
.prose p { margin: 0 0 1em; }
.prose > :last-child { margin-bottom: 0; }
.prose blockquote { margin: 1em 0; border-left: 2px solid var(--line); padding-left: 18px; color: #69645c; }
.prose blockquote p { margin: 0; }
.prose h3 { font-size: 21px; margin: 1.4em 0 .6em; }
.prose ul, .prose ol { padding-left: 1.5em; }
.prose a { text-decoration: underline; text-underline-offset: 4px; }
.prose img { max-width: 100%; height: auto; }
.prose pre { overflow: auto; }
.excerpt { white-space: pre-line; margin: 0 0 14px; font-size: 17px; line-height: 1.9; color: #575348; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.read-more, .back { color: var(--muted); font-size: 13px; }
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin: 26px 0 38px; }
.pagination a, .pagination > span:not(.page-summary) { display: grid; place-items: center; min-width: 36px; min-height: 40px; padding: 6px 10px; }
.pagination [aria-current] { text-decoration: underline; text-underline-offset: 6px; color: var(--accent); }
.pagination [aria-disabled] { color: #aaa69d; }
.page-summary { color: var(--muted); font-size: 12px; margin-left: 8px; }
#collection-title { scroll-margin-top: 20px; }
.archive { max-width: 760px; margin: 36px auto 50px; }
.reading { max-width: 800px; margin: 30px auto 48px; padding: 34px 64px 40px; background: #fffdf8; border: 1px solid #e5dfd3; box-shadow: 0 3px 12px #41351c05; }
.reading .prose { font-size: 20px; line-height: 2.1; }
.reading[data-collection="小诗"] .reading-header { text-align: center; margin-bottom: 34px; }
.reading[data-collection="小诗"] > .prose { width: fit-content; max-width: 100%; margin: 0 auto; }
.reading[data-collection="小诗"] > .prose p { margin-bottom: 1.35em; }
.reading-header { border-bottom: 1px solid var(--line); padding-bottom: 23px; }
.back { display: inline-block; margin-bottom: 25px; }
.reading-header { margin: 0 0 27px; }
.reading-header h1 { margin: 8px 0; }
.eyebrow, .source { font: 12px/1.8 var(--sans); color: var(--muted); margin: 0; }
.reading-end { display: flex; align-items: center; gap: 14px; margin: 28px 0; font-size: 12px; color: var(--muted); }
.copy { background: none; border: 1px solid var(--line); padding: 6px 15px; color: var(--muted); }
.adjacent { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; border-top: 1px solid var(--line); padding-top: 22px; font: 17px/1.7 var(--serif); }
.adjacent small { display: block; font: 12px var(--sans); color: var(--muted); margin-bottom: 7px; }
.archive-year { display: grid; grid-template-columns: 75px 1fr; gap: 15px; margin-top: 28px; }
.archive-year h2 { font-size: 21px; margin: 12px 0; }
.archive-year ul { list-style: none; padding: 0; margin: 0; }
.archive-year li { display: flex; align-items: baseline; gap: 18px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.archive-year time, .archive-year li span { font-size: 12px; color: var(--muted); flex-shrink: 0; }
.archive-year li a { flex: 1; font: 17px/1.6 var(--serif); }
footer { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding: 20px 0 30px; font-size: 12px; color: var(--muted); }
.empty { padding: 50px 0; color: var(--muted); }
.skip { position: absolute; top: -100px; background: var(--paper); padding: 10px; }
.skip:focus { top: 0; }
@media (max-width: 600px) {
  .shell { padding: 0 20px; }
  .site-header { padding: 23px 0 18px; }
  .brand { font-size: 23px; }
  .site-header nav { gap: 20px; font-size: 13px; }
  .search input { width: 135px; font-size: 16px; }
  .filters { gap: 18px; }
  .entries { grid-template-columns: 1fr; gap: 13px; }
  .entry { height: 244px; padding: 19px 22px 15px; }
  .entry-label { margin-bottom: 8px; font-size: 11px; }
  .entry h3 { margin-bottom: 10px; }
  .entry .excerpt { font-size: 17px; line-height: 1.85; -webkit-line-clamp: 3; }
  .reading { padding: 25px 23px 28px; margin: 20px -6px 32px; }
  .reading .prose { font-size: 19px; line-height: 2; }
  .reading-header h1 { font-size: 25px; }
  .entry h3 { font-size: 21px; }
  .prose, .excerpt { font-size: 18px; line-height: 1.95; }
  h1 { font-size: 25px; }
  .page-summary { width: 100%; text-align: center; margin: 8px 0 0; }
  .pagination { gap: 4px; }
  .adjacent { grid-template-columns: 1fr; gap: 18px; }
  .archive-year { grid-template-columns: 1fr; gap: 0; }
  .archive-year li { gap: 12px; }
  .archive-year li span { display: none; }
}
