/* Стилі блогу sagaofmemory.com/blog. Токени взяті з assets/css/web.assets_frontend.min-*.css
   лендингу (--primary, --body-color тощо) — див. blog-src/content/_data/theme.json. */

:root {
    --blog-accent: #FE1C0B;
    --blog-accent-hover: #cb1609;
    --blog-text: #292121;
    --blog-text-muted: #7D6C6C;
    --blog-bg-warm: #EFE9E9;
    --blog-bg-warm-alt: #E6DEDE;
    --blog-bg-warm-deep: #DACECE;
    --blog-font-heading: 'Oxygen', 'Odoo Unicode Support Noto', sans-serif;
    --blog-font-body: 'Inter', 'Odoo Unicode Support Noto', sans-serif;
}

.blog-list,
.blog-article {
    font-family: var(--blog-font-body);
    color: var(--blog-text);
    padding-top: 48px;
    padding-bottom: 64px;
}

.blog-list h1,
.blog-article h1,
.blog-article h2,
.blog-article h3 {
    font-family: var(--blog-font-heading);
}

.blog-list-intro {
    color: var(--blog-text-muted);
    max-width: 640px;
    margin-bottom: 32px;
}

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

@media (max-width: 991px) {
    .blog-card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575px) {
    .blog-card-grid { grid-template-columns: 1fr; }
}

.blog-card {
    background: var(--blog-bg-warm);
    border-radius: 12px;
    overflow: hidden;
    transition: transform .15s ease, box-shadow .15s ease;
}

.blog-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(41, 33, 33, 0.12);
}

.blog-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.blog-card-img {
    width: 100%;
    aspect-ratio: 1200 / 630;
    object-fit: cover;
    display: block;
}

.blog-card-body {
    padding: 16px 20px 20px;
}

.blog-card-body h2 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.blog-card-body p {
    color: var(--blog-text-muted);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.blog-card-body time {
    color: var(--blog-text-muted);
    font-size: 0.8rem;
}

.breadcrumb-nav {
    font-size: 0.85rem;
    color: var(--blog-text-muted);
    margin-bottom: 16px;
}

.breadcrumb-nav a {
    color: var(--blog-text-muted);
}

.blog-article {
    max-width: 760px;
}

.blog-article h1 {
    margin-bottom: 16px;
}

.article-hero-img {
    width: 100%;
    aspect-ratio: 1200 / 630;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 24px;
    display: block;
}

@media (max-width: 575px) {
    .article-hero-img {
        max-height: 220px;
        border-radius: 8px;
        margin-bottom: 20px;
    }
}

.byline {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--blog-text-muted);
    font-size: 0.9rem;
    margin-bottom: 32px;
}

.byline-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.byline-name {
    color: var(--blog-text);
    font-weight: 600;
}

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

.blog-article-body h2 {
    margin-top: 40px;
    margin-bottom: 16px;
}

.blog-article-body a {
    color: var(--blog-accent);
    text-decoration: underline;
}

.blog-article-body a:hover {
    color: var(--blog-accent-hover);
}

.faq-block,
.related-posts {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--blog-bg-warm-deep);
}

.faq-item {
    background: var(--blog-bg-warm);
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 12px;
}

.faq-item h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.faq-item p {
    color: var(--blog-text);
    margin: 0;
}

.related-posts ul {
    list-style: none;
    padding: 0;
}

.related-posts li {
    margin-bottom: 8px;
}

.related-posts a {
    color: var(--blog-accent);
}
