/*
Theme Name: a long look at life
Description: Our family blog
Author: Tin Cans & String
Author URI: http://www.madebytincans.com
Version: 1.0

*/


/*  FOUNDATION
-------------------------------------------------------------- */

/* apply a natural box layout model to all elements */
*, *:after, *:before { -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; }

html {
    font-size: 100%;
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
p,
blockquote,
figure,
ol,
ul {
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

a, a:hover, a:active, a:focus { outline: 0; }

img {
    max-width: 100%;
    height: auto;
    border: 0;
}

/*  BASE
-------------------------------------------------------------- */

html {
	font-family: 'Roboto', sans-serif;
	font-weight: 400;
	background-color: #d1dbd5;
}


body {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0;
    font-size: 150%;   /* 24px */
	line-height: 1.45; /* 35px */
	background-color: #dee9e3;
	box-shadow: 12px 0 15px -4px rgba(0, 0, 0, 0.05), -12px 0 8px -4px rgba(0, 0, 0, 0.05);

}

html,
button,
input,
select,
textarea { color: #4a4257; }

/* Remove text-shadow in selection highlight, Customize the background */

::-moz-selection {
    background: rgba(74, 66, 87, 0.2);
    text-shadow: none;
}

::selection {
    background: rgba(74, 66, 87, 0.2);
    text-shadow: none;
}

/* Better horizontal rule */

hr {
    display: block;
    height: 2px;
    border: 0;
    border-top: 2px solid #d1dbd5;
    margin: 35px 0;
    padding: 0;
}

/* Vertical Rhythm - margin-bottom = line-height */

h1,h2,h3,h4,h5,h6,
ul,ol,dl,
fieldset,
p,
table,
pre,
hr { margin-bottom: 35px; }


/*  TYPOGRAPHY
-------------------------------------------------------------- */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
}

h1, .hsize1 { font-size: 2.074em; }   /* 49px */
h2, .hsize2 { font-size: 1.728em; }   /* 41px */
h3, .hsize3 { font-size: 1.44em; }    /* 34px */
h4, .hsize4 { font-size: 1.2em; }     /* 28px */
h5, h6      { font-size: 1em; }

h1, h2, h3, h4 { line-height: 1.2; }

/*  LINKS
-------------------------------------------------------------- */

a {
    text-decoration: none;
    -webkit-transition: all .2s;
       -moz-transition: all .2s;
         -o-transition: all .2s;
            transition: all .2s;
}

.post-content a,
label a,
.series a { text-decoration: underline; }

a:hover  {
    text-decoration: none;
    opacity: .8;
}


/*  FORMS
-------------------------------------------------------------- */

/* small form reset */
input,
textarea {
    background: transparent;
    border: 0;
    border-radius: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;

    width: 100%;
    background-color: rgba(255, 255, 255, 0.2);
    outline: none;
    font-family: inherit;
    font-size: 0.750em;
    border: 1px solid #9ea2a5;
    padding: 10px;
    margin-bottom: 17px;
}

label { font-size: 0.750em; }

textarea {
    resize: none;
    min-height: 200px;
}

form .form-field:first-child { padding-right: 70px; }

.form-field {
    float: left;
    width: 50%;
}

input[type="submit"] {
    width: auto;
    padding: 10px 20px;
    margin-bottom: 0;
    font-family: 'Roboto Condensed', sans-serif;
    color: #dee9e3;
    background-color: #4a4257;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    -webkit-transition: all .2s;
       -moz-transition: all .2s;
         -o-transition: all .2s;
            transition: all .2s;
}

input[type="submit"]:hover {
    background-color: #9ea2a5;
}

/* placeholder text */
::-webkit-input-placeholder { color: ; }
          :-moz-placeholder { color: ; }
         ::-moz-placeholder { color: ; }
     :-ms-input-placeholder { color: ; }

/* gravity forms */

.gform_wrapper .ginput_complex label { font-size: .75em !important; }

.validation_error,
.validation_message { font-size: .75em !important; }

.gform_wrapper li.gfield.gfield_error {
    border: none !important;
    background-color: transparent !important;
}

/*  HEADER
-------------------------------------------------------------- */

.btn,
.comment-reply-link {
    display: inline-block;
    padding: 10px 20px;
    color: #dee9e3;
    background-color: #4a4257;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: .75em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    border: none;
    -webkit-transition: all .2s;
       -moz-transition: all .2s;
         -o-transition: all .2s;
            transition: all .2s;
}

.btn:hover,
.comment-reply-link:hover { background-color: #9ea2a5; }

/*  CONTAINER
-------------------------------------------------------------- */

.container {
    max-width: 1540px;
    padding: 0 2.917em; /* 70px */
    margin: 0 auto;
    position: relative;
}


/*  HEADER
-------------------------------------------------------------- */

.header-main {
    padding: .725em 0;
    overflow: hidden;
}

.logo { padding-top: 10px; }

.logo img { max-width: 300px; }

.home .header-main { border-bottom: 2px solid #d1dbd5; }

.home .header-main .logo {
    padding: 7.25em 0 4.35em;
    text-align: center;
}

.home .logo img { max-width: 100%; }

.home .header-main .logo p {
    margin: 0;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1.44em;
    color: #9ea2a5;
    text-transform: uppercase;
}


/*  NAV
-------------------------------------------------------------- */

.nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav > li,
.nav > li > a {
    display: inline-block;
   *display: inline;
    zoom: 1;
}

.nav-main {
    float: right;
    text-align: right;
    display: inline-block;
}
.nav-main a {
    margin-left: 1em;
    font-family: 'Roboto Condensed', sans-serif;
    color: #9ea2a5;
    text-transform: uppercase;
    text-decoration: none;
}

/*  CIRCLE
-------------------------------------------------------------- */

.circle {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto;
    padding-top: 35px;
    background-color: #4a4257;
    border-radius: 50%;
    border: 3px solid #dee9e3;
    color: #dee9e3;
    text-transform: uppercase;
    text-align: center;
    font-size: 34px;
    line-height: 1;
    overflow: hidden;
    z-index: 10;
}

.circle .post-date-day {
    display: block;
    font-size: 49px;
}

.circle .author {
    display: block;
    padding-top: 5px;
    font-size: 28px;
}

/*  HOME
-------------------------------------------------------------- */

.blog-excerpt {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.blog-excerpt > a:hover { opacity: 1; }

.blog-excerpt > a:after {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(74, 66, 87, 0);
    -webkit-transition: all .2s;
       -moz-transition: all .2s;
         -o-transition: all .2s;
            transition: all .2s;
}

.blog-excerpt > a:hover:after { background-color: rgba(74, 66, 87, 0.75); }

.blog-excerpt-img,
.blog-excerpt-content {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    margin-right: -.25em;
    width: 50%;
    overflow: hidden;
}

.blog-excerpt-content { padding: 0 90px 0 1.45em; }

.content-home .blog-excerpt:nth-child(even) .blog-excerpt-content { padding: 0 1.45em 0 90px; }

.blog-excerpt h1 { font-size: 1.728em; }

.blog-excerpt p { margin-bottom: 0; }

.blog-excerpt-img {
    max-width: none;
    height: 500px;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* circle */

.blog-excerpt .circle {
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -75px 0 0 -75px;
}

.blog-excerpt .circle .author,
.blog-excerpt > a:hover .circle .post-date {
    display: none;
}

.blog-excerpt > a:hover .circle .author { display: block; }


.archive-page-title {
    padding: 4.35em 0;
    text-align: center;
}


/*  POST
-------------------------------------------------------------- */

/* header */

.post-header {
    padding: 4.35em 0 2.9em;
    max-width: 100%;
    text-align: center;
}

.post-header h1 { font-size: 2.833em; }

.post-header .post-date {
    margin: 0;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1.44em;
    color: #9ea2a5;
    text-transform: uppercase;
}

.hero {
    position: relative;
    display: block;
    width: 100%;
    max-width: none;
    height: 700px;
    margin: 4.35em 0 75px;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    border-top: 2px solid #d1dbd5;
    border-bottom: 2px solid #d1dbd5;
}

.page .hero { margin-bottom: 0; }

.hero .circle {
    position: absolute;
    bottom: -75px;
    right: 0;
    left: 0;
}


/* content */

.post-content {
    padding-bottom: 4.35em;
    overflow: hidden;
}

.post-content > p:last-child { margin-bottom: 0; }

.single .post-content > p:first-child {
    margin-right: 100px;
    margin-left: 100px;
    margin-bottom: 1.857em; /* 28px/52px */
    font-size: 1.2em; /* 28px */
}

.post-content p,
.post-content pre,
.post-content ol,
.post-content ul,
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6,
.post-content blockquote,
.post-content .gform_wrapper,
.post-content hr {
    margin-right: 200px;
    margin-left: 200px;
}

.post-content ol,
.post-content ul {
    list-style-position: inside;
}

.post-content blockquote {
    padding: 17px 0;
    border-top: 2px solid #d1dbd5;
    border-bottom: 2px solid #d1dbd5;
    font-style: italic;
    margin-bottom: 35px;
}

.post-content blockquote p {
    margin-right: 0;
    margin-left: 0;
}

.post-content blockquote p:last-child { margin-bottom: 0; }

.post-blog-updates {
    margin: 70px 0 0;
    padding: 17px;
    background-color: #d1dbd5;
    color: #9ea2a5;
}

/* posts that are part of the series taxonomy */

.series {
    margin: 105px 0 0;
    padding: 17px;
    background-color: #d1dbd5;
    color: #9ea2a5;
}


/*  PAGINATION
-------------------------------------------------------------- */

.pagination-container {
    position: relative;
    display: block;
    overflow: hidden;
    padding: 2.9em 0;
    border-top: 2px solid #d1dbd5;
}

.pagination {
    position: relative;
    height: 150px;
}

.pagination .circle {
    width: 100px;
    height: 100px;
}

.prev,
.next {
    position: absolute;
    top: 0;
    padding-top: 15px;
    background-image: url('images/arrow-left.svg');
    background-repeat: no-repeat;
    background-position: center center;
    text-decoration: none;
    line-height: .8;
}

.prev span,
.next span {
    font-size: 20px;
    opacity: 0;
    -webkit-transition: opacity .2s;
       -moz-transition: opacity .2s;
         -o-transition: opacity .2s;
            transition: opacity .2s;
}

.prev:hover span,
.next:hover span { opacity: 1; }

.prev:hover,
.next:hover {
    background-image: none;
    background-color: rgba(74, 66, 87, 0.9);
    opacity: 1;
}

.prev { left: 0; }

.next {
    right: 0;
    background-image: url('images/arrow-right.svg');
}

/*  COMMENTS
-------------------------------------------------------------- */

.comments-container {
    margin: 0 200px 35px;
}

.commentlist,
.commentlist .children {
    list-style: none;
}

.comment {
    margin-bottom: 35px;
    padding: 1em;
    background-color: #d1dbd5;
}

.commentlist .children .comment { background-color: #dee9e3; }

.comment-author,
.comment-meta,
.cancel-comment-reply { margin-bottom: 17px; }

.comment-meta { font-size: 0.778em; }

.comment-meta a {
    text-decoration: none;
    color: #9ea2a5;
}

.avatar {
    margin-right: 1em;
    border-radius: 50%;
    vertical-align: middle;
}

.comment-body {
    font-size: .75em;
    margin-bottom: 17px;
}

#respond { margin-top: 17px; }

.comment #respond {
    padding: 1em;
    background-color: #dee9e3;
}

.comment #respond h3 {
    font-size: 1.2em;
    margin-bottom: 17px;
}

.cancel-comment-reply {
    width: 100%;
    text-align: right;
    font-size: .75em;
}

.comment-author .url { text-decoration: underline; }

/* user styling */

.comment.byuser,
.commentlist .children .comment.byuser {
    background-color: #4a4257;
    background-color: #4a4257;
    color: #dee9e3;
}

.comment.byuser .comment-reply-link {
    background-color: #dee9e3;
    color: #4a4257;
}

.comment.byuser #respond {
    color: #4a4257;
}

/*  WORDPRESS
-------------------------------------------------------------- */

img.size-full { max-width: 100%; width: auto; }

.wp-caption {
    width: 100% !important;
    max-width: 100%;
    overflow: hidden;
}

.wp-caption img {
    padding-left: 200px;
    padding-right: 200px;
}

.wp-caption-text {
    text-align: center;
    color: #9ea2a5;
    font-size: .75em;
}


/*  RESPONSIVE VIDEO / OEMBEDS
-------------------------------------------------------------- */

/* a wrapper is added in functions.php to videos */

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin-bottom: 70px;
}

.video-container > * {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


/*  MEDIA QUERIES
-------------------------------------------------------------- */

@media screen and (max-width: 112.5em) {

    .hero { height: 500px; }

}

@media screen and (max-width: 75em) {

    body { font-size: 125%; }

    .container { padding: 0 1em; }

    .blog-excerpt-img { height: 320px; }

    .circle {
        width: 100px;
        height: 100px;
        padding-top: 20px;
        font-size: 24px;
    }

    .circle .author {
        padding-top: 7px;
        font-size: 18px;
        line-height: 1;
        font-weight: 700;
    }

    .circle .post-date-day { font-size: 34px; }

    .blog-excerpt .circle { margin: -50px 0 0 -50px; }

    .post-header .circle { margin-top: -50px; }

    .single .post-content > p:first-child,
    .post-content p,
    .post-content > pre,
    .post-content > ol,
    .post-content > ul,
    .post-content > h1,
    .post-content > h2,
    .post-content > h3,
    .post-content > h4,
    .post-content > h5,
    .post-content > h6,
    .post-content > blockquote,
    .comments-container,
    .post-content .gform_wrapper  {
        margin-right: 100px;
        margin-left: 100px;
    }

    .wp-caption img {
        padding-right: 100px;
        padding-left: 100px;
    }

    .comment-body { font-size: 0.889em; }

    .btn,
    .comment-reply-link,
    input[type="submit"] { font-size: 1em; }

    .pagination { height: 50px; }

    .pagination .circle {
        width: 50px;
        height: 50px;
        background-size: 10px;
    }

    .prev:hover span,
    .next:hover span { display: none; }

    .prev:hover { background-image: url('images/arrow-left.svg'); }
    .next:hover { background-image: url('images/arrow-right.svg'); }

}

@media screen and (max-width: 62.5em) {

    .blog-excerpt {
        position: relative;
        height: auto;
        border-bottom: 2px solid #d1dbd5;
    }

    .content-home .blog-excerpt:last-child { border-bottom: none; }

    .blog-excerpt-content {
        display: block;
        width: 100%;
    }

    .content-home .blog-excerpt:nth-child(even) .blog-excerpt-content,
    .blog-excerpt-content { padding: 1.45em 100px 1.45em 1em; }

    .blog-excerpt-img,
    .blog-excerpt .circle { display: none; }

    .blog-excerpt > a:after { content: none; }

    .blog-excerpt:after {
        content: ' ';
        position: absolute;
        display: inline-block;
        right: 1em;
        top: 40%;
        width: 40px;
        height: 40px;
        margin-left: 24px;
        padding-top: 0;
        background: #4a4257 url('images/arrow-right.svg') no-repeat center center;
        background-size: 10px;
        border-radius: 50%;
        overflow: hidden;
        z-index: 10;
        vertical-align: top;
    }

    .single .post-content > p:first-child { font-size: 1em; }

    .single .post-content > p:first-child,
    .post-content p,
    .post-content > pre,
    .post-content > ol,
    .post-content > ul,
    .post-content > h1,
    .post-content > h2,
    .post-content > h3,
    .post-content > h4,
    .post-content > h5,
    .post-content > h6,
    .post-content > blockquote,
    .comments-container,
    .post-content .gform_wrapper  {
        margin-right: 0;
        margin-left: 0;
    }

    .wp-caption img {
        padding-right: 0;
        padding-left: 0;
    }

}

@media screen and (max-width: 40em) {

    .nav-main {
        float: none;
        display: block;
        width: 100%;
        margin-bottom: 1.45em;
        text-align: center;
    }

    .logo {
        width: 100%;
        text-align: center;
    }

    .logo img { max-width: 100%; }

    .home .header-main .logo { padding: 1.45em 0; }

    .hero { height: 250px; }

    .post-header h1 { font-size: 1.728em; }

    .content-home .blog-excerpt:nth-child(even) .blog-excerpt-content,
    .blog-excerpt-content { padding-right: 70px; }

    .form-field {
        float: none;
        width: 100%;
    }

    form .form-field:first-child { padding-right: 0; }

    .gform_wrapper input[type=email],
    .gform_wrapper input[type=number],
    .gform_wrapper input[type=password],
    .gform_wrapper input[type=tel],
    .gform_wrapper input[type=text],
    .gform_wrapper input[type=url],
    .gform_wrapper textarea { width: 100% !important; }

}

/*  PRINT
-------------------------------------------------------------- */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a, a:visited { text-decoration: underline; }

    a[href]:after { content: " (" attr(href) ")"; }

    abbr[title]:after { content: " (" attr(title) ")"; }

    /* Don't show links for images, or javascript/internal links */

    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]:after { content: ""; }

    pre,
    blockquote { border: 1px solid #999; page-break-inside: avoid; }

    thead { display: table-header-group; }

    tr,
    img { page-break-inside: avoid; }

    img { max-width: 100% !important; }

    @page { margin: 0.5cm; }

    p,
    h2,
    h3 { orphans: 3; widows: 3; }

    h2,
    h3 { page-break-after: avoid; }
}
