/* ==========================================================
   Linecraft AI - Blog Listing
   Page-specific styles only. Shared nav/footer/modal/typography
   primitives live in css/base.css.
   File: css/blog.css
   ========================================================== */

.blog-hero {
    padding: 140px 0 60px 0;
    text-align: center;
}

.blog-hero-stack {
    max-width: 700px;
    margin: 0 auto;
}

.blog-hero-title {
    font-size: 2.75rem;
    line-height: 1.2;
    font-weight: 700;
    color: var(--ink-heavy);
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.blog-hero-lead {
    font-size: 1.1rem;
    color: var(--ink-muted);
    line-height: 1.6;
}

/* ==========================================================
   Featured Post
   ========================================================== */
.featured-post-section {
    padding: 20px 0 40px 0;
}

.featured-card {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 0;
    background: #ffffff;
    border: 1px solid var(--border-standard);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-figma-card);
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.featured-card:hover {
    border-color: var(--ink-heavy);
    box-shadow: 0 12px 32px -4px rgba(5, 0, 64, 0.1);
}

.f-image-wrapper {
    overflow: hidden;
    min-height: 280px;
}

.f-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.f-content {
    padding: 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--ink-faint);
    margin-bottom: 16px;
}

.f-title {
    font-size: 1.7rem;
    line-height: 1.3;
    color: var(--ink-heavy);
    margin-bottom: 14px;
    letter-spacing: -0.01em;
}

.f-excerpt {
    font-size: 0.95rem;
    color: var(--ink-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink-heavy);
}

/* ==========================================================
   Archive Grid
   ========================================================== */
.blog-grid-section {
    padding: 20px 0 100px 0;
}

.b-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.b-card {
    display: block;
    background: #ffffff;
    border: 1px solid var(--border-standard);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.b-card:hover {
    border-color: var(--ink-heavy);
    transform: translateY(-3px);
    box-shadow: var(--shadow-figma-card);
}

.b-img-wrapper {
    height: 180px;
    overflow: hidden;
}

.b-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.b-content {
    padding: 22px;
}

.b-content .post-meta {
    margin-bottom: 8px;
}

.b-title {
    font-size: 1.05rem;
    line-height: 1.4;
    color: var(--ink-heavy);
    margin-bottom: 10px;
}

.b-excerpt {
    font-size: 0.85rem;
    color: var(--ink-muted);
    line-height: 1.55;
}

/* ==========================================================
   Responsive Adaptations
   ========================================================== */
@media (max-width: 992px) {
    .blog-hero-title {
        font-size: 2.1rem;
    }

    .featured-card {
        grid-template-columns: 1fr;
    }

    .f-content {
        padding: 32px;
    }

    .b-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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