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

:root {
  --primary-color: #1a1a1a;
  --secondary-color: #404040;
  --text-color: #1a1a1a;
  --text-light: #666;
  --border-color: #e0e0e0;
  --background: #ffffff;
  --code-background: #f7f7f7;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background: var(--background);
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header and Navigation */
header {
  background: var(--primary-color);
  color: white;
  padding: 1.5rem 0;
  margin-bottom: 3rem;
}

.site-title {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.site-title a {
  color: white;
  text-decoration: none;
}

nav {
  margin-top: 1rem;
}

nav a {
  color: white;
  text-decoration: none;
  margin-right: 1.5rem;
  font-weight: 500;
  transition: opacity 0.2s;
}

nav a:hover {
  opacity: 0.8;
}

/* Main Content */
main {
  min-height: calc(100vh - 200px);
  margin-bottom: 3rem;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--primary-color);
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

h1 {
  font-size: 2.5rem;
  margin-top: 0;
}

h2 {
  font-size: 2rem;
  padding-bottom: 0.3rem;
  border-bottom: 2px solid var(--border-color);
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--secondary-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Blog Posts */
.blog-posts,
.blog-list {
  margin-top: 2rem;
}

.post-preview,
.blog-post-item {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

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

.post-preview h3,
.blog-post-item h2 {
  margin-top: 0;
  border-bottom: none;
  font-size: 1.5rem;
}

.post-date,
.post-meta {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  background: none;
}

.post-categories,
.reading-time {
  background: none;
}

.post-excerpt {
  color: var(--text-light);
}

/* Individual Post Page */
.post {
  background: none;
}

.post-header {
  margin-bottom: 2rem;
  background: none;
}

.post-header h1 {
  margin-bottom: 0.5rem;
}

.post-header p {
  background: none;
}

.post-header time {
  background: none;
}

.post-content {
  margin-bottom: 3rem;
  background: none;
}

.post-content img {
  max-width: 100%;
  height: auto;
  margin: 1.5rem 0;
}

.post-footer {
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  background: none;
}

.post-footer p {
  background: none;
}

.post-footer a {
  background: none;
}

/* Code Blocks */
code {
  background: var(--code-background);
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.9em;
}

pre {
  background: var(--code-background);
  padding: 1rem;
  border-radius: 5px;
  overflow-x: auto;
  margin: 1.5rem 0;
}

pre code {
  padding: 0;
  background: none;
}

/* Blockquotes */
blockquote {
  border-left: 4px solid var(--secondary-color);
  padding-left: 1rem;
  margin: 1.5rem 0;
  color: var(--text-light);
  font-style: italic;
}

/* Lists */
ul, ol {
  margin-bottom: 1rem;
  padding-left: 2rem;
}

li {
  margin-bottom: 0.5rem;
}

/* Footer */
footer {
  background: var(--primary-color);
  color: white;
  padding: 2rem 0;
  margin-top: 3rem;
  text-align: center;
}

.social-links {
  margin-bottom: 1rem;
}

.social-links a {
  color: white;
  text-decoration: none;
  margin: 0 0.75rem;
  font-weight: 500;
  transition: opacity 0.2s;
}

.social-links a:hover {
  opacity: 0.8;
  text-decoration: none;
}

footer p {
  margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  nav a {
    display: inline-block;
    margin-right: 1rem;
    margin-bottom: 0.5rem;
  }
}
