:root {
    --back-color: #ddd;
    --back-color-dark: #e4ba84;
    --accent-color: rgb(255, 145, 0);
    --text-dark: #000;
    --white: #fff;
    --anim-speed: transform .5s;
}

*, *:before, *:after {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    height: 100%;
    position: relative;
}


.wrapper {
    width: 100vw;
    height: 100%;
    min-width: 360px;
    background-color: var(--white);
    overflow: auto;
    scroll-behavior: smooth;
}

header {
    display: flex;
    font-size: 1.2em;
    color: white;
    height: 48px;
    align-items: center;
    padding-left: 10px;
    transition: font-size .5s;
}

header div {
    margin: 0 10px 0 auto;
}

header li {
    
    list-style: none;
}

header a {
    text-decoration: none;
    color: white;
}

section {
    min-height: 200px;
    width: 100%;
}

.hero {
    display: block;
    position: relative;
    height: 75vw;
    min-height: 300px;
    max-height: 500px;
    overflow: hidden;
}

.herocontent {
    position: absolute;
    top: -20px;
    left: -20px;
    width: calc(100% + 40px);
    height: calc(75vw + 40px);
    background-image: url(../img/baled-straw-field.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    padding: 20px;
    min-height: 340px;
    max-height: 520px;
    overflow: hidden;
}

.frost {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    filter: blur(5px);
    clip-path: polygon(10% 20%, 90% 20%, 90% 90%, 10% 90%);
    transition: clip-path .5s;
}

.frost::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255,255,255,0.4);
}

.frostcontent {
    position: absolute;
    top: calc(20% - 10px);
    left: 10%;
    width: 80%;
    height: 75%;
    text-align: center;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.frostcontent h1 {
    color: white;
    font-size: 2em;
    text-shadow: -8px 8px 6px rgba(0,0,0,0.6);
    margin-bottom: 8px;
}

.frostcontent h2 {
    color: white;
    font-size: 1.5em;
    text-shadow: -6px 6px 4px rgba(0,0,0,0.6);
}

.frostcontent .button {
    margin-top: 15px;
}

.button {
    font-size: 1.2rem;
    padding: 5px 10px;
    min-width: 150px;
    color: white;
    background: transparent;
    border: solid 1px var(--white);
    outline: none;
    position: relative;
    transition: color .5s;
    text-decoration: none;
}

.button::before, .button::after {
    position: absolute;
    content: '';
    width: 0;
    height: 0;
    transition: width .5s, height .5s, border-color 0s, border-width 0s;
}

.button:active {
    box-shadow: -2px 2px 5px rgba(0,0,0,0.5);
}

.button::before {
    top: -1px;
    left: -1px;
    border-top: solid 1px var(--white);
    border-left: solid 1px var(--white);
}

.button::after {
    right: -1px;
    bottom: -1px;
    border-right: solid 1px var(--white);
    border-bottom: solid 1px var(--white);
}

.button:hover, .button:active, .button:focus {
    color: var(--accent-color);
}

.button:hover::before, .button:active::before, .button:focus::before, .button:hover::after, .button:active::after, .button:focus::after {
    border-color: var(--accent-color);
    border-width: 2px;
    width: calc(100% + 2px);
    height: calc(100% + 2px);
}

.content {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 600px;
    border: dashed 2px saddlebrown;
    margin: 20px 0;
}

.contact {
    text-align: center;
    padding: 30px 20px;
}

.contact h2 {
    margin: 20px;
}

.contact address {
    padding: 20px;
}

footer {
    width: 100%;
    position: relative;
    display: block;
    height: 120px;
    background-color: var(--back-color-dark);
}

footer .copy {
    position: absolute;
    width: 100%;
    padding: 6px;
    bottom: 0;
    text-align: center;
    font-size: .8rem;
    color: white;
}

@media screen and (max-width: 499px) {
    header {
        font-size: 1em;
    }
    
    .frost {
        clip-path: polygon(30px 20%, calc(100% - 30px) 20%, calc(100% - 30px) calc(100% - 30px), 30px calc(100% - 30px));
    }

    .frostcontent {
        top: 20%;
        left: 20px;
        width: calc(100% - 40px);
        height: calc(80% - 20px);
        padding: 5px 15px;
    }

    .frostcontent h1 {
        margin-top: 0;
        font-size: 1.8em;
    }

    .frostcontent h2 {
        font-size: 1.3em;
    }
}