:root {
  --bg: #fff;
  --text: #1a1a1a;
  --muted: #666;
  --accent: #005ea6;
  --border: #e0e0e0;
  --max-w: 720px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  margin: 0;
  padding: 0;
}

header {
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

nav {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: baseline;
  gap: 1rem;
}

.site-title {
  font-family: system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.tagline {
  font-size: 0.9rem;
  color: var(--muted);
  font-style: italic;
}

main {
  max-width: var(--max-w);
  margin: 2.5rem auto;
  padding: 0 1.5rem;
}

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

footer a { color: var(--muted); }

/* Index */
.post-list h1 {
  font-family: system-ui, sans-serif;
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.post-card {
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}

.post-card h2 {
  font-size: 1.3rem;
  margin: 0 0 0.25rem;
}

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

.post-card h2 a:hover { text-decoration: underline; }

.post-card time {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.read-more {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--accent);
}

/* Post */
.post-header h1 {
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.post-header time {
  color: var(--muted);
  font-size: 0.9rem;
}

.post-body {
  margin-top: 2rem;
}

.post-body h2 { font-size: 1.4rem; margin-top: 2rem; }
.post-body h3 { font-size: 1.15rem; margin-top: 1.5rem; }

.post-body a { color: var(--accent); }

.post-body code {
  font-family: "Fira Code", "Courier New", monospace;
  font-size: 0.9em;
  background: #f5f5f5;
  padding: 0.1em 0.3em;
  border-radius: 3px;
}

.post-body pre {
  background: #f5f5f5;
  padding: 1rem;
  overflow-x: auto;
  border-radius: 4px;
}

.post-body pre code {
  background: none;
  padding: 0;
}

.post-body blockquote {
  border-left: 3px solid var(--border);
  margin: 1rem 0;
  padding-left: 1rem;
  color: var(--muted);
}

.post-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.post-body th, .post-body td {
  border: 1px solid var(--border);
  padding: 0.5rem 0.75rem;
  text-align: left;
}

.post-body th { background: #f5f5f5; font-weight: 600; }

.post-footer { margin-top: 3rem; }
.post-footer a { color: var(--accent); font-size: 0.9rem; }

@media (max-width: 600px) {
  .post-header h1 { font-size: 1.5rem; }
  nav { flex-direction: column; gap: 0.25rem; }
}
