/* ==========================================================================
   testers
   ========================================================================== */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, hr, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li, ul li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    background: transparent;
    list-style: none;
    border: 0;
    font-size: 100%;
    font: inherit;
    line-height: 1.2;
    margin: 0;
    padding: 0;
    vertical-align: baseline;
}


/* ==============
    TEST AREA
   ============== */


/* ==========================================================================
   HTML5 Boilerplate styles - h5bp.com (generated via initializr.com)
   ========================================================================== */
html,
button,
input,
select,
textarea {
    color: #ccc;
}

a:focus {
   outline: 0;
}

body {
    font-size: 1em;
    line-height: 1.4;
}

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

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

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #555;
}

img {
    vertical-align: center;
    border: 0 0;
}

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

textarea {
    resize: vertical;
}

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


/* ===== Base Styles ==================================================*/

* { 
    cursor:crosshair;
}

body {
    font-size: 16px/26px ;
    font-family: 'Raleway', sans-serif;
    letter-spacing: .03em;
    background: #404040;
}

.wrapper {
    width: 90%;
    margin: 0 5%;
}

.header-container {
    background: #eee;
    padding-bottom: 6px;
    padding-top: 32px;
}

.main-container {
    background: #151617;
    padding-top: 30px;
}

.about-container {
    background-image: url('../img/subtle_carbon.png');
    padding-top: 30px;
}

.footer-container {
    background: #000;
    height: 40px;
    padding-top: 30px;
    padding-bottom: 20px;
}



/* ==============
    ONE-OFFS
   ============== */
h1.front-section-title {
    float:left;
    clear: none;
    max-width: 500px;
    font-family: Bitter;
    font-weight: 700;
    font-size: 1em;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #ddd;
    margin: 2px 0 30px 0;
}


.footer-container footer {
    padding: 15px 0 20px 0;
}


.footer-container footer p {
    color: #777;
    font-size: .6em;
    float: left;
}


.pagetop-button a{
    float: right;
    text-align: right;
    font-size: .6em;
    text-decoration: none;
    color: #666;
}

.pagetop-button a:hover {
    color: white;
    text-decoration: line-through;
}




/* ==============
    MOBILE: Menu
   ============== */


nav ul {
    margin: 0;
    padding: 0;
}

nav li {
        float: left;
        width: 100%;
        margin: 0 0;
        padding: 0 0 20px 0;
        margin-bottom: 0;
    }

nav a {
    display: block;
    margin: 0 0 10px 0;
    text-align: left;
    text-decoration: none;
    color: #666;
    text-transform: uppercase;
    padding-top: 4px;
    font-size: .7em;
    font-family: Bitter;
    font-weight: 600;
    letter-spacing: .16em;
}

nav a:hover {
    color: #ff0048;
    text-decoration: line-through;
}

.subnav-title {
    width: 50%;
    float: left;
    clear: none;
    border-top: 1px solid #aaa;
}

.subnav-small {
    width: 25%;
    float: left;
    clear: none;
}

.subnav-small.one {
    border-top: 1px solid #777;
}

.subnav-small.two {
    border-top: 1px solid #333;
}


/* ==============
    MOBILE: Main
   ============== */
.title img {
    width: 100%;
    float: left;
    clear: both;
    margin-bottom: 20px;
}

.main, .about {
    padding: 30px 0;
}

.main header, .about header {
    width: 100%;
    float: left;
    clear: both;
}

.main article {
    float: left;
    width: 100%;
    margin-bottom: 50px;
}

.main article section {
    padding-top: 6px;
}

.main article h1 {
    font-family: Bitter;
    font-size: 1em;
    line-height: 1.4em;
    font-weight: 400;
    letter-spacing: .065em;
    color: #ff0048;
    margin: 0 0;
}

.main article p {
    font-size: .7em;
    line-height: 1.2em;
    letter-spacing: .07em;
    font-family: Raleway;
    color: #aaa;
    margin: 0 0;
}

.main article img {
    width: 100%;
}

.project-grouping {
    clear: both;
    float: left;
    margin-bottom: 50px;
    width: 100%;
}

.about article {
    float: left;
    width: 100%;
    margin-bottom: 26px;
}

.about article p {
    width: 95%;
    font-size: .92em;
    font-style: normal;
    font-family: Raleway;
    line-height: 1.4em;
    font-weight: 400;
    letter-spacing: .08em;
    color: #aaa;
    margin: 0 0 10px 0;
}

.about article p.bright {
    color: #ff0048;
    font-size: 1.35em;
    font-family: Bitter;
    letter-spacing: .065em;
}

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

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





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

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

/* ====================
    INTERMEDIATE: Menu
   ==================== */

    

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

    nav li:last-child a {
        margin-right: 0;
    }




/* ========================
    INTERMEDIATE: Main
   ======================== */
    .maintitle{
        width: 50%;
        float:left;
    }

    .title {
        float: left;
        width: 240px;
    }

    .main article {
        float: left;
    }
    .main article a img:hover, .main article a img:focus  {
        opacity: .4;
    }

    .project-grouping article.medium {
        width: 50%;
    }

    .project-grouping article.small {
        width: 50%;
    }
    
    .about article {
        width: 100%;
    }

    .about article p {
        width: 95%;
    }

/* ========================
    INTERMEDIATE: IE Fixes
   ======================== */

    nav ul li {
        display: inline;
    }

    .oldie nav a {
        margin: 0 0;
    }
}

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

/* ====================
    WIDE: CSS3 Effects
   ==================== */
   

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

    .main article {
        float: left;
    }

    .project-grouping article.medium {
        width: 50%;
    }

    .project-grouping article.small {
        width: 25%;
    }

    .about article {
        width: 50%;
    }

    .about article p {
        width: 95%;
    }


    .title {
        float: left;
    }

    nav {
        float: left;
        width: 50%;
        margin-top: 6px;
    }

    nav li {
        width: 100%;
    }

    nav .bclear {
        clear: none;
    }

}


@media only screen and (min-width: 900px) { /* 1140 old min-width */

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

    .wrapper {
        max-width: 900px; /* 1140/1026px - 10% for margins */
        margin: 0 auto;
    }

}

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

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

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

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

.invisible {
    visibility: hidden;
}

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

.clearfix:after {
    clear: both;
}

.clearfix {
    *zoom: 1;
}
