@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --radius: 0.625rem;
  --ink: #1a1a1a;
  --ink-soft: #555555;
  --paper: #fdfcf7;
  --cream: #f9f7f0;
  --accent: #d71920;
  --border: rgba(0, 0, 0, 0.06);
  
  --font-sans: "Inter", sans-serif;
  --font-display: "Playfair Display", serif;
}

/* Base Reset */
.blog-body {
    background-color: var(--paper);
    color: var(--ink);
    font-family: var(--font-sans);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

/* Container System */
.blog-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Width Control */
.article-header {
    margin-bottom: 30px;
}

.article-inner {
    max-width: 720px;
}

.article-title {
    font-family: var(--font-display);
    font-size: 52px;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    color: var(--ink);
}

.article-excerpt {
    font-size: 18px;
    line-height: 1.6;
    color: var(--ink-soft);
    margin-bottom: 25px;
}

/* FEATURE IMAGE - SEPARATE BLOCK */
.article-image-full {
    margin: 40px 0 50px;
}

.article-image-full img {
    width: 100%;
    border-radius: 18px;
    display: block;
    box-shadow: 0 12px 40px rgba(0,0,0,0.06);
}

/* CONTENT + SIDEBAR LAYOUT */
.blog-layout {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    margin-top: 20px;
}

.blog-main {
    width: 68%;
}

.blog-sidebar {
    width: 32%;
}

.article-content {
    max-width: 720px;
    margin-top: 20px;
}

.article-content p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--ink);
}

.article-content h2 {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 600;
    margin-top: 45px;
    margin-bottom: 18px;
    color: var(--ink);
}

/* Sticky Sidebar */
.sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-title {
    font-family: var(--font-sans);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 20px;
    font-weight: 700;
}

.recent-post {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
    text-decoration: none !important;
    color: inherit;
}

.recent-post img {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.recent-post-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    color: var(--ink);
    transition: color 0.2s;
}

.recent-post:hover .recent-post-title {
    color: var(--accent);
}

/* Author Box */
.author-box-editorial {
    margin-top: 60px;
    padding: 35px;
    background: var(--cream);
    border-radius: 18px;
    display: flex;
    gap: 20px;
    align-items: center;
    border: 1px solid var(--border);
}

.author-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    font-family: var(--font-display);
    flex-shrink: 0;
}

/* Related Grid */
.blog-grid-related {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-card-related {
    text-decoration: none !important;
    color: inherit;
}

.blog-card-related .img-wrapper {
    aspect-ratio: 16/10;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
    background: var(--cream);
}

.blog-card-related img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.blog-card-related:hover img {
    transform: scale(1.05);
}

/* Mobile Fix */
@media (max-width: 768px) {
    .blog-layout {
        flex-direction: column;
        gap: 40px;
    }

    .blog-main,
    .blog-sidebar {
        width: 100%;
    }

    .article-title {
        font-size: 32px;
    }

    .sidebar {
        position: relative;
        top: 0;
    }
    
    .blog-grid-related {
        grid-template-columns: 1fr;
    }
}

.badge-editorial {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 9999px;
    background: var(--cream);
    font-size: 12px;
    font-weight: 600;
    color: var(--ink);
    border: 1px solid var(--border);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.grain::before {
    content: "";
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(0,0,0,0.04) 1px, transparent 1px);
    background-size: 3px 3px;
    pointer-events: none;
    mix-blend-mode: multiply;
    opacity: 0.4;
    z-index: 1;
}
