:root {
    --bg-color: #ffffff;
    --text-main: #111827;
    --text-muted: #6b7280;
    --border-color: #f3f4f6; /* Lighter border for a cleaner look */
    --accent: #000000;
    --category-bg: #f9fafb;
    --category-text: #374151;
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    margin: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Navigation */
.top-nav { border-bottom: 1px solid var(--border-color); padding: 1.5rem 0; background: #fff; }
.nav-container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; display: flex; justify-content: space-between; align-items: center; }
.logo { font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; color: var(--accent); text-decoration: none; }
.nav-links { list-style: none; display: flex; gap: 1.5rem; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; color: var(--text-muted); font-size: 0.85rem; font-weight: 500; }

/* Grid Layout */
.wrapper { display: grid; grid-template-columns: 3fr 1fr; gap: 4rem; max-width: 1100px; margin: 3rem auto; padding: 0 2rem; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2rem; }

/* Post Card UI */
.post-card { text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.post-image-container { height: 160px; width: 100%; border: 1px solid var(--border-color); border-radius: 6px; overflow: hidden; margin-bottom: 1rem; }
.post-image-container img { width: 100%; height: 100%; object-fit: cover; }

.post-content h3 { font-size: 1.1rem; margin: 0.5rem 0; font-weight: 700; line-height: 1.3; }
.post-excerpt { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.category-tag { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; background: var(--category-bg); color: var(--category-text); padding: 2px 6px; border-radius: 4px; display: inline-block; margin-bottom: 0.5rem; }

/* Sidebar */
aside h3 { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: 1rem; }
aside ul { list-style: none; padding: 0; }
aside li { margin-bottom: 0.5rem; font-size: 0.85rem; color: var(--text-main); }
aside a { text-decoration: none; color: inherit; }
aside a:hover { text-decoration: underline; }

@media (max-width: 850px) { .wrapper { grid-template-columns: 1fr; } }

/* Individual Post Styles */
.post-entry { max-width: 720px; margin: 0 auto; }
.post-header { margin-bottom: 2.5rem; }
.post-header h1 { font-size: 2.5rem; font-weight: 800; letter-spacing: -0.04em; margin: 0.5rem 0; color: var(--accent); }

.post-meta { display: flex; gap: 20px; font-size: 0.85rem; color: var(--text-muted); margin-top: 1rem; }
.edited-date { color: #059669; font-weight: 600; } /* Subtle green to highlight it was updated */

.post-content { line-height: 1.8; font-size: 1.1rem; }
.post-content h2 { font-size: 1.5rem; margin-top: 2rem; border-bottom: 1px solid var(--border-color); padding-bottom: 0.5rem; }

.post-footer { margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--border-color); font-size: 0.9rem; color: var(--text-muted); }