/* Minimal, text-only styling inspired by bactra.org */

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

body {
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.6;
    color: #333;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
}

header {
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
    margin-bottom: 30px;
}

header h1 {
    font-size: 1.5em;
    font-weight: normal;
    margin-bottom: 10px;
}

header h1 a {
    color: #000;
    text-decoration: none;
}

header h1 a:hover {
    text-decoration: underline;
}

nav {
    font-size: 0.9em;
    color: #666;
}

nav a {
    color: #000;
    text-decoration: none;
}

nav a:hover {
    text-decoration: underline;
}

nav a.active {
    font-weight: bold;
}

main {
    margin-bottom: 40px;
}

.about-me {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.about-me p {
    margin-bottom: 1em;
    color: #333;
}

main h2 {
    font-size: 1.2em;
    font-weight: normal;
    margin-bottom: 15px;
    color: #000;
}

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

.post-list li {
    margin-bottom: 10px;
    padding-left: 0;
}

.post-list a {
    color: #000;
    text-decoration: none;
}

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

.post-list .date {
    color: #666;
    font-size: 0.9em;
    margin-left: 10px;
}

.links-section {
    margin-bottom: 30px;
}

.links-section h2 {
    font-size: 1.1em;
    font-weight: normal;
    margin-bottom: 10px;
    color: #000;
}

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

.links-list li {
    margin-bottom: 8px;
    padding-left: 0;
}

.links-list a {
    color: #000;
    text-decoration: none;
}

.links-list a:hover {
    text-decoration: underline;
}

.links-list .description {
    color: #666;
    font-size: 0.9em;
    margin-left: 10px;
}

article {
    margin-bottom: 40px;
}

article header {
    border-bottom: none;
    margin-bottom: 20px;
    padding-bottom: 0;
}

article h1 {
    font-size: 1.3em;
    font-weight: normal;
    margin-bottom: 5px;
}

article .meta {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 20px;
}

article .content {
    margin-top: 20px;
}

article .content p {
    margin-bottom: 1em;
}

article .content h2 {
    font-size: 1.1em;
    font-weight: normal;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

article .content h3 {
    font-size: 1em;
    font-weight: normal;
    margin-top: 1.2em;
    margin-bottom: 0.5em;
}

article .content ul,
article .content ol {
    margin-left: 2em;
    margin-bottom: 1em;
}

article .content li {
    margin-bottom: 0.5em;
}

article .content code {
    font-family: "Courier New", Courier, monospace;
    font-size: 0.9em;
    background-color: #f5f5f5;
    padding: 2px 4px;
}

article .content pre {
    font-family: "Courier New", Courier, monospace;
    font-size: 0.9em;
    padding: 15px;
    overflow-x: auto;
    margin-bottom: 1em;
    border: 1px solid #ddd;
}

article .content pre code {
    background-color: transparent;
    padding: 0;
}

/* Prism.js code block styling */
article .content pre[class*="language-"] {
    background-color: #f5f5f5;
}

article .content pre[class*="language-"] code {
    background-color: transparent;
}

article .content img {
    max-width: 100%;
    height: auto;
    margin: 1em 0;
}

article .content blockquote {
    border-left: 3px solid #ccc;
    padding-left: 15px;
    margin-left: 0;
    color: #666;
    font-style: italic;
}

article .content a {
    color: #000;
    text-decoration: underline;
}

article .content a:hover {
    background-color: #ffff00;
}

footer {
    border-top: 1px solid #ccc;
    padding-top: 10px;
    margin-top: 40px;
    font-size: 0.9em;
    color: #666;
}

footer a {
    color: #000;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* MathJax styling */
.MathJax {
    font-size: 1em !important;
}

/* Responsive */
@media (max-width: 600px) {
    body {
        padding: 15px;
    }
    
    header h1 {
        font-size: 1.3em;
    }
    
    article h1 {
        font-size: 1.2em;
    }
}

