/* Reset / base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 18px; }
body {
  font-family: Georgia, 'Times New Roman', serif;
  color: #222;
  background: #faf9f7;
  line-height: 1.75;
}
a { color: #8b1a1a; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Site header */
.site-header {
  background: #1a1a2e;
  color: #e8e0d0;
  padding: 1rem 2rem;
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.site-header .site-title {
  font-size: 1.2rem;
  font-weight: bold;
  color: #e8e0d0;
  text-decoration: none;
  letter-spacing: 0.02em;
}
.site-header .site-title:hover { text-decoration: none; color: #fff; }
.site-header nav a {
  color: #b0a898;
  font-size: 0.85rem;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}
.site-header nav a:hover { color: #e8e0d0; text-decoration: none; }

/* Main content wrapper */
.page-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

/* Index page */
.index-intro { margin-bottom: 2.5rem; }
.index-intro h1 {
  font-size: 2rem;
  font-weight: normal;
  margin-bottom: 0.5rem;
  color: #1a1a2e;
}
.index-intro p {
  color: #555;
  font-size: 0.95rem;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
}
.index-intro p + p { margin-top: 1rem; }
.index-intro .article-count {
  display: inline-block;
  background: #1a1a2e;
  color: #e8e0d0;
  font-size: 0.75rem;
  padding: 0.15em 0.6em;
  border-radius: 3px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  margin-left: 0.5em;
  vertical-align: middle;
}

.category-section { margin-bottom: 2.5rem; }
.category-section h2 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #888;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-weight: 600;
  border-bottom: 1px solid #ddd;
  padding-bottom: 0.4rem;
  margin-bottom: 0.8rem;
}
.article-list { list-style: none; }
.article-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid #f0ece6;
}
.article-list li:last-child { border-bottom: none; }
.article-list a {
  font-size: 0.97rem;
  flex: 1;
  color: #222;
}
.article-list a:hover { color: #8b1a1a; }
.article-date {
  font-size: 0.78rem;
  color: #aaa;
  white-space: nowrap;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}

/* Article page */
.article-header { margin-bottom: 2rem; }
.article-header h1 {
  font-size: 1.85rem;
  line-height: 1.3;
  font-weight: bold;
  color: #1a1a2e;
  margin-bottom: 0.5rem;
}
.article-meta {
  font-size: 0.82rem;
  color: #999;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.article-meta span::before { content: ''; }

/* Article body */
.article-body p { margin-bottom: 1.1em; }
.article-body h2, .article-body h3 {
  margin: 1.6em 0 0.6em;
  color: #1a1a2e;
  font-weight: bold;
}
.article-body h2 { font-size: 1.3rem; }
.article-body h3 { font-size: 1.1rem; }
.article-body ul, .article-body ol {
  margin: 0.8em 0 0.8em 1.8em;
}
.article-body li { margin-bottom: 0.3em; }
.article-body blockquote {
  border-left: 3px solid #c8a97e;
  margin: 1.4em 0;
  padding: 0.6em 0 0.6em 1.2em;
  color: #555;
  font-style: italic;
}
.article-body blockquote p { margin-bottom: 0.4em; }
.article-body a { color: #8b1a1a; }

figure {
  margin: 1.8em 0;
  text-align: center;
}
figure img {
  max-width: 100%;
  height: auto;
  border: 1px solid #e0dbd4;
  border-radius: 2px;
}
figcaption {
  font-size: 0.8rem;
  color: #888;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  margin-top: 0.5em;
  font-style: italic;
  line-height: 1.4;
}

.article-footer {
  margin-top: 3rem;
  padding-top: 1.2rem;
  border-top: 1px solid #ddd;
  font-size: 0.85rem;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  color: #888;
}
.article-footer a { color: #8b1a1a; }

/* Responsive */
@media (max-width: 600px) {
  html { font-size: 16px; }
  .page-wrap { padding: 1.5rem 1rem 3rem; }
  .site-header { padding: 0.8rem 1rem; }
  .article-header h1 { font-size: 1.4rem; }
  .article-list li { flex-direction: column; gap: 0; }
  .article-date { display: none; }
}
