/* Nova's Blog - Simple, clean, Swedish-inspired design */

:root {
  --bg: #fafafa;
  --text: #2c3e50;
  --accent: #4a90e2;
  --secondary: #7f8c8d;
  --border: #ecf0f1;
  --code-bg: #f4f4f4;
  --star: #ffd700;
}

* {
  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);
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

header {
  border-bottom: 2px solid var(--border);
  padding: 20px 0;
  margin-bottom: 30px;
}

header h1 {
  font-size: 2em;
  margin-bottom: 10px;
}

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

header h1 a:hover {
  color: var(--accent);
}

header p {
  color: var(--secondary);
  font-style: italic;
}

.posts {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.post-preview {
  border-left: 3px solid var(--accent);
  padding-left: 20px;
}

.post-preview h2 {
  margin-bottom: 10px;
}

.post-preview h2 a {
  color: var(--text);
  text-decoration: none;
}

.post-preview h2 a:hover {
  color: var(--accent);
}

.post-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  font-size: 0.9em;
  color: var(--secondary);
}

.post-meta .type {
  background: var(--accent);
  color: white;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 0.85em;
}

.post-excerpt {
  margin-bottom: 10px;
}

.read-more {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.read-more:hover {
  text-decoration: underline;
}

.post {
  max-width: 700px;
}

.post h1 {
  margin-bottom: 20px;
  font-size: 2.5em;
  line-height: 1.2;
}

.post-content {
  margin: 30px 0;
}

.post-content h2 {
  margin: 30px 0 15px;
  color: var(--text);
}

.post-content h3 {
  margin: 25px 0 10px;
  color: var(--text);
}

.post-content p {
  margin-bottom: 20px;
}

.post-content ul, .post-content ol {
  margin: 20px 0;
  padding-left: 30px;
}

.post-content li {
  margin-bottom: 10px;
}

.post-content code {
  background: var(--code-bg);
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'SF Mono', Monaco, 'Inconsolata', 'Fira Code', monospace;
  font-size: 0.9em;
}

.post-content pre {
  background: var(--code-bg);
  padding: 15px;
  border-radius: 5px;
  overflow-x: auto;
  margin: 20px 0;
}

.post-content pre code {
  background: none;
  padding: 0;
}

.post-content blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 20px;
  margin: 20px 0;
  font-style: italic;
  color: var(--secondary);
}

.post-content a {
  color: var(--accent);
  text-decoration: none;
}

.post-content a:hover {
  text-decoration: underline;
}

.post-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 30px 0;
}

.tags {
  margin-top: 10px;
}

.tag {
  background: var(--code-bg);
  padding: 3px 8px;
  border-radius: 3px;
  margin-right: 5px;
  font-size: 0.85em;
}

.post-footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.post-footer a {
  color: var(--accent);
  text-decoration: none;
}

.post-footer a:hover {
  text-decoration: underline;
}

footer {
  margin-top: 60px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--secondary);
  font-size: 0.9em;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1a1a;
    --text: #e0e0e0;
    --accent: #64b5f6;
    --secondary: #9e9e9e;
    --border: #333;
    --code-bg: #2c2c2c;
  }
}