@supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
    @keyframes anima-fadein {
        from {
            transform: scaleX(.9);
            filter: blur(2px);
            opacity: .35;
        }
        40% {
            transform: scaleX(1);
            filter: blur(0);
            opacity: 1;
        }
        to {
            transform: scaleX(1);
            filter: blur(0);
            opacity: 1;
        }
    }
    .animacao-fadein {
        animation: anima-fadein linear forwards;
        animation-timeline: view();
    }
}
:root {
    --text-color: light-dark(#614F1F, #F8F4ED);
    --bg-color: light-dark(#F8F4ED, #614F1F);
    --warning-bg-color: light-dark(#D8D4BD, #412F1F);
}
* {
    box-sizing: border-box;
}
img, svg, iframe {
    max-width: 100%;
    height: auto;
}
hr {
    border: none;
    border-top: 1px solid var(--text-color);
}
a {
    color: inherit;
    &:hover {
        text-decoration: none;
        opacity: .75;
    }
}
h1, h2, h3, h4, h5, h6 {
    a {
        text-decoration: none;
        &:hover {
            text-decoration: underline;
        }
    }
}
body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: Arial, sans-serif;
    line-height: 1.5;
    margin: 0;
    padding: 20px 0;
    & > header {
        padding: 0 1rem;
        text-align: center;
        .gatilho-menu {
            cursor: pointer;
        }
        nav#menu {
            display: flex;
            justify-content: space-between;
            margin: 0 auto;
            padding: 1rem;
            padding-bottom: .5rem;
            max-width: 1280px;
            border-radius: 1rem;
            background-color: light-dark(rgba(255, 255, 255, 0.85), rgba(0, 0, 0, 0.35));
            box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
        }
        nav#poetas, nav#busca {
            position: fixed;
            width: 100%;
            height: 100vh;
            top: 0;
            z-index: 4;
            display: flex;
            flex-direction: row;
            background-color: light-dark(rgba(255, 255, 255, 1), rgba(0, 0, 0, 1));
            opacity: .5;
            padding: 1rem;
            box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
            text-align: left;
            transition: all .3s;
            h2 {
                font-size: 1.3rem;
                margin: 0;
            }
            .submenu {
                display: flex;
                justify-content: space-between;
                a {
                    font-weight: bold;
                }
            }
        }
        nav#poetas {
            left: -100%;
            ul {
                max-height: calc( 94vh - 3.2rem );
                max-height: calc( 94dvh - 3.2rem );
                overflow-x: auto;
                column-count: calc( 100vw / 400px );
            }
        }
        nav#busca {
            left: 100%;
            align-items: stretch;
            form {
                height: calc( 94vh - 3.2rem );
                height: calc( 94dvh - 3.2rem );
                margin: 0 auto;
                max-width: 960px;
                display: flex;
                padding: 1rem;
                justify-content: center;
                input[type="text"] {
                    display: flex;
                    align-self: center;
                    padding: .5rem 1rem;
                    border-radius: 1rem;
                    color: var(--text-color);
                    font-size: 1.25rem;
                    opacity: .75;
                    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.25);
                }
            }
        }
        #inp-poetas:checked ~ nav#poetas,
        #inp-busca:checked ~ nav#busca {
            display: block;
            left: 0;
            opacity: 1;
        }
        svg {
            height: 2rem;
            fill: var(--text-color);
            &.icone_voltar {
                fill: transparent;
                stroke: var(--text-color);
            }
        }
        a {
            text-decoration: none;
        }
    }
    & > main, & > section, & > article, & > footer {
        margin: 0 auto;
        padding: 0 1rem;
        max-width: 960px;
        & > h1 {
            margin: 2rem 0 4rem;
        }
        &.conteudo-interno {
            margin-top: 5rem;
        }
    }
    & > footer {
        margin-top: 6rem;
        h4 {
            margin: 0;
        }
        svg {
            max-height: 1.5rem;
            position: relative;
            top: .2rem;
        }
        nav {
            text-align: right;
            font-size: .8rem;
            a {
                text-decoration: none;
                padding: 0 .5rem;
            }
        }
    }
    .largura-padrao, .largura-restrita, .largura-ampla, .largura-total {
        margin: 0 auto;
        padding: 1rem;
    }
    .largura-padrao {
        max-width: 960px;
    }
    .largura-restrita {
        max-width: 720px;
    }
    .largura-ampla {
        max-width: 1280px;
    }
    .largura-total {
        max-width: 100vw;
        padding: 0;
    }
}
ul.destaques {
    margin: 0;
    padding: 0;
    li {
        list-style-type: none;
        margin: 0 0 3rem;
        div.post a {
            display: flex;
            gap: .25rem;
            h3 {
                margin: 0;
                padding: 2rem 0;
                writing-mode: sideways-lr;
                text-align: right;
                font-size: 1.25rem;
                font-variant: small-caps;
            }
            div.destaque {
                flex: 11;
            }
        }
        a {
            color: var(--text-color);
            text-decoration: none;
            &:hover {
                opacity: .85;
            }
        }
        div.destaque {
            background-size: cover;
            background-position: center;
            width: 100%;
            height: 100%;
            display: flex;
            align-items: flex-end;
            min-height: 50vh;
            border-radius: 1rem;
            overflow: hidden;
            font-weight: bold;
            font-size: min(1.25rem, 3.75vw);
            line-height: min(1.75rem, 5.25vw);
            blockquote {
                margin: 0;
                flex: 1;
                background-color: rgba(0, 0, 0, 0.45);
                backdrop-filter: blur(3px);
                padding: 2rem;
                color: light-dark(var(--bg-color), var(--text-color));
                text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
            }
        }
    }
}
ul.grade-posts {
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem 1rem;
    li {
        list-style-type: none;
        div.post a {
            display: block;
            overflow: hidden;
            text-decoration: none;
            color: var(--text-color);
            &:hover {
                opacity: .75;
            }
            figure {
                width: 100%;
                height: auto;
                aspect-ratio: 3/2;
                overflow: hidden;
                margin: 0;
                margin-bottom: .5rem;
                border-radius: .5rem;
                display: flex;
                justify-content: center;
                align-items: center;
                background-color: rgba(0, 0, 0, 0.25);
                background: radial-gradient(circle,rgba(102, 102, 102, .1) 0%, rgba(52, 52, 52, .1) 65%, rgba(0, 0, 0, .25) 100%);
                img {
                    width: auto;
                    height: auto;
                    max-width: 100%;
                    max-height: 100%;
                }
            }
            address {
                font-style: normal;
                font-size: .75rem;
                color: var(--text-color);
                opacity: .75;
                margin-bottom: .5rem;
            }
            h3 {
                margin: 0;
            }
            div.entry {
                p {
                    line-height: 1.4;
                    margin: 0 0 .25rem;
                }
                cite {
                    font-size: .85rem;
                    color: var(--text-color);
                    opacity: .75;
                }
            }
        }
    }
}
article {
    header, header.largura-ampla {
        padding: 8rem 1rem 5rem;
        h1 {
            margin: 1rem 0;
            font-size: 3rem;
            line-height: 3rem;
        }
        cite {
            font-style: normal;
            a {
                color: var(--text-color);
                text-decoration: none;
                &:hover {
                    text-decoration: underline;
                }
            }
        }
        & + figure {
            margin: 0;
            padding: 0;
            div {
                background-color: rgba(0, 0, 0, 0.75);
            }
            img {
                display: block;
                margin: 0 auto;
            }
            figcaption {
                text-align: center;
                font-size: .85rem;
                font-style: italic;
                opacity: .75;
            }
        }
    }
}
.compartilhar {
    float: right;
    position: relative;
    top: -1.5rem;
    opacity: .75;
    transition: all .3s;
    &:hover {
        opacity: 1;
    }
    svg {
        width: 1.5rem;
        height: auto;
        fill: var(--text-color);
    }
}
.descricaopoema {
    margin-top: 2rem;
    text-align: right;
}
.biografia {
    img {
        display: block;
        margin: 0 auto 2rem;
        @media ( min-width: 640px ) {
            float: left;
            margin-right: 1rem;
            margin-bottom: 1rem;
        }
    }
}
.afiliados {
    margin: 2rem auto 1rem;
    border-radius: .3rem;
    border: 1px solid var(--text-color);
    max-width: 13rem;
    padding: .5rem;
    min-height: 3rem;
    box-shadow: 3px 3px 2px rgba(149, 144, 132, .4);
    transition: opacity .2s;
    a {
        display: flex;
        text-decoration: none;
        font-size: .7rem;
        line-height: 1.2rem;
        text-transform: uppercase;
    }
    svg {
        fill: var(--text-color);
        float: left;
        max-height: 3rem;
        max-width: 3rem;
        margin-right: .3rem;
    }
}
.paginacao {
    margin-top: 4rem;
    padding: 1.5rem 0;
    ol, ul {
        margin: 0;
        padding: 0;
        list-style-type: none;
        text-align: center;
    }
    li {
        display: inline-block;
    }
    a {
        color: var(--text-color);
    }
    .prev, .next, .page {
        border-radius: 1.3rem;
        display: block;
        font-size: .85rem;
        min-width: 1.8rem;
        min-height: 1.8rem;
        line-height: 1.8rem;
        @media screen and (min-width: 600px) {
            font-size: .95rem;
            min-width: 2.2rem;
            min-height: 2.2rem;
            line-height: 2.2rem;
        }
        margin: .1rem;
        text-decoration: none;
        transition: all .3s;
        &.current, &:hover {
            background-color: var(--text-color);
            color: var(--bg-color);
        }
        &:hover {
            opacity: .75;
        }
    }
    .prev, .next {
        font-weight: bold;
    }
}
@media screen and (prefers-reduced-motion: reduce), (update: slow) {
    * {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}

.aviso_cookies {
    position: sticky;
    z-index: 3;
    top: .25rem;
    left: 0;
    margin: 1rem auto 0;
    width: calc( 100% - .5rem );
    font-size: .9rem;
    background-color: var(--warning-bg-color);
    color: var(--text-color);
    box-shadow: 1px 1px 4px rgba( 89, 84, 72, .7 );
    a {
        color: var(--text-color);
        &:hover {
            text-decoration: none;
            color: var(--text-color);
        }
    }
    .cookies_container {
        display: grid;
        grid-gap: 0 1rem;
        grid-template-columns: 1fr 1fr;
        p:first-child {
            grid-column-start: 1;
            grid-column-end: 3;
        }
        @media ( min-width: 640px ) {
            grid-template-columns: 1fr auto;
            p:first-child {
                grid-row-start: 1;
                grid-row-end: 3;
                grid-column-end: 1;
            }
        }
        @media ( min-width: 768px ) {
            grid-template-columns: 1fr auto auto;
            p:first-child {
                grid-row-end: 1;
            }
        }
        align-items: center;
        max-width: 768px;
        margin: 0 auto;
        position: relative;
        padding: 1.2rem 1rem;
        button {
            cursor: pointer;
            border: none;
            color: var(--bg-color);
            background-color: var(--text-color);
            padding: .5rem 1rem;
            border-radius: 5px;
            font-size: .7rem;
            font-weight: bold;
            text-transform: uppercase;
            box-shadow: 3px 3px 2px rgba( 89, 84, 72, .8 );
            transition: opacity .2s;
            &:hover {
                opacity: .85;
            }
        }
    }
}

.nao_encontrado {
    min-height: calc(100vh - 20rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-image: url(../img/floating-cogs.svg);
    background-repeat: no-repeat;
    background-size: cover;
    h1 {
        margin: .2em 0;
    }
    p {
        max-width: 520px;
    }
}

.desabilitado {
    cursor: no-drop;
    opacity: .6;
}
.screen_reader {
    display: none;
}