/* Editorial dark theme — 看起来像人写的，不像 AI 模板 */
:root {
  --ink: #131209;
  --paper: #f5efe0;
  --muted: #a89f8a;
  --accent: #f0b429;
  --rule: #332e1d;
  --card: #1c1a12;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--ink);
  color: var(--paper);
  font-family: Georgia, 'Songti SC', 'SimSun', serif;
  line-height: 1.75;
  font-size: 17px;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }

/* — Header — */
.site-header {
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.site-title {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
}
.site-title a { color: var(--muted); }
.site-nav { display: flex; gap: 20px; font-size: 14px; color: var(--muted); }
.site-nav a { color: var(--muted); }

/* — Main — */
main {
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

/* — Post list — */
.post-list { list-style: none; }
.post-item {
  padding: 32px 0;
  border-bottom: 1px solid rgba(245,239,224,0.08);
}
.post-item:last-child { border-bottom: none; }
.post-item h2 {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
  font-family: Georgia, 'Songti SC', serif;
}
.post-item h2 a { color: var(--paper); }
.post-item h2 a:hover { color: var(--accent); text-decoration: none; }
.post-meta {
  font-size: 13px;
  color: var(--muted);
  font-family: 'SF Mono', Consolas, monospace;
  margin-bottom: 10px;
  letter-spacing: 0.03em;
}
.post-summary {
  color: rgba(245,239,224,0.55);
  font-size: 15px;
  line-height: 1.6;
}
.pinned-mark {
  color: var(--accent);
  font-size: 11px;
  font-family: 'SF Mono', Consolas, monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
  display: block;
}

/* — Article — */
.article-header { margin-bottom: 48px; }
.article-header h1 {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 12px;
  font-family: Georgia, 'Songti SC', serif;
}
.article .post-meta { margin-bottom: 0; }
.article-content {
  font-size: 17px;
  line-height: 1.85;
  color: rgba(245,239,224,0.88);
}
.article-content h2 {
  font-size: 22px;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 12px;
  color: var(--paper);
}
.article-content h3 {
  font-size: 18px;
  font-weight: 700;
  margin-top: 28px;
  margin-bottom: 8px;
}
.article-content p { margin-bottom: 18px; }
.article-content pre {
  background: rgba(245,239,224,0.06);
  border-left: 3px solid var(--accent);
  padding: 16px 20px;
  overflow-x: auto;
  font-size: 14px;
  font-family: 'SF Mono', Consolas, monospace;
  margin-bottom: 18px;
  line-height: 1.5;
}
.article-content code {
  font-family: 'SF Mono', Consolas, monospace;
  font-size: 0.9em;
  color: var(--accent);
}
.article-content blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 16px;
  color: var(--muted);
  margin-bottom: 18px;
  font-style: italic;
}
.article-content img { max-width: 100%; margin: 16px 0; }

.back-link {
  display: inline-block;
  color: var(--muted);
  font-size: 13px;
  font-family: 'SF Mono', Consolas, monospace;
  margin-bottom: 32px;
  letter-spacing: 0.05em;
}
.back-link:hover { color: var(--accent); text-decoration: none; }

/* — Footer — */
.site-footer {
  max-width: 680px;
  margin: 0 auto;
  padding: 24px 24px 48px;
  color: var(--muted);
  font-size: 12px;
  font-family: 'SF Mono', Consolas, monospace;
  letter-spacing: 0.05em;
}

/* — Tag — */
.tag {
  display: inline;
  color: var(--accent);
  font-size: 12px;
  font-family: 'SF Mono', Consolas, monospace;
  letter-spacing: 0.05em;
}

/* — Top bar (homepage action buttons) — */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 32px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(245,239,224,0.08);
}
.top-bar h1 {
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.top-bar .actions { display: flex; gap: 16px; font-size: 13px; }
.top-bar .actions a { color: var(--muted); }
.top-bar .actions a:hover { color: var(--accent); text-decoration: none; }

@media (max-width: 640px) {
  .article-header h1 { font-size: 26px; }
  .post-item h2 { font-size: 21px; }
  .site-header { padding-top: 32px; }
  main { padding-top: 28px; }
}

/* Night City unify: small-screen tightening */
@media (max-width: 480px) {
  body { font-size: 16px; }
  .site-header { flex-wrap: wrap; gap: 12px; padding: 32px 18px 0; }
  main { padding: 28px 18px 56px; }
  .site-footer { padding: 20px 18px 40px; }
  .top-bar { flex-wrap: wrap; gap: 8px; }
  .article-content pre { padding: 12px 14px; }
}
