/* Ferry's Blog — minimal reading-first theme */
:root {
  --text: #1a1a1a;
  --muted: #666;
  --border: #e5e5e5;
  --accent: #2563eb;
  --code-bg: #f5f5f5;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.8;
  color: var(--text);
  background: #fff;
}
.site-header {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 20px 16px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--border);
}
.site-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}
.site-header nav a {
  margin-left: 20px;
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
}
.site-header nav a:hover { color: var(--accent); }
main {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 20px 60px;
}
.home-title { font-size: 28px; margin: 0 0 8px; }
.tagline { color: var(--muted); margin: 0 0 36px; }
.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.post-list li a {
  font-size: 19px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}
.post-list li a:hover { color: var(--accent); }
.post-date {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}
.post-desc { color: var(--muted); font-size: 15px; margin: 6px 0 0; }
.post h1 { font-size: 28px; line-height: 1.4; margin: 0 0 8px; }
.post-meta { color: var(--muted); font-size: 14px; margin: 0 0 32px; }
.post h2 { font-size: 22px; margin: 36px 0 12px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.post h3 { font-size: 18px; margin: 28px 0 8px; }
.post p { margin: 0 0 16px; }
.post a { color: var(--accent); }
.post code {
  font-family: "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: var(--code-bg);
  padding: 2px 5px;
  border-radius: 4px;
}
.post pre {
  background: #1e1e1e;
  color: #d4d4d4;
  padding: 16px;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.6;
}
.post pre code { background: none; padding: 0; }
.post blockquote {
  margin: 16px 0;
  padding: 4px 16px;
  border-left: 3px solid var(--accent);
  color: var(--muted);
}
.post table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 15px;
}
.post th, .post td {
  border: 1px solid var(--border);
  padding: 8px 10px;
  text-align: left;
}
.post th { background: #fafafa; }
.post ul, .post ol { margin: 0 0 16px; padding-left: 24px; }
.post li { margin-bottom: 6px; }
.post hr { border: none; border-top: 1px solid var(--border); margin: 32px 0; }
.back { margin-top: 40px; }
.back a { color: var(--muted); text-decoration: none; }
.back a:hover { color: var(--accent); }
.site-footer {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .post h1, .home-title { font-size: 24px; }
}
