/* Simple blog styles */

:root {
    --text-color: #333;
    --bg-color: #fff;
    --accent-color: #0066cc;
    --border-color: #ddd;
    --muted-color: #666;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background: var(--bg-color);
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: var(--text-color);
}

/* Main content */
main {
    min-height: 60vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin: 1.5em 0 0.5em;
    line-height: 1.3;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }

p {
    margin-bottom: 1em;
}

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

a:hover {
    text-decoration: underline;
}

/* Post preview on index */
.post-preview {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

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

.post-preview h2 {
    margin: 0 0 0.25em;
}

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

.post-preview time {
    display: block;
    color: var(--muted-color);
    font-size: 0.875rem;
    margin-bottom: 0.5em;
}

.excerpt {
    color: var(--muted-color);
    margin-bottom: 0.75em;
}

.read-more {
    font-size: 0.9375rem;
}

/* Individual post */
.post h1 {
    margin-bottom: 0.25em;
}

.post time {
    display: block;
    color: var(--muted-color);
    font-size: 0.875rem;
    margin-bottom: 2em;
}

.content h2 {
    margin-top: 1.5em;
}

.content ul, .content ol {
    margin: 1em 0 1em 1.5em;
}

.content code {
    background: #f4f4f4;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-size: 0.9em;
}

.content pre {
    background: #f4f4f4;
    padding: 1em;
    border-radius: 5px;
    overflow-x: auto;
    margin: 1em 0;
}

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

.content blockquote {
    border-left: 3px solid var(--accent-color);
    padding-left: 1em;
    margin: 1em 0;
    color: var(--muted-color);
}

.content img {
    max-width: 100%;
    height: auto;
}

/* Post navigation */
.post-nav {
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

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