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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Site Header */
.site-header {
  border-bottom: 1px solid #eee;
  margin-bottom: 2rem;
}

.site-header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
}

.nav-brand a {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
  text-decoration: none;
}

.nav-tagline {
  margin: 0.25rem 0 0 0;
  font-size: 0.85rem;
  color: #666;
  font-weight: 400;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: #666;
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.5rem 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: #333;
}

/* Home page specific */
.home-main {
  padding-bottom: 4rem;
}

.hero {
  margin-bottom: 4rem;
}

.hero-image {
  position: relative;
  height: 280px;
  overflow: hidden;
}

.hero-image img,
.hero-image picture {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-image img {
  object-fit: cover;
  object-position: center;
  max-width: 100%;
}

.hero-content {
  padding: 2rem;
  background: #fff;
  text-align: center;
}

.hero-content p {
  font-size: 1.125rem;
  line-height: 1.6;
  color: #555;
  margin: 0;
  white-space: nowrap;
}

.recent-posts {
  margin-bottom: 4rem;
}

.recent-posts h2 {
  font-size: 1.75rem;
  margin-bottom: 2rem;
  font-weight: 600;
}

.posts-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.post-card {
  padding: 1.5rem 0;
  border-bottom: 1px solid #eee;
}

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

.post-card h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.125rem;
}

.post-card h3 a {
  color: #333;
  text-decoration: none;
}

.post-card h3 a:hover {
  color: #0066cc;
}

.post-card time {
  color: #666;
  font-size: 0.9rem;
}

.more-posts {
  text-align: center;
}

.more-posts a {
  color: #0066cc;
  text-decoration: none;
  font-weight: 500;
}

.more-posts a:hover {
  text-decoration: underline;
}

/* About section on home page */
.about-section {
  margin-bottom: 4rem;
  padding: 2rem 0;
}

.about-section .about-content {
  max-width: none;
}

.about-section p {
  margin-bottom: 1rem;
  line-height: 1.6;
  color: #666;
}

.about-section h2 {
  font-size: 1.25rem;
  margin: 2rem 0 1rem 0;
  font-weight: 600;
  color: #333;
}

.about-section ul {
  margin: 1rem 0;
  padding-left: 1rem;
  list-style: none;
}

.about-section li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
  color: #666;
}

.about-section li:before {
  content: "•";
  margin-right: 0.5rem;
  color: #999;
}

.about-section strong {
  color: #333;
  font-weight: 600;
}

.about-section a {
  color: #333;
  text-decoration: underline;
}

.about-section a:hover {
  color: #666;
}

/* Site Footer */
.site-footer {
  border-top: 1px solid #eee;
  padding: 2rem 0;
  margin-top: 4rem;
  text-align: center;
  color: #666;
  font-size: 0.9rem;
}

/* About page */
.about-content {
  max-width: none;
}

.about-content h1 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

/* Back link */
.back-link {
  margin-bottom: 2rem;
}

.back-link a {
  color: #666;
  text-decoration: none;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0;
}

.back-link a:hover {
  color: #333;
  text-decoration: underline;
}

/* Blog page */
main h1 {
  margin-bottom: 3rem;
}

/* Main content */
main {
  padding-bottom: 4rem;
}

/* Post content */
article h1 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

article h2 {
  font-size: 1.5rem;
  font-weight: 600;  
  margin: 2rem 0 1rem 0;
}

article h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem 0;
}

article time {
  color: #666;
  font-size: 0.9rem;
}

.categories {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #666;
}

.content {
  margin-top: 2rem;
}

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

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

.content blockquote {
  border-left: 4px solid #ddd;
  padding-left: 1rem;
  margin: 1rem 0;
  font-style: italic;
  color: #666;
}

/* Code styles */
code {
  background-color: #f6f8fa;
  padding: 0.2em 0.4em;
  border-radius: 3px;
  font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
  font-size: 0.9em;
}

pre {
  background-color: #f6f8fa;
  border-radius: 6px;
  padding: 1rem;
  margin: 1rem 0;
  overflow-x: auto;
  border: 1px solid #e1e4e8;
}

pre code {
  background: none;
  padding: 0;
  border-radius: 0;
  font-size: 0.875rem;
}

/* Post list */
.posts {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.post-summary {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #eee;
}

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

.post-summary h2 {
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
}

.post-summary h2 a {
  color: #333;
  text-decoration: none;
}

.post-summary h2 a:hover {
  color: #0066cc;
}

/* Images */
.content img {
  width: 80%;
  height: auto;
  display: block;
  margin: 1rem auto;
  border-radius: 8px;
}

/* Links */
a {
  color: #0066cc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 600px) {
  body {
    padding: 0 15px;
  }
  
  header {
    padding: 1.5rem 0;
  }
  
  article h1 {
    font-size: 1.75rem;
  }
  
  .hero-image {
    height: 220px;
  }
  
  .hero-content {
    padding: 1.5rem;
  }
  
  .hero-content p {
    font-size: 1rem;
    white-space: normal;
  }
}