.feed {
    border: 0;
    padding: 0 12px;
}

.post {
    padding: 23px 10px 22px;
    border-bottom: 1px solid var(--line);
}

.post:last-child {
    border-bottom: 0;
}

.post-heading {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 6px;
}

.post-heading time {
    display: block;
    font-size: .9rem;
    margin-top: 2px;
}

.post-heading .badge {
    margin-left: auto;
    align-self: flex-start;
    margin-top: 7px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .3rem .65rem;
    border-radius: var(--radius-pill);
    font-size: .82rem;
    line-height: 1.3;
    color: var(--green);
    background: var(--sage);
    font-weight: 400;
    white-space: normal;
}

.post-content {
    margin-left: 84px;
}

.post-content h2 {
    font-size: 1.72rem;
    margin-bottom: 6px;
}

.post-content p {
    line-height: 1.35;
    font-size: 1.15rem;
}

.post-content .book-preview {
    margin-left: -84px;
    margin-top: 4px;
}

.book-preview {
    display: grid;
    grid-template-columns: 172px minmax(0,1fr);
    gap: 24px;
}

.book-preview .book-cover {
    width: 172px;
    height: 224px;
    object-fit: cover;
}

.book-byline {
    font-size: 1.2rem;
}

.post-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 12px;
    font-size: .9rem;
}

.post-actions>a {
    display: flex;
    align-items: center;
    gap: .6rem;
}

.post-actions .icon {
    font-size: 1.2rem;
}

.post-actions form {
    margin: 0;
}

.post-actions .is-liked {
    color: var(--primary);
}

.post-photo {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: var(--radius-small);
}

.composer-link {
    display: block;
    padding: 13px 12px;
    font-size: .95rem;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
}

.composer-link .icon {
    margin-right: .7rem;
}

.article-preview {
    display: grid;
    grid-template-columns: minmax(150px,1fr) minmax(0,1fr);
    gap: 18px;
    margin: 1rem 0;
}

.article-preview>img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    border-radius: var(--radius-small);
}

.article-preview h2 {
    font-size: 1.4rem;
    margin: 10px 0;
}

.link-preview {
    display: block;
    padding: 1rem;
    border: 1px solid var(--line);
    background: var(--surface-soft);
    border-radius: var(--radius);
    overflow-wrap: anywhere;
}

.link-preview .icon {
    margin-right: .75rem;
}

.link-preview small {
    display: block;
    margin-top: .5rem;
}

.comment {
    padding: 20px;
    margin-top: 18px;
}

.comment header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.comment .avatar {
    width: 42px;
    height: 42px;
}

.comment time {
    margin-left: auto;
}

@media(max-width: 1350px) {
    .post-heading .badge {
        display: none;
    }
    .book-preview {
        grid-template-columns: 135px minmax(0,1fr);
        gap: 16px;
    }
    .book-preview .book-cover {
        width: 135px;
        height: 195px;
    }
    .post-content p {
        font-size: 1.08rem;
    }
}

@media(max-width:760px) {
    .feed {
        padding: 0 8px;
    }
    .post {
        padding: 20px 5px;
    }
    .post-heading {
        gap: 10px;
        margin-bottom: 12px;
    }
    .post-heading .avatar {
        width: 48px;
        height: 48px;
    }
    .post-content {
        margin-left: 0;
    }
    .post-content .book-preview {
        margin-left: 0;
    }
    .post-content h2 {
        font-size: 1.4rem;
        margin-bottom: 12px;
    }
    .post-content p {
        font-size: 1rem;
    }
    .book-preview {
        grid-template-columns: 105px minmax(0,1fr);
        gap: 14px;
    }
    .book-preview .book-cover {
        width: 105px;
        height: 154px;
    }
    .post-actions {
        gap: 18px;
        font-size: .83rem;
    }
    .post-actions .icon {
        font-size: 1rem;
    }
    .article-preview {
        grid-template-columns: 1fr;
    }
    .article-preview>img {
        height: 180px;
    }
    .comment time {
        display: none;
    }
}
