/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  background-color: #0f0f0f;
  color: #e5e5e5;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  line-height: 1.6;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Blog index */
.blog-index {
  max-width: 650px;
  margin: 0 auto;
  padding: 60px 20px;
}

.blog-index h1 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #e5e5e5;
}

.blog-index p {
  font-size: 1.1rem;
  color: #a0a0a0;
  margin-bottom: 3rem;
}

.blog-index nav {
  margin-bottom: 3rem;
}

.blog-index nav a {
  color: #ff4d4f;
  text-decoration: none;
  font-size: 1rem;
}

.blog-index nav a:hover {
  text-decoration: underline;
}

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

.post-list-item {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid #2a2a2a;
}

.post-list-item:last-child {
  border-bottom: none;
}

.post-list-item h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.post-list-item h2 a {
  color: #e5e5e5;
  text-decoration: none;
}

.post-list-item h2 a:hover {
  color: #ff4d4f;
}

.post-list-date {
  display: block;
  font-size: 0.9rem;
  color: #a0a0a0;
  margin-bottom: 0.75rem;
}

.post-list-excerpt {
  color: #b8b8b8;
  line-height: 1.6;
}

/* Individual post */
.post {
  max-width: 650px;
  margin: 0 auto;
  padding: 60px 20px;
}

.post-header {
  margin-bottom: 3rem;
}

.back-link {
  display: inline-block;
  color: #ff4d4f;
  text-decoration: none;
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.back-link:hover {
  text-decoration: underline;
}

.post-title {
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  color: #e5e5e5;
}

.post-date {
  display: block;
  font-size: 0.95rem;
  color: #a0a0a0;
}

/* Post content */
.post-content {
  color: #e5e5e5;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
  line-height: 1.3;
  color: #e5e5e5;
}

.post-content h1 { font-size: 2rem; }
.post-content h2 { font-size: 1.75rem; }
.post-content h3 { font-size: 1.5rem; }
.post-content h4 { font-size: 1.25rem; }

.post-content p {
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.post-content a {
  color: #ff4d4f;
  text-decoration: none;
}

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

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

.post-content li {
  margin-bottom: 0.5rem;
}

.post-content blockquote {
  margin: 2rem 0;
  padding-left: 1.5rem;
  border-left: 3px solid #ed2224;
  color: #b8b8b8;
  font-style: italic;
}

.post-content code {
  background-color: #1a1a1a;
  padding: 0.2em 0.4em;
  border-radius: 3px;
  font-size: 0.9em;
  font-family: "Monaco", "Menlo", "Consolas", monospace;
  color: #e5e5e5;
}

.post-content pre {
  background-color: #1a1a1a;
  padding: 1.5rem;
  border-radius: 5px;
  overflow-x: auto;
  margin-bottom: 1.5rem;
  border: 1px solid #2a2a2a;
}

.post-content pre code {
  background-color: transparent;
  padding: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.post-content img {
  max-width: 100%;
  height: auto;
  margin: 2rem 0;
  border-radius: 5px;
}

.post-content hr {
  border: none;
  border-top: 1px solid #2a2a2a;
  margin: 3rem 0;
}

/* Responsive */
@media (max-width: 767px) {
  body {
    font-size: 16px;
  }

  .blog-index,
  .post {
    padding: 40px 20px;
  }

  .blog-index h1,
  .post-title {
    font-size: 2rem;
  }

  .post-content h1 { font-size: 1.75rem; }
  .post-content h2 { font-size: 1.5rem; }
  .post-content h3 { font-size: 1.25rem; }
  .post-content h4 { font-size: 1.1rem; }
}
