:root {
    --bg: #ffffff;
    --fg: #212121;
    --primary: hsl(157, 61%, 36%);
    --primary-fg: #ffffff;
    --muted: #737373;
    --border: #e6e6e6;
    --surface: #fafafa;
    --radius: 0.375rem;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--fg);
    background: var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* Nav */
.site-nav {
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}
.site-nav .container { display: flex; align-items: center; justify-content: space-between; }
.site-nav .brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--fg);
    text-decoration: none;
}
.site-nav .brand span { color: var(--primary); }
.site-nav .nav-links { display: flex; gap: 1.5rem; }
.site-nav .nav-links a { color: var(--muted); font-size: 0.875rem; font-weight: 500; }
.site-nav .nav-links a:hover { color: var(--fg); text-decoration: none; }

/* Content */
.content { padding: 3rem 0; }
h1 { font-family: 'Lora', Georgia, serif; font-size: 2rem; font-weight: 700; line-height: 1.3; margin-bottom: 0.5rem; }
h2 { font-family: 'Lora', Georgia, serif; font-size: 1.5rem; font-weight: 600; line-height: 1.3; }
h2 a { color: var(--fg); }
h2 a:hover { color: var(--primary); text-decoration: none; }
time { font-size: 0.8125rem; color: var(--muted); }

/* Post body */
.entry { font-size: 1.0625rem; line-height: 1.8; }
.entry p { margin-bottom: 1.25rem; }
.entry h2, .entry h3 { margin-top: 2rem; margin-bottom: 0.75rem; }
.entry blockquote { border-left: 3px solid var(--primary); padding-left: 1rem; margin: 1.5rem 0; color: var(--muted); }
.entry pre { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; overflow-x: auto; font-size: 0.875rem; margin: 1.5rem 0; }
.entry code { background: var(--surface); padding: 0.125rem 0.375rem; border-radius: 3px; font-size: 0.875em; }
.entry pre code { background: none; padding: 0; }
.entry img { border-radius: var(--radius); margin: 1rem 0; }

/* Article list */
.post-list article { padding: 1.75rem 0; }
.post-list article + article { border-top: 1px solid var(--border); }
.post-list .post-meta { margin-top: 0.25rem; }
.post-list .post-body { margin-top: 0.75rem; color: var(--fg); font-size: 0.9375rem; }
.post-list .post-body p { margin-bottom: 0.5rem; }
.post-list .read-more { font-size: 0.875rem; font-weight: 500; }
.post-thumb { border-radius: var(--radius); margin-bottom: 0.75rem; }
.post-row { display: flex; gap: 1.5rem; }
.post-thumb-col { flex-shrink: 0; width: 180px; }
.post-text-col { flex: 1; min-width: 0; }

/* Tags */
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 9999px;
    font-size: 0.8125rem;
    color: var(--muted);
    font-weight: 500;
}
.tag:hover { color: var(--primary); border-color: var(--primary); text-decoration: none; }

/* Plugins */
.plugins { margin-top: 2rem; }
.embed-responsive { position: relative; width: 100%; padding-bottom: 56.25%; margin: 1rem 0; }
.embed-responsive iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; border-radius: var(--radius); }
.post-photo { margin: 1rem 0; }
.post-photo img { border-radius: var(--radius); }
.post-photo figcaption { font-size: 0.8125rem; color: var(--muted); margin-top: 0.5rem; text-align: center; }
.media { display: flex; gap: 1rem; padding: 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin: 1rem 0; }
.media img { width: 80px; border-radius: var(--radius); }
.media h4 { font-size: 1rem; margin-bottom: 0.25rem; }
.media p { font-size: 0.875rem; color: var(--muted); margin: 0; }

/* Author */
.author-bio {
    margin-top: 3rem;
    padding: 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.9375rem;
}

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 0.25rem; margin-top: 2rem; list-style: none; }
.pagination a, .pagination span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 2.25rem; height: 2.25rem;
    padding: 0 0.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.875rem;
    color: var(--fg);
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.pagination .active span { background: var(--primary); color: var(--primary-fg); border-color: var(--primary); }
.pagination .disabled span { color: var(--border); }

/* Footer */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    margin-top: 3rem;
    text-align: center;
    font-size: 0.8125rem;
    color: var(--muted);
}
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--primary); }

/* Button */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.15s;
}
.btn-primary { background: var(--primary); color: var(--primary-fg); }
.btn-primary:hover { opacity: 0.9; text-decoration: none; }

/* Responsive */
@media (max-width: 640px) {
    .post-row { flex-direction: column; }
    .post-thumb-col { width: 100%; }
    h1 { font-size: 1.5rem; }
}
