/* Blog layout, shared by the index and every article.
   Articles migrated from the old per-article templates still carry their own
   <style> block inside the body, which lands after this file and therefore
   keeps winning — their appearance does not change. Once an article is
   rewritten as markdown and that block goes, this is what styles it. */

.blog-shell {
    max-width: 820px;
    margin: 0 auto;
    padding: 32px 20px 64px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #0f172a;
}

.blog-index-head h1,
.blog-article h1 {
    font-size: clamp(28px, 4.5vw, 42px);
    line-height: 1.15;
    letter-spacing: -.025em;
    margin: 8px 0 12px;
}

.blog-index-head p {
    color: #64748b;
    font-size: 1.05rem;
    margin-bottom: 28px;
}

.blog-meta {
    color: #64748b;
    font-size: .92rem;
    margin: 0 0 28px;
}

.blog-body {
    font-size: 1.05rem;
    line-height: 1.7;
}

.blog-body h2 {
    font-size: 1.5rem;
    margin: 32px 0 12px;
}

.blog-body h3 {
    font-size: 1.2rem;
    margin: 24px 0 8px;
}

.blog-body p,
.blog-body li {
    margin-bottom: 12px;
}

.blog-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.blog-body a {
    color: #0b47d4;
}

/* --- index list --- */

.blog-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
}

.blog-list a {
    display: block;
    padding: 18px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
}

.blog-list a:hover {
    border-color: #0b47d4;
    box-shadow: 0 6px 20px rgba(15, 23, 42, .07);
}

.blog-list time {
    display: block;
    color: #64748b;
    font-size: .85rem;
    margin-bottom: 4px;
}

.blog-list strong {
    display: block;
    font-size: 1.15rem;
    margin-bottom: 6px;
}

.blog-list span {
    color: #475569;
    font-size: .98rem;
    line-height: 1.5;
}

/* --- call to action and related --- */

.blog-cta {
    margin-top: 48px;
    padding: 28px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.blog-cta h2 {
    margin: 0 0 8px;
    font-size: 1.35rem;
}

.blog-cta p {
    margin: 0 0 18px;
    color: #475569;
}

.blog-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.blog-btn {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
}

.blog-btn.primary {
    background: #0b47d4;
    color: #fff;
}

.blog-btn.secondary {
    background: #fff;
    color: #0f172a;
    border: 1px solid #e2e8f0;
}

.blog-related {
    margin-top: 40px;
}

.blog-related h2 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.blog-related ul {
    margin: 0;
    padding-left: 18px;
}

.blog-related li {
    margin-bottom: 6px;
}

.blog-related a {
    color: #0b47d4;
}
