/* Maman o Baba presentation; every selector is section-scoped. */

@font-face {
    font-family: "Vazirmatn Local";
    src: url("maman-o-baba-assets/Vazirmatn[wght].woff2") format("woff2");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

body.maman-o-baba-section,
body.maman-o-baba-post {
    background: #F0E7D8;
    color: #493A2F;
    --maman-ink: #493A2F;
    --maman-rule: color-mix(in srgb, #493A2F 22%, transparent);
    --maman-muted: color-mix(in srgb, #493A2F 66%, transparent);
}

body.maman-o-baba-section a,
body.maman-o-baba-post a {
    color: #493A2F;
    text-decoration-color: color-mix(in srgb, #493A2F 42%, transparent);
    text-underline-offset: 0.16em;
}

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

body.maman-o-baba-section .wp-block-post-template > li {
    border-top: 1px solid var(--maman-rule);
    padding-block: clamp(1.5rem, 4vw, 2.8rem);
}

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

body.maman-o-baba-section .wp-block-post-featured-image {
    margin-block: 0 1.4rem;
}

body.maman-o-baba-section .wp-block-post-featured-image img {
    aspect-ratio: 4 / 3;
    border-radius: 2px;
    object-fit: cover;
}

body.maman-o-baba-section .wp-block-post-featured-image figcaption,
body.maman-o-baba-post .wp-block-image figcaption,
body.maman-o-baba-post .wp-block-gallery figcaption {
    color: var(--maman-muted);
    font-family: "Vazirmatn Local", sans-serif;
    font-size: 0.82rem;
    line-height: 1.7;
    margin-block-start: 0.55rem;
    text-align: center;
}

body.maman-o-baba-section .wp-block-post-title,
body.maman-o-baba-post .wp-block-post-title {
    font-family: Georgia, "Times New Roman", "Vollkorn", serif;
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

body.maman-o-baba-section .wp-block-post-date,
body.maman-o-baba-post .wp-block-post-date,
body.maman-o-baba-post .wp-block-post-author {
    color: var(--maman-muted);
    font-family: "Vazirmatn Local", sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.02em;
    opacity: 0.8;
}

body.maman-o-baba-section .wp-block-post-excerpt {
    font-family: "Vazirmatn Local", sans-serif;
    line-height: 1.9;
    margin-block-start: var(--wp--preset--spacing--30);
}

body.maman-o-baba-post .wp-block-post-content {
    max-width: 680px;
    margin-inline: auto;
    font-family: "Vazirmatn Local", sans-serif;
    font-size: clamp(1.05rem, 1rem + 0.25vw, 1.18rem);
    line-height: 2;
}

body.maman-o-baba-post .wp-block-post-content > p {
    margin-block: 0 1.35em;
}

body.maman-o-baba-post .wp-block-post-content > h2,
body.maman-o-baba-post .wp-block-post-content > h3,
body.maman-o-baba-post .wp-block-post-content > h4 {
    font-family: Georgia, "Times New Roman", "Vollkorn", serif;
    font-weight: 500;
    line-height: 1.4;
    margin-block: 2em 0.8em;
}

body.maman-o-baba-post .wp-block-image,
body.maman-o-baba-post .wp-block-gallery,
body.maman-o-baba-post .wp-block-media-text,
body.maman-o-baba-post .wp-block-cover {
    max-width: min(920px, calc(100vw - 2rem));
    margin-block: clamp(2rem, 6vw, 4.5rem);
    margin-inline: auto;
}

body.maman-o-baba-post .wp-block-image img,
body.maman-o-baba-post .wp-block-gallery img {
    height: auto;
    max-width: 100%;
}

body.maman-o-baba-post .wp-block-quote {
    border-inline-start: 2px solid color-mix(in srgb, #493A2F 35%, transparent);
    color: color-mix(in srgb, #493A2F 84%, transparent);
    padding-inline-start: 1.25em;
}

body.maman-o-baba-post .maman-o-baba-back-link {
    border-bottom: 1px solid var(--maman-rule);
    font-family: "Vazirmatn Local", sans-serif;
    font-size: 0.85rem;
    margin-block: 0 var(--wp--preset--spacing--50);
    padding-block-end: var(--wp--preset--spacing--30);
}

body.maman-o-baba-post .maman-o-baba-back-link a {
    text-decoration: none;
}

body.maman-o-baba-post .maman-o-baba-post-navigation {
    border-top: 1px solid var(--maman-rule);
    font-family: "Vazirmatn Local", sans-serif;
    margin-block-start: clamp(2rem, 7vw, 5rem);
    padding-block: 1.5rem;
}

body.maman-o-baba-post .maman-o-baba-navigation-label {
    color: var(--maman-muted);
    font-size: 0.8rem;
}

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

body.maman-o-baba-section :dir(ltr),
body.maman-o-baba-post :dir(ltr) {
    text-align: left;
}

@media (max-width: 700px) {
    body.maman-o-baba-section .wp-block-post-template > li {
        padding-block: 1.7rem;
    }

    body.maman-o-baba-section .wp-block-post-title,
    body.maman-o-baba-post .wp-block-post-title {
        line-height: 1.35;
    }

    body.maman-o-baba-post .wp-block-post-content {
        font-size: 1.04rem;
        line-height: 1.95;
    }
}
