@font-face {
    font-family: bella;
    src: url(https://dl.dropboxusercontent.com/scl/fi/23ihr2fzrru1on99wvd2h/BellasophieRegular-AL2wD.otf?rlkey=q3y3q5jz7bprf8rkf9bqsvvmd&st=iepmqedx&dl=0);
}

@font-face {
    font-family: montreal;
    src: url(https://dl.dropboxusercontent.com/scl/fi/sce8do9hnvlmzexx6buyn/ppneuemontreal-thin.otf?rlkey=yf4lma2pcz8hi9c7xgv0xosd7&st=xgjhtza1&dl=0);
}

@font-face {
    font-family: drafting;
    src: url(https://dl.dropboxusercontent.com/scl/fi/frg4g1lew0dtl3ylyv3z2/DraftingMono-Thin.otf?rlkey=ryioluecijjp22ndcr9zf46jp&st=ru7lvqgp&dl=0);
}

:root {
    --base-1: #21201e;
    --base-2: #373635;
    --base-3: #4d4d4b;
    --base-4: #646362;
    --base-5: #7a7978;
    --base-6: #90908f;
    --base-7: #a6a6a5;
    --base-8: #bcbcbc;
    --base-9: #e9e9e9;
    --base-10: #f0f0f0;
    --gold: #BF995E;
    --green: #34563A;
    --red: #FF6974;

    --f-texto: montreal;
    --f-deco: bella;
    --f-titulo: montreal;
    --f-mono: drafting;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

@layer basicos {

    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    p {
        margin: 0;
        padding: 0;
    }

    a,
    a:hover,
    a:visited {
        text-decoration: none;
        color: inherit;
    }
}

body {
    padding: 0;
    margin: 0;
    width: 100%;
    min-height: 100vh;
    background: var(--base-1);
    color: var(--base-10);
    font: 1rem var(--f-texto);
}

nav {
    height: 60px;
    width: 100%;
    display: flex;
    justify-content: space-around;
    border-top: 1px solid var(--base-2);
    border-bottom: 1px solid var(--base-2);

    a {
        display: flex;
        justify-content: center;
        align-items: center;
        font: 1rem var(--f-mono);
        text-transform: uppercase;
        flex: 1;
        height: 100%;
        border-right: 1px solid var(--base-2);


        &:last-of-type {
            border-right: 0;
        }
    }
}

header {
    padding: 2rem;
    width: 100%;
    height: calc(100vh - 60px);
    display: flex;
    justify-content: center;
    align-items: center;

    &:is(.blog) {
        height: 20vh;
    }

    .titulo {
        font: 10rem var(--f-deco);
        text-transform: uppercase;
        display: flex;
        flex-direction: column;
        position: relative;
        line-height: .8;
        padding-left: 8rem;

        span {
            &:not(:nth-of-type(2)) {
                z-index: 2;
            }

            &:nth-of-type(2) {
                position: absolute;
                font-size: 22rem;
                left: 0;
                color: transparent;
                -webkit-text-stroke: 1px var(--gold);
                z-index: 1;
            }
        }
    }
}

main {
    line-height: 150%;
}

@layer blog {

    @layer layout {
        body:has(.posts) {
            display: grid;
            grid-template-columns: 30vw auto;
        }

        .posts {
            height: 100vh;
            overflow: auto;
            padding: 2rem;
            display: grid;
            gap: 1.5rem;
        }
    }

    @layer nav {
        .navaside {
        padding-top: 2rem;

             .titulo {
        font: 5rem var(--f-deco);
        text-transform: uppercase;
        display: flex;
        flex-direction: column;
        position: relative;
        line-height: .8;
        padding-left: 4rem;

        span {
            &:not(:nth-of-type(2)) {
                z-index: 2;
            }

            &:nth-of-type(2) {
                position: absolute;
                font-size: 11rem;
                left: 0;
                color: transparent;
                -webkit-text-stroke: 1px var(--gold);
                z-index: 1;
            }
        }
    }
        }
    }

    @layer posts {

        .p-button {
            cursor: pointer;
            border: 1px solid var(--base-2);
            background: transparent;
            color: var(--base-10);
            width: 100%;
            padding: 2rem;
            display: flex;
            font: 1.5rem var(--f-texto);
            text-transform: uppercase;
            border-radius: 10px;
            corner-shape: squircle;
        }

        .derecha[popover] {
            background: var(--base-1);
            color: var(--base-10);
            border: 0;

            .contenido {
                position: relative;
                overflow: auto;


                .boton_cierre {
                    cursor: pointer;
                    background: var(--base-2);
                    border: 1px solid var(--base-3);
                    padding: .5rem;
                    color: var(--base-10);
                    position: absolute;
                    right: 1rem;
                    top: 1rem;
                    border-radius: 5px;
                    corner-shape: squircle;
                }

                .post-titulo {
                    font: 3rem var(--f-deco);

                }

                .post-subtitulo {
                    font: 1rem var(--f-mono);

                }

                .post-fecha {
                    width: 100%;
                    background: var(--green);
                    font: .75rem var(--f-mono);
                    text-transform: uppercase;
                    padding: .5rem;
                    display: flex;
                    justify-content: flex-end;

                }

                .slot {
                    padding: 2rem;
                    text-align: justify;
                    line-height: 150%;

                }
            }
        }
    }
}