/* projects-showcase.css — Featured Projects: cover image, logo badge, tags */

.home-projects {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.project-cover {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: #EFE6DC;
}

/* Sits in the body, pulled up to overlap the cover's bottom edge. */
.project-logo-badge {
    position: relative;
    z-index: 1;
    margin: -40px 0 10px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background-color: #fff;
    border: 1px solid var(--card-line);
    box-shadow: 0 6px 14px -6px rgba(59, 52, 45, 0.35);
}

.project-logo-badge img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 4px;
}

.project-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 18px 18px 18px;
}

.project-title {
    font-family: "Kreon", serif;
    font-size: 23px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--ink-deep);
    margin-bottom: 6px;
    text-wrap: balance;
}

.project-desc {
    font-size: 17px;
    line-height: 1.45;
    color: var(--ink);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    margin-top: auto;
    padding-top: 14px;
}

.project-tags li {
    font-family: "Kreon", serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    background-color: rgba(59, 52, 45, 0.07);
    border-radius: 999px;
    padding: 3px 10px;
}

@media (max-width: 1100px) {
    .home-projects {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .home-projects {
        grid-template-columns: 1fr;
    }
}
