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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.7;
  color: #333;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Nav */
header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid #eee;
  margin-bottom: 1.5rem;
}

.site-name {
  font-weight: 700;
  font-size: 1.1rem;
  color: #111;
  text-decoration: none;
}

.nav-links a {
  margin-left: 1.5rem;
  color: #555;
  text-decoration: none;
  font-size: 0.9rem;
}

.nav-links a:hover {
  color: #111;
}

/* Post list */
.post-list {
  list-style: none;
}

.post-list li {
  padding: 0.5rem 0;
}

.post-list time {
  display: block;
  color: #bbb;
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.post-list a {
  color: #d65d0e;
  text-decoration: none;
}

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

/* Article */
article header {
  margin-bottom: 2rem;
}

article header h1 {
  font-size: 1.8rem;
  line-height: 1.3;
  margin-bottom: 0.3rem;
  color: #d65d0e;
}

article header time {
  color: #999;
  font-size: 0.85rem;
}

.tags {
  margin-top: 0.5rem;
}

.tags a {
  font-size: 0.8rem;
  color: #d65d0e;
  background: rgba(214, 93, 14, 0.08);
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  text-decoration: none;
  margin-right: 0.3rem;
}

.tags a:hover {
  background: rgba(214, 93, 14, 0.15);
}

/* Links */
.article-content a,
footer a {
  color: #d65d0e;
  text-decoration: none;
}

.article-content a:hover,
footer a:hover {
  text-decoration: underline;
}

/* Article content */
.article-content h2 {
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.article-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.article-content p {
  margin-bottom: 1rem;
}

.article-content pre {
  background: #1e1e1e;
  color: #d4d4d4;
  padding: 1rem;
  border-radius: 4px;
  overflow-x: auto;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  line-height: 1.5;
}

.article-content code {
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.85em;
}

.article-content p code {
  background: #f4f4f4;
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}

.article-content th,
.article-content td {
  text-align: left;
  padding: 0.5rem;
  border-bottom: 1px solid #eee;
}

.article-content th {
  font-weight: 600;
}

.article-content img {
  max-width: 100%;
  height: auto;
}

.article-content blockquote {
  border-left: 3px solid #ddd;
  margin: 1rem 0;
  padding-left: 1rem;
  color: #666;
}

.article-content ul,
.article-content ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.article-content li {
  margin-bottom: 0.3rem;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

.pagination a {
  color: #555;
  text-decoration: none;
}

.pagination a:hover {
  color: #111;
}

/* Footer */
footer {
  margin-top: 3rem;
  padding: 1.5rem 0;
  border-top: 1px solid #eee;
  color: #999;
  font-size: 0.8rem;
}

/* Mobile */
@media (max-width: 600px) {
  header nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .nav-links a:first-child {
    margin-left: 0;
  }


  article header h1 {
    font-size: 1.5rem;
  }
}
