/* P26M — blog post card (.post-card). */

.post-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.post-card.card--interactive:hover {
    border-color: rgba(115, 196, 75, 0.35);
}

/* Cover */
/* Aspect-ratio matches the 1200×630 OG cover format 1:1 — object-fit: cover
   then never crops, since the box and the image share the same ratio. */
.post-card__cover {
    aspect-ratio: 1200 / 630;
    overflow: hidden;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    background: var(--color-elevated);
    position: relative;
}

.post-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* No image zoom on hover: at this exact aspect ratio a scale() would start
   cropping again. The card-level lift from .card--interactive:hover
   (translateY + border highlight, see utilities.css) is the hover cue. */

.post-card__cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg,
        var(--color-elevated) 0%,
        var(--color-overlay) 100%);
}

.post-card__placeholder-logo {
    opacity: 0.28;
    width: 60px;
    height: auto;
}

.post-card__cover-link {
    display: block;
    outline: none;
}

/* Body */
.post-card__body {
    padding: var(--space-5) var(--space-5) var(--space-6);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    flex: 1;
}

.post-card__badge { align-self: flex-start; }

.post-card__title {
    font-family: var(--font-display);
    font-size: var(--fs-xl);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.25;
    text-wrap: balance;
    color: var(--color-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 0;
}

/* Specificity bump: (0,2,0) beats a:not(.btn) (0,1,1) */
.post-card__title .post-card__title-link {
    color: var(--color-text);
    text-decoration: none;
    transition: color var(--dur-fast) var(--ease-out);
}

.post-card__title .post-card__title-link:hover { color: var(--color-brand); }

.post-card__excerpt {
    font-size: var(--fs-base);
    color: var(--color-text-secondary);
    line-height: var(--lh-relaxed);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: none;
    flex: 1;
}

/* Meta footer */
.post-card__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-2);
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
    color: var(--color-text-tertiary);
    font-variant-numeric: tabular-nums;
    margin-top: auto;
    padding-top: var(--space-3);
    border-top: 1px solid var(--color-border);
}

.post-card__reading-time {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
}

.post-card__clock {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}
