/* ============================================================
   Web Acteur — blog
   Builds on /legal-assets/legal.css (same tokens, nav, footer
   and .prose), on the cinema's wine-dark background.
   ============================================================ */

body {
    background:
        radial-gradient(120% 70% at 85% -10%, rgba(120, 28, 36, 0.32), transparent 60%),
        radial-gradient(90% 60% at -10% 110%, rgba(90, 20, 28, 0.22), transparent 65%),
        var(--void);
    background-attachment: fixed;
}

.blog-main {
    padding-block: clamp(36px, 6vw, 72px) clamp(56px, 8vw, 110px);
}

/* ---------- list of articles ---------- */
.posts {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
    gap: clamp(16px, 2.4vw, 26px);
}

.post-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 26px 24px 24px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    text-decoration: none;
    transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), background 0.3s;
}

.post-card:hover {
    border-color: var(--line-2);
    background: #1c0b0f;
    transform: translateY(-3px);
}

.post-card h2 {
    font-size: 1.28rem;
}

.post-card p {
    color: var(--bone-2);
    font-size: 0.95rem;
}

.post-card .more {
    margin-top: auto;
    padding-top: 8px;
    color: var(--accent);
}

/* shown until the first article is listed */
.empty {
    max-width: 56ch;
    padding: 34px 30px;
    border: 1px dashed var(--line-2);
    border-radius: var(--radius);
    color: var(--bone-2);
}

.empty h2 {
    font-size: 1.2rem;
    margin: 12px 0 8px;
    color: var(--bone);
}

.posts:has(li) ~ .empty {
    display: none;
}

/* ---------- a single article ---------- */
.article {
    max-width: 72ch;
}

.article .prose > * + * {
    margin-top: 1.1em;
}

.article figure img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius);
}

.article figcaption {
    margin-top: 8px;
}

.back-link {
    display: inline-block;
    margin-top: clamp(40px, 6vw, 64px);
    color: var(--accent);
    text-decoration: none;
}
