:root {
    --panel-bg: rgba(255, 255, 255, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    padding: 40px 20px;

    font-family: "PT Sans", sans-serif;
    color: #000;

    background-image: url("../img/back.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

a:hover {
    opacity: 0.7;
}

img {
    display: block;
    width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

/* HEADER */

.logo {
    margin-bottom: 15px;
    text-align: center;
}

.logo img {
    max-width: 500px;
}

/* NAVIGATION */

.menu {
    margin-bottom: 15px;
    padding: 1px;

    text-align: center;

    background: var(--panel-bg);
}

.menu nav {
    display: inline-block;
}

/* POST CARD */

.about {
    margin-bottom: 10px;
    padding: 5px;

    line-height: 1.1;
    text-align: justify;

    background: var(--panel-bg);
}

.about img {
    margin-bottom: 0;
}

.about p:not(:last-child) {
    margin-bottom: 10px;
}

.about iframe {
    width: 100%;
    max-width: 100%;
    border: 0;
    box-sizing: border-box;
}

/* Квадратные iframe (Bandcamp, SoundCloud) */
.about iframe[src*="bandcamp.com"],
.about iframe[src*="soundcloud.com"] {
    aspect-ratio: 1 / 1;
    height: auto;
}

/* Видео iframe (YouTube) */
.about iframe[src*="youtube.com"] {
    aspect-ratio: 16 / 9;
    height: auto;
}

.post-meta {
    margin-top: 10px;
    text-align: left;
    font-family: "PT Sans", sans-serif;
    font-size: 15px;
}

.post-meta a {
    text-decoration: none;
}

/* PAGINATION */

.pagination {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 5px 10px;
    background: var(--panel-bg);
}

.pagination__disabled {
    opacity: 0.4;
}

/* FOOTER */

footer {
    margin-top: 20px;
    text-align: center;
}

footer .counter {
    display: inline-block;
    padding: 10px 15px;

    background: var(--panel-bg);
}

/* RESPONSIVE */

@media (max-width: 600px) {

    body {
        padding: 20px 10px;
        background-attachment: scroll;
    }

    .about,
    .menu {
        font-size: 15px;
    }

}
