/*
 * Derang presentation.
 * Every selector is scoped to a Derang body class.
 */

body.derang-section,
body.derang-post {
    background-color: #F5F1E8;
    color: #292820;
}

body.derang-section a,
body.derang-post a {
    color: #292820;
    text-decoration-color: color-mix(in srgb, #292820 45%, transparent);
    text-underline-offset: 0.16em;
}

body.derang-section .wp-block-post-template {
    list-style: none;
    margin-block-start: var(--wp--preset--spacing--50);
    padding-inline-start: 0;
}

body.derang-section .wp-block-post-template > li {
    border-top: 1px solid color-mix(in srgb, #292820 22%, transparent);
    padding-block: var(--wp--preset--spacing--50);
}

body.derang-section .wp-block-post-template > li:first-child {
    border-top: 0;
    padding-top: 0;
}

body.derang-section .wp-block-post-title,
body.derang-post .wp-block-post-title {
    font-family: Georgia, "Times New Roman", "Noto Serif", "Noto Naskh Arabic", serif;
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.22;
}

body.derang-section .wp-block-post-date,
body.derang-post .wp-block-post-date,
body.derang-post .wp-block-post-author {
    color: color-mix(in srgb, #292820 68%, transparent);
    font-size: 0.8rem;
    letter-spacing: 0.04em;
}

body.derang-section .wp-block-post-excerpt {
    line-height: 1.75;
    margin-block-start: var(--wp--preset--spacing--30);
}

body.derang-post .wp-block-post-content {
    max-width: 645px;
    margin-inline: auto;
    font-size: var(--wp--preset--font-size--large);
    line-height: 1.4;
}

body.derang-post .wp-block-post-content > p {
    margin-block: 0 1.25em;
}

body.derang-post .wp-block-post-content > h2,
body.derang-post .wp-block-post-content > h3,
body.derang-post .wp-block-post-content > h4 {
    font-family: Georgia, "Times New Roman", "Noto Serif", "Noto Naskh Arabic", serif;
    font-weight: 500;
    line-height: 1.3;
    margin-block: 1.8em 0.7em;
}

body.derang-post .wp-block-post-content > blockquote {
    border-inline-start: 2px solid color-mix(in srgb, #292820 35%, transparent);
    padding-inline-start: 1.25em;
}

body.derang-post .derang-back-link {
    border-bottom: 1px solid color-mix(in srgb, #292820 18%, transparent);
    font-size: 0.85rem;
    margin-block: 0 var(--wp--preset--spacing--50);
    padding-block-end: var(--wp--preset--spacing--30);
}

body.derang-post .derang-back-link a {
    text-decoration: none;
}

body.derang-section :dir(rtl),
body.derang-post :dir(rtl) {
    text-align: right;
}

@media (max-width: 700px) {
    body.derang-section .wp-block-post-template > li {
        padding-block: var(--wp--preset--spacing--40);
    }


    body.derang-section .wp-block-post-title,
    body.derang-post .wp-block-post-title {
        line-height: 1.3;
    }
}

