/*
Theme Name: Блог ПраЯНа
Theme URI: https://prayana.ru/
Author: Prayana
Author URI: https://prayana.ru/
Description: Минималистичная светлая тема блога в стиле лендинга ПраЯНа.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: prayana-blog
*/

@font-face {
    font-family: "Prayana Display";
    src: url("assets/fonts/Zabava_mari_chenak.ttf") format("truetype");
    font-display: swap;
}

:root {
    --bg: #faf9f2;
    --surface: rgba(255, 255, 255, 0.76);
    --surface-solid: #ffffff;
    --text: #243126;
    --muted: #657064;
    --accent: #66873e;
    --line: rgba(36, 49, 38, 0.14);
    --shadow: 0 18px 55px rgba(44, 58, 40, 0.14);
    --content-width: 920px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Roboto, Arial, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.65;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: Roboto, Arial, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    color: inherit;
    text-decoration-color: rgba(102, 135, 62, 0.48);
    text-underline-offset: 0.18em;
}

a:hover {
    color: var(--accent);
}

img {
    height: auto;
    max-width: 100%;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.alignleft {
    float: left;
    margin: 0 24px 18px 0;
}

.alignright {
    float: right;
    margin: 0 0 18px 24px;
}

.aligncenter {
    display: block;
    margin-right: auto;
    margin-left: auto;
}

.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 30;
    width: 100%;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(100%, 1200px);
    height: 70px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-logo {
    display: flex;
    justify-content: center;
    margin: 0 0 18px;
}

.site-logo img {
    display: block;
    width: 18vh;
    min-width: 92px;
    max-width: 138px;
}

.menu-toggle {
    display: none;
    border: 0;
    background: none;
    color: var(--text);
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.primary-nav {
    display: flex;
    gap: 30px;
}

.primary-nav ul {
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.primary-nav a {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    text-shadow: 0 1px 14px rgb(0 0 0 / 75%);
    transition: opacity 0.3s, color 0.3s;
}

.primary-nav a:hover {
    opacity: 0.7;
}

.site-header {
    position: relative;
    min-height: 240px;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background: #e9eadc;
    box-shadow: var(--shadow);
}

.site-header::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
}

.header-layer {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    pointer-events: none;
}

.header-layer.base {
    z-index: 1;
    background-image: url("assets/img/layer-base.jpg");
}

.header-layer.middle {
    z-index: 2;
    background-image: url("assets/img/layer-middle.png");
    opacity: 0.58;
}

.header-layer.front {
    z-index: 3;
    background-image: url("assets/img/layer-front.png");
    opacity: 0.52;
}

.header-title {
    position: relative;
    z-index: 6;
    width: min(100% - 32px, var(--content-width));
    margin: 0 auto;
    padding: 92px 0 42px;
    text-align: center;
    text-shadow: 0 1px 24px rgba(255, 255, 255, 0.9);
}

.site-main {
    width: min(100% - 32px, var(--content-width));
    margin: 56px auto;
}

.site-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 44px;
    width: min(100% - 32px, 1180px);
}

.blog-sidebar {
    position: sticky;
    top: 94px;
    align-self: start;
    padding: 22px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.sidebar-title {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.category-list {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.category-list a {
    display: inline-flex;
    color: var(--text);
    font-size: 16px;
    text-decoration: none;
}

.category-list a:hover {
    color: var(--accent);
}

.content-column {
    min-width: 0;
}

.post-card,
.content-panel {
    padding: 30px 0;
    border-bottom: 1px solid var(--line);
}

.post-card:first-child,
.content-panel:first-child {
    padding-top: 0;
}

.entry-title {
    margin: 0 0 10px;
    color: var(--text);
    font-family: Roboto, Arial, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 700;
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.12;
    letter-spacing: 0;
}

.entry-title a {
    text-decoration: none;
}

.entry-meta {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 14px;
}

.entry-content {
    color: #344236;
    font-size: 18px;
}

.entry-content p {
    margin: 0 0 1.1em;
}

.entry-content h2,
.entry-content h3 {
    margin-top: 1.6em;
    line-height: 1.15;
}

.read-more {
    display: inline-flex;
    align-items: center;
    margin-top: 10px;
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

.nav-links,
.post-navigation {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 36px;
    color: var(--muted);
}

.comments-area {
    margin-top: 42px;
    padding-top: 34px;
    border-top: 1px solid var(--line);
}

.comments-title,
.comment-reply-title {
    margin: 0 0 22px;
    color: var(--text);
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.18;
}

.comment-list {
    display: grid;
    gap: 18px;
    margin: 0 0 36px;
    padding: 0;
    list-style: none;
}

.comment-list .children {
    display: grid;
    gap: 16px;
    margin: 16px 0 0 34px;
    padding: 0;
    list-style: none;
}

.comment-body {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 16px;
    padding: 20px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.54);
}

.comment-avatar img {
    display: block;
    border-radius: 50%;
}

.comment-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 14px;
    margin-bottom: 8px;
}

.comment-author {
    color: var(--text);
    font-weight: 700;
}

.comment-author a,
.comment-date,
.comment-actions a {
    text-decoration: none;
}

.comment-date {
    color: var(--muted);
    font-size: 14px;
}

.comment-text {
    color: #344236;
    font-size: 16px;
}

.comment-text p {
    margin: 0 0 0.9em;
}

.comment-text p:last-child {
    margin-bottom: 0;
}

.comment-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
}

.comment-awaiting-moderation,
.comments-closed,
.comment-notes,
.logged-in-as,
.must-log-in {
    color: var(--muted);
    font-size: 14px;
}

.comment-respond {
    margin-top: 36px;
    padding: 26px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.62);
}

.comment-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.comment-form-comment,
.comment-form-url,
.comment-form-cookies-consent,
.comment-notes,
.logged-in-as,
.must-log-in,
.form-submit {
    grid-column: 1 / -1;
}

.comment-form p {
    margin: 0;
}

.comment-form label {
    display: block;
    margin-bottom: 7px;
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    border: 1px solid rgba(36, 49, 38, 0.22);
    border-radius: 0;
    padding: 12px 13px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--text);
    font: inherit;
}

