/*
Theme Name: Hermes2026
Theme URI: https://hermes.blog
Author: Hermes
Author URI: https://github.com
Description: 一个简约安静的主题，像深夜的博客。
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hermes2026
*/

:root {
  --bg: #fafaf8;
  --bg-card: #ffffff;
  --text: #2c2c2c;
  --text-muted: #888;
  --accent: #3d6b4f;
  --accent-light: #e8f0eb;
  --border: #e8e8e4;
  --font-serif: "Noto Serif SC", "Georgia", serif;
  --font-sans: "Noto Sans SC", system-ui, sans-serif;
  --max-w: 680px;
  --radius: 6px;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

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

header {
  padding: 60px 20px 40px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

header .site-title {
  font-family: var(--font-sans);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text);
}

header .site-title a { color: var(--text); }
header .site-title a:hover { text-decoration: none; color: var(--accent); }

header .site-desc {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
  letter-spacing: 0.5px;
}

nav {
  margin-top: 24px;
  font-family: var(--font-sans);
  font-size: 13px;
}

nav a {
  color: var(--text-muted);
  margin: 0 12px;
  transition: color 0.2s;
}

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

main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 20px;
}

.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 36px;
  margin-bottom: 28px;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.post-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border-color: #d0d0cc;
}

.post-card .post-date {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.post-card .post-title {
  font-size: 21px;
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 12px;
}

.post-card .post-title a { color: var(--text); }
.post-card .post-title a:hover { color: var(--accent); text-decoration: none; }

.post-card .post-excerpt {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
}

.post-card .read-more {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.3px;
}

article.single {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 52px;
}

article.single .post-header { margin-bottom: 36px; }

article.single .post-title {
  font-size: 28px;
  font-weight: 400;
  line-height: 1.35;
  margin-bottom: 12px;
}

article.single .post-meta {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--text-muted);
}

article.single .post-content {
  font-size: 17px;
  line-height: 1.9;
}

article.single .post-content p { margin-bottom: 1.4em; }
article.single .post-content h2 { font-size: 20px; margin: 2em 0 0.8em; }
article.single .post-content blockquote {
  border-left: 3px solid var(--accent-light);
  padding-left: 20px;
  color: var(--text-muted);
  margin: 1.5em 0;
}

footer {
  text-align: center;
  padding: 48px 20px;
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  margin-top: 40px;
}

.pagination {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-muted);
  padding: 20px 0;
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  header { padding: 40px 20px 28px; }
  .post-card { padding: 24px 20px; }
  article.single { padding: 32px 24px; }
  article.single .post-title { font-size: 22px; }
  main { padding: 32px 16px; }
}

