/* Typography & Base */
body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  font-size: 18px;
  line-height: 1.7;
  color: #2d3748;
  background: #f7fafc;
}

/* Links */
a {
  color: #3182ce;
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: #2c5282;
  text-decoration: underline;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Georgia', serif;
  font-weight: 700;
  line-height: 1.3;
  color: #1a202c;
  margin-top: 1.5em;
  margin-bottom: 0.75em;
}

h1 { font-size: 2.5em; letter-spacing: -0.5px; }
h2 { font-size: 1.9em; }
h3 { font-size: 1.5em; color: #2d3748; }
h4 { font-size: 1.2em; }
h5 { font-size: 1em; }
h6 { font-size: 0.9em; color: #718096; }

/* Paragraphs & Lists */
p {
  margin-bottom: 1.5em;
  color: #4a5568;
}

ul, ol {
  margin-bottom: 1.5em;
  padding-left: 2em;
}

ul li, ol li {
  margin-bottom: 0.5em;
  color: #4a5568;
}

/* Navigation */
nav ul, footer ul {
  font-size: 0.95em;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  padding: 0;
  list-style: none;
  font-weight: 600;
}

nav ul li, footer ul li {
  display: inline;
  margin-right: 20px;
}

/* Footer */
footer {
  border-top: 1px solid #e2e8f0;
  font-size: 0.85em;
  color: #718096;
  padding: 2em 0;
  margin-top: 3em;
}

footer a {
  color: #4a5568;
}

footer a:hover {
  color: #2d3748;
}

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

/* Header */
.site-header {
  padding: 3em 0;
  text-align: center;
  border-bottom: 1px solid #e2e8f0;
  background: #fff;
}

.site-header h1 {
  margin: 0;
  font-size: 2.5em;
}

.site-header h2 {
  margin: 0.5em 0 0;
  font-size: 1.2em;
  font-weight: normal;
  color: #718096;
}

/* Blog Post Styles */
.post-header {
  text-align: center;
  padding: 3em 0 2em;
  border-bottom: 1px solid #e2e8f0;
  background: #fff;
  margin-bottom: 2em;
}

.post-header h1 {
  margin: 0 0 0.5em;
  font-size: 2.5em;
}

.post-meta {
  font-size: 0.95em;
  color: #718096;
  font-family: 'Georgia', serif;
  font-style: italic;
}

.post {
  background: #fff;
  padding: 2em;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Code Blocks */
code {
  font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
  font-size: 0.85em;
  padding: 0.2em 0.4em;
  background: #edf2f7;
  border-radius: 4px;
  color: #e53e3e;
}

pre {
  background: #1a202c;
  color: #e2e8f0;
  padding: 1.5em;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1.5em 0;
  font-size: 0.85em;
  line-height: 1.6;
}

pre code {
  background: transparent;
  padding: 0;
  color: inherit;
  border-radius: 0;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.95em;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

table th, table td {
  padding: 0.75em 1em;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

table th {
  background: #f7fafc;
  font-weight: 600;
  color: #2d3748;
}

table tr:hover {
  background: #f7fafc;
}

table tr:last-child td {
  border-bottom: none;
}

/* Blockquotes */
blockquote {
  margin: 1.5em 0;
  padding: 1em 1.5em;
  border-left: 4px solid #3182ce;
  background: #ebf8ff;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #2c5282;
}

blockquote p:last-child {
  margin-bottom: 0;
}

/* Horizontal Rule */
hr {
  border: none;
  border-top: 2px solid #e2e8f0;
  margin: 2em 0;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5em 0;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Blog Index */
ul.posts {
  margin: 2em 0;
  padding: 0;
  list-style: none;
}

ul.posts li {
  margin-bottom: 1em;
  padding-bottom: 1em;
  border-bottom: 1px solid #e2e8f0;
}

ul.posts li:last-child {
  border-bottom: none;
}

ul.posts a {
  font-size: 1.1em;
  font-weight: 600;
  color: #2d3748;
}

ul.posts .date {
  font-size: 0.9em;
  color: #718096;
  margin-left: 0.5em;
}

/* Tags/Categories */
.tags {
  margin-top: 2em;
  padding-top: 1em;
  border-top: 1px solid #e2e8f0;
}

.tag {
  display: inline-block;
  padding: 0.25em 0.75em;
  margin-right: 0.5em;
  margin-bottom: 0.5em;
  background: #edf2f7;
  color: #4a5568;
  border-radius: 20px;
  font-size: 0.85em;
}

.tag:hover {
  background: #3182ce;
  color: #fff;
  text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
  body {
    font-size: 16px;
  }
  
  h1 { font-size: 2em; }
  h2 { font-size: 1.6em; }
  h3 { font-size: 1.3em; }
  
  .post {
    padding: 1.5em;
  }
  
  .site-header, .post-header {
    padding: 2em 1em;
  }
  
  table {
    font-size: 0.85em;
  }
  
  table th, table td {
    padding: 0.5em;
  }
}

/* Print */
@media print {
  body {
    background: #fff;
    color: #000;
  }
  
  a {
    color: #000;
    text-decoration: underline;
  }
  
  .post {
    box-shadow: none;
  }
}
