:root {
  color-scheme: light;
  --max-width: 720px;
  --fg: #1b1f23;
  --muted: #6b7280;
  --accent: #0d6efd;
  --bg: #fdfdfb;
  --card-bg: #ffffff;
  --border: #e6e6e6;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.75;
}

header.site-header {
  padding: 2.5rem 1.5rem 1.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

header.site-header h1 {
  margin: 0 0 0.4rem;
  font-size: 1.6rem;
}

header.site-header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

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

.post-card {
  display: block;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  color: inherit;
}
.post-card:hover {
  border-color: var(--accent);
  text-decoration: none;
}
.post-card .date {
  color: var(--muted);
  font-size: 0.85rem;
}
.post-card h2 {
  margin: 0.25rem 0 0;
  font-size: 1.15rem;
}

article.post h1 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}
article.post .date {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  display: block;
}
article.post h3 { margin-top: 2rem; }
article.post h4 { margin-top: 1.25rem; }
article.post ul, article.post ol { padding-left: 1.3rem; }
article.post li { margin-bottom: 0.5rem; }

.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

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

footer.site-footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  padding: 2rem 1rem 3rem;
}
