@import url(//fonts.googleapis.com/css?family=Arvo:400);
@import url(//fonts.googleapis.com/css?family=Lato:400,700);

body {
    background: image-set(url(images/bg.webp) 1x, url(images/bg@x2.webp) 2x);
    padding-bottom: 80px;
}

#container,
footer {
    font-family: 'Arvo', serif;
}

#container {
    font-size: 0.875rem;
    color: #6B3B25;
}

#container {
    background: #DEDAD3;
    width: 1000px;
    margin: 30px auto 0;
    padding: 0 0 20px;
    border-bottom: 3px solid #E09402;

    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

#container > header {
    position: relative;
    background: image-set(url(images/header.webp) 1x, url(images/header@x2.webp) 2x);
}
    #container > header h1 {
        font-family: 'Voltaire', sans-serif;
        font-size: 1.875rem;
        font-weight: normal;
        position: absolute;
        z-index: 11;
        left: 20px;
        bottom: 20px;
    }
        #container h1 a { color: #eee; }
    #header-image {
        width : 100%;
        height: 155px;
    }

#mobile-menu-toggle,
#mobile-menu-panel {
    display: none;
}

#menu {
    width: 100%;
    background: image-set(url(images/nav.webp) 1x, url(images/nav@x2.webp) 2x) no-repeat;
    margin-left: -20px;
    padding: 0 20px;
}

#menu-top-wrapper {
    display: flex;
}

#menu .placeholder {
    min-height: 65px;
}

#menu h3 {
    display: none;
}

#menu ul {
    display: flex;
}

#menu li {
    display: inline-block;
}

#menu a {
    font-family: 'Lato';
    font-size: 1rem;
    font-weight: 700;
    color: #DEDAD3;
    text-shadow: 0 2px 0 #C68301;
    line-height: 65px;
    display: block;
    padding: 0 15px;
}

#menu a:hover{
    background: #62493D;
    text-shadow: 0 2px 0 #444444;
}

#content {
    border-top: 5px solid #C6C2BC;
    padding-top: 30px;
}

#content .inner {
    width: 960px;
    margin: auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
}

article hgroup h1 {
    font-family: 'Lato', sans-serif;
    font-weight: normal;
    font-size: 2rem;
    margin-bottom: 20px;
    padding-bottom: 5px;
    text-align: right;
    border-bottom: 1px solid #6B3B25;
}

article {
    order: 1;
    padding: 0 25px 40px;
    font-size: 1rem;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}
    .no-menu-main article {
        padding: 0 25px 40px 0;
    }
    .no-menu-sec article {
        padding: 0 0 40px 25px;
    }
    .no-menu article {
        padding: 0;
    }

    article h1,
    article h2,
    article h3,
    article h4 {
        font-family: 'Lato', sans-serif;
        margin: 0 0 10px 0;
        font-weight: 400;
        color: #6B3B25;
    }
    article h1, article h2 {
        font-size: 1.875rem;
        margin: 10px 0 5px 0;
    }
    
    article h3 {
        border-bottom: 1px solid #6B3B25;
        border-top: 4px solid #6B3B25;
        font-size: 1.25rem;
        padding: 5px 0;
        margin-top: 10px;
    }
    
    article h4 {
        font-size: 1rem;
        font-weight: 100;
    }
    
    article p, article dl {
        padding: 0 0 10px 0;
        line-height: 17px;
    }
    
    article a {
        color: #2C2D31;
        text-decoration: none;
        border-bottom: 1px dotted;
    }
    article a:hover {
        border-bottom-width: 0;
    }

    article em {
        color: #FF0D40;
    }
    
    article dt {
        font-weight: bold;
    }
    article dd {
        padding: 0 0 10px 20px;
        line-height: 18px;
    }
    article table {
        margin: 30px 0;
    }
        article table td {
            padding: 5px;       
        }

    article ul, article ol {
        margin: 0 0 0 30px;
    }

    article > section > ul, article > section > ol {
        margin: 0 0 15px 30px;
    }
        article ul li { padding: 2px 0; list-style-type: disc; }
        article ol li { padding: 1px 0; list-style-type: decimal; }
    
    article pre {
        color: #333;
        margin: 10px 0;
        line-height: 18px;
        padding: 15px;
    }
        article blockquote {
            border-left: 2px solid #555555;
            font-size: 1rem;
            font-style: italic;
            line-height: 1.5em;
            padding: 0 0 0 20px;
        }
        article pre {
            font-size: 0.75rem;
            line-height: 14px;

            background: none repeat scroll 0 0 #F8F5F2;
            box-shadow: 0 0 2px rgba(0, 0, 0, 0.2);
        }
    
    article code {
        padding: 0; margin: 0;
    }
    
    article hr {
        background-color: #6B3B25;
        margin-bottom: 10px
    }

    article > section > *:last-child {
        padding-bottom: 0;
        margin-bottom: 0;
    }
    
#navigation-main { 
    order: 0;
}

#navigation-sec { 
    order: 2;
}

aside { 
    max-width: 200px;
}

