/* Oh My Blog — Minimal CSS */

:root {
    --text: #1a1a1a;
    --bg: #fefefe;
    --muted: #666;
    --link: #0066cc;
    --code-bg: #f4f4f4;
}

@media (prefers-color-scheme: dark) {
    :root {
        --text: #e8e8e8;
        --bg: #1a1a1a;
        --muted: #999;
        --link: #6db3f2;
        --code-bg: #2a2a2a;
    }
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 18px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    max-width: 680px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Typography */
h1, h2, h3, h4 {
    line-height: 1.3;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

h1 { font-size: 2rem; margin-top: 0; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }

p, ul, ol, pre, blockquote {
    margin-bottom: 1.5rem;
}

ul, ol {
    padding-left: 1.5rem;
}

a {
    color: var(--link);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Code */
code {
    font-family: "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.9em;
    background: var(--code-bg);
    padding: 0.15em 0.4em;
    border-radius: 3px;
}

pre {
    background: var(--code-bg);
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
}

pre code {
    background: none;
    padding: 0;
}

/* Blockquote */
blockquote {
    border-left: 3px solid var(--muted);
    padding-left: 1rem;
    color: var(--muted);
    font-style: italic;
}

/* Header & Navigation */
body > header {
    margin-bottom: 3rem;
}

nav a {
    color: var(--muted);
}

/* Article */
article header {
    margin-bottom: 2rem;
}

article header time {
    color: var(--muted);
    font-size: 0.9rem;
    display: block;
    margin-top: 0.5rem;
}

/* Posts List (index page) */
.posts-list {
    list-style: none;
    padding: 0;
}

.posts-list li {
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
    align-items: baseline;
}

.posts-list time {
    color: var(--muted);
    font-size: 0.85rem;
    font-family: "SF Mono", Consolas, monospace;
    flex-shrink: 0;
}

/* Footer */
footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--code-bg);
    color: var(--muted);
    font-size: 0.9rem;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

/* Utilities */
.intro {
    font-size: 1.1rem;
    color: var(--muted);
    margin-bottom: 3rem;
}
