/*
 * 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.
 */

::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: none repeat scroll 0 0 #e4e8f1;
}
.container {
	background: none repeat scroll 0 0 rgba(255, 255, 255, 0.5);
	margin: 1%;
	overflow: hidden;
	position: relative;
	width: 98%;
}
.wrapper {
	background: none repeat scroll 0 0 transparent;
	display: block;
	overflow: hidden;
}
main {
	margin: 0;
	overflow: hidden;
}
main article {
	border-bottom: thin solid silver;
	margin: 0 0 4%;
	padding: 0 0 3%;
}
main article:last-of-type {
	border: 0 none;
}
aside {
	margin: 0 1%;
	padding: 0 1%;
}
#instagram {
	overflow: hidden;
	position: relative;
	width: 100%;
}
.header-nav {
	display: block;
	margin: 1% 0;
	overflow: hidden;
	padding: 0 1%;
}
header {
	margin: 0;
	padding: 10px 0 1em;
	width: 100%;
}
nav {
	margin: 0;
	width: 100%;
}
[role="complementary"] {
	padding-top: 2em;
	word-wrap: break-word;
}
footer {
	clear: both;
	padding: 0.5em 0;
	width: 100%;
}

a {
	color: #0070d2;
	text-decoration: none;
}
a:hover,a:active {
	color: #66a9e4;
	text-decoration: none;
}
a:focus {}
[role="main"] a {}

body {
	-moz-font-feature-settings: "liga=1, dlig=1";
	-ms-font-feature-settings: "liga", "dlig";
	-o-font-feature-settings: "liga", "dlig";
	-webkit-font-feature-settings: "liga", "dlig";
	font-family: "Albertus", "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-feature-settings: "liga", "dlig";
	font-size: 100%;
	line-height: 1.43;
	color: #333;
}

nav ul {
	font-size: 130%;
	font-weight: 400;
	list-style: none outside none;
	padding: 0;
	text-transform: uppercase;
}
nav ul li {
	margin: 0;
}
ul.hours-open {
	font-weight: 300;
	list-style: none outside none;
	margin-top: 0;
	padding: 0;
}
ul.hours-open li {
	margin: 0;
}
ul.social-media {
	font-size: 150%;
	font-weight: 400;
	list-style: none outside none;
	overflow: hidden;
	padding: 0;
}
ul.social-media li {
	float: left;
	width: 25%;
}
h1,h2,h3,h4,h5,h6 {
	font-weight: 400;
}
.menu-full h2, menu-full h3 {
	text-align: center;
	text-transform: uppercase;
}
.menu-full h3 {
	clear: both;
	margin-bottom: 0;
}
.header-nav h3 {
	margin-bottom: 0;
}
p {
	font-weight: 300;
}
p.adr {
	margin-top: 0;
}
footer p {
	margin: 1%;
}
.table {
	display: table;
	overflow: hidden;
	position: relative;
	vertical-align: top;
	width: 100%;
}
.column1, .column2 {
	display: table-column;
}
.table-row {
	display: block;
}
.table-header {
	display: table-caption;
	float: left;
	font-weight: 400;
}
.table-cell {
	display: table-cell;
	float: left;
	font-weight: 300;
}
.menu-coffee .table-header:first-child, .menu-coffee .table-cell:first-child {
	width: 40%;
}
.menu-coffee .table-header:not(:first-child), .menu-coffee .table-cell:not(:first-child) {
	width: 20%;
}
.column1 ul {
	font-weight: 300;
	list-style: none outside none;
	padding-left: 0;
}
.column1 dl dt {
	font-weight: 400;
}
.column1 dl dd {
	font-weight: 300;
	margin-left: 0;
}
.menu-wine .table-header:first-child, .menu-wine .table-cell:first-child {
	padding-right: 5%;
	width: 80%;
}
.menu-wine .table-header:not(:first-child), .menu-wine .table-cell:not(:first-child) {
	width: 15%;
}
#instagram a img {
	height: auto;
	margin-bottom: 1em;
	max-width: 100%;
}
#yelpwidget {
	background: none repeat scroll 0 0 #fff;
	border: thin solid #eee;
	border-radius: 0.125em;
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 90%;
	padding: 0.5em;
	width: 100%;
}

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

/*
 * Hide visually and from screen readers
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://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.
   ========================================================================== */

/* Subpixel rendering
   ========================================================================== */

@media	only screen and (-webkit-min-device-pixel-ratio: 1.25),
		only screen and (min-device-pixel-ratio: 1.25),
		only screen and (min-resolution: 200dpi),
		only screen and (min-resolution: 1.25dppx) {
	-webkit-font-smoothing: subpixel-antialiased;
}

/* ==========================================================================
Smartphone Portrait
========================================================================== */

@media only screen
	and (min-device-width:20em)
	and (orientation:portrait) {
	.header-nav {
		float: none;
		width: 100%;
	}
	header {
		margin: 0;
	}
	header img {
		margin: 0 auto;
	}
	nav {
		margin: 0;
		padding: 0;
	}
	nav ul {
		font-size: 130%;
		margin: 0 0 5%;
		overflow: hidden;
		text-align: center;		
	}
	nav ul li {
		display: block;
		float: left;
		margin: 0;
		padding: 0;
		width: 33%;
	}
	.wrapper {
		float: none;
		margin: 1%;
		padding: 0 2%;
		width: 98%;
	}
	[role="description"] img {
		float: none;
		left: 0;
		position: relative;
		top: 0;
		width: 100%;
	}
	[role="description"] figcaption {
		font-size: 90%;
		left: 4%;
	}
	main {
		float: none;
		width: 100%;
	}
	.column1, .column2 {
		display: block;
		float: none;
		position: relative;
		width: 100%;
	}
	aside {
		display: none;
	}
}



