/* stylesheet for wine page */

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'architects_daughterregular';
    src: url('../fonts/architectsdaughter-webfont.woff2') format('woff2'),
         url('../fonts/architectsdaughter-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}

body {
    background: rgb(243, 255, 255);
    font-size: 100%;
    font-family:'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    line-height: 1.5;
}

header {
    background: rgb(243, 255, 255);
    /* height: 200px; */
}

.inner-header {
    /* width: 940px; */
    max-width: 1100px;
    margin: 0 auto;
    overflow: hidden;
}

#logo {
    width: 250px;
    padding-top: 1.5em;
    padding-bottom: .5em;
    float: left;
}

#navbar {
    clear: both;
}

.social {
    float: right;
    margin-top: 3em;
}

.social2 {
    display: none;
}

.social li {
    float: left;
    list-style-type: none;
    margin-left: 5px;
}

nav {
    height: 50px;
    line-height: 50px;
    background: #37352d;
}

nav .item {
    display: none;
}

nav .item {
    background-color: #ffffff;
}

#primary {
    /* width: 940px; */
    max-width: 1100px;
    margin: 0 auto;
    /* background: #ccc; */
    list-style-type: none;
}

/* define: > = rules work only on first */
#primary > li {
    float: left;
    /* 6 divided by 100 */
    width: 16.66%;
    text-align: center;
    position: relative;
}

#primary a {
    color: #fff;
    text-decoration: none;
    display: block;
}

#primary a:hover {
    background: #9eabaa;
    color: black;
}

.dropdown, .dropdown2 {
    display: none;
}

#primary li:hover .dropdown {
    display: block;
    position: absolute;
    background: #9eabaa;
    /* width: 100%; */
    width: max-content;
    list-style: none;
}

#primary li:hover .dropdown a {
    padding: 0 7px;
}

.dropdown li:hover .dropdown2 {
    display: block;
    position: absolute;
    background: #37352d;
    top: 0;
    left: 100%;
    /* width: 100%; */
    width: max-content;
    list-style: none;
}

/* padding in a; to match dropdown background */
.dropdown li:hover .dropdown2 a {
    padding: 0 7px;
}

.sticky + #wrapper {
    padding-top: 60px;
}

.sticky {
    position: fixed;
    top: 0;
    width: 100%;
}

#wrapper {
    /* width: 940px; */
    max-width: 1100px;
    /* to center */
    margin: 0 auto;
    overflow: hidden;
    padding: 0 2.8%;
}

#hero {
    max-width: 1100px;
    margin: 0 auto;
}

/* removes inline background showing from hero */
#hero img {
    display: block;
}

.row {
    overflow: hidden;
    margin-bottom: .8em;
}

.third {
    /* width: 300px; */
    /* 300/940 = 31.91 */
    width: 31.91% ;
    float: left;
    /* no longer needed once adding content */
    /* height: 300px; */
    /* margin-right: 20px; */
    margin-right: 2.12%;
    text-align: center;
    /* right/left & top/bttm */
    padding: 0 1.06%;
}

/* overflow, not enough space for last box */
.third:last-of-type {
    margin-right: 0;
}

.col8 {
    /* height: 300px; */
    /* width: 460px; */
    /* background: pink; */
    /* 460/940 */
    width: 48.93%;
    float:left;
}

.col8:last-of-type {
    float: right;
}

.col4 {
    /* background: yellow; */
    float: left;
    /* width: 220px; */
    /* 220/460 */
    width: 47.82%;
    text-align: center;
}

.col4:last-of-type {
    float:right;
}

main {
    float:left;
    /* width: 540px; */
    /* 560/940 */
    max-width: 59.57%;
}

aside {
    /* width: 340px; */
    /* 340/940 */
    max-width: 36.17%;
    padding: 15px;
    float:right;
    margin-top: 4em;
    font-size: 1.04em;
}

aside p {
    font-size: .875em;
    line-height: 1.6;
}

footer {
    border-top: 1px dotted #594B02;
    height: 60px;
    line-height: 60px;
    clear: both;
    margin-top: 30px;
}

footer ul {
    display: flex;
    justify-content: center;
    list-style-type: none;
    font-size: .875em;
}

footer li {
    margin: 0 10px;
}

figure {
    margin-bottom: 10px;
}

figcaption {
    background: #3c3928;
    color: white;
    font-size: .850em;
    padding: 3px;
    font-style: italic;
    margin-bottom: 20px;
    padding-left: 10px;
}

img {
    max-width: 100%;
}

img.aside {
    display: block;
}

img.left {
    float: left;
    /* height: 300px; */
    margin-right: 20px;
    margin-top: 6px;
    margin-bottom: 2px;
}

/* classes */

.read-more {
    display: block;
    margin-top: .5em;
}

/* typography */