aside .placeholder {
    width: 200px;
}

    aside .block {
        padding: 0 10px;
        margin-bottom: 30px;
        font-family: 'Lato', sans-serif;
        font-size: 0.875rem;
        text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
    }
    aside h3 {
        font-size: 1.125rem;
        font-weight: 700;

        padding: 10px 0;
        margin: 0;
        display: block;
        border-top: 4px solid #6B3B25;
        border-bottom: 1px solid #6B3B25;
        text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
    }
    aside ul {
        padding: 10px 0 20px 0;
    }
        aside .block > ul > li {
            margin: 4px 0 4px 14px;
            color: #6B3B25;
            list-style-type: square;
        }
            aside .block > ul > li > a {
                line-height: 16px;
            }

    aside a {
        color: #C78301;
        text-decoration: underline;
    }
    aside a:hover {
        text-decoration: none;
    }
    aside input[type="text"],
    aside input[type="email"] {
        width: 145px;
    }
    
    aside .phorm .buttons {
        text-align: center;
    }
    
    aside .menu-content {
        padding: 10px;
    }
    
    aside .menu-content.tight {
        padding: 10px 0;
    }

#footer {
    width: 1000px;
    margin: auto;
    position: relative;
    font-size: 0.8125rem;
    color: #E09402;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.5);
    background: image-set(url(images/footer.webp) 1x, url(images/footer@x2.webp) 2x) repeat-x center top #62493D;

    border-top: 8px solid #5A453B;
}
footer:after {
    background: image-set(url(images/main-shadow.webp) 1x, url(images/main-shadow@x2.webp) 2x) no-repeat center top;
    bottom: -46px;
    left: 0;
    content: "";
    height: 46px;
    position: absolute;
    width: 100%;
}
    #footer footer {
        border-top: 1px solid #523F35;
        padding: 10px 30px 30px 30px;
    }
    #footer p {
        padding: 15px 0 0;
    }
        #footer p a {
            color: #E09402;
            border-bottom: 1px dotted #E09402;
        }
        #footer p a:hover {
            color: #fff;
            border-bottom-color: #fff;
        }

/* --- Styles Mobile (Breakpoint) --- */
@media (max-width: 1020px) {
    body {
        padding-bottom: 0;
    }
    
    #container {
        width: auto;
        margin: 0;
        box-shadow: none;
        border-bottom: none;
    }
    
    #container > header {
        background-image: none !important;
        background-color: #62493D;
    }

    #container > header h1 {
        left: 10px;
        font-size: 1.5rem;
        line-height: 40px;
        margin: 0 60px 0 0;
        z-index: 1;
    }

    #header-image {
        width: 100%;
    }

    #menu,
    #navigation-main,
    #navigation-sec {
        display: none;
    }

    #mobile-menu-toggle {
        display: block;
        position: fixed;
        top: 10px;
        right: 10px;
        z-index: 1001;
        width: 40px;
        height: 40px;
        background: #E09402;
        border: none;
        border-radius: 3px;
        cursor: pointer;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    }

    #mobile-menu-toggle span {
        display: block;
        width: 24px;
        height: 3px;
        background: #fff;
        margin: 5px auto;
        transition: transform 0.3s, opacity 0.3s;
    }

    body.nav-open #mobile-menu-toggle span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    body.nav-open #mobile-menu-toggle span:nth-child(2) {
        opacity: 0;
    }
    body.nav-open #mobile-menu-toggle span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    #mobile-menu-panel {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: #DEDAD3;
        z-index: 1000;
        overflow-y: auto;
        padding: 60px 10px 20px;
        box-sizing: border-box;

        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
    }

    body.nav-open #mobile-menu-panel {
        transform: translateX(0);
    }

    body.nav-open {
        overflow: hidden;
    }

    #content {
        border-top: none;
        padding-top: 10px;
    }

    #content .inner {
        width: auto;
        margin: 0 10px;
        display: block;
    }

    article {
        order: 0;
        padding: 10px 0 30px;
    }
    .no-menu-main article,
    .no-menu-sec article,
    .no-menu article {
        padding: 10px 0 30px;
    }

    #mobile-menu-panel {
        max-width: 100%;
        margin-bottom: 10px;
    }
    #mobile-menu-panel .block {
        padding: 0;
        margin-bottom: 20px;
    }
    #mobile-menu-panel h3 {
        font-size: 1.2rem;
        padding: 10px 0;
        border-top: 4px solid #E09402;
        border-bottom: 1px solid #E09402;
    }
    #mobile-menu-panel ul {
        display: block;
        padding: 0;
    }
    #mobile-menu-panel li {
        display: block;
        list-style: none;
        margin: 0;
        padding: 0;
        border-bottom: 1px solid #C6C2BC;
    }
    #mobile-menu-panel li:last-child {
        border-bottom: none;
    }
    #mobile-menu-panel a {
        display: block;
        padding: 10px;
        color: #6B3B25;
        font-weight: normal;
        text-decoration: none;
    }
    #mobile-menu-panel a:hover {
        background: #C6C2BC;
    }

    #footer {
        width: auto;
        margin: 0;
        padding: 0;
        border-top: 4px solid #C6C2BC;
    }
    #footer footer {
        width: auto;
        padding: 15px 10px;
    }
    footer:after {
        display: none;
    }
}