/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fafafa;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* Header */
header {
  margin-bottom: 4rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e0e0e0;
}

header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

nav {
  margin-top: 1rem;
}

nav a {
  color: #666;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

nav a:hover {
  color: #1a1a1a;
}

/* Main Content */
main {
  margin-bottom: 4rem;
}

.blog-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

/* Blog Preview Cards */
.blog-preview {
  padding: 0.4rem 0;
  border-bottom: 1px solid #e8e8e8;
  transition: transform 0.2s ease;
}

.blog-preview:last-child {
  border-bottom: none;
}

.blog-preview h2 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.blog-preview h2 a {
  color: #1a1a1a;
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-preview h2 a:hover {
  color: #555;
}

.blog-date {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 1rem;
  font-weight: 400;
}

.blog-preview p:not(.blog-date) {
  color: #555;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.read-more {
  color: #666;
  text-decoration: none;
  font-size: 0.95rem;
  display: inline-block;
  transition: color 0.2s ease, transform 0.2s ease;
}

.read-more:hover {
  color: #1a1a1a;
  transform: translateX(4px);
}

/* Individual Blog Post Page */
.blog-post h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.blog-post .blog-date {
  margin-bottom: 2.5rem;
}

.blog-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #333;
}

.blog-content p {
  margin-bottom: 1.5rem;
}

.blog-content h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.blog-content h2:first-child {
  margin-top: 0;
}

/* Images */
img {
  max-width: 50%;
  height: auto;
  display: block;
  margin: 2rem 0;
}

.blog-content img {
  max-width: 50%;
  height: auto;
  display: block;
  margin: 2rem auto;
}

/* Image Captions */
figure {
  margin: 2rem 0;
}

.blog-content figure {
  margin: 2rem auto;
}

figure img {
  margin: 0;
}

figcaption {
  font-size: 0.9rem;
  color: #888;
  text-align: center;
  margin-top: 0.75rem;
  font-style: italic;
  line-height: 1.5;
}

/* Footer */
footer {
  padding-top: 2rem;
  border-top: 1px solid #e0e0e0;
  text-align: center;
}

footer p {
  font-size: 0.9rem;
  color: #888;
}

/* Responsive Design */
@media (max-width: 600px) {
  body {
    padding: 1.5rem 1rem;
  }

  header h1 {
    font-size: 2rem;
  }

  .blog-preview h2 {
    font-size: 1.5rem;
  }

  .blog-list {
    gap: 2rem;
  }

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

  .blog-content {
    font-size: 1rem;
  }

  .blog-content h2 {
    font-size: 1.35rem;
  }
}

/* Hover Effects */
@media (hover: hover) {
  .blog-preview:hover {
    transform: translateX(4px);
  }
}
