body {
    margin: 0;
    padding: 0;
    background-color: #f9fafb;
    color: #111827;
    font-family: "Helvetica Neue", Helvetica, Arial, "Noto Sans", sans-serif;
}

.site-header {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 1.5rem 1.5rem;
    text-align: center;
}

.site-header h1 {
    margin: 0;
    font-size: 2.4rem;
    color: #111827;
}

.site-header h1 a {
    color: inherit;
    text-decoration: none;
}

.site-tagline {
    margin: 0.75rem auto 1.5rem;
    max-width: 760px;
    color: #4b5563;
    line-height: 1.6;
    font-size: 1rem;
}

.site-nav a {
    margin: 0 0.75rem;
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.site-nav a:hover {
    text-decoration: underline;
}

.layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr);
    gap: 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
}

.post-list {
    display: grid;
    gap: 1.5rem;
}

.post-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.75rem;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.post-card h2 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    line-height: 1.35;
}

.post-card h2 a {
    color: #1f2937;
    text-decoration: none;
}

.post-card h2 a:hover {
    color: #2563eb;
}

.post-meta {
    margin: 0 0 0.75rem;
    color: #6b7280;
    font-size: 0.9rem;
}

.post-summary {
    margin: 0;
    color: #374151;
    line-height: 1.6;
}

.sidebar {
    position: sticky;
    top: 1.5rem;
    align-self: start;
}

.sidebar section + section {
    margin-top: 2rem;
}

.sidebar h3 {
    margin: 0 0 0.75rem;
    font-size: 1.1rem;
    color: #111827;
}

.meta-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.5rem;
}

.meta-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.meta-list.tags li {
    font-size: 0.85rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.8rem;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    background: #e0e7ff;
    color: #4338ca;
    font-weight: 600;
}

.label {
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.label:hover {
    color: #2563eb;
}

.tag-layout {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
}

.tag-summary {
    max-width: 760px;
    margin: 0 auto 2rem;
    text-align: center;
    color: #4b5563;
}

.tag-summary h2 {
    margin: 0 0 0.5rem;
    font-size: 2rem;
    color: #111827;
}

.tag-summary p {
    margin: 0;
    font-size: 1rem;
}

.tag-summary a {
    color: #2563eb;
    text-decoration: none;
}

.tag-summary a:hover {
    text-decoration: underline;
}

.tag-layout .post-list {
    max-width: 760px;
    margin: 0 auto;
}

.empty-state {
    text-align: center;
    padding: 2rem 0;
    color: #6b7280;
}

.site-footer {
    max-width: 1100px;
    margin: 0 auto 2rem;
    padding: 2rem 1.5rem 0;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    color: #6b7280;
    font-size: 0.9rem;
    text-align: center;
}

.site-footer a {
    color: #2563eb;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

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

    .sidebar {
        position: static;
    }
}

@media (prefers-color-scheme: dark) {
    body {
        background: #0b1120;
        color: #e2e8f0;
    }

    .site-header h1 {
        color: #f8fafc;
    }

    .site-tagline {
        color: #cbd5f5;
    }

    .post-card {
        background: rgba(15, 23, 42, 0.8);
        border-color: rgba(148, 163, 184, 0.2);
        box-shadow: 0 16px 40px rgba(15, 23, 42, 0.35);
    }

    .post-card h2 a {
        color: #e0f2fe;
    }

    .post-card h2 a:hover {
        color: #60a5fa;
    }

    .post-meta {
        color: #9ca3af;
    }

    .post-summary {
        color: #d1d5db;
    }

    .label {
        color: #e2e8f0;
        text-decoration: none;
    }

    .label:hover {
        color: #93c5fd;
    }

    .sidebar h3 {
        color: #f8fafc;
    }

    .tag-summary {
        color: #94a3b8;
    }

    .tag-summary h2 {
        color: #f8fafc;
    }

    .tag-summary a {
        color: #93c5fd;
    }

    .tag-summary a:hover {
        color: #bfdbfe;
    }

    .empty-state {
        color: #9ca3af;
    }

    .site-footer {
        border-color: rgba(148, 163, 184, 0.2);
        color: #94a3b8;
    }

    .site-footer a {
        color: #93c5fd;
    }
}
