@font-face {
    font-family: 'Happy Times';
    src: url(../../fonts/happy-times/happy-times-NG_regular_master_web.ttf);
}

@font-face {
    font-family: 'Happy Times';
    font-weight: bold;
    src: url(../../fonts/happy-times/happy-times-NG_bold_master_web.ttf);
}

@font-face {
    font-family: 'Heal the Web';
    src: url(../../fonts/heal-the-web/HealTheWebA-Regular.otf);
}

html {
    background: #dadada;
    color: #444; /* rgb(149, 255, 0); */
    --font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    -webkit-text-size-adjust: 100%;
    font-kerning: normal;
}

body {
    /* box-shadow: inset 0 0 calc(1.55vw * 6) yellow; */
    min-height: 100vh;
    padding-bottom: max(2vw, 17px);
}

.content {
    font-family: 'Happy Times';
    font-weight: normal;
    line-height: 1.2;
    /* margin: 1em 1em 0 1em; */

    @media (max-width: 800px) {
        border: none;
        font-size: 17px;
        margin: 0;
    }

    /* .block:first-of-type { */
    h1 + .block {
        padding-top: 1em !important;
    }

    &.h-max-h1 h1, &.h-max-h1 .h1,
    &.h-max-h3 h3, &.h-max-h3 .h3 {
        border-bottom: 2px solid #fff;
        color: #fff;
        font-family: 'Heal the Web';
        font-size: 4em;
        /* font-style: italic;
        font-weight: normal; */
        font-weight: bold;
        margin: 0;
        padding: 0.15em 5px 5px;
        text-align: center;
        text-shadow: 0 0 0.05em #fff;
        text-transform: uppercase;
        text-wrap: balance;

        @media (max-width: 800px) {
            font-size: 34px;
        }
    }

    &.h-max-h1 h2, &.h-max-h1 .h2,
    &.h-max-h3 h4, &.h-max-h3 .h4 {
        background-color: #fff;
        border-radius: 1em;
        color: #444;
        display: inline-block;
        margin-bottom: 0.5em;
        padding: 0.3em 0.6em;
    }

    ul {
        list-style: disc;

        li {
            margin-left: 1em;                
        }
    }

    p, ul, ol {
        margin-bottom: 0;
        padding-bottom: 1.15em;
    }

    a {
        /* background-color: #ffd868;
        border-bottom: 1px solid red;
        border-radius: 0.15em;
        color: red; */
        border-bottom: 1px solid;
        color: inherit;
        text-decoration: none;
        /* padding: 0 0.1em; */
    }

    a:hover {
        background-color: blue;
        color: blue;
    }

    .block.type-image {
        margin-bottom: 0;
        padding-bottom: 1.15em !important;

        figcaption {
            font-size: 0.6em;
            font-family: Space Grotesk;
        }
    }

    code {
        background-color: #eee;
        color: #000;
        margin-bottom: calc(1 / 0.85 * 1.15em);
        padding: 15px;
    }

    &.subpage {
        border: 2px solid #fff;
        margin: 1em 1em 0 1em;

        & > *:not(h1.h1) {
            padding: 0 10px;
        }

        .block {
            border-left: 2px solid #fff;
            border-right: 2px solid #fff;
            margin: 0 auto;
            width: 50%;

            @media (max-width: 800px) {
                border: none;
                width: 100%;
            }
        }

    }

    .posts {

        .post {
            /* border-right: 1px solid; */
            font-size: 0.7em;
            width: 50%;

            &:not(:first-child) {
                border-top: 2px solid #fff;
            }

            &:first-child {
                border-right: 2em solid #fff !important;
            }

            &:nth-child(odd) {
                border-right: 2px solid #fff;
            }

            &:nth-child(even) {
                border-left: 2px solid #fff;
                margin-left: auto;
                margin-top: -1px;
                width: calc(50% + 1px);
            }

            @media (max-width: 800px) {
                border: none !important;
                font-size: 1em;
                margin: 0 !important;
                width: 100% !important;
            }

            /* @media (max-width: 800px) {
                border: none;
                font-size: 1em;
                width: 100%;
            } */

            h3 {
                margin-bottom: 0.3em;
            }

            .block {
                padding: 0 10px;
            }
        }
    }

}