/* Minimal theme inspired by fuwei.us */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #fff;
    --text-color: #333;
    --text-secondary: #586069;
    --link-color: #0366d6;
    --border-color: #e1e4e8;
    --code-bg: #f6f8fa;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #0d1117;
        --text-color: #c9d1d9;
        --text-secondary: #8b949e;
        --link-color: #58a6ff;
        --border-color: #30363d;
        --code-bg: #161b22;
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--bg-color);
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

a:hover {
    text-decoration: underline;
}

h1 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.2;
}

h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1rem;
}

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

li {
    margin-bottom: 0.25rem;
}

code {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.9em;
    background: var(--code-bg);
    color: var(--text-color);
    padding: 0.2em 0.4em;
    border-radius: 3px;
}

pre {
    background: var(--code-bg);
    padding: 1rem;
    overflow-x: auto;
    border-radius: 6px;
    margin-bottom: 1rem;
}

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

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

header h1 {
    margin-bottom: 0.5rem;
}

header p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

nav {
    margin-top: 1rem;
}

nav a {
    margin-right: 1.5rem;
    color: var(--text-secondary);
}

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

/* Article list */
.article-list {
    list-style: none;
    padding: 0;
}

.article-list li {
    margin-bottom: 1.5rem;
}

.article-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.article-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.article-summary {
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* Article */
article header {
    border-bottom: none;
    margin-bottom: 2rem;
}

article .article-date {
    display: block;
    margin-bottom: 0.5rem;
}

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

footer a {
    color: var(--text-secondary);
    margin-right: 1rem;
}

/* Links section */
.links {
    margin-top: 2rem;
}

.links a {
    display: inline-block;
    margin-right: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 640px) {
    body {
        font-size: 14px;
        padding: 1rem;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    nav a {
        display: block;
        margin-bottom: 0.5rem;
    }
}
