/* CSS Author: Jeffrey Pia http://jeffreypia.com  */

/* ==========================================================================
   HTML5 Boilerplate styles - h5bp.com (generated via initializr.com)
   ========================================================================== */

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

body {
    font-size: 1em;
    line-height: 1.4;
    text-align: justify;
    background: #d2d2d2;
}

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

hr {
    display: block;
    height: 1px;
    margin: 0;
    border: 0;
    border-top: 1px solid #767575;
    padding: 0;
    clear: both;
}

img {
    vertical-align: middle;
}

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

textarea {
    resize: vertical;
}

blockquote {
    margin-right: 0;
    position: relative;
    font-style: italic;
    font-family: Georgia;
}
blockquote:first-child{ margin-top: 0; }
blockquote:before{
    content: '\201c';
    font-size: 75px;
    line-height: 1;
    color: #767575;
    position: absolute;
    left: -45px;
    top: 0;
}
.android blockquote:before{ left: -55px; }
blockquote em{
    font-weight: bold;
    color: #841618;
}

.chromeframe {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}


/* ===== Initializr Styles ==================================================
   Author: Jonathan Verrecchia - verekia.com/initializr/responsive-template
   ========================================================================== */

body {
    font: 14px/22px Arial, Helvetica, Helvetica Neue, sans-serif;
}


/* ===================
    MOBILE: Header
   =================== */

.wrapper{
    padding: 0 20px;
    background-color: #fff;
}
header.wrapper,
footer.wrapper{
    background-image: url(../images/border.png);
    background-repeat: repeat-x;
}
header.wrapper{
    padding-top: 38px;
    padding-bottom: 10px;
}

header nav,
header .subtitle,
header .contact { display: none; }

.title {
    margin-top: 10px;
    margin-bottom: 20px;
    text-align: center;
}
.title img{
    max-width: 100%;
    height: auto;
}

nav ul {
    margin: 0;
    padding: 0;
    font-size: 0;
    line-height: 1;
}

nav ul li {
    display: inline-block;
}
.lt-ie8 nav ul li {
    display: inline;
    zoom: 1;
}
nav a {
    display: block;
    width: 32px;
    height: 32px;
    margin-left: 10px;

    text-decoration: none;
    background-repeat: no-repeat;
    text-indent: -9999px;
    overflow: hidden;
}

nav li:first-child a {
    margin-left: 0;
}


nav .facebook a{ background-image: url(../images/ico-facebook.png); }
nav .twitter a{ background-image: url(../images/ico-twitter.png); }

.subtitle{
    margin: 5px 0 0;
    font-weight: bold;
    font-style: italic;
    font-size: 12px;
    line-height: 12px;
    color: #767575;
}
.contact{
    color: #841618;
    text-decoration: none;
    font-weight: bold;
}
header .contact{ font-size: 12px; }
footer .contact{ font-size: 14px; }
.contact:hover{ text-decoration: underline; }


/* ==============
    MOBILE: Sidebar
   ============== */

.widget{
    max-width: 320px;
    margin: 20px auto 0;
}
aside.widget:first-child{ margin-top: 0; }
.widget.press{
    font-size: 14px;
    line-height: 16px;
    color: #767575;
    text-align: center;
}
.widget.press a{
    color: #841618;
    text-decoration: none;
}
.widget.press a:hover{ text-decoration: underline; }

aside.sidebar-1 .widget{ display: none; }
aside.sidebar-1 .widget:first-child{ display: block; }

.widget img {
    width: 100%;
    height: auto;
}

aside { padding: 0px 0 10px; }
aside .widget{ border: 1px solid #cbcbcb; }

aside.sidebar-1 img{ display: none; }

aside.sidebar-1 img:first-child{
    display: block;
    width: 100%;
    height: auto;
}


footer.wrapper{
    background-position: left bottom;
}

/* ==============
    MOBILE: Main
   ============== */

.main {
    padding-bottom: 30px;
}

.main article h1 {
    font-size: 2em;
}

#bio-header{
    margin: 0;
    line-height: 50px;
    border-top: 1px solid #767575;
    border-bottom: 1px solid #767575
}
.no-js #bio-header{ display: none; }
.js #bio-header:after{
    content: 'Read More';
    float: right;
    font-weight: normal;
    font-size: 12px;
}
.js #bio-header.expanded:after{
    content: 'Read Less'
}

/* ==============
    MOBILE: Footer
   ============== */

footer.wrapper{
    padding-top: 10px;
    padding-bottom: 30px;
}
footer nav{ margin-bottom: 5px; }

footer p{
    padding-top: 50px;
    margin: 0;
    font-size: 8px;
    line-height: 1;
    color: #767575;
    text-align: center;
    clear: both;
}
footer p a{
    color: #767575;
    text-decoration: none;
}
footer p a:hover{
    text-decoration: underline;
}

/* ===============
    ALL: IE Fixes
   =============== */

.ie7 .title {
    padding-top: 20px;
}


/* ==========================================================================
   Media Queries
   ========================================================================== */

@media only screen and (min-width: 320px) {
    .subtitle,
    .contact {
        float: right;
        clear: right;
    }
    footer nav{
        float: left;
        clear: left;
    }
}

@media only screen and (min-width: 420px) {
    aside.sidebar-1 .widget{
        display: block;
        /*margin: 0;*/
    }
    .widget{
        float: right;
        width: 45%;
    }
    .widget:first-child{
        float: left;
    }
}

@media only screen and (min-width: 768px) {
/**{border: 1px solid blue;}*/

/* ====================
    WIDE
   ==================== */

    .wrapper{
        padding-left: 30px;
        padding-right: 30px;
    }


/* ============
    WIDE: Header
   ============ */

    .title {
        float: left;
        margin-bottom: 25px;
    }

    header.wrapper{ padding-bottom: 15px; }
    header nav{
        display: block;
        float: right;
        clear: right;
    }

    header .subtitle,
    header .contact { display: block; }

/* ============
    WIDE: Main
   ============ */

    blockquote:before{ left: -45px; }

    aside.sidebar-1{
        float: left;
        width: 33%;
    }
    .widget,
    .widget:first-child{
        float: none;
        width: 100%;
        margin-top: 20px;
    }
    aside.sidebar-1 .widget:first-child{ margin-top: 0; }
    .main article {
        float: right;
        width: 62%;
    }

    .main aside {
        float: left;
        width: 33%;
    }
    #bio-header{ display: none; }
    #bio{ display: block !important; }
/* ============
    WIDE: Footer
   ============ */

    footer nav,
    footer .subtitle,
    footer .contact { display: none; }

    footer p{
        padding-top: 0;
        font-size: 10px;
    }
}

@media only screen and (min-width: 960px) {

/* ===============
    Maximal Width
   =============== */

    .wrapper {
        width: 900px;
        margin: 0 auto;
    }
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 100%;
}

.hidden {
    display: none !important;
    visibility: hidden;
}

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}
.hide {
   position: absolute !important;
   top: -9999px !important;
   left: -9999px !important;
}
.invisible {
    visibility: hidden;
}

.clearfix:before,
.clearfix:after {
    content: " ";
    display: table;
}

.clearfix:after {
    clear: both;
}

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   Print styles
   ========================================================================== */

@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; /* h5bp.com/t */
    }

    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;
    }
}