/* Eli Vance's Blog - Clean, Professional Styling */

:root {
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --text: #1f2937;
  --text-light: #6b7280;
  --bg: #ffffff;
  --bg-alt: #f9fafb;
  --border: #e5e7eb;
  --code-bg: #f3f4f6;
  --accent: #ff6b35;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

/* Header */
header {
  background: var(--bg);
  border-bottom: 2px solid var(--border);
  padding: 2rem 0;
  margin-bottom: 3rem;
}

header .container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

header h1 {
  font-size: 2rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

header p {
  color: var(--text-light);
  font-size: 1.1rem;
}

header a {
  color: var(--primary);
  text-decoration: none;
}

header a:hover {
  text-decoration: underline;
}

/* Main Content */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

/* Post List */
.post-list {
  list-style: none;
}

.post-item {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

.post-item:last-child {
  border-bottom: none;
}

.post-item h2 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.post-item h2 a {
  color: var(--text);
  text-decoration: none;
}

.post-item h2 a:hover {
  color: var(--primary);
}

.post-meta {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.post-meta time {
  font-weight: 500;
}

.post-meta .category {
  background: var(--bg-alt);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.85rem;
  margin-left: 0.5rem;
}

.post-excerpt {
  color: var(--text-light);
  line-height: 1.7;
}

.read-more {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.read-more:hover {
  color: var(--primary-dark);
}

/* Blog Post */
article {
  margin-bottom: 4rem;
}

article h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

article h2 {
  font-size: 1.75rem;
  margin: 2.5rem 0 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

article h3 {
  font-size: 1.35rem;
  margin: 2rem 0 1rem;
}

article p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

article ul, article ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

article li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

article a {
  color: var(--primary);
  text-decoration: none;
}

article a:hover {
  text-decoration: underline;
}

/* Code Blocks */
code {
  background: var(--code-bg);
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 0.9em;
}

pre {
  background: var(--code-bg);
  padding: 1.5rem;
  border-radius: 6px;
  overflow-x: auto;
  margin: 1.5rem 0;
  border-left: 4px solid var(--primary);
}

pre code {
  background: none;
  padding: 0;
}

/* Blockquotes */
blockquote {
  border-left: 4px solid var(--accent);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  color: var(--text-light);
  font-style: italic;
}

/* Images */
article img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 2rem 0;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Highlight Boxes */
.highlight {
  background: #fef3c7;
  border-left: 4px solid #f59e0b;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 4px;
}

.highlight h4 {
  margin-bottom: 0.5rem;
  color: #92400e;
}

/* Back Link */
.back-link {
  display: inline-block;
  color: var(--primary);
  text-decoration: none;
  margin-bottom: 2rem;
  font-weight: 500;
}

.back-link:hover {
  color: var(--primary-dark);
}

.back-link::before {
  content: "← ";
}

/* Footer */
footer {
  border-top: 2px solid var(--border);
  padding: 2rem 0;
  margin-top: 4rem;
  text-align: center;
  color: var(--text-light);
}

/* Responsive */
@media (max-width: 768px) {
  header h1 {
    font-size: 1.5rem;
  }

  article h1 {
    font-size: 2rem;
  }

  article h2 {
    font-size: 1.5rem;
  }

  .container {
    padding: 0 1rem 4rem;
  }
}
