/* Feed styles. */

.feed-page {
    width: min(var(--max-width), 100%);
    margin: 0 auto;
    padding: 8px 0 48px;
}

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

.feed-page__heading h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.2rem);
    letter-spacing: -0.04em;
    line-height: 1.02;
}

.feed-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin: 0 0 28px;
}

.feed-tabs a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--muted);
    font-weight: 800;
    text-decoration: none;
}

.feed-tabs a:hover,
.feed-tabs a.is-active {
    background: transparent;
    border: 0;
    color: var(--ink);
}

.feed-tabs a.is-active {
    box-shadow: inset 0 -2px 0 var(--green);
}

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

.feed-item {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 20px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.feed-item__image {
    display: block;
    width: 160px;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 10px;
    background: #1b1612;
    box-shadow: 0 10px 22px rgba(8, 6, 4, 0.28);
}

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

.feed-item__image--icon {
    display: grid;
    place-items: center;
    color: var(--ink);
    font-size: 2rem;
    font-weight: 900;
    text-decoration: none;
    background: color-mix(in srgb, var(--green) 18%, var(--paper));
    box-shadow: 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: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

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

.feed-item h2 {
    margin: 0;
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.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: 700;
}

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

.feed-empty {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

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

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

@media (max-width: 680px) {
    .feed-page {
        width: 100%;
        padding-top: 8px;
    }

    .feed-tabs {
        gap: 6px 14px;
    }

    .feed-tabs a {
        min-height: 32px;
        font-size: 0.9rem;
    }

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

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

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