/* Дневник Бурена: свой "теплый" вид поверх общего шаблона сайта. Все стили - внутри .buren-page. */

.buren-page {
    --buren-bg: #fbf5ea;
    --buren-paper: #fffdf8;
    --buren-ink: #3a2e25;
    --buren-muted: #8a7767;
    --buren-accent: #b4532a;
    --buren-accent-dark: #8f3f1e;
    --buren-line: #eadcc8;

    flex: 1 0 auto;
    background: var(--buren-bg);
    color: var(--buren-ink);
    padding: 2.5rem 0 3.5rem;
}

.buren-container {
    max-width: 760px;
}

.buren-page a {
    color: var(--buren-accent);
    text-decoration-color: rgba(180, 83, 42, 0.35);
    text-underline-offset: 0.15em;
}

.buren-page a:hover {
    color: var(--buren-accent-dark);
    text-decoration-color: currentColor;
}

.buren-header {
    margin-bottom: 2rem;
}

.buren-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.75rem;
    overflow-wrap: anywhere;
}

.buren-lead {
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.buren-disclaimer {
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--buren-muted);
    font-style: italic;
    margin-bottom: 0.75rem;
}

.buren-note {
    display: inline-block;
    font-size: 0.8125rem;
    color: var(--buren-muted);
    background: #f3e7d3;
    border-radius: 999px;
    padding: 0.2rem 0.8rem;
    margin-bottom: 0;
}

.buren-date {
    display: block;
    font-size: 0.875rem;
    color: var(--buren-muted);
    margin-bottom: 0.4rem;
}

/* карточка записи в ленте */
.buren-card {
    background: var(--buren-paper);
    border: 1px solid var(--buren-line);
    border-radius: 14px;
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 2px 8px rgba(120, 84, 40, 0.06);
}

.buren-card-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.6rem;
    overflow-wrap: anywhere;
}

.buren-card-title a {
    color: var(--buren-ink);
    text-decoration: none;
}

.buren-card-title a:hover {
    color: var(--buren-accent);
}

.buren-teaser {
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.buren-more {
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
}

.buren-empty {
    color: var(--buren-muted);
    text-align: center;
}

.buren-pagination {
    margin-top: 1.75rem;
}

.buren-pagination .page-link {
    color: var(--buren-accent);
    background: var(--buren-paper);
    border-color: var(--buren-line);
}

.buren-pagination .page-item.active .page-link {
    color: #fff;
    background: var(--buren-accent);
    border-color: var(--buren-accent);
}

.buren-pagination .page-item.disabled .page-link {
    color: var(--buren-muted);
}

/* страница записи */
.buren-back {
    font-size: 0.9375rem;
    margin-bottom: 1.25rem;
}

.buren-post {
    background: var(--buren-paper);
    border: 1px solid var(--buren-line);
    border-radius: 14px;
    padding: 2rem 2.25rem;
    box-shadow: 0 2px 8px rgba(120, 84, 40, 0.06);
}

.buren-post-header {
    padding-bottom: 1.25rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--buren-line);
}

.buren-body {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.125rem;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.buren-body > :last-child {
    margin-bottom: 0;
}

.buren-body p {
    margin-bottom: 1.1rem;
}

.buren-body h2,
.buren-body h3,
.buren-body h4 {
    font-weight: 700;
    line-height: 1.3;
    margin: 2rem 0 0.8rem;
}

.buren-body h2 {
    font-size: 1.5rem;
}

.buren-body h3 {
    font-size: 1.3rem;
}

.buren-body h4 {
    font-size: 1.15rem;
}

.buren-body ul,
.buren-body ol {
    padding-left: 1.4rem;
    margin-bottom: 1.1rem;
}

.buren-body li {
    margin-bottom: 0.35rem;
}

.buren-body blockquote {
    border-left: 4px solid var(--buren-accent);
    background: #f8efdf;
    border-radius: 0 8px 8px 0;
    padding: 0.8rem 1.1rem;
    margin: 0 0 1.1rem;
    font-style: italic;
}

.buren-body blockquote > :last-child {
    margin-bottom: 0;
}

.buren-body code {
    font-size: 0.9em;
    color: var(--buren-accent-dark);
    background: #f3e7d3;
    border-radius: 4px;
    padding: 0.1em 0.35em;
}

.buren-body pre {
    background: #f3e7d3;
    border-radius: 8px;
    padding: 0.9rem 1rem;
    overflow-x: auto;
}

.buren-body pre code {
    background: none;
    padding: 0;
}

.buren-body hr {
    border: 0;
    border-top: 1px solid var(--buren-line);
    opacity: 1;
    margin: 1.75rem 0;
}

/* предыдущая / следующая запись */
.buren-neighbors {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

.buren-neighbor {
    min-width: 0;
    overflow-wrap: anywhere;
}

.buren-neighbor-next {
    text-align: right;
}

.buren-neighbor-label {
    display: block;
    font-size: 0.8125rem;
    color: var(--buren-muted);
    margin-bottom: 0.2rem;
}

@media (max-width: 575.98px) {
    .buren-page {
        padding: 1.5rem 0 2.5rem;
    }

    .buren-title {
        font-size: 1.75rem;
    }

    .buren-card {
        padding: 1.15rem 1.15rem;
    }

    .buren-card-title {
        font-size: 1.3rem;
    }

    .buren-post {
        padding: 1.25rem 1.15rem;
    }

    .buren-body {
        font-size: 1.0625rem;
    }

    .buren-neighbors {
        grid-template-columns: 1fr;
    }

    .buren-neighbor-next {
        text-align: left;
    }
}
