@font-face {
    font-family: Jost;
    src: url("/static/font/Jost/Jost-VariableFont_ital,wght.ttf");
}

@font-face {
    font-family: Sriracha;
    src: url("/static/font/Sriracha/Sriracha-Regular.ttf");
}

body {
    font-family: Jost, serif;
    font-size: 1em;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
}

p {
    -webkit-margin-before: 0;
    padding-top: 0;
    margin-top: 0;
}

/*
layout
*/

.wrapper {
    margin-left: 3vw;
    margin-right: 3vw;
}

.menu {
    margin-bottom: 1vmin;
}

@supports (display: grid) {
    .wrapper {
        display: grid;

        grid-template-columns: repeat(12, 1fr);
        grid-template-rows: auto auto auto auto;
    }

    .menu {
        grid-column: span 12;
        margin-bottom: 1vmin;
    }

    .content-main {
        display: grid;

        grid-template-columns: repeat(12, 1fr);
        grid-template-rows: auto;
    }

    .content-image {
        grid-column: span 6;
    }

    .content-text {
        grid-column: span 6;
    }

    .edit .content-text {
        grid-column: span 10;
    }
}

.header {
    grid-column: span 12;

    margin-top: 1vmin;
    margin-bottom: 1vmin;
}

.content {
    grid-column: span 12;
}

.footer {
    grid-column: span 12;
    margin-top: 1vmin;
}

/*
Design
*/

body {
    background-color: #06172a;
}

/* content */

.content {
    background-color: #f1f1f1;
    padding: 2vmin;
}

.content-main {
    hyphens: auto;
    min-height: 40vmin;
}

.content p,
.content li {
    font-size: 1.2em;
}

.content h1 {
    -webkit-margin-before: 0.0em;
    -webkit-margin-after: 0.67em;
    font-size: 2em;
    line-height: 1.3em;
}

.title-headline {
    font-family: Sriracha, serif;
    font-size: 2.5em;

    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
}

.content h2 {
    -webkit-margin-before: 0.0em;
    -webkit-margin-after: 0.67em;
    font-size: 1.6em;
    font-weight: normal;
}

.content h3 {
    font-size: 1.4em;
    font-weight: normal;
    line-height: 1.1;
}

.content h4 {
    font-size: 1.3em;
    font-weight: normal;
    line-height: 1.1;
}

.footer {
    color: #f1f1f1;
    padding: 1vmin;
    text-align: center;
}

.content-image {
    width: 100%;
}

.content-image img {
    object-fit: cover;
    width: 95%;
    margin-bottom: 2vmin;
}

.content-image--small {
    width: 60% !important;
    margin-right: 4vmin;
    float: right;
}

/* Responsive */

@media only screen and (min-width: 800px) {
    .hide-on-normal {
        display: none;
    }
}

@media only screen and (max-width: 800px) {
    .wrapper {
        display: grid;
        grid-template-columns: repeat(12, 1fr);
        grid-template-rows: auto auto auto auto;
    }

    .header {
        grid-column: span 12;
    }

    .menu {
        grid-row: 2;
        grid-column: span 12;
        margin-right: 0;
    }

    .content {
        grid-column: span 12;
    }

    .content-image {
        width: 100%;
        float: unset;
    }

    .hide-on-mobile {
        display: none !important;
    }

    .content-main {
        grid-template-rows: auto auto;
    }

    .content-image img {
        width: 100%;
        margin-bottom: 0;
    }

    .content-image {
        grid-column: span 12;
    }

    .content-text {
        grid-column: span 12;
    }

    .content-image--small {
        float: left;
    }
}
