/*
 * Тема «Тираж» — стили блога.
 * Дополняют css/tirazh.css: лента записей, страница записи, комментарии,
 * постраничная навигация и колонка с архивом.
 */

/* ---------- карточки записей в ленте ---------- */
.post{
    padding:1.5rem;
    margin-top:0
}
.post + .post{
    border-top:var(--stroke) solid var(--line);
    margin-top:1.5rem;
    padding-top:1.5rem
}

.post-title{
    margin:0 0 .75rem;
    font-family:var(--display);
    font-size:clamp(1.5rem,3.2vw,2.25rem);
    line-height:1.1;
    letter-spacing:-.03em;
    font-weight:750
}
.post-title a{
    color:inherit;
    text-decoration:none
}
.post-title a:hover{
    text-decoration:underline;
    text-decoration-thickness:2px;
    text-underline-offset:.15em
}

.post .credentials .date,
.post .credentials .comments-link{
    font-size:.8125rem;
    opacity:.8
}
.post .text{
    max-width:46rem
}
.post .text p:last-child{
    margin-bottom:0
}

.stream-total{
    margin:1.5rem 0 0;
    opacity:.7
}
.stream-empty{
    opacity:.7
}

/* прикреплённый к записи фотоальбом */
.photo-album-attachment{
    margin:1rem 0 0
}
.photo-album-attachment ul.thumbs{
    display:flex;
    flex-wrap:wrap;
    gap:.5rem;
    margin:0;
    padding:0;
    list-style:none
}
.photo-album-attachment ul.thumbs img{
    width:8rem;
    height:8rem;
    object-fit:cover;
    border:var(--stroke) solid var(--line);
    display:block
}
.photo-album-attachment .photo{
    margin:0 0 1.5rem
}
.photo-album-attachment .photo img{
    max-width:100%;
    height:auto;
    border:var(--stroke) solid var(--line)
}

/* ---------- «показать ещё» и постраничная навигация ---------- */
.pageless-wrapper{
    margin:1.75rem 0 0
}
.pageless-link{
    display:inline-block
}
.pageless-progress{
    margin-top:.5rem;
    opacity:.7
}

.stream-paging{
    display:flex;
    flex-wrap:wrap;
    gap:6px;
    margin:2rem 0 0;
    padding:0;
    list-style:none
}
.stream-paging li{
    margin:0
}
.stream-paging a{
    display:block;
    min-width:38px;
    padding:.4rem .55rem;
    text-align:center;
    text-decoration:none;
    font-family:var(--mono,ui-monospace,monospace);
    font-size:.8125rem;
    border:var(--stroke) solid var(--line);
    background:var(--color-base-100);
    color:inherit
}
.stream-paging a:hover{
    background:var(--color-base-200)
}
.stream-paging li.is-current a{
    background:var(--tirazh-accent);
    color:var(--color-primary-content);
    font-weight:700
}

/* ---------- страница одной записи ---------- */
.post-view{
    max-width:56rem
}
.post-view .page-head h1{
    font-size:clamp(2rem,5.2vw,3.4rem);
    line-height:1.04;
    letter-spacing:-.03em
}
.post-view .credentials{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:.5rem;
    margin:0 0 1.75rem;
    font-size:.8125rem;
    opacity:.85
}
.post-view .credentials .userpic{
    width:1.75rem;
    height:1.75rem;
    object-fit:cover;
    border:var(--stroke) solid var(--line)
}
.post-view .credentials .username{
    font-weight:700;
    text-decoration:none
}
.post-view .post-text{
    max-width:none
}

/* подстраницы статической страницы блога */
.sub-links{
    display:flex;
    flex-wrap:wrap;
    gap:.5rem;
    margin:0 0 1.5rem;
    padding:0;
    list-style:none
}

/* ---------- страница ошибки ---------- */
.error-page .page-head h1{
    font-size:clamp(1.75rem,4vw,2.75rem)
}

/* ---------- тёмная схема ---------- */
[data-theme$="dark"] .post,
[data-theme$="dark"] .comment{
    background-color:var(--color-base-200)
}
[data-theme$="dark"] .stream-paging a{
    background-color:var(--color-base-200)
}

/* ---------- мобильные правки ---------- */
@media (max-width:639px){
    .post{
        padding:1.1rem
    }
    .photo-album-attachment ul.thumbs img{
        width:5.5rem;
        height:5.5rem
    }
    .stream-paging a{
        min-width:34px;
        padding:.35rem .45rem
    }
}
