@charset "utf-8";

@font-face {
    font-display: swap;
    font-family: 'EB Garamond';
    font-style: normal;
    font-weight: 500;
    src: url('../fonts/eb-garamond-v33-latin-500.eot');
    src: url('../fonts/eb-garamond-v33-latin-500.eot?#iefix') format('embedded-opentype'), url('../fonts/eb-garamond-v33-latin-500.woff2') format('woff2'), url('../fonts/eb-garamond-v33-latin-500.woff') format('woff'), url('../fonts/eb-garamond-v33-latin-500.ttf') format('truetype'), url('../fonts/eb-garamond-v33-latin-500.svg#EBGaramond') format('svg');
}

@font-face {
    font-display: swap;
    font-family: 'EB Garamond';
    font-style: normal;
    font-weight: 800;
    src: url('../fonts/eb-garamond-v33-latin-800.eot');
    src: url('../fonts/eb-garamond-v33-latin-800.eot?#iefix') format('embedded-opentype'), url('../fonts/eb-garamond-v33-latin-800.woff2') format('woff2'), url('../fonts/eb-garamond-v33-latin-800.woff') format('woff'), url('../fonts/eb-garamond-v33-latin-800.ttf') format('truetype'), url('../fonts/eb-garamond-v33-latin-800.svg#EBGaramond') format('svg');
}

@font-face {
    font-display: swap;
    font-family: 'Bree Serif';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/bree-serif-v18-latin-regular.eot');
    src: url('../fonts/bree-serif-v18-latin-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/bree-serif-v18-latin-regular.woff2') format('woff2'), url('../fonts/bree-serif-v18-latin-regular.woff') format('woff'), url('../fonts/bree-serif-v18-latin-regular.ttf') format('truetype'), url('../fonts/bree-serif-v18-latin-regular.svg#BreeSerif') format('svg');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    color: #002358;
    font-family: 'EB Garamond', Georgia, serif;

    font-size: 1.375rem;
    line-height: 1.3;
    font-weight: 500;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

#wrapper {
    position: relative;
    max-width: 50rem;
    margin: 1rem auto;
    overflow: hidden;
    background: url("../images/bg1.jpg") center bottom /cover no-repeat;
    box-shadow: 0 0 .625rem rgba(0, 0, 0, 0.2);
}

:is(a:link, a:visited, a:hover, a:active) {
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
}

article p {
    padding-bottom: 1rem;
}

h1 {
    font-size: 3.3rem;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    letter-spacing: 2px;
    font-family: 'Bree Serif', Georgia, serif;
    padding-bottom: 1rem;
}

h1 small {
    font-size: .7em;
}

h1 span {
    font-size: 1.5rem;
    font-weight: normal;
}

h2 {
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    font-family: 'Bree Serif', Georgia, serif;
}

h3 {
    font-size: 1.5rem;
    font-weight: 800;
}

ul {
    padding: 0 0 1rem 1.25rem;
}

.bg {
    background: url("../images/bg2.png")0 0 /100% 100% no-repeat;
    padding: 0 2rem 3rem;
    margin-top: 2rem;
}

.bg::after {
    content: url("../images/bier.png");
    position: absolute;
    bottom: 0;
    right: 0;
    line-height: 0;
}

header {
    padding: 2rem 2rem 0;
}

article {
    padding: 0 2rem;
}

footer {
    padding: 0 4rem 1rem;
}

@media only screen and (max-width: 49.938rem) {

    #wrapper {
        border: none;
        margin: 0 auto;
    }

    p,
    ul {
        -moz-hyphens: auto;
        -webkit-hyphens: auto;
        -ms-hyphens: auto;
        hyphens: auto;
    }

    .bg::after,
    article br {
        display: none;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.5rem;
    }
}

@media only screen and (max-width: 42rem) {
    body {
        font-size: 1rem;
    }

    h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    h2,
    h3 {
        font-size: 1.25rem;
    }

    .bg {
        padding: 0 1rem 3rem;
        margin-top: 1rem;
    }

    header {
        padding: 1rem 2rem 0;
    }

    footer {
        padding: 0 1rem 1rem;
        text-align: center;
    }
}

@media only screen and (max-width: 31.25rem) {
    .bg {
        background: #f8f3e2;
        padding: 0;
        margin: 1rem;
        border: 2px solid #9d8767;
    }

    header {
        padding: 1rem 1rem 0;
    }

    article {
        padding: 0 1rem;
    }

    h1 {
        font-size: 1.6rem;
        line-height: 1.2;
        letter-spacing: normal;
    }

    h2,
    h3 {
        font-size: 1.1rem;
    }
}