:root {
  color-scheme: light;
  --ink: #202622;
  --muted: #626b65;
  --faint: #e4e9e5;
  --accent: #345e4a;
  --paper: #fcfdfb;
  font-family: system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--paper);
  color: var(--ink);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0 auto;
  width: min(100% - 3rem, 45rem);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
a { color: var(--accent); text-underline-offset: .22em; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .35; cursor: default; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.header { display: flex; align-items: center; justify-content: space-between; padding: 2.5rem 0; }
.brand { color: var(--ink); font-size: 1.25rem; font-weight: 680; letter-spacing: .12em; text-decoration: none; }
.tools { display: flex; gap: .25rem; align-items: center; }
.tools button { display: grid; place-items: center; border: 0; background: none; color: var(--muted); min-width: 2.75rem; min-height: 2.75rem; padding: 0 .45rem; }
.tools button:enabled:hover, .tools button[aria-expanded="true"] { color: var(--ink); }
.icon svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
.language { font-size: .875rem; }
main { flex: 1; }
#search-panel { margin: -.45rem 0 2.25rem; }
#search-input { display: block; width: 100%; border: 0; border-bottom: 1px solid var(--faint); padding: .7rem 0; background: transparent; color: var(--ink); outline: 0; }
#search-input:focus { border-color: var(--accent); }
.subjects { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; margin-top: .5rem; }
.subjects button { border: 0; padding: .45rem 0; background: none; color: var(--muted); font-size: .875rem; }
.subjects button[aria-pressed="true"] { color: var(--accent); text-decoration: underline; text-underline-offset: .35em; }
.intro { margin: .7rem 0 2.75rem; font-size: clamp(1.45rem, 5vw, 2.15rem); font-weight: 600; line-height: 1.45; }
.entries { list-style: none; margin: 0; padding: 0; }
.entry { border-top: 1px solid var(--faint); padding: 1.25rem 0; }
.entry a { color: var(--ink); text-decoration: none; font-weight: 620; font-size: clamp(1.15rem, 3.5vw, 1.35rem); line-height: 1.45; }
.entry a:hover { text-decoration: underline; }
.meta { color: var(--muted); font-size: .875rem; display: flex; align-items: baseline; flex-wrap: wrap; gap: .5rem .8rem; }
.entry .meta { margin-bottom: .4rem; }
.tag { background: #f0f3f0; color: #5b655e; padding: .12rem .45rem; border-radius: .2rem; }
.empty { margin: 1rem 0; color: var(--muted); }
article { margin-top: .85rem; }
article h1 { margin: 0 0 1rem; font-size: clamp(1.9rem, 5.2vw, 2.8rem); line-height: 1.25; font-weight: 660; overflow-wrap: anywhere; }
article .meta { margin-bottom: 2rem; }
.story { font-family: Georgia, "Songti SC", "Noto Serif CJK SC", serif; font-size: 1.125rem; line-height: 1.95; overflow-wrap: anywhere; }
.story p { margin: 0 0 1.35em; }
figure { margin: 0 0 1.8rem; }
figure img { display: block; max-width: 100%; height: auto; border-radius: .25rem; }
figcaption { margin-top: .65rem; color: var(--muted); font-size: .875rem; line-height: 1.5; }
.article-end { border-top: 1px solid var(--faint); padding-top: 1.05rem; margin-top: 2rem; line-height: 1.75; }
.article-end h2 { margin: 0 0 .55rem; font-size: 1rem; font-weight: 650; }
.article-end p, .article-end ul { margin: 0; }
.article-end ul { padding-left: 1.25rem; overflow-wrap: anywhere; }
.question-text { white-space: pre-line; }
.article-end .source-note { margin-top: .65rem; color: var(--muted); font-size: .875rem; }
footer { color: var(--muted); margin-top: 4rem; padding: 1.6rem 0 1.9rem; border-top: 1px solid var(--faint); font-size: .8125rem; line-height: 1.6; }
@media (max-width: 520px) {
  body { width: calc(100% - 2rem); }
  .header { padding: 1.5rem 0; }
  .intro { margin-bottom: 1.8rem; }
  .story { font-size: 1.0625rem; }
}
