/* Blog sur crème : liste (article vedette, puis grille à filets, sans carte) et article. */

/* Aperçu d'un brouillon par son lien privé (T15.2) : bandeau collé en haut, lu avant tout le reste. */
.post-preview {
    position: sticky;
    top: 0;
    z-index: 10;
    margin: 0;
    padding: var(--space-3) var(--space-4);
    background-color: var(--color-error-bg);
    color: var(--color-error);
    font-size: var(--text-sm);
    font-weight: var(--fw-medium);
    text-align: center;
}

.post-featured__art,
.post-card__art {
    display: block;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.post-featured:hover .post-art,
.post-card:hover .post-art {
    scale: 1.03;
}

.post-featured h2 a,
.post-card h2 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s var(--ease-out);
}

.post-featured h2 a:hover,
.post-card h2 a:hover {
    color: var(--text-link);
}

/* L'article le plus récent, en grand. */
.post-featured {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-6);
    align-items: center;
}

.post-featured__text {
    display: grid;
    gap: var(--space-4);
    justify-items: start;
}

.post-featured__text > p {
    color: var(--text-secondary);
    font-size: var(--text-md);
}

@media (min-width: 56rem) {
    .post-featured {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
        gap: var(--space-8);
    }
}

/* Les suivants : deux colonnes au plus (quatre articles sous la vedette tombent juste), chaque article
   sous un filet. */
.post-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-8) var(--space-6);
    margin-top: var(--section-space);
}

.post-card article {
    display: grid;
    align-content: start;
    gap: var(--space-3);
    height: 100%;
    padding-top: var(--space-5);
    border-top: 1px solid var(--rule);
}

.post-card__art {
    margin-bottom: var(--space-2);
}

.post-card h2 {
    font-size: var(--text-xl);
}

.post-card p:last-child {
    color: var(--text-secondary);
}

@media (min-width: 40rem) {
    .post-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Article : texte sur crème dans la colonne de lecture, un cran plus grand. */
.post-body {
    padding-top: var(--space-8);
}

.container--reading .prose {
    max-width: none;
}

.prose--article {
    font-size: var(--text-md);
    line-height: 1.75;
}

.prose--article h2 {
    margin-top: var(--space-8);
    font-size: var(--text-2xl);
}

.post-art--article {
    margin-bottom: var(--space-8);
    border-radius: var(--radius-md);
}
