/* POST CARD — image + category eyebrow + title + read-me link.
   Reusable wherever posts/articles appear. Cards sit inside cream sections
   with a thin 1px divider line between rows handled by the parent grid. */

.post-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 28px 28px 24px;
    background: transparent;
    text-decoration: none;
    color: inherit;
}

.post-card-image {
    width: 100%;
    aspect-ratio: 1 / 0.92;
    border: 1px solid var(--clr-navy);
    border-radius: 18px;
    background: #fff;
    overflow: hidden;
    display: block;
}
.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
}

.post-card-cat {
    font-family: var(--font-mono);
    font-weight: 400;
    font-size: 0.78rem;
    color: var(--clr-navy);
    letter-spacing: 0.06em;
    margin: 0;
}

/* Card title — display serif, light weight (matches mockup typography).
   Sized so a typical 13–15-word lorem title wraps to 3 lines at desktop card width. */
.post-card-title {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 1.2rem;
    line-height: 1.32;
    letter-spacing: -0.005em;
    color: var(--clr-navy);
    margin: 0;
}

/* Read Me — small caps mono with a thin leading rule (no arrow) */
.post-card-readme {
    margin-top: auto;
    align-self: flex-end;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--clr-navy);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.post-card-readme::before {
    content: "";
    width: 28px;
    height: 1px;
    background: var(--clr-navy);
    display: inline-block;
    flex-shrink: 0;
}
.post-card-readme:hover { color: var(--clr-red); }
.post-card-readme:hover::before { background: var(--clr-red); }

/* Compact stacking inside the body of a card row */
.post-card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media (max-width: 768px) {
    .post-card { padding: 18px; gap: 14px; }
    .post-card-title { font-size: 0.92rem; }
}
