/* kfelix.io - minimal hacker aesthetic */

:root {
    --color-bg: #fff;
    --color-text: #000;
    --color-muted: #555;
    --color-link: #0000ee;
    --color-link-visited: #551a8b;
    --font-main: Verdana, Geneva, sans-serif;
    --font-mono: "Courier New", Courier, monospace;
    --max-width: 700px;
}

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

html {
    font-size: 14px;
}

body {
    font-family: var(--font-main);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    padding: 20px;
}

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

a:visited {
    color: var(--color-text);
}

a:hover {
    text-decoration: none;
}

/* Header */
header {
    max-width: var(--max-width);
    margin: 0 auto 30px auto;
}

.site-title {
    font-family: var(--font-mono);
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.site-title a {
    color: var(--color-text);
    text-decoration: none;
}

.site-title a:hover {
    text-decoration: underline;
}

.site-nav {
    font-size: 0.9rem;
    color: var(--color-muted);
}

.site-nav a {
    margin-right: 15px;
}

.divider {
    border: none;
    border-top: 1px solid #ccc;
    margin: 20px 0;
}

/* Main content */
main {
    max-width: var(--max-width);
    margin: 0 auto;
}

/* Index page */
.intro {
    margin-bottom: 25px;
    font-size: 0.95rem;
    color: var(--color-muted);
}

.posts-list {
    list-style: none;
}

.post-item {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px dashed #ccc;
}

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

.post-item-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 3px;
}

.post-item-title a {
    text-decoration: none;
}

.post-item-title a:hover {
    text-decoration: underline;
}

.post-item-meta {
    font-size: 0.85rem;
    color: var(--color-muted);
    margin-bottom: 8px;
}

.post-item-excerpt {
    font-size: 0.95rem;
    color: var(--color-text);
}

/* Single post */
.post-header {
    margin-bottom: 25px;
}

.post-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.post-meta {
    font-size: 0.85rem;
    color: var(--color-muted);
}

.post-content {
    font-size: 1rem;
    line-height: 1.7;
}

.post-content p {
    margin-bottom: 1.2em;
    text-align: justify;
}

.post-content h2 {
    font-size: 1.2rem;
    font-weight: bold;
    margin: 2em 0 0.8em 0;
}

.post-content h3 {
    font-size: 1.05rem;
    font-weight: bold;
    margin: 1.5em 0 0.6em 0;
}

.post-content ul,
.post-content ol {
    margin: 0 0 1.2em 1.5em;
}

.post-content li {
    margin-bottom: 0.4em;
}

.post-content blockquote {
    margin: 1.2em 0;
    padding-left: 1em;
    border-left: 3px solid #ccc;
    color: var(--color-muted);
    font-style: italic;
}

.post-content code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    background: #f5f5f5;
    padding: 2px 5px;
}

.post-content pre {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    background: #f5f5f5;
    padding: 15px;
    overflow-x: auto;
    margin: 1.2em 0;
    border: 1px solid #ddd;
}

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

.post-nav {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px dashed #ccc;
    font-size: 0.9rem;
}

/* About page */
.about-content {
    font-size: 1rem;
    line-height: 1.7;
}

.about-content p {
    margin-bottom: 1.2em;
}

.about-content h2 {
    font-size: 1.2rem;
    font-weight: bold;
    margin: 1.8em 0 0.8em 0;
}

.about-content ul,
.about-content ol {
    margin: 0 0 1.2em 1.5em;
}

.about-content li {
    margin-bottom: 0.4em;
}

/* Footer */
footer {
    max-width: var(--max-width);
    margin: 40px auto 20px auto;
    padding-top: 20px;
    border-top: 1px solid #ccc;
    font-size: 0.85rem;
    color: var(--color-muted);
}

footer a {
    margin-right: 15px;
}

.views-counter {
    float: right;
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 600px) {
    body {
        padding: 15px;
    }

    .post-title {
        font-size: 1.3rem;
    }
}
