/* Modern, clean theme for personal + technical blog */

:root {
  --bg: #ffffff;
  --text: #1a1a1a;
  --text-light: #666666;
  --accent: #0066cc;
  --accent-hover: #0052a3;
  --border: #e5e5e5;
  --code-bg: #f6f8fa;
  --shadow: rgba(0, 0, 0, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1117;
    --text: #e6edf3;
    --text-light: #8b949e;
    --accent: #58a6ff;
    --accent-hover: #79c0ff;
    --border: #30363d;
    --code-bg: #161b22;
    --shadow: rgba(0, 0, 0, 0.3);
  }
}

* {
  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);
  font-size: 18px;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* Header */
header {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}

header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

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

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

nav {
  margin-top: 1rem;
}

nav a {
  color: var(--text-light);
  text-decoration: none;
  margin-right: 1.5rem;
  font-size: 0.95rem;
}

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

/* 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.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

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

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

.post-meta {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.post-summary {
  color: var(--text-light);
  line-height: 1.7;
}

/* Single post */
article header {
  border-bottom: none;
  padding-bottom: 1rem;
}

article h1 {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

/* Content typography */
.content {
  margin-top: 2rem;
}

.content h2 {
  font-size: 1.75rem;
  font-weight: 600;
  margin: 2rem 0 1rem;
  line-height: 1.3;
}

.content h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 1.75rem 0 0.875rem;
}

.content h4 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem;
}

.content p {
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.content a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.content a:hover {
  color: var(--accent-hover);
  border-bottom-color: var(--accent-hover);
}

.content ul, .content ol {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}

.content li {
  margin-bottom: 0.5rem;
}

/* Images - great for personal photo posts */
.content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 2rem 0;
  box-shadow: 0 4px 12px var(--shadow);
}

/* Code blocks - for technical posts */
.content code {
  background: var(--code-bg);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, monospace;
}

.content pre {
  background: var(--code-bg);
  padding: 1.25rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid var(--border);
}

.content pre code {
  background: none;
  padding: 0;
  font-size: 0.875rem;
  line-height: 1.6;
}

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

/* Tables */
.content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.content th, .content td {
  padding: 0.75rem;
  border: 1px solid var(--border);
  text-align: left;
}

.content th {
  background: var(--code-bg);
  font-weight: 600;
}

/* Footer */
footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  color: var(--text-light);
  font-size: 0.9rem;
  text-align: center;
}

/* Responsive */
@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  article h1 {
    font-size: 1.75rem;
  }

  .content h2 {
    font-size: 1.5rem;
  }

  .container {
    padding: 1.5rem 1rem;
  }
}
