/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Charter, 'Bitstream Charter', 'Sitka Text', Cambria, Georgia, serif;
    font-size: 18px;
    line-height: 1.8;
    color: #1F1F1F;
    background-color: #FAFAF7;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

header {
    border-bottom: 2px solid #3E2723;
    padding-bottom: 20px;
    margin-bottom: 0;
}

/* Logo and header content */
.header-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.site-logo {
    max-width: 300px;
    height: auto;
}

.header-text p {
    font-size: 1em;
    color: #5D4E46;
    margin: 0;
}

/* Top Menu Bar */
.top-menu {
    background-color: #F0EDE8;
    border-bottom: 1px solid #D4CAC0;
    padding: 12px 0;
    margin-bottom: 40px;
}

.top-menu a {
    color: #2D2424;
    text-decoration: none;
    margin-right: 30px;
    font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 500;
    font-size: 0.95em;
    padding: 6px 12px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.top-menu a:hover {
    background-color: #FDE8D8;
}

/* Two Column Layout - Sidebar on LEFT */
.layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

main {
    min-width: 0;
}

main h2 {
    font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.8em;
    margin-bottom: 30px;
    color: #2D2424;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 20px;
    align-self: start;
}

.sidebar-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #D4CAC0;
}

.sidebar-section:last-child {
    border-bottom: none;
}

.sidebar-section h3 {
    font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.1em;
    margin-bottom: 15px;
    color: #2D2424;
}

.sidebar-section p {
    font-size: 0.9em;
    line-height: 1.6;
    color: #5D4E46;
}

.sidebar-section ul {
    list-style: none;
}

.sidebar-section ul li {
    margin-bottom: 10px;
}

.sidebar-section a {
    color: #C2410C;
    text-decoration: none;
    font-size: 0.95em;
    padding: 2px 6px;
    border-radius: 3px;
    transition: background-color 0.2s ease;
    display: inline-block;
}

.sidebar-section a:hover {
    background-color: #FDE8D8;
}

/* Articles */
article {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #D4CAC0;
}

article h3 {
    font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.5em;
    margin-bottom: 10px;
}

article h3 a {
    color: #2D2424;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    display: inline-block;
}

article h3 a:hover {
    background-color: #F0EDE8;
}

.article-subtitle {
    font-style: italic;
    color: #5D4E46;
    margin-bottom: 10px;
}

footer {
    border-top: 1px solid #D4CAC0;
    padding-top: 30px;
    text-align: center;
    color: #7D6E64;
    font-size: 0.9em;
}

/* Blog Post Styles */
.post h1 {
    font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 2.2em;
    margin-bottom: 15px;
    color: #2D2424;
    line-height: 1.3;
}

.post-meta {
    color: #7D6E64;
    font-size: 0.95em;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #D4CAC0;
}

.post-content {
    font-size: 1.05em;
    line-height: 1.8;
    max-width: 750px;
}

.post-content h2 {
    font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.3em;
    margin-top: 40px;
    margin-bottom: 15px;
    color: #2D2424;
}

.post-content h3 {
    font-size: 1.1em;
    margin-top: 30px;
    margin-bottom: 12px;
    font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #2D2424;
}

.post-content p {
    text-indent: 2em;
    margin-bottom: 1em;
}

.post-content a {
    color: #C2410C;
    text-decoration: none;
    padding: 2px 4px;
    border-radius: 3px;
    transition: background-color 0.2s ease;
}

.post-content a:hover {
    background-color: #FDE8D8;
}

.subtitle {
    font-size: 1.2em;
    color: #5D4E46;
    font-style: italic;
    margin-bottom: 20px;
    text-indent: 0 !important;
}

/* Responsive */
@media (max-width: 1024px) {
    .layout {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
        margin-top: 40px;
        padding-top: 40px;
        border-top: 2px solid #D4CAC0;
    }
}

/* Header background pattern */
header {
    background-image: url('/images/header-pattern.png');
    background-repeat: repeat;
    background-position: center;
}

/* Enhanced post cards on homepage */
main article {
    background-color: #FFFFFF;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #E8E0D5;
    margin-bottom: 30px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

main article:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(61, 36, 35, 0.08);
}

main article h3 {
    margin-bottom: 8px;
}

main article h3 a {
    padding: 0;
}

main article h3 a:hover {
    background-color: transparent;
}

main article small {
    color: #7D6E64;
    font-size: 0.9em;
}

/* Card hover effect for all clickable elements */
.top-menu a,
.sidebar-section a,
article h3 a {
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.top-menu a:hover,
.sidebar-section a:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(61, 36, 35, 0.1);
}

article h3 a:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(61, 36, 35, 0.1);
    background-color: #F0EDE8;
}

/* Links in post content */
.post-content a:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(61, 36, 35, 0.08);
}

/* Softer corners for clickable elements */
.top-menu a {
    border-radius: 6px;
}

.sidebar-section a {
    border-radius: 5px;
}

article h3 a {
    border-radius: 6px;
}

.post-content a {
    border-radius: 4px;
}
