:root {
  color-scheme: light dark;
  --bg: #111;
  --fg: #eee;
  --muted: #9a9a9a;
  --accent: #e2b14a;
  --card: #1c1c1c;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
}
.wrap { max-width: 880px; margin: 0 auto; padding: 0 1.25rem; }
.site-header { padding: 1rem 0 1rem; border-bottom: 1px solid #333; margin-bottom: 2rem; }
.banner { display: block; }
.banner img { width: 100%; height: auto; display: block; }
nav { margin-top: 0.85rem; }
nav a { margin-right: 1rem; color: var(--fg); }
.post-list { list-style: none; padding: 0; }
.post-list li { display: grid; grid-template-columns: 160px 1fr; gap: 1rem; margin: 0 0 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid #2a2a2a; }
.thumb img, .hero img, .content img { max-width: 100%; height: auto; display: block; }
.thumb img { width: 160px; height: 96px; object-fit: cover; background: var(--card); }
h1, h2 { line-height: 1.25; }
h2 { font-size: 1.25rem; margin: 0 0 0.3rem; }
h2 a, .content a { color: var(--accent); }
.meta { color: var(--muted); font-size: 0.95rem; }
.content iframe { max-width: 100%; width: 100%; aspect-ratio: 16 / 9; height: auto; }
.lead { color: var(--muted); margin: 0 0 2rem; }
.cat-section { margin: 0 0 2.25rem; }
.cat-section h2 { font-size: 1.1rem; color: var(--muted); font-weight: 400; letter-spacing: 0.04em; text-transform: uppercase; margin: 0 0 0.85rem; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0.75rem; }
.cat-grid-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cat-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 5.5rem;
  padding: 0.9rem 1rem;
  background: var(--card);
  border: 1px solid #2f2f2f;
  color: var(--fg);
  text-decoration: none;
}
.cat-card strong { font-size: 1.15rem; line-height: 1.25; }
.cat-card span { color: var(--muted); font-size: 0.9rem; margin-top: 0.55rem; }
.cat-card:hover { border-color: var(--accent); color: var(--accent); }
.cat-card:hover span { color: var(--accent); }
.site-footer { margin: 3rem 0 2rem; color: var(--muted); font-size: 0.9rem; }
@media (max-width: 640px) {
  .post-list li { grid-template-columns: 1fr; }
  .thumb img { width: 100%; height: 160px; }
  .cat-grid-main { grid-template-columns: 1fr; }
}
