:root {
  color-scheme: light;
  --bg: #f8f9fa;
  --panel: #ffffff;
  --text: #1f1f1f;
  --muted: #6b7280;
  --border: #e5e7eb;
  --soft: #f3f4f6;
  --shadow: 0 1px 4px rgba(0,0,0,0.08);
  --link: #444;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* Layout */
.container { max-width: 1000px; margin: 0 auto; padding: 0 1rem; }

/* Header */
.site-header {
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 0;
}
.brand {
  display: flex; align-items: center; gap: .6rem;
  font-weight: 700; font-size: 1.1rem;
}
.logo { height: 36px; width: 36px; border-radius: 50%; object-fit: cover; }
.nav { display: flex; gap: 1rem; }
.nav-link {
  color: var(--link);
  text-decoration: none;
  font-weight: 600;
}
.nav-link.active { text-decoration: underline; }

/* Main */
.page-title { margin: 1.5rem 0 0.4rem; font-size: 1.75rem; }
.page-subtitle { margin: 0 0 1.5rem; color: var(--muted); }

.post-stack { display: grid; gap: 1.5rem; margin: 1.5rem 0 3rem; }

.post-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 1rem 1.2rem;
}

/* Post header with thumbnail */
.post-header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.post-thumb {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}
.post-text { flex: 1; }

.post-title { margin: 0 0 .25rem; font-size: 1.25rem; }
.post-meta {
  color: var(--muted);
  font-size: .9rem;
  display: flex; gap: .6rem; flex-wrap: wrap;
}
.tags { display: inline-flex; gap: 6px; }
.tag {
  background: var(--soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: .8rem;
  color: #444;
}
.post-body p { margin-top: 0; margin-bottom: .75rem; }
.post-body ul { margin-top: 0; }

/* Footer */
.site-footer {
  background: var(--panel);
  border-top: 1px solid var(--border);
  color: var(--muted);
  text-align: center;
  margin-top: 3rem;
  padding: 1rem 0;
  font-size: .9rem;
}
