/*
 * KSHITIJ DASGAONKAR — DESIGN PATTERN 11
 * The homepage showcases five compact visual posts; archive uses a readable five-card grid.
 * This stylesheet is intentionally expanded, formatted and editable.
 */

.kd11-home-posts {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: clamp(12px, 1.6vw, 22px);
    max-width: none;
    width: 100%;
    margin-top: 22px;
}

.kd11-home-posts .kd10-mini-photo,
.kd11-home-posts .kd10-mini-info {
    max-width: none;
}

.kd11-home-posts .kd10-mini-photo {
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(18, 34, 58, 0.07);
}

.kd11-home-posts .kd10-mini-info {
    padding-right: 20px;
}

.kd11-home-posts .kd10-mini-info strong {
    font-size: clamp(12px, 1.08vw, 15px);
}

.kd11-facebook-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 750;
    color: var(--kd9-navy);
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    padding-bottom: 3px;
    transition: color 180ms ease;
}

.kd11-facebook-link:hover,
.kd11-facebook-link:focus-visible {
    color: var(--kd9-plum);
}

.kd11-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(16px, 2.5vw, 30px);
}

.kd11-archive-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 0;
    background: #fff;
    overflow: hidden;
    border: 1px solid #dfe1e3;
}

.kd11-archive-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-bottom: 1px solid #e3e3e3;
}

.kd11-archive-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 220ms ease;
}

.kd11-archive-card:hover img {
    transform: scale(1.025);
}

.kd11-archive-card .kd10-archive-entry-text {
    padding: clamp(16px, 2vw, 23px);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.kd11-archive-card h3 {
    margin: 12px 0;
    font-size: clamp(23px, 2.2vw, 31px);
    line-height: 1.13;
}

.kd11-archive-card p {
    margin-bottom: 17px;
}

.kd11-archive-card .kd10-view-post {
    margin-top: auto;
    align-self: flex-start;
}

.kd11-artwork-message {
    margin: 28px 0 33px;
    padding: clamp(18px, 3vw, 28px);
    background: #f5f1e9;
    border-left: 3px solid var(--kd9-brass);
}

.kd11-caption-label {
    display: block;
    color: var(--kd9-navy);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
}

.kd11-artwork-message h3 {
    margin: 10px 0 13px;
    font-family: var(--kd9-display);
    font-size: clamp(28px, 3.1vw, 38px);
    line-height: 1.15;
}

.kd11-artwork-message p[lang="mr"] {
    font-size: clamp(16px, 1.5vw, 18px);
    line-height: 1.8;
    margin: 0 0 15px;
}

.kd9-post-copy > .kd11-facebook-link {
    margin: 18px 0 26px;
}

@media (max-width: 1060px) {
    .kd11-home-posts {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 850px) {
    .kd11-archive-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .kd11-home-posts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 12px;
    }

    .kd11-home-posts .kd10-mini-info strong {
        font-size: 13px;
    }

    .kd11-archive-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .kd11-archive-card h3 {
        font-size: 28px;
    }

    .kd11-archive-card p {
        display: block;
    }
}

@media (prefers-reduced-motion: reduce) {
    .kd11-home-posts img,
    .kd11-archive-grid img,
    .kd11-facebook-link {
        transition: none;
    }
}
