/* 拾光 — 文学 · 科技 · 生活 */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --paper: #faf7f1;
  --ink: #26241f;
  --muted: #8a8378;
  --faint: #c9c2b4;
  --accent: #a63f2a;
  --line: #e5ded0;
}

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  font-size: 17px;
  line-height: 1.9;
  letter-spacing: 0.02em;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }

.wrap { max-width: 720px; margin: 0 auto; padding: 0 24px; }

/* ---- 页眉 ---- */
header.site { padding: 56px 0 24px; text-align: center; }
header.site .name {
  font-size: 42px; font-weight: 700; letter-spacing: 0.35em;
  text-indent: 0.35em; line-height: 1.2;
}
header.site .name a:hover { color: var(--ink); }
header.site .tagline { margin-top: 10px; color: var(--muted); font-size: 14px; letter-spacing: 0.28em; }
header.site nav { margin-top: 28px; font-size: 15px; letter-spacing: 0.2em; }
header.site nav a { margin: 0 16px; color: var(--muted); }
header.site nav a:hover { color: var(--accent); }
header.site .rule { margin-top: 28px; border: none; border-top: 1px solid var(--line); }

/* ---- 首页 hero ---- */
.hero { padding: 36px 0 8px; text-align: center; }
.hero p { color: var(--muted); font-size: 16px; line-height: 2.1; }

/* ---- 栏目 ---- */
section.cat { padding: 34px 0 8px; }
section.cat h2 { font-size: 22px; letter-spacing: 0.3em; font-weight: 700; }
section.cat h2 span { color: var(--accent); font-size: 14px; letter-spacing: 0.1em; margin-left: 10px; font-weight: 400; }
section.cat .desc { margin-top: 6px; color: var(--muted); font-size: 14.5px; }
ul.posts { list-style: none; margin-top: 16px; }
ul.posts li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 13px 0; border-top: 1px solid var(--line);
}
ul.posts li:last-child { border-bottom: 1px solid var(--line); }
ul.posts a { font-size: 17.5px; }
ul.posts a:hover { color: var(--accent); }
ul.posts time { color: var(--faint); font-size: 13px; white-space: nowrap; font-family: ui-monospace, monospace; }

/* ---- 文章页 ---- */
article.post { padding: 40px 0 20px; }
article.post .cat-label { color: var(--accent); font-size: 13px; letter-spacing: 0.3em; }
article.post h1 { margin-top: 12px; font-size: 27px; line-height: 1.5; letter-spacing: 0.04em; }
article.post .meta { margin-top: 10px; color: var(--faint); font-size: 13px; letter-spacing: 0.08em; }
article.post .body { margin-top: 30px; }
article.post .body p { margin-bottom: 1.4em; text-indent: 2em; }
article.post .body p:first-child { text-indent: 0; }
article.post .body p:first-child::first-letter { font-size: 1.6em; color: var(--accent); }
.back { margin: 30px 0 10px; font-size: 14.5px; }
.back a { color: var(--muted); }
.back a:hover { color: var(--accent); }

/* ---- 页脚 ---- */
footer.site {
  margin-top: 48px; padding: 28px 0 56px;
  border-top: 1px solid var(--line);
  text-align: center; color: var(--muted); font-size: 13.5px; letter-spacing: 0.14em;
}
footer.site .sep { color: var(--faint); margin: 0 8px; }

@media (max-width: 600px) {
  body { font-size: 16px; }
  header.site .name { font-size: 34px; }
  article.post h1 { font-size: 23px; }
  ul.posts li { flex-direction: column; gap: 2px; }
}
