/* Aid Thoughts — Clean modern blog stylesheet */

/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* Base */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #1a1a1a;
    background: #fff;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a { color: #c45d26; text-decoration: none; }
a:hover { color: #a04a1e; }

/* Header */
.site-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #fff;
    padding: 2.5rem 0 1.2rem;
    border-bottom: 4px solid #c45d26;
}
.site-header .container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 2rem;
}
.site-header h1 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    letter-spacing: -0.02em;
}
.site-header h1 a { color: #fff; text-decoration: none; }
.site-header h1 a:hover { color: #f0c8a0; }
.site-header .tagline {
    color: #c0cad4;
    font-style: italic;
    font-size: 1rem;
    font-family: Georgia, 'Times New Roman', serif;
}

/* Navigation */
nav {
    background: #fff;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e8e8e8;
    position: sticky;
    top: 0;
    z-index: 100;
}
nav .container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}
nav a {
    color: #555;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: color 0.15s;
}
nav a:hover { color: #c45d26; }

/* Main container */
.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
}

/* Archive notice */
.archive-notice {
    background: #faf8f5;
    border: 1px solid #e8e2d8;
    padding: 1rem 1.5rem;
    border-radius: 6px;
    margin-bottom: 2.5rem;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

/* Posts */
.post {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid #eee;
}
.post:last-child { border-bottom: none; }

.post h2 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
}
.post h2 a { color: #1a1a1a; text-decoration: none; }
.post h2 a:hover { color: #c45d26; }

/* Single post — larger title */
.single-post h2 {
    font-size: 2rem;
    margin-bottom: 0.6rem;
}

.post-meta {
    color: #999;
    font-size: 0.85rem;
    margin-bottom: 1.2rem;
    font-weight: 400;
}
.post-meta a { color: #999; }
.post-meta a:hover { color: #c45d26; }

/* Post content */
.post-content {
    line-height: 1.85;
    font-size: 1.05rem;
    color: #333;
}
.post-content p { margin-bottom: 1.2rem; }
.post-content a { color: #c45d26; text-decoration: underline; text-decoration-color: #e8c4a8; text-underline-offset: 2px; }
.post-content a:hover { text-decoration-color: #c45d26; }

.post-content blockquote {
    border-left: 3px solid #c45d26;
    padding: 0.8rem 1.5rem;
    margin: 1.5rem 0;
    color: #555;
    background: #faf8f5;
    border-radius: 0 4px 4px 0;
    font-family: Georgia, 'Times New Roman', serif;
    font-style: italic;
}
.post-content blockquote p:last-child { margin-bottom: 0; }

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 0.5rem 0;
}

/* Figures / captions (converted from WP [caption] shortcodes) */
.post-content figure,
.post-content .wp-caption {
    margin: 1.5rem 0;
    padding: 0;
    max-width: 100%;
}
.post-content figure img,
.post-content .wp-caption img {
    display: block;
    margin-bottom: 0;
}
.post-content figcaption {
    font-size: 0.85rem;
    color: #888;
    font-style: italic;
    margin-top: 0.5rem;
    line-height: 1.5;
}
.post-content h3, .post-content h4 {
    font-family: Georgia, 'Times New Roman', serif;
    margin: 1.5rem 0 0.8rem;
}

.post-content ul, .post-content ol {
    margin: 0 0 1.2rem 1.5rem;
}
.post-content li { margin-bottom: 0.3rem; }

/* Categories / tags */
.categories {
    margin-top: 1rem;
    font-size: 0.8rem;
}
.categories a {
    display: inline-block;
    background: #f5f2ee;
    padding: 0.2rem 0.7rem;
    border-radius: 20px;
    text-decoration: none;
    color: #777;
    margin-right: 0.3rem;
    margin-bottom: 0.3rem;
    transition: background 0.15s, color 0.15s;
}
.categories a:hover {
    background: #c45d26;
    color: #fff;
}

/* Pagination */
.pagination {
    text-align: center;
    padding: 2rem 0;
    font-size: 0.9rem;
}
.pagination a {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    margin: 0 0.3rem;
    background: #1a1a1a;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background 0.15s;
}
.pagination a:hover { background: #c45d26; }
.pagination .current { background: #c45d26; }

/* Comments */
.comments-section {
    margin-top: 3rem;
    border-top: 2px solid #eee;
    padding-top: 2rem;
}
.comments-section h3 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}

.comment {
    border-left: 3px solid #e8e8e8;
    padding: 0.8rem 1.2rem;
    margin-bottom: 1rem;
    background: #fafafa;
    border-radius: 0 6px 6px 0;
    transition: border-color 0.15s;
}
.comment:hover { border-color: #c45d26; }

/* Thread nesting */
.comment-depth-1 { margin-left: 2rem; }
.comment-depth-2 { margin-left: 4rem; }

.comment-meta {
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
    color: #666;
}
.comment-meta strong { color: #333; font-weight: 600; }
.comment-meta a { color: #c45d26; text-decoration: none; }
.comment-meta a:hover { text-decoration: underline; }
.comment-meta .comment-date { color: #999; font-size: 0.8rem; }

.comment-content {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #444;
    margin-top: 0.4rem;
}
.comment-content p { margin-bottom: 0.5rem; }
.comment-content p:last-child { margin-bottom: 0; }

.pingback {
    border-left: 2px solid #ddd !important;
    background: transparent;
    font-size: 0.85rem;
    color: #888;
}

/* Sidebar categories (used on some pages) */
.sidebar-cats { margin-top: 2rem; }
.sidebar-cats h3 { font-size: 1rem; margin-bottom: 0.5rem; }

/* Footer */
footer {
    background: #faf8f5;
    color: #999;
    padding: 2rem 0;
    text-align: center;
    font-size: 0.85rem;
    border-top: 1px solid #eee;
    margin-top: 2rem;
}

/* Archives page */
.archive-year { margin-bottom: 2rem; }
.archive-year h3 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: #1a1a1a;
}

/* Thumbnails on listing pages */
.post.has-thumb { display: flex; gap: 1.2rem; align-items: flex-start; flex-wrap: wrap; }
.post-thumb { width: 120px; height: 90px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.post-thumb-body { flex: 1; min-width: 0; }
.post.has-thumb > .post-content,
.post.has-thumb > .categories { width: 100%; }

/* Responsive */
@media (max-width: 600px) {
    .container { padding: 1.5rem 1rem; }
    .site-header h1 { font-size: 1.7rem; }
    .single-post h2 { font-size: 1.5rem; }
    .post h2 { font-size: 1.3rem; }
    .comment { margin-left: 0 !important; }
    .comment-depth-1 { margin-left: 1rem; }
    .comment-depth-2 { margin-left: 1rem; }
    nav .container { gap: 1rem; }
    .post-thumb { width: 80px; height: 60px; }
}
