body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #333;
  background: #fff;
  margin: 0;
  padding: 0;
}
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Responsive images & figures */
figure {
  margin: 1.5em 0;
  text-align: center;
}
figure img,
figure svg,
figure object,
.content img {
  max-width: 100%;
  height: auto;
  display: inline-block;
}
figure figcaption {
  font-size: 0.85em;
  color: #666;
  margin-top: 0.5em;
}
.content svg {
  max-width: 100%;
  height: auto;
}
.content table {
  width: 100%;
  overflow-x: auto;
  display: block;
}

/* Mobile adjustments */
@media (max-width: 600px) {
  body { font-size: 15px; }
  .container { padding: 0 12px; }
  article.post .content table { font-size: 0.85em; }
  header h1 { font-size: 1.4em; }
}
header {
  padding: 2em 0 1em;
  border-bottom: 1px solid #ddd;
}
header h1 { margin: 0; font-size: 1.8em; }
header h1 a { color: #333; text-decoration: none; }
header nav { margin-top: 0.5em; }
header nav a { color: #0366d6; text-decoration: none; font-size: 0.9em; }
main { padding: 2em 0; }
footer { border-top: 1px solid #ddd; padding: 1em 0; color: #888; font-size: 0.85em; }

/* Posts list */
.posts h2 { margin-top: 0; }
.posts .month { color: #555; font-size: 1.1em; margin: 1.5em 0 0.5em; }
.posts ul { list-style: none; padding: 0; margin: 0; }
.posts li { padding: 0.3em 0; }
.posts li .date { color: #888; font-size: 0.85em; margin-right: 0.5em; }
.posts li a { color: #0366d6; text-decoration: none; font-weight: 500; }
.posts li .excerpt { color: #555; font-size: 0.9em; margin: 0.2em 0 0; }

/* Single post */
article.post h2 { margin-top: 0; }
article.post .meta { color: #888; font-size: 0.9em; margin-top: -0.5em; }
article.post .desc { font-style: italic; color: #555; font-size: 0.95em; }
article.post .content { margin-top: 1.5em; }
article.post .content h3 { margin-top: 1.5em; }
article.post .content pre { background: #f5f5f5; padding: 1em; overflow-x: auto; border-radius: 4px; }
article.post .content code { background: #f5f5f5; padding: 2px 5px; border-radius: 3px; font-size: 0.9em; }
article.post .content table { border-collapse: collapse; width: 100%; margin: 1em 0; }
article.post .content th, article.post .content td { border: 1px solid #ddd; padding: 6px 10px; text-align: left; }
article.post .content th { background: #f5f5f5; }
