:root {
    --bg: #ffffff;
    --fg: #000000;
    --link: #0000ee;
    --link-visited: #551a8b;
    --link-hover: #0000ee;
    --border: #cccccc;
    --meta: #666666;
}

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

body {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
    line-height: 1.6;
    background: var(--bg);
    color: var(--fg);
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem;
}

header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

header h1 {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 0.3rem;
}

header h1 a {
    color: var(--fg);
    text-decoration: none;
}

.tagline {
    font-size: 0.9rem;
    color: var(--meta);
    font-style: italic;
}

nav.top-nav {
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

nav.top-nav a {
    color: var(--link);
    text-decoration: underline;
}

.posts {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.post {
    border-bottom: 1px solid var(--border);
    padding-bottom: 2rem;
}

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

.post-header {
    margin-bottom: 1rem;
}

.post-header h2 {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 0.3rem;
}

.post-header h2 a {
    color: var(--fg);
    text-decoration: none;
}

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

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

.post-content {
    margin-top: 1rem;
}

.post-content p {
    margin-bottom: 1rem;
}

.post-content a {
    color: var(--link);
    text-decoration: underline;
}

.post-content a:visited {
    color: var(--link-visited);
}

.post-content a:hover {
    color: var(--link-hover);
    background-color: #f0f0f0;
}

.post-content ul, .post-content ol {
    margin: 1rem 0 1rem 2rem;
}

.post-content li {
    margin-bottom: 0.8rem;
}

.post-content li em {
    color: var(--meta);
    font-size: 0.95rem;
}

.post-content strong {
    font-weight: bold;
}

.pagination {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.pagination a {
    color: var(--link);
    text-decoration: underline;
}

.pagination .page-info {
    color: var(--meta);
}

footer {
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    color: var(--meta);
    font-size: 0.85rem;
    text-align: center;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--bg);
    color: var(--fg);
    padding: 8px;
    text-decoration: none;
    border: 1px solid var(--border);
}

.skip-link:focus {
    top: 0;
}

@media (max-width: 600px) {
    body {
        font-size: 15px;
        padding: 0.8rem;
    }
    
    header h1 {
        font-size: 1.5rem;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}
