:root {
    --green: #00562c;
    --white: #FFFFFF;
    --gray: #474747;
    --black: #222222;

    --gap: 2rem;
    --section-padding: 5rem;
}

html {
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    color: var(--dark-gray);
    box-sizing: border-box;
}

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

body {
    font-family: -apple-system, "system-ui", "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    line-height: 1.5;
}

h1, h2, h3 {
    font-family: Lato, sans-serif;
    line-height: 1.2;
}

h1 {
    font-size: 4rem;
    font-weight: 900;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
}

h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

hgroup {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-wrap: balance;
}

section {
    padding: var(--section-padding) 0;
}

header {
    background-color: var(--white);
    color: var(--green);
    position: relative;

    img {
        width: 13rem;
    }
}

main {
    background-color: var(--green);
    flex: 1;

    &, & a, & a:visited {
        color: var(--white);
    }
}

footer {
    background-color: var(--gray);
    color: var(--white);

    & section {
        padding: var(--section-padding) 0;
    }
}

.container {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr min(60rem, calc(100% - 2 * var(--gap))) 1fr;
    grid-column-gap: var(--gap);
}

.container > * {
    grid-column: 2;
}

.splash {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
}

.details {
    grid-column: 1 / -1;
    background-image: url("../images/dahmens.jpg");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;

    display: grid;
    grid-template-columns: subgrid;

    & > * {
        grid-column: 2;
    }
}

.info {
    padding: var(--gap);
    background-color: rgba(255, 255, 255, .7);
    color: var(--black);

    display: flex;
    flex-wrap: wrap;
    gap: var(--gap);

    & a, & a:visited {
        color: var(--black);
    }

    & hgroup {
        flex: 1;
        flex-basis: 10rem;
    }

    & iframe {
        border: none;
        flex: 2;
        flex-basis: 15rem;
        aspect-ratio: 3/2;
    }
}

.button {
    display: block;
    border: 2px solid white;
    text-decoration: none;
    text-transform: uppercase;
    padding: .75rem 1rem;
    width: fit-content;
}

@media screen and (max-width: 800px) {
    :root {
        --gap: 1rem;
        --section-padding: 3rem;
    }

    header img {
        position: absolute;
        opacity: 20%;
        bottom: 2rem;
        right: 2rem;
    }
}
