/* Feed styles. */

.feed-page {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    padding: 28px 0 48px;
}

.feed-page__heading {
    display: grid;
    gap: 8px;
}

.feed-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 22px;
}

.feed-tabs a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 14px;
    border: 1px solid color-mix(in srgb, var(--wine) 18%, var(--line));
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface-card) 86%, transparent);
    color: var(--ink);
    font-weight: 800;
    text-decoration: none;
}

.feed-tabs a:hover,
.feed-tabs a.is-active {
    background: var(--green);
    border-color: var(--green);
    color: #fffdf8;
}

.feed-list {
    display: grid;
    gap: 14px;
}

.feed-item {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 18px;
    padding: 16px;
}

.feed-item__image {
    display: block;
    width: 92px;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 10px;
    background: linear-gradient(145deg, var(--green), var(--plum));
    box-shadow: 0 12px 28px rgba(24, 32, 43, 0.16);
}

.feed-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.feed-item__image--icon {
    display: grid;
    place-items: center;
    color: #fffdf8;
    font-size: 2rem;
    font-weight: 900;
    text-decoration: none;
}

.feed-item__body {
    min-width: 0;
}

.feed-item__topline {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0;
}

.feed-item__topline span {
    color: var(--wine);
}

.feed-item h2 {
    margin: 0;
    font-size: clamp(1.25rem, 2vw, 1.65rem);
    line-height: 1.1;
}

.feed-item h2 a {
    color: var(--ink);
    text-decoration: none;
}

.feed-item h2 a:hover {
    color: var(--green);
}

.feed-item__subtitle,
.feed-item__excerpt,
.feed-item__meta {
    margin: 8px 0 0;
}

.feed-item__subtitle,
.feed-item__meta {
    color: var(--muted);
    font-weight: 800;
}

.feed-item__excerpt {
    color: color-mix(in srgb, var(--ink) 78%, var(--muted));
    line-height: 1.55;
}

.feed-empty {
    padding: 28px;
}

.feed-empty h2 {
    margin: 0 0 8px;
}

.feed-empty p {
    margin: 0;
    color: var(--muted);
}

@media (max-width: 680px) {
    .feed-page {
        width: min(100%, calc(100% - 24px));
        padding-top: 18px;
    }

    .feed-tabs {
        gap: 8px;
    }

    .feed-tabs a {
        min-height: 36px;
        padding: 7px 11px;
        font-size: 0.9rem;
    }

    .feed-item {
        grid-template-columns: 68px minmax(0, 1fr);
        gap: 12px;
        padding: 12px;
    }

    .feed-item__image {
        width: 68px;
        border-radius: 8px;
    }

    .feed-item__topline {
        justify-content: flex-start;
    }
}