/* ==========================================================================
Smartphone Landscape
========================================================================== */

@media only screen
	and (min-device-width:20em)
	and (orientation:landscape) {
	.header-nav {
		float: none;
		width: 100%;
	}
	header {
		float: left;
		margin: 0;
		width: 34%;
	}
	nav {
		float: left;
		margin: 0;
		width: 66%;
	}
	nav ul {
		font-size: 130%;
		overflow: hidden;
		text-align: center;		
	}
	nav ul li {
		display: block;
		float: left;
		width: 33%;
	}
	.wrapper {
		float: none;
		padding: 0 1%;
		width: 100%;
	}
	[role="description"] figcaption {
		font-size: 150%;
		left: 4%;
	}
	main {
		float: none;
		font-size: 110%;
		width: 100%;
	}
	aside {
		display: none;
	}
}

/* ==========================================================================
iPad Portrait
========================================================================== */

@media only screen
	and (min-device-width:48em)
	and (max-device-width:64em)
	and (orientation:portrait) {
	.header-nav {
		float: none;
		width: 100%;
	}
	nav ul {
		font-size: 130%;
		overflow: hidden;
		text-align: center;		
	}
	nav ul li {
		display: block;
		float: left;
		width: 33%;
	}
	.wrapper {
		float: none;
		padding: 0 1%;
		width: 98%;
	}
	[role="description"] {
		margin: 0px auto;
		overflow: hidden;
		position: relative;
		width: 98%;
	}
	[role="description"] img {
		float: left;
		width: 20%;
	}
	[role="description"] figcaption {
		background: url('/web/20150803084350/http://www.jhames.com/svg/crosshatch-dark.svg') repeat scroll 0px 0px #000;
		box-shadow: 1px 1px 0px 1px #000;
		color: #F8F8F5;
		font-size: 160%;
		left: 4%;
		padding: 2%;
		position: absolute;
		text-shadow: 1px 1px 0px #000;
		top: 22%;
	}
	main {
		float: none;
		width: 100%;
	}
	aside {
		float: none;
		width: 100%;
	}
}

/* ==========================================================================
iPad Landscape
========================================================================== */

@media only screen
	and (min-device-width:48em)
	and (max-device-width:64em)
	and (orientation:landscape) {
	.header-nav {
		float: right;
		position: fixed;
		right: 1%;
		top: 1%;
		width: 20%;
	}
	header {
		width: 100%;
	}
	nav {
		width: 100%;
	}
	nav ul {
		font-size: 100%;
		margin: 0 0 10%;
		text-align: left;
	}
	nav ul li {
		float: none;
		width: 100%;
	}
	.wrapper {
		float: left;
		padding: 1%;
		width: 78%;
	}
	[role="description"] {
		margin: 0px auto;
		overflow: hidden;
		position: relative;
		width: 98%;
	}
	[role="description"] img {
		float: left;
		width: 20%;
	}
	[role="description"] figcaption {
		background: url('/web/20150803084350/http://www.jhames.com/svg/crosshatch-dark.svg') repeat scroll 0px 0px #000;
		box-shadow: 1px 1px 0px 1px #000;
		color: #F8F8F5;
		font-size: 160%;
		left: 4%;
		padding: 2%;
		position: absolute;
		text-shadow: 1px 1px 0px #000;
		top: 22%;
	}
	main {
		float: left;
		font-size: 100%;
		width: 64%;
	}
	aside {
		display: block;
		float: left;
		font-size: 100%;
		width: 30%;
	}
	blockquote {
		float: right;
		margin: 0 0 0.875em 0.875em;
		width: 42.905405405405%;
	}
}

/* ==========================================================================
Desktop
========================================================================== */

@media only screen and (min-width: 64.0625em) {
	.header-nav {
		float: right;
		position: fixed;
		right: 1%;
		top: 1%;
		width: 18%;
	}
	header {
		width: 100%;
	}
	nav {
		width: 100%;
	}
	nav ul {
		margin: 0 0 10%;
		text-align: left;
	}
	nav ul li {
		float: none;
		width: 100%;
	}
	.wrapper {
		float: left;
		padding: 1%;
		width: 78%;
	}
	[role="description"] {
		margin: 0 auto;
		height: 320px;
		overflow: hidden;
		position: relative;
		width: 100%;
	}
	[role="description"] img {
		float: left;
		left: -25%;
		position: relative;
		top: -130%;
		width: 145%;
	}
	main {
		float: left;
		font-size: 110%;
		width: 70%;
	}
	.column1, .column2 {
		float: left;
		position: relative;
		width: 49%;
	}
	.column1 {
		margin-right: 1%;
	}
	.column2 {
		margin-left: 1%;
	}
	aside {
		display: block;
		float: left;
		width: 26%;
	}
	footer p {
		font-size: 80%;
	}
}

@media print,
       (min-resolution: 1.25dppx),
       (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,
    *:first-letter,
    p:first-line,
    div:first-line,
    blockquote:first-line,
    li:first-line {
        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 {
        white-space: pre-wrap !important;
    }
    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;
    }

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

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