/* ============================================================
   blog.css — Blog index and archive pages
   Uses StayJC editorial design system (paper, ink, brick)
   ============================================================ */

.blog-container {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 48px;
    max-width: 1260px;
    margin: 0 auto;
    padding: 120px 36px 80px;
}

.blog-main {
    min-width: 0;
}

/* ---------- PAGE HEADER ---------- */
.page-header {
    margin-bottom: 60px;
    border-bottom: 2px solid var(--hairline);
    padding-bottom: 24px;
}

.page-header h1 {
    font-family: var(--serif);
    font-variation-settings: 'SOFT' var(--fr-soft), 'WONK' 1, 'opsz' 144;
    font-size: 52px;
    font-weight: 500;
    color: var(--ink);
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    line-height: 1.1;
}

.page-header p {
    font-family: var(--sans);
    font-size: 18px;
    color: var(--smoke);
    font-weight: 400;
}

/* ---------- FEATURED POST ---------- */
.featured-post {
    background: var(--white);
    border: 1px solid var(--hairline-soft);
    border-radius: 0;
    overflow: hidden;
    margin-bottom: 64px;
    transition: all 0.25s ease;
}

.featured-post:hover {
    border-color: var(--brick-soft);
    box-shadow: 0 4px 16px rgba(26, 23, 20, 0.08);
}

.featured-post-image {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

.featured-post-content {
    padding: 40px;
}

.featured-badge {
    display: inline-block;
    background: var(--brick);
    color: var(--white);
    padding: 5px 12px;
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 18px;
}

.featured-post h2 {
    font-family: var(--serif);
    font-variation-settings: 'SOFT' var(--fr-soft), 'WONK' 0, 'opsz' 72;
    font-size: 36px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 16px;
    line-height: 1.2;
    letter-spacing: -0.015em;
}

.featured-post h2 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.featured-post h2 a:hover {
    color: var(--brick);
}

.featured-post-excerpt {
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink-soft);
    margin-bottom: 24px;
}

.post-meta {
    display: flex;
    gap: 16px;
    align-items: center;
    font-family: var(--sans);
    font-size: 14px;
    color: var(--smoke);
    font-weight: 400;
}

.read-more {
    display: inline-block;
    margin-top: 20px;
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 500;
    color: var(--brick);
    text-decoration: none;
    transition: color 0.2s;
}

.read-more:hover {
    color: var(--brick-dark);
}

/* ---------- POSTS GRID ---------- */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.post-card {
    background: var(--white);
    border: 1px solid var(--hairline-soft);
    overflow: hidden;
    transition: all 0.25s ease;
}

.post-card:hover {
    border-color: var(--brick-soft);
    box-shadow: 0 2px 12px rgba(26, 23, 20, 0.06);
}

.post-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.post-card-content {
    padding: 28px;
}

.post-card h3 {
    font-family: var(--serif);
    font-variation-settings: 'SOFT' var(--fr-soft), 'WONK' 0, 'opsz' 48;
    font-size: 22px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 12px;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.post-card h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.post-card h3 a:hover {
    color: var(--brick);
}

.post-card-excerpt {
    font-family: var(--sans);
    font-size: 15px;
    line-height: 1.55;
    color: var(--ink-soft);
    margin-bottom: 16px;
}

/* ---------- SIDEBAR ---------- */
.sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.sidebar-section {
    background: var(--white);
    border: 1px solid var(--hairline-soft);
    padding: 28px;
}

.sidebar-section h3 {
    font-family: var(--serif);
    font-variation-settings: 'SOFT' var(--fr-soft), 'WONK' 0, 'opsz' 48;
    font-size: 20px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--hairline);
    letter-spacing: -0.01em;
}

.archive-list {
    list-style: none;
}

.archive-year {
    margin-bottom: 24px;
}

.archive-year:last-child {
    margin-bottom: 0;
}

.archive-year-title {
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 10px;
}

.archive-months {
    list-style: none;
    margin-left: 0;
}

.archive-months li {
    margin-bottom: 4px;
}

.archive-months a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--sans);
    font-size: 14px;
    color: var(--ink-soft);
    text-decoration: none;
    padding: 6px 10px;
    transition: all 0.15s ease;
}

.archive-months a:hover {
    background: var(--paper);
    color: var(--brick);
}

.archive-count {
    font-size: 12px;
    color: var(--smoke);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .blog-container {
        grid-template-columns: 1fr;
        padding: 100px 24px 60px;
    }
    
    .sidebar {
        position: static;
        max-width: 400px;
    }
    
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-container {
        padding: 90px 20px 50px;
    }
    
    .page-header h1 {
        font-size: 38px;
    }
    
    .featured-post-image {
        height: 240px;
    }
    
    .featured-post-content {
        padding: 28px;
    }
    
    .featured-post h2 {
        font-size: 28px;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .sidebar {
        max-width: none;
    }
}
