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

body {
    font-family: 'Courier New', monospace;
    background-color: #ffffff;
    color: #000000;
    line-height: 1.6;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

/* Site Header */
.site-header {
    margin-bottom: 40px;
}

.site-title {
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: normal;
}

.site-subtitle {
    font-size: 1.2em;
    margin-bottom: 0;
    color: #333333;
    font-weight: normal;
}

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

h2 {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: #333333;
    font-weight: normal;
}

/* Lists */
ul, ol {
    list-style-position: inside;
    margin: 0 0 1em 0;
    padding-left: 0;
}

/* Neutral Links */
a {
    color: #000000;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a:hover, a:focus {
    color: #2f5aa8;
    text-decoration: underline;
}

a:visited {
    color: #000000;
}

a:focus-visible {
    outline: 2px dashed #999999;
    outline-offset: 2px;
}

.article {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.article:last-child {
    border-bottom: none;
}

.article-title {
    font-size: 1.3em;
    margin-bottom: 8px;
}

.article-title a {
    color: #000000;
}

.article-title a:hover {
    color: #2f5aa8;
    text-decoration: underline;
}

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

.article-excerpt {
    font-size: 1em;
    color: #333333;
}

.tags {
    margin-top: 10px;
}

.tag {
    display: inline-block;
    background-color: #f0f0f0;
    padding: 2px 6px;
    margin-right: 5px;
    font-size: 0.8em;
    border: 1px solid #d0d0d0;
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 15px;
        font-size: 16px;
    }
    
    .container {
        max-width: 100%;
        padding: 0 10px;
    }
    
    h1 {
        font-size: 1.8em;
        margin-bottom: 8px;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 1em;
        margin-bottom: 25px;
        line-height: 1.4;
    }
    
    .article {
        margin-bottom: 25px;
        padding-bottom: 15px;
    }
    
    .article-title {
        font-size: 1.1em;
        line-height: 1.3;
    }
    
    .article-meta {
        font-size: 0.85em;
        margin-bottom: 8px;
    }
    
    .article-excerpt {
        font-size: 0.95em;
        line-height: 1.5;
    }
    
    .tag {
        font-size: 0.75em;
        padding: 3px 6px;
        margin-right: 4px;
        margin-bottom: 4px;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .container {
        padding: 0 5px;
    }
    
    h1 {
        font-size: 1.5em;
        margin-bottom: 6px;
    }
    
    h2 {
        font-size: 0.9em;
        margin-bottom: 20px;
    }
    
    .article {
        margin-bottom: 20px;
        padding-bottom: 12px;
    }
    
    .article-title {
        font-size: 1em;
    }
    
    .article-meta {
        font-size: 0.8em;
    }
    
    .article-excerpt {
        font-size: 0.9em;
    }
    
    .tag {
        font-size: 0.7em;
        padding: 2px 5px;
        margin-right: 3px;
        margin-bottom: 3px;
    }
}

/* Touch-friendly links */
@media (hover: none) and (pointer: coarse) {
    .article-title a {
        padding: 4px 0;
        display: block;
    }
    
    .tag {
        padding: 4px 8px;
        margin-right: 6px;
        margin-bottom: 6px;
    }
}

/* Single Article Page */
.single-article {
    max-width: 800px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.article-header .article-title {
    font-size: 2.2em;
    margin-bottom: 15px;
    line-height: 1.2;
}

.article-content {
    font-size: 1.1em;
    line-height: 1.7;
    margin-bottom: 40px;
}

.article-content h2 {
    font-size: 1.5em;
    margin: 30px 0 15px 0;
    color: #000000;
}

.article-content h3 {
    font-size: 1.3em;
    margin: 25px 0 10px 0;
    color: #000000;
}

.article-content p {
    margin-bottom: 15px;
}

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

.article-content pre {
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin: 20px 0;
}

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

.article-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

/* Article top nav */
.article-top-nav {
    margin-bottom: 20px;
}

/* Site Footer */
.site-footer {
    margin-top: 60px;
    padding: 20px 0;
    border-top: 1px solid #e0e0e0;
    color: #666666;
    font-size: 0.9em;
}

.site-footer p {
    margin: 0;
}

.back-link {
    color: #666666;
    text-decoration: underline;
    font-size: 0.9em;
}

.back-link:hover {
    color: #2f5aa8;
    text-decoration: underline;
}

/* Mobile styles for single article */
@media (max-width: 768px) {
    .article-header .article-title {
        font-size: 1.8em;
    }
    
    .article-content {
        font-size: 1em;
    }
    
    .article-content h2 {
        font-size: 1.3em;
    }
    
    .article-content h3 {
        font-size: 1.1em;
    }
}

/* 404 Error Page */
.error-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
}

.error-content {
    max-width: 500px;
}

.error-logo {
    width: 120px;
    height: auto;
    margin-bottom: 30px;
    opacity: 0.8;
}

.error-code {
    font-size: 4em;
    font-weight: bold;
    color: #333333;
    margin-bottom: 20px;
    font-family: 'Courier New', monospace;
}

.error-message {
    font-size: 1.2em;
    color: #666666;
    margin-bottom: 30px;
    line-height: 1.5;
}

.back-home {
    display: inline-block;
    padding: 12px 24px;
    background-color: #000000;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.back-home:hover {
    background-color: #333333;
}

@media (max-width: 480px) {
    .article-header .article-title {
        font-size: 1.5em;
    }
    
    .article-content {
        font-size: 0.95em;
    }
    
    .error-code {
        font-size: 3em;
    }
    
    .error-logo {
        width: 100px;
    }
}