.comment-form textarea {
    resize: vertical;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: 2px solid rgba(102, 135, 62, 0.28);
    border-color: var(--accent);
}

.comment-form-cookies-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--muted);
    font-size: 14px;
}

.comment-form-cookies-consent label {
    margin: 0;
    color: inherit;
    font-weight: 400;
}

.form-submit .submit {
    border: 0;
    padding: 13px 20px;
    background: var(--accent);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.form-submit .submit:hover {
    filter: brightness(0.95);
}

.search-form {
    display: flex;
    gap: 10px;
    max-width: 560px;
}

.search-field {
    min-width: 0;
    flex: 1;
    border: 1px solid rgba(36, 49, 38, 0.22);
    padding: 12px 13px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--text);
    font: inherit;
}

.search-field:focus {
    outline: 2px solid rgba(102, 135, 62, 0.28);
    border-color: var(--accent);
}

.search-submit {
    border: 0;
    padding: 12px 18px;
    background: var(--accent);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.site-footer {
    border-top: 1px solid var(--line);
    padding: 34px 16px;
    color: var(--muted);
    text-align: center;
    background: #f0efe6;
}

.site-footer p {
    margin: 0;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .primary-nav {
        position: absolute;
        top: 70px;
        left: 0;
        display: flex;
        flex-direction: column;
        gap: 0;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        background: rgba(255, 255, 255, 0.88);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        transition: max-height 0.3s ease;
    }

    .site-nav.menu-open .primary-nav {
        max-height: 500px;
    }

    .primary-nav ul {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .primary-nav a {
        display: block;
        padding: 18px 20px;
        border-top: 1px solid var(--line);
    }

    .site-header {
        min-height: 220px;
    }

    .header-title {
        padding-top: 92px;
        padding-bottom: 34px;
    }

    .site-main {
        margin: 36px auto;
    }

    .site-layout {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .blog-sidebar {
        position: static;
        padding: 18px 0;
    }

    .category-list {
        display: flex;
        flex-wrap: wrap;
        gap: 10px 18px;
    }

    .entry-content {
        font-size: 16px;
    }

    .comment-list .children {
        margin-left: 14px;
    }

    .comment-body {
        grid-template-columns: 40px minmax(0, 1fr);
        padding: 16px;
    }

    .comment-form {
        grid-template-columns: 1fr;
    }
}
