:root {
  --bg: #fafafa;
  --text: #1f2937;
  --muted: #6b7280;
  --accent: #2563eb;
  --card: #ffffff;
  --border: #e5e7eb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

header.site-header {
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
}

header.site-header a {
  text-decoration: none;
  color: var(--text);
}

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

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

.post-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.post-list li {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: box-shadow 0.15s ease;
}

.post-list li:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.post-list img {
  width: 96px;
  height: 72px;
  object-fit: cover;
  border-radius: 0.5rem;
  flex-shrink: 0;
  background: var(--border);
}

.post-list h2 {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
}

.post-list h2 a {
  color: var(--text);
  text-decoration: none;
}

.post-list h2 a:hover {
  color: var(--accent);
}

.meta {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0;
}

.meta a {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color 0.15s ease;
}

.meta a:hover {
  text-decoration-color: currentColor;
}

.tag {
  display: inline-block;
  background: #eff6ff;
  color: var(--accent);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  margin-right: 0.35rem;
  text-decoration: none;
}

.tag:hover {
  background: #dbeafe;
}

article header {
  margin-bottom: 2rem;
}

article h1 {
  margin: 0 0 0.75rem;
  font-size: 2rem;
  line-height: 1.2;
}

article .cover {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

article img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
}

pre {
  background: #111827;
  color: #f9fafb;
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.9em;
}

p code, li code {
  background: #f3f4f6;
  padding: 0.15rem 0.35rem;
  border-radius: 0.25rem;
}

a {
  color: var(--accent);
}

footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.875rem;
  text-align: center;
}

@media (max-width: 480px) {
  .post-list li {
    flex-direction: column;
  }

  .post-list img {
    width: 100%;
    height: auto;
  }
}
