/* Minimal Template */
:root {
  --max-width: 720px;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'SF Mono', Monaco, 'Cascadia Code', monospace;
  --color-text: #1a1a1a;
  --color-bg: #ffffff;
  --color-link: #0066cc;
  --color-muted: #666666;
  --color-border: #e5e5e5;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

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

header h1 { font-size: 1.5rem; }
header h1 a { color: inherit; text-decoration: none; }
header nav a { color: var(--color-link); text-decoration: none; font-size: 0.9rem; }

article h1 { font-size: 2rem; margin-bottom: 0.5rem; line-height: 1.3; }
article time { color: var(--color-muted); font-size: 0.85rem; display: block; margin-bottom: 1rem; }

.featured-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.content h2 { font-size: 1.4rem; margin: 2rem 0 0.75rem; }
.content h3 { font-size: 1.15rem; margin: 1.5rem 0 0.5rem; }
.content p { margin-bottom: 1rem; }
.content a { color: var(--color-link); }
.content ul, .content ol { margin: 1rem 0; padding-left: 1.5rem; }
.content li { margin-bottom: 0.4rem; }
.content blockquote {
  border-left: 3px solid var(--color-border);
  padding-left: 1rem;
  color: var(--color-muted);
  margin: 1.5rem 0;
}
.content code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: #f5f5f5;
  padding: 0.15em 0.4em;
  border-radius: 3px;
}
.content pre {
  background: #f5f5f5;
  padding: 1rem;
  border-radius: 6px;
  overflow-x: auto;
  margin: 1.5rem 0;
}
.content pre code { background: none; padding: 0; }
.content img { max-width: 100%; height: auto; border-radius: 6px; }

.tags { margin-bottom: 1.5rem; }
.tags span {
  display: inline-block;
  background: #f0f0f0;
  padding: 0.2em 0.6em;
  border-radius: 4px;
  font-size: 0.8rem;
  margin-right: 0.4rem;
  color: var(--color-muted);
}

.post-list { list-style: none; }
.post-list li { margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--color-border); }
.post-list li:last-child { border-bottom: none; }
.post-list h2 { font-size: 1.3rem; margin-bottom: 0.3rem; }
.post-list h2 a { color: inherit; text-decoration: none; }
.post-list h2 a:hover { color: var(--color-link); }
.post-list time { color: var(--color-muted); font-size: 0.85rem; }
.post-list .excerpt { margin-top: 0.5rem; color: var(--color-muted); }

footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
  color: var(--color-muted);
  font-size: 0.8rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-text: #e0e0e0;
    --color-bg: #1a1a1a;
    --color-link: #6cb6ff;
    --color-muted: #999;
    --color-border: #333;
  }
  .content code, .content pre { background: #2a2a2a; }
  .tags span { background: #2a2a2a; }
}

/* Interactive content elements */
.callout { padding: 1rem 1.25rem; border-radius: 0.5rem; margin: 1.5rem 0; border-left: 4px solid; }
.callout-info { background: #eff6ff; border-color: #3b82f6; }
.callout-warning { background: #fffbeb; border-color: #f59e0b; }
.callout-tip { background: #f0fdf4; border-color: #22c55e; }
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.5rem 0; }
.pros-cons .pros { background: #f0fdf4; padding: 1rem; border-radius: 0.5rem; }
.pros-cons .cons { background: #fef2f2; padding: 1rem; border-radius: 0.5rem; }
.pros-cons h4 { margin: 0 0 0.5rem 0; }
.stat-highlight { font-size: 1.5rem; font-weight: 700; text-align: center; padding: 1.5rem; background: #f8fafc; border-radius: 0.5rem; margin: 1.5rem 0; }
details { border: 1px solid #e2e8f0; border-radius: 0.5rem; padding: 1rem; margin: 1rem 0; }
details summary { cursor: pointer; font-weight: 600; }
details[open] summary { margin-bottom: 0.75rem; }
@media (max-width: 640px) { .pros-cons { grid-template-columns: 1fr; } }
/* Code block styling */
pre { background: #1e293b; color: #e2e8f0; padding: 1.25rem; border-radius: 0.5rem; overflow-x: auto; margin: 1.5rem 0; font-size: 0.875rem; line-height: 1.7; }
pre code { background: none; padding: 0; color: inherit; font-size: inherit; }
code { background: #f1f5f9; padding: 0.125rem 0.375rem; border-radius: 0.25rem; font-size: 0.875em; }
