/* ============================================================
   Blog pages — simplified (index + post detail)
   Replaces the card-grid / gradient-visual version of blog.css
   with a plain list layout, matching the simplified design.
   Still builds on the same site tokens (.eyebrow, .numeral,
   .container-page, --shadow-card, --shadow-cta) and keeps the
   same :root fallback pattern as before.
   ============================================================ */

:root {
    --ink: #0f1b2e;
    --accent: #2563eb;
    --card: #ffffff;
    --border: #e7e5df;
    --muted-foreground: #6b7280;
}

/* ---- Breadcrumb ---- */
.breadcrumb {
    font-size: 0.82rem;
    color: var(--muted-foreground);
    padding: 1.75rem 0 0;
}

.breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--ink);
}

.breadcrumb .sep {
    margin: 0 0.4rem;
    opacity: 0.5;
}

.breadcrumb .current {
    color: var(--ink);
    font-weight: 500;
}

/* ============================================================
   BLOG INDEX
   ============================================================ */

.blog-header {
    padding: 1.5rem 0 2.5rem;
    max-width: 40rem;
}

.blog-header h1 {
    margin: 0.9rem 0 0;
    font-size: 2.5rem;
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--ink);
}

.blog-header p {
    margin: 1.1rem 0 0;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--muted-foreground);
}

/* Article list — each article in its own bordered card */
.article-list {
    display: grid;
    gap: 1.25rem;
    margin-bottom: 3rem;
}

.article-list-item {
    display: block;
    padding: 1.75rem 2rem;
    border: 1px solid var(--border);
    border-radius: 1rem;
    background: var(--card);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.article-list-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
    border-color: color-mix(in srgb, var(--accent) 30%, var(--border));
}

.article-meta {
    font-size: 0.82rem;
    color: var(--muted-foreground);
}

.article-list-item h2 {
    margin: 0.5rem 0 0.6rem;
    font-size: 1.35rem;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--ink);
    transition: color 0.15s ease;
}

.article-list-item:hover h2 {
    color: var(--accent);
}

.article-list-item p {
    margin: 0;
    max-width: 42rem;
    font-size: 0.98rem;
    line-height: 1.6;
    color: var(--muted-foreground);
}

.article-list-item .read-more {
    display: inline-block;
    margin-top: 0.9rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
}

/* Pagination */
.blog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding-bottom: 5rem;
}

.blog-pagination a,
.blog-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--muted-foreground);
}

.blog-pagination a:hover {
    background: color-mix(in srgb, var(--accent) 8%, transparent);
    color: var(--ink);
}

.blog-pagination .is-current {
    background: var(--ink);
    color: #fff;
}

/* ============================================================
   BLOG POST DETAIL
   ============================================================ */

.post-header {
    padding: 1.5rem 0 0;
    max-width: 46rem;
}

.post-header h1 {
    margin: 1rem 0 0;
    font-size: 2.4rem;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--ink);
}

.post-header .dek {
    margin: 1rem 0 0;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--muted-foreground);
}

.post-meta {
    margin-top: 1.25rem;
    padding-bottom: 2rem;
    font-size: 0.85rem;
    color: var(--muted-foreground);
    border-bottom: 1px solid var(--border);
}

/* Body typography */
.post-body {
    max-width: 46rem;
    padding-top: 2.25rem;
}

.post-body h2 {
    margin-top: 2.75rem;
    margin-bottom: 0.9rem;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--ink);
}

.post-body h2:first-child {
    margin-top: 0;
}

.post-body h3 {
    margin-top: 1.9rem;
    margin-bottom: 0.6rem;
    font-size: 1.08rem;
    font-weight: 600;
    color: var(--ink);
}

.post-body p {
    margin-bottom: 1.1rem;
    font-size: 1rem;
    line-height: 1.75;
    color: var(--muted-foreground);
    max-width: 62ch;
}

.post-body ul,
.post-body ol {
    margin: 1.1rem 0 1.4rem;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.6rem;
    max-width: 62ch;
}

.post-body ul li,
.post-body ol li {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--muted-foreground);
}

.post-body ul li::before {
    content: "";
    flex-shrink: 0;
    margin-top: 0.55rem;
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: var(--accent);
}

.post-body ol {
    counter-reset: post-ol;
}

.post-body ol li::before {
    counter-increment: post-ol;
    content: counter(post-ol);
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 700;
}

.post-body strong {
    color: var(--ink);
    font-weight: 600;
}

.post-body a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.post-body blockquote {
    margin: 1.75rem 0;
    padding: 0.2rem 0 0.2rem 1.25rem;
    border-left: 3px solid var(--accent);
    font-size: 1.05rem;
    font-style: italic;
    color: var(--ink);
}

/* Callout used inline within post content */
.post-callout {
    margin: 2.25rem 0;
    max-width: 62ch;
    border-radius: 1rem;
    border: 2px solid var(--accent);
    background: color-mix(in srgb, var(--accent) 6%, transparent);
    padding: 1.35rem 1.5rem;
}

.post-callout p {
    margin: 0;
    color: var(--ink);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: none;
}

.post-callout p strong {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 1.05rem;
}

.post-callout a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
}

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

/* "More from the blog" — plain link list, shown on the post detail page */
.more-posts {
    max-width: 46rem;
    margin-top: 3rem;
    padding-top: 2.25rem;
    border-top: 1px solid var(--border);
}

.more-posts-title {
    margin: 0 0 1.1rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ink);
}

.more-posts-list {
    display: grid;
    gap: 0.75rem;
}

.more-posts-list a {
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
}

.more-posts-list a:hover {
    text-decoration: underline;
}

.more-posts-all {
    display: inline-block;
    margin-top: 1.25rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--muted-foreground);
    text-decoration: none;
}

.more-posts-all:hover {
    color: var(--ink);
}

/* Bordered CTA box — reused on both the blog index and the post detail page */
.blog-cta {
    max-width: 46rem;
    margin: 3rem 0 4rem;
    border-radius: 1.25rem;
    border: 1px solid var(--border);
    background: var(--card);
    padding: 2rem 2.25rem;
}

.blog-cta h2 {
    margin: 0 0 0.6rem;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--ink);
}

.blog-cta p {
    margin: 0 0 1.4rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--muted-foreground);
    max-width: 38rem;
}

.blog-cta .btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    height: 2.75rem;
    padding: 0 1.5rem;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    box-shadow: var(--shadow-cta);
    transition: transform 0.2s ease, background 0.15s ease;
}

.blog-cta .btn-cta:hover {
    background: color-mix(in srgb, var(--accent) 90%, black);
    transform: translateY(-1px);
}

@media (max-width: 640px) {
    .post-header h1,
    .blog-header h1 {
        font-size: 1.85rem;
    }

    .blog-cta {
        padding: 1.5rem;
    }
}