:root {
  --bg: #f4f1ec;
  --card-bg: #faf8f4;
  --text: #1c1b19;
  --muted: #8a8378;
  --accent: #b23a2c;
  --border: #e4ddd1;
  --serif: "Noto Serif TC", "Georgia", serif;
  --sans: "Noto Sans TC", -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.7;
}

a { color: inherit; text-decoration: none; }

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

header.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.site-title {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 700;
}

.site-actions a {
  margin-left: 16px;
  font-weight: 600;
  font-size: 0.9rem;
}

.subscribe-btn {
  background: var(--accent);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 6px;
}

nav.site-nav {
  border-bottom: 1px solid var(--border);
}

nav.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin: 0;
  padding: 16px 0;
  font-weight: 600;
  font-size: 0.95rem;
}

nav.site-nav a.active { color: var(--accent); }

main { padding: 40px 0 80px; }

.post-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 32px;
}

.post-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: #000;
}

.post-card .body { padding: 24px; }

.series-tag {
  display: inline-block;
  background: #3a332c;
  color: #f4f1ec;
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.post-card h2 {
  font-family: var(--serif);
  font-size: 1.8rem;
  margin: 0 0 8px;
}

.byline {
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.post-grid .post-card { margin-bottom: 0; }
.post-grid h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  margin: 0 0 6px;
}

.meta-line {
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
  margin-top: 12px;
  padding-top: 12px;
}

.category-label {
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 4px;
}

article.post-full {
  max-width: 720px;
  margin: 0 auto;
}

article.post-full h1 {
  font-family: var(--serif);
  font-size: 2.2rem;
  margin-bottom: 8px;
}

article.post-full .cover {
  width: 100%;
  border-radius: 10px;
  margin: 24px 0;
}

article.post-full .content p { margin: 1.4em 0; }

footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.empty-state {
  color: var(--muted);
  padding: 60px 0;
  text-align: center;
}
