@import url(http://fonts.googleapis.com/css?family=Sorts+Mill+Goudy|Roboto+Condensed);

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

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

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

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

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

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

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

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

body {
    background: #F6F6EB url('../img/background-noise.png');
    font-family: 'Sorts Mill Goudy', serif;
}

h1, h2, h3, h4, button {
    font-family: 'Roboto Condensed', Arial, sans-serif;
}

a img {border:0 none;}

#main {
    max-width:1100px;
    margin:2rem auto;
}
header:after {display:block;content:'';clear:both;}

header a#logo {
    display:block;
    background: transparent url('../img/frank-algernon-2015.png') top left no-repeat;
    float:left;
    width:375px;
    height:85px;
}
header a#logo * {
    visibility: hidden;
}

nav#main {
    float:right;
}

nav#main a {
    font-size:2rem;
    color:#000;
    text-decoration:none;
    padding:.4rem 1rem;
    font-family: 'Roboto Condensed', Arial, sans-serif;
}
nav#main a:hover,
.recent-work a:hover span,
.work-item div>h3>a:hover,
nav#work-filter a:hover
{
    color:#D93600;
}

nav#main a.current {
    background:#333 url('../img/menu-slash.gif');
    border:1px solid #ccc;
    color:#fff;
}



header, section, footer {clear:both;padding-top:2rem;}
footer {margin-top:2rem;}
footer:after {clear:both;display:block;content:"";height:4rem;}
section:after {clear:both;display:block;content:"";}

section, footer {background:transparent url('../img/divider.png') top left no-repeat;}

h3 {margin:0 0 1rem 0;font-size:1.7rem;}

p {line-height:1.25rem;}



.recent-work span {display:inline-block;margin-top:.5rem;clear:both;color:#222;font-size:1.1rem;}

.recent-work img {opacity:0;}

.recent-work img:hover {
    -webkit-animation:colorSwap 0.4s normal forwards;
    animation:colorSwap 0.4s normal forwards;
}

.work-item {min-height:200px;margin:2rem .5rem 4rem .5rem;}
.work-item div.right {clear:both;}
.work-item h3>a {color:#222;text-decoration:none;}
.work-item h3 {font-weight:normal;font-size:1.4rem; margin:.5rem 0; line-height:1.6rem;}
.work-item p {margin:.5rem 0;}
.work-item .note {text-align:right;margin:.5rem 0;}

#work-filter {margin:0 0 0 90px;}


nav#work-filter a {
    font-size:1.2rem;
    color:#000;
    text-decoration:none;
    padding:.4rem .5rem;
    font-family: 'Roboto Condensed', Arial, sans-serif;
}

nav#work-filter a.current {
    background:#333 url('../img/menu-dots.png');
    border:1px solid #ccc;
    color:#fff;
/* Firefox v4.0+ , Safari v5.1+ , Chrome v10.0+, IE v10+ and by Opera v10.5+ */
text-shadow:0px 0px 4px rgba(0,0,0,0.65);
-ms-filter:"progid:DXImageTransform.Microsoft.dropshadow(OffX=0,OffY=0,Color=#a6000000,Positive=true)";zoom:1;
filter:progid:DXImageTransform.Microsoft.dropshadow(OffX=0,OffY=0,Color=#a6000000,Positive=true);
}

.small-list {font-size:.9rem;}
.note {font-size: .7rem; font-style:italic;}
.description {font-size:1.1rem;}
.color-swap {overflow:hidden;}

footer input,
footer textarea,
footer button#contact-button {
background-color:rgb(251,251,240);
/*width:236px;*/
width:98%;
/*height:32px;*/
border-color:rgb(189,189,174);
border-width:1px;
-moz-border-radius:1px;
-webkit-border-radius:1px;
border-radius:1px;
border-style:solid;
padding:.5rem .5rem;
margin:.4rem 0;
display:block;
}

footer button#contact-button {
	background-color:rgb(87,87,72);
	width:75%;
	margin:.25rem auto;
	color:#FBFBF0;
	font-size:1.1rem;
	padding:.25rem;
	font-weight:normal;
}

#nodey {width:100%;height:auto;}


@-webkit-keyframes colorSwap {

    from {opacity:0;}
    to {opacity:1;}
}

@keyframes colorSwap {

    from {opacity:0;}
    to {opacity:1;}
}

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

/*
 * Hide visually and from screen readers:
 * http://juicystudio.com/article/screen-readers-display-none.php
 */

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

/*
 * Hide only visually, but have it available for screen readers:
 * http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 */

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

/*
 * Extends the .visuallyhidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 1000px) {
    /* Style adjustments for viewports that meet the condition */
	.work-item {max-width:880px;margin:2rem 0 4rem 90px;}
	.work-item div.right {clear:none;float:right;max-width:285px;}

	.work-item h3 {font-size:1.6em;width:280px;}
	.work-item .note {text-align:right;margin:.5rem 0;}

	.col1, .col2, .col3, .col4 {float:left;display:inline-block;}
	.col1:last-child, .col2:last-child, .col3:last-child, .col4:last-child {margin-right:0;}

	.col1 {
		/*width:25%;
		max-width:255px;
		margin-right:19px;*/
		width: 24%;
		max-width: 255px;
		margin-right: 1%;
	}
	
	.col2 {
		width:49%;
		max-width:540px;
		margin-right:19px;
	}
	
	.col2.subcol {width:45%;}
	.subcol:last-child, .col1:last-child {
		float:right;
	}
	
	footer textarea {height:3.5rem;width:90%}
	
	.widget-area {
		float:right;
		width:25%;
	}

	
}

@media only screen and (min-width:480px) and (max-width: 999px) {
	#main {margin-top:.5rem;}
	div#main { max-width:620px; }
	nav#main {clear:both;margin:1em auto;float:none;display:inline-block;}
	nav#main a {font-size:1.6rem;}
	header {width:400px;margin:.5rem auto;}
	nav#work-filter {width:400px; margin:.5rem auto;}
	.work-item a>img {width:100%; height:auto;}
	
	#nodey {width:620px;height:auto; margin-bottom:.5em;}
	
	.col1, .col2, .col3, .col4 {float:left;display:inline-block;}
	.col1:last-child, .col2:last-child, .col3:last-child, .col4:last-child {margin-right:0;}
	
	.col1 {
		width:49%;
		max-width:255px;
		margin-right:19px;
	}
	
	.col2 {
		width:100%;
		max-width:540px;
		margin-right:19px;
	}
	
	.widget-area {
		float:right;
		width:25%;
	}

}

@media only screen and (max-width : 479px) {
	#main {margin-top:.25rem;}
	div#main { width:100%; }
	nav#main {clear:both;margin:1em auto;float:none;display:inline-block;}
	nav#main a {font-size:1.3rem; margin:.25rem .1rem; padding:.25rem .5rem;}
	header {width:100%;margin:.5rem auto;}
	nav#work-filter {width:100%; margin:.5rem auto; font-size:1.1rem;}
	.work-item a>img {width:100%; height:auto;}
	header a#logo {background:transparent none;content:url(../img/frank-algernon-2015.png);width:100%;height:auto;max-width:375px;}
	
	
	
	.col1 {
		width:100%;
		max-width:255px;
		margin-right:19px;
	}
	
	.col2 {
		width:100%;
		max-width:540px;
		margin-right:19px;
	}
	
	.widget-area {
		display:none;
		visibility:hidden; /* convert to collapsable menu */
	}
}

@media print,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important; /* Black prints faster:
                                   http://www.sanbeiji.com/archives/953 */
        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 that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

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

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

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    thead {
        display: table-header-group;
    }

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

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

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

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