:root {
  --bg: #ffffff;
  --fg: #1a1a1a;
  --muted: #666;
  --accent: #0a58ca;
  --border: #e5e5e5;
  --card: #fafafa;
  --maxw: 760px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16181c; --fg: #e8e8e8; --muted: #9aa0a6;
    --accent: #6ea8fe; --border: #2a2d33; --card: #1e2127;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--fg);
  background: var(--bg);
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; border-radius: 6px; }

.site-header, .content, .site-footer { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 22px; padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}
.brand { font-size: 1.35rem; font-weight: 700; color: var(--fg); }
.brand span { color: var(--accent); }
.site-header nav a { margin-left: 18px; color: var(--fg); }
.content { padding-top: 28px; padding-bottom: 48px; }
.site-footer {
  border-top: 1px solid var(--border); color: var(--muted);
  font-size: .9rem; padding-top: 20px; padding-bottom: 40px;
}

h1 { font-size: 1.9rem; line-height: 1.2; margin: .2em 0 .5em; }
h2 { font-size: 1.35rem; margin: 1.6em 0 .5em; }
h3 { font-size: 1.15rem; margin: 1.4em 0 .5em; }
.meta { color: var(--muted); font-size: .92rem; margin-top: -.2em; }
.meta a { color: var(--muted); }
.crumb { color: var(--muted); font-size: .9rem; }
.post-body { margin-top: 1.2em; }
.post-body img { display: block; margin: 1.2em auto; }
.post-body iframe, .post-body figure iframe {
  display: block; width: 100%; aspect-ratio: 16 / 9; height: auto;
  border: 0; border-radius: 6px; margin: 1.2em auto;
}

.tags { margin-top: 2em; }
.tags a {
  display: inline-block; margin: 0 6px 6px 0; padding: 2px 10px;
  border: 1px solid var(--border); border-radius: 999px; font-size: .85rem;
}

.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li {
  padding: 16px 0; border-bottom: 1px solid var(--border);
  display: flex; gap: 14px; align-items: flex-start;
}
.post-list .thumb { flex: 0 0 96px; }
.post-list .thumb img { width: 96px; height: 66px; object-fit: cover; }
.post-list .info { flex: 1; }
.post-list .info a { font-weight: 600; font-size: 1.05rem; }
.post-list .excerpt { color: var(--muted); font-size: .92rem; margin: 4px 0 0; }
.post-list .date { color: var(--muted); font-size: .82rem; }

.search input {
  width: 100%; padding: 12px 14px; font-size: 1rem; margin: 10px 0 4px;
  border: 1px solid var(--border); border-radius: 8px;
  background: var(--card); color: var(--fg);
}
.muted { color: var(--muted); font-size: .9rem; }
