.blog-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 1rem;
}

.blog-header h2 {
    margin-bottom: 0.25rem;
}

.blog-count {
    font-size: 0.82rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0;
}

.posts-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.post-card {
    border: 1px solid #e4e4e4;
    border-radius: 8px;
    padding: 1.5rem;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    background: #fff;
}

.post-card:hover {
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
    border-color: #bbb;
}

.post-card-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
}

.post-card-title a {
    text-decoration: none;
    color: inherit;
}

.post-card-title a:hover {
    text-decoration: underline;
}

.post-card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 0.75rem;
}

.post-card-date {
    font-variant-numeric: tabular-nums;
}

.post-card-tags {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.tag {
    background: #f0f0f0;
    color: #555;
    border-radius: 4px;
    padding: 0.15rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.03em;
}

.post-card-excerpt {
    margin: 0 0 1rem 0;
    color: #444;
    font-size: 0.92rem;
    line-height: 1.6;
}

.post-card-read {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    border-bottom: 2px solid #333;
    padding-bottom: 1px;
    transition: color 0.15s, border-color 0.15s;
}

.post-card-read:hover {
    color: #000;
    border-color: #000;
}

.blog-loading,
.blog-error {
    color: #888;
    font-style: italic;
    padding: 1rem 0;
}

.blog-error {
    color: #c0392b;
}

.post-back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: #555;
    text-decoration: none;
    margin-bottom: 2rem;
    transition: color 0.15s;
}

.post-back:hover {
    color: #000;
}

.post-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 1.5rem;
}

.post-title {
    font-size: 2rem;
    line-height: 1.25;
    margin: 0 0 0.75rem 0;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-size: 0.82rem;
    color: #888;
}

.post-tags {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.post-body {
    line-height: 1.75;
    color: #222;
    font-size: 0.97rem;
    max-width: 700px;
}

.post-body h1,
.post-body h2,
.post-body h3 {
    margin: 2rem 0 0.75rem 0;
}

.post-body h2 {
    font-size: 1.35rem;
}

.post-body h3 {
    font-size: 1.1rem;
}

.post-body p {
    margin: 0 0 1.2rem 0;
}

.post-body a {
    color: #333;
}

.post-body img {
    max-width: 100%;
    border-radius: 6px;
    margin: 1rem 0;
}

.post-body pre {
    background: #f6f6f6;
    border: 1px solid #e4e4e4;
    border-radius: 6px;
    padding: 1rem;
    overflow-x: auto;
    font-size: 0.88rem;
    margin: 1.25rem 0;
}

.post-body code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.88em;
    background: #f2f2f2;
    padding: 0.1em 0.3em;
    border-radius: 3px;
}

.post-body pre code {
    background: none;
    padding: 0;
}

.post-body blockquote {
    border-left: 3px solid #ccc;
    margin: 1.25rem 0;
    padding: 0.5rem 0 0.5rem 1.25rem;
    color: #555;
    font-style: italic;
}

.post-body ul,
.post-body ol {
    padding-left: 1.5rem;
    margin: 0 0 1.2rem 0;
}

.post-body li {
    margin-bottom: 0.35rem;
}

.post-body hr {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 2rem 0;
}

.post-body table {
    border-collapse: collapse;
    width: 100%;
    margin: 1.25rem 0;
    font-size: 0.9rem;
}

.post-body th,
.post-body td {
    border: 1px solid #ddd;
    padding: 0.5rem 0.75rem;
    text-align: left;
}

.post-body th {
    background: #f6f6f6;
    font-weight: 600;
}

@media (max-width: 600px) {
    .post-title {
        font-size: 1.5rem;
    }
}