blockquote {
    font-size: 1.5em;
    text-align: center;
    /* top right bottom left */
    margin:0 1.5em 1.5em 1.5em;
    line-height: 1.4;
    font-family:'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}

/* .inner blockquote works as well */
blockquote.main {
    font-size: 1.3em;
    font-style: italic;
    border-left: 15px solid;
    padding-left: 15px;
    text-align: left;
    /* top right bottom left */
    margin:0 0 1.2em 0;
    line-height: 1;
    font-family:'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}

.inner blockquote::before {
    content: "\"";
    margin-right: -6px;
    margin-left: -6px;
}

.home h1 {
    font-family: 'architects_daughterregular';
    font-size: 3em;
    text-align: center;
    line-height: 1.15;
    margin-bottom: .5em;
}

h1 {
    font-family: 'architects_daughterregular';
    font-size: 2.44em;
    text-align: left;
    line-height: 1.15;
    margin-bottom: .5em;
}

h2 {
    color: #413705;
    font-size: 2.047em;
    line-height: 1.15;
    margin-bottom: .5em;
}

.col4 h2 {
    font-size: 1.44em;
    margin: .3em 0 .1em 0;
}

.col4 p {
    font-size: .875em;
}

h2 + img {
    margin: .4em 0;
}

h3 {
    color: #37352d;
    font-size: 1.428em;
    line-height: 1.1;
    margin-bottom: .5em;
}

.third p {
    font-size: .875em;
}

.col4 p {
    font-size: .875em;
    
}

span {
    color: #37352d;
}

p {
    margin-bottom: 1.5em;
}

/* media queries */

@media screen and (min-width:1241px) {
    body {
        /* background: lightyellow; */
        font-size: 110%;
    }
    #primary li:hover .dropdown {
        display: block;
        position: absolute;
        background: #37352d;
        width: 100%;
        /* width: max-content; */
        list-style: none;
    }
}

@media screen and (max-width:1240px) {
    body {
        /* background:pink; */
        font-size: 105%;
    }
    #primary li:hover .dropdown {
        display: block;
        position: absolute;
        background: #37352d;
        width: 100%;
        /* width: max-content; */
        list-style: none;
    }
    .inner-header {
        margin: 0 30px;
    }

}

@media screen and (max-width:1100px) {
    body {
        /* background:#ccc; */
        font-size: 100%;
    }
    #primary li:hover .dropdown {
        display: block;
        position: absolute;
        background: #37352d;
        width: 100%;
        /* width: max-content; */
        list-style: none;
    }
    .inner-header {
        margin: 0 30px;
    }
}

@media screen and (max-width:900px) {
    body {
        /* background:lime; */
        font-size: 95%;
    }
    #primary li:hover .dropdown {
        display: block;
        position: absolute;
        background: #37352d;
        width: 100%;
        /* width: max-content; */
        list-style: none;
    }
    .col8 {
        float: none;
        width: auto;
    }
    
    .col8:last-of-type {
        float: none;
    }

    blockquote {
        font-size: 1.5em;
        /* top right bottom left */
        margin:.5em 1.7em 1.5em 1.7em;
    }

    .home h1 {
        margin-top: .6em;
        font-size: 2.8em;
    }
}

@media screen and (max-width:800px) {
    body {
        /* background:yellow; */
    }
        
    main {
        float:none;
        max-width:100%;
    }

    p {
        line-height: 1.6;
        font-size: 1.05em;
    }
    
    aside {
        margin-top: 0px;
        float: none;
        max-width:100%;
        padding: 0px;
        margin-top: 1em;
    }

    aside p {
        line-height: 1.6;
        font-size: 1.05em;
    }

    #primary li:hover .dropdown {
        display: block;
        position: absolute;
        background: #37352d;
        width: 100%;
        /* width: max-content; */
        list-style: none;
    }
    .third {
        width: auto;
        float: none;
        margin-right: 0;
        text-align: center;
        padding: 0 1.06%;
    }
    .third p {
        line-height: 1.6;
        font-size: 1.05em;
    }    
    .col4 {
        /* background: yellow; */
        float: none;
        /* width: 220px; */
        /* 220/460 */
        width: auto;
    }
    
    .col4:last-of-type {
        float:none;
    }

    figure {
        max-width: fit-content;
        margin: 0 auto;
    }

    figure img {
        height: 275px;
    }

    figcaption {
        max-width:auto;
    }

    /* if element is missbehaving */
    blockquote {
        clear: both;
    }
}

@media screen and (max-width:700px) {
    body {
        /* background:lightcyan; */
    }

    p {
        line-height: 1.6;
        font-size: 1.05em;
    }

    aside p {
        line-height: 1.6;
        font-size: 1.05em;
    }

    #wrapper {
        padding: 0 5%;
    }

    nav .replace-item {
        display: none;
    }

    nav .item {
        display: inline;
    }

    .dropdown li:hover .dropdown {
        display: block;
        position: absolute;
        background: #37352d;
        top: 0;
        left: 100%;
        width: max-content;
        list-style: none;
        margin-left: 10px;
        margin-right: 10px;
    }

    .col4 {
        float: none;
        width:auto;
    }

    .col4:last-of-type {
        width: auto;
    }

    img#logo {
        width: 250px;
        padding-top: .5em;
        padding-bottom: .5em;
        float: none;
        margin: 0 auto;
        display: flex;
    }

    .social2 {
        margin-top: .5em;
        display: flex;
        flex-direction: row;
        justify-content: center;
        margin-bottom: .5em;
    }
    
    .social li {
        list-style-type: none;
        margin-left: 10px;
        margin-right: 10px;
    }

    .social {
        display: none;
    }

    footer {
        height: auto;
        line-height: inherit;
        padding-top: .5em;
        /* padding-bottom: .5em; */
    }
    footer ul {
        flex-direction: column;
        text-align: center;
    }
    
    footer li {
        margin: 0 10px 4px 10px;
    }
    footer a {
        color:#55A4CF;
    }
    nav {
        font-size: .875em;
    }
    #primary > li {
        width: 16.66%;
        text-align: center;
        position: relative;
    }
    h1 {
        margin-top: .4em;
        margin-bottom: .3em;
    }
    
    .home h1 {
        font-size: 1.8em;
    }
    .center {
        text-align: center;
        margin-bottom: .5em;
    }
    blockquote {
        font-size: 1.3em;
        /* top right bottom left */
        margin:.5em 1.7em .5em 1.7em;
    }

    img.left {
        float: left;
        height: 250px;
        margin-right: 20px;
        margin-top: 6px;
        margin-bottom: 6px;
        /* float:none;
        width: auto;
        margin-right: 0;
        margin: 0 auto; */
    }

}