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

/* === VARIABLES === */
:root {
    --bg: #0a0e12;
    --bg-alt: #141a1f;
    --text: #e0e6ed;
    --text-dim: #8b95a1;
    --accent: #2dd4bf; /* teal/green accent */
    --accent-dim: #14b8a6;
    --border: #1f2937;
}

/* === BASE === */
html {
    font-size: 16px;
    line-height: 1.6;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

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

p {
    margin-bottom: 1rem;
}

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

a:hover {
    color: var(--accent-dim);
    text-decoration: underline;
}

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

header h1 {
    margin: 0;
    font-size: 1.75rem;
}

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

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

.tagline {
    color: var(--text-dim);
    margin: 0.5rem 0 0 0;
    font-size: 0.95rem;
}

/* === MAIN === */
main {
    flex: 1;
    margin-bottom: 3rem;
}

/* === POSTS === */
.posts {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

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

.post-preview h2 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

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

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

.meta {
    color: var(--text-dim);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    font-family: "Courier New", monospace;
}

.read-more {
    display: inline-block;
    margin-top: 0.5rem;
    color: var(--accent);
    font-weight: 500;
}

/* === SINGLE POST === */
.post-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.post-header h1 {
    margin-bottom: 0.5rem;
}

.content {
    line-height: 1.7;
}

.content h2,
.content h3,
.content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content code {
    background: var(--bg-alt);
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    font-family: "Courier New", monospace;
    font-size: 0.9rem;
}

.content pre {
    background: var(--bg-alt);
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
    margin-bottom: 1rem;
    border: 1px solid var(--border);
}

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

.content blockquote {
    border-left: 3px solid var(--accent);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    color: var(--text-dim);
    font-style: italic;
}

.content ul,
.content ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

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

.post-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

/* === FOOTER === */
footer {
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    color: var(--text-dim);
    text-align: center;
    font-size: 0.875rem;
}

/* === RESPONSIVE === */
@media (max-width: 640px) {
    html {
        font-size: 15px;
    }
    
    header {
        padding: 1.5rem 0;
        margin-bottom: 2rem;
    }
    
    .post-preview {
        padding-left: 1rem;
    }
}
