/*
Theme Name: Astrid + Rudolf
Theme URI: http://astridandrudolf.co.uk
Description: Custom theme for Astrid + Rudolf
Author: Yes we work
Author URI: https://yeswework.com/
Version: 1.0
*/

/*! normalize.css v2.1.3 | MIT License | git.io/normalize */

/* ==========================================================================
   HTML5 display definitions
   ========================================================================== */

/**
 * Correct `block` display not defined in IE 8/9.
 */

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
nav,
section,
summary {
    display: block;
}

/**
 * Correct `inline-block` display not defined in IE 8/9.
 */

audio,
canvas,
video {
    display: inline-block;
}

/**
 * Prevent modern browsers from displaying `audio` without controls.
 * Remove excess height in iOS 5 devices.
 */

audio:not([controls]) {
    display: none;
    height: 0;
}

/**
 * Address `[hidden]` styling not present in IE 8/9.
 * Hide the `template` element in IE, Safari, and Firefox < 22.
 */

[hidden],
template {
    display: none;
}

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

/**
 * 1. Set default font family to sans-serif.
 * 2. Prevent iOS text size adjust after orientation change, without disabling
 *    user zoom.
 */

html {
    font-family: sans-serif; /* 1 */
    -ms-text-size-adjust: 100%; /* 2 */
    -webkit-text-size-adjust: 100%; /* 2 */
}

/**
 * Remove default margin.
 */

body {
    margin: 0;
}

/* ==========================================================================
   Links
   ========================================================================== */

/**
 * Remove the gray background color from active links in IE 10.
 */

a {
    background: transparent;
}

/**
 * Address `outline` inconsistency between Chrome and other browsers.
 */

a:focus {
    outline: thin dotted;
}

/**
 * Improve readability when focused and also mouse hovered in all browsers.
 */

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

/* ==========================================================================
   Typography
   ========================================================================== */

/**
 * Address variable `h1` font-size and margin within `section` and `article`
 * contexts in Firefox 4+, Safari 5, and Chrome.
 */

h1 {
    font-size: 2em;
    margin: 0.67em 0;
}

/**
 * Address styling not present in IE 8/9, Safari 5, and Chrome.
 */

abbr[title] {
    border-bottom: 1px dotted;
}

/**
 * Address style set to `bolder` in Firefox 4+, Safari 5, and Chrome.
 */

b,
strong {
    font-weight: bold;
}

/**
 * Address styling not present in Safari 5 and Chrome.
 */

dfn {
    font-style: italic;
}

/**
 * Address differences between Firefox and other browsers.
 */

hr {
    -moz-box-sizing: content-box;
    box-sizing: content-box;
    height: 0;
}

/**
 * Address styling not present in IE 8/9.
 */

mark {
    background: #ff0;
    color: #000;
}

/**
 * Correct font family set oddly in Safari 5 and Chrome.
 */

code,
kbd,
pre,
samp {
    font-family: monospace, serif;
    font-size: 1em;
}

/**
 * Improve readability of pre-formatted text in all browsers.
 */

pre {
    white-space: pre-wrap;
}

/**
 * Set consistent quote types.
 */

q {
    quotes: "\201C" "\201D" "\2018" "\2019";
}

/**
 * Address inconsistent and variable font size in all browsers.
 */

small {
    font-size: 80%;
}

/**
 * Prevent `sub` and `sup` affecting `line-height` in all browsers.
 */

sub,
sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sup {
    top: -0.5em;
}

sub {
    bottom: -0.25em;
}

/* ==========================================================================
   Embedded content
   ========================================================================== */

/**
 * Remove border when inside `a` element in IE 8/9.
 */

img {
    border: 0;
}

/**
 * Correct overflow displayed oddly in IE 9.
 */

svg:not(:root) {
    overflow: hidden;
}

/* ==========================================================================
   Figures
   ========================================================================== */

/**
 * Address margin not present in IE 8/9 and Safari 5.
 */

figure {
    margin: 0;
}

/* ==========================================================================
   Forms
   ========================================================================== */

/**
 * Define consistent border, margin, and padding.
 */

fieldset {
    border: 1px solid #c0c0c0;
    margin: 0 2px;
    padding: 0.35em 0.625em 0.75em;
}

/**
 * 1. Correct `color` not being inherited in IE 8/9.
 * 2. Remove padding so people aren't caught out if they zero out fieldsets.
 */

legend {
    border: 0; /* 1 */
    padding: 0; /* 2 */
}

/**
 * 1. Correct font family not being inherited in all browsers.
 * 2. Correct font size not being inherited in all browsers.
 * 3. Address margins set differently in Firefox 4+, Safari 5, and Chrome.
 */

button,
input,
select,
textarea {
    font-family: inherit; /* 1 */
    font-size: 100%; /* 2 */
    margin: 0; /* 3 */
}

/**
 * Address Firefox 4+ setting `line-height` on `input` using `!important` in
 * the UA stylesheet.
 */

button,
input {
    line-height: normal;
}

/**
 * Address inconsistent `text-transform` inheritance for `button` and `select`.
 * All other form control elements do not inherit `text-transform` values.
 * Correct `button` style inheritance in Chrome, Safari 5+, and IE 8+.
 * Correct `select` style inheritance in Firefox 4+ and Opera.
 */

button,
select {
    text-transform: none;
}

/**
 * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
 *    and `video` controls.
 * 2. Correct inability to style clickable `input` types in iOS.
 * 3. Improve usability and consistency of cursor style between image-type
 *    `input` and others.
 */

button,
html input[type="button"], /* 1 */
input[type="reset"],
input[type="submit"] {
    -webkit-appearance: button; /* 2 */
    cursor: pointer; /* 3 */
}

/**
 * Re-set default cursor for disabled elements.
 */

button[disabled],
html input[disabled] {
    cursor: default;
}

/**
 * 1. Address box sizing set to `content-box` in IE 8/9/10.
 * 2. Remove excess padding in IE 8/9/10.
 */

input[type="checkbox"],
input[type="radio"] {
    box-sizing: border-box; /* 1 */
    padding: 0; /* 2 */
}

/**
 * 1. Address `appearance` set to `searchfield` in Safari 5 and Chrome.
 * 2. Address `box-sizing` set to `border-box` in Safari 5 and Chrome
 *    (include `-moz` to future-proof).
 */

input[type="search"] {
    -webkit-appearance: textfield; /* 1 */
    -moz-box-sizing: content-box;
    -webkit-box-sizing: content-box; /* 2 */
    box-sizing: content-box;
}

/**
 * Remove inner padding and search cancel button in Safari 5 and Chrome
 * on OS X.
 */

input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
}

/**
 * Remove inner padding and border in Firefox 4+.
 */

button::-moz-focus-inner,
input::-moz-focus-inner {
    border: 0;
    padding: 0;
}

/**
 * 1. Remove default vertical scrollbar in IE 8/9.
 * 2. Improve readability and alignment in all browsers.
 */

textarea {
    overflow: auto; /* 1 */
    vertical-align: top; /* 2 */
}

/* ==========================================================================
   Tables
   ========================================================================== */

/**
 * Remove most spacing between table cells.
 */

table {
    border-collapse: collapse;
    border-spacing: 0;
}

/*
 * HTML5 Boilerplate
 *
 * 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,
button,
input,
select,
textarea {
    color: #222;
}

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

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection declarations 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 images and the bottom of their containers: h5bp.com/i/440
 */

img {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

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

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

textarea {
    resize: vertical;
}

/* ==========================================================================
   Chrome Frame prompt
   ========================================================================== */

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

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

/* YWW opinionated defaults */
*, *:before, *:after {
	-moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box;
}
h1,h2,h3,h4,h5,h6,p,ul,ol,blockquote {
	margin: 0 0 1em 0;
}
li {
	margin: 0 0 0.25em 0;
}

/* tags */
body {
	font-family: 'Lato';
	font-weight: 400;
	color: #777;
}
h1,h2,h3,h4,h5,h6 {
	font-family: 'Bitter';
	font-weight: 400;
}
a {
	color: #E0A64E;
	text-decoration: none;
}
a:hover {
	color: #f02d00;
}

/* responsive / fluid images - use max-width / max-height to override or set limits */
.responsive {
	width: 100% !important;
	height: auto !important;
}
.responsive-bg {
	background-size: cover;	
}

/* main blocks */
.logo {
	background: url(img/astrid-and-rudolf-logo.png) no-repeat;
	width: 144px;
	height: 53px;
	margin: 0 auto 20px auto;
	background-size: contain;
}
.site-header {
	padding-top: 20px;
}
.site-nav {
	font-family: 'Bitter';
	margin-bottom: 20px;
	text-align: center;
	text-transform: lowercase;
}
.site-nav ul {
	padding-left: 0;
	list-style: none;
	font-size: 0.8125em;
}
body>section>h1 {
	text-align: center;
	font-size: 1.25em;
	color: #494a4b;
}

/* wallpapers */
.wallpapers>article {
	min-height: 450px;
	margin-bottom: 10px;
	padding-top: 10px;
	padding-bottom: 10px;
	background-position: center top;
}
.wallpapers>article.room {
	background-position: center center;
	background-size: cover;
}
.js .wallpapers>article {
	visibility: hidden;
}
.wallpapers>article h1 {
	font-size: 1em;
	margin-bottom: 0.5em;
}
.wallpapers>article p, .wallpapers>article li {
	font-size: 0.75em;
}
.wallpapers .measurements {
	margin-bottom: 1em;
}
.wallpapers .measurements p {
	margin-bottom: 0;
}
.wallpapers .colourways ul {
	padding-left: 0;
	list-style: none;
	font-family: Bitter;
}
.wallpapers .colourways li {
	cursor: pointer;
	color: #fff;
	padding: 5px 5px 5px 25px;
}
.wallpapers .colourways li:hover {
	 box-shadow:0px 0px 2px #444;
}
.wallpapers .colourways li:hover, .wallpapers .colourways li.current {
	background-image: url(img/icon-eye.png);
	background-repeat: no-repeat;
	background-position: 6px 8px;
}
.wallpapers .colourways li.roomshot {
	margin-top: 20px;
	background-color: #333;
}
.js .wallpapers .colourways .image {
	display: none;
}
.wallpapers .colourways .colour-block {
	width: 1em;
	height: 1em;
	display: inline-block;
	cursor: pointer;
}
.wallpapers .inner {
	width: 160px;
	margin: 0 10px;
	padding: 10px;
	background: #fff;
}

/* story */
.story {
	padding: 20px;
	background: #f3f9f3 url(img/astrid-and-rudolf-story-bg.png);
}
.story p {
	font-size: 0.8125em;
}
.story .image {
	margin-bottom: 1em;
}
.story .image img {
	width: 100% !important;
	height: auto !important;
}

/* note */
.note {
	text-align: left;
	padding: 20px 20px 20px 100px;
	background: url(img/bg-note.png) no-repeat 15px 30px;
}
.note h1 {
	text-align: left;
	margin-bottom: 0.5em;
}
.note p {
	font-size: 0.8125em;
}


/* stockists */
.stockists {
	padding: 20px;
	overflow: auto;
}
.stockists .list>article {
	overflow: auto;
	border-top: 1px solid #e5e1d8;
	padding-top: 20px;
	margin-bottom: 2em;
}
.stockists .list>article h1 {
	font-size: 1em;
	margin-bottom: 0;
	color: #494a4b;
}
.stockists .list>article p {
	font-size: 0.75em;
}
.stockists .list>article .comms p {
	margin-bottom: 0;
}

/* news */
.news {
	/* background: #f3f3f3; */
	background: #191919;
	padding: 20px;
}
.news>h1 {
	color: #fff;
}
.news>article {
	padding: 10px;
	/* background: #fff; */
	background: #252424;
	margin-bottom: 10px;
}
.news>article h1 {
	font-size: 1.25em;
	/* color: #494a4b; */
	color: #fff;
}
.news .text {
	color: #999a9b;
}
.news .text p {
	font-size: 0.75em;
}
.news .images img {
	margin-bottom: 1em;
	display: block;
	box-shadow: 0px 0px 4px #b8b8b8;
	width: 100% !important;
	height: auto !important;
}

/* contact */
.contact {
	background: #e2e1df;
	padding: 60px 20px 200px 20px;
	text-align: center;
}
.contact>h1 {
	background: url(img/astrid-and-rudolf-logo.png) no-repeat;
	width: 144px;
	height: 53px;
	margin: 0 auto 20px auto;
	background-size: contain;
}

/* media queries for bigger screens */
@media only screen and (min-width: 321px) { 
	.news .images img {
		margin: 0 1%;
		width: 30% !important;
		height: auto !important;
		display: inline;
	}
}
@media only screen and (min-width: 641px) {
	.logo {
		width: 287px;
		height: 105px;
		background-size: auto;
	}
	.site-nav li {
		display: inline;
		margin: 0 15px;
		white-space: nowrap;
	}
	body>section>h1 {
		font-size: 1.5em;
	}
	.wallpapers>article {
		min-height: 500px;
	}
	.wallpapers .colourways li:hover, .wallpapers .colourways li.current {
		background-position: 6px 11px;
	}
	.note {
		background-position-y: 20px;
	}
	.story h1 {
		padding-left: 45%;
	}
	.story>.chapter {
		overflow: auto;
	}
	.story .image {
		float: left;
		width: 50%;
		text-align: right;
	}
	.story .image img {
		max-height: 200px;
		width: auto !important;
		max-width: 100%;
	}
	.story .text {
		float: right;
		width: 48%;
		padding-top: 4em;
	}
	.stockists {
		overflow: auto;
	}
	.stockists>h1 {
		text-align: left;
	}
	.stockists .list>article {
		width: 48%;
		margin-right: 2%;
		float: left;
	}
	.stockists .list>article:nth-of-type(2n-1) {
		clear: left;
	}
	.news {
		overflow: auto;
	}
	.news>h1 {
		text-align: left;
	}
	.news>article {
		overflow: auto;
		margin-bottom: 1em;
	}
	.news>article.secondary {
		width: 49%;
		float: left;
		clear: both;
	}
	.news>article.secondary.last {
		float: right;
		clear: none;
	}
	.news>article.secondary .images img {
		width: 46% !important;
		margin-bottom: 1em;
	}
	.news .text {
		width: 38%;
		float: left;
	}
	.news .images {
		width: 60%;
		float: right;
		text-align: right;
	}
	.contact>h1 {
		width: 287px;
		height: 105px;
		background-size: auto;		
	}
	.contact .text {
		position: relative;
	}
	.contact .text:before {
		content: '';
		width: 90px;
		height: 178px;
		background: url(img/bg-contact-left.png);
		position: absolute;
		top: 0;
		left: 10%;
	}
	.contact .text:after {
		content: '';
		width: 90px;
		height: 178px;
		background: url(img/bg-contact-right.png);
		position: absolute;
		top: 0;
		right: 10%;
	}
}

@media only screen and (min-width: 961px) {
	.site-nav ul {
		font-size: 0.9375em;
	}
	body>section>h1 {
		font-size: 1.75em;
	}
	.wallpapers>article {
		min-height: 0;
		margin-bottom: 20px;
	}
	.wallpapers>article h1 {
		font-size: 1.25em;
		margin-bottom: 1em;
	}
	.wallpapers>article .inner {
		width: 75%;
		margin: 50px auto;
		padding: 20px;
		overflow: auto;
		position: relative;
	}
	.js .wallpapers>article .inner {
		overflow: hidden;
	}
	.js .wallpapers>article .inner h1 {
		cursor: pointer;
		margin: -20px -20px 0 -20px;
		padding: 20px;
	}
	.wallpapers>article.glass .inner {
		background: rgba(255,255,255,0.2);
	}
	.wallpapers>article.glass .inner .info {
		color: #fff;
	}
	.wallpapers>article.glass .inner h1 {
		color: #fff;		
	}
	.wallpapers>article.closed .inner {
		background: rgba(255,255,255,0.9);
	}
	.wallpapers>article.closed .inner:hover {
		background: #fff;
	}
	.wallpapers>article .inner .expander {
		position: absolute;
		top: 22px;
		right: 22px;
		width: 24px;
		height: 24px;
		background: url(img/icon-expander.png) no-repeat;
		background-position-x: -24px;
		background-position-y: 0;
		cursor: pointer;
	}
	.wallpapers>article .inner:hover .expander {
		background-position-y: -24px;
	}
	.wallpapers>article.closed .inner .expander {
		background-position-x: 0;
	}
	.wallpapers>article.closed .inner h1 {
		color: #E0A64E;
	}
	.wallpapers>article.closed .inner h1:hover {
		color: #f02d00;
	}
	.wallpapers .info {
		float: left;
	}
	.wallpapers .measurements {
		font-family: 'Bitter';
		margin-top: 2em;
	}
	.wallpapers .measurements .roll {
		float: left;
		background: url(img/sprite-roll.png) no-repeat left 15px;
		padding-left: 50px;
		min-height: 42px;
		margin-right: 50px;
	}
	.wallpapers .measurements .repeat {
		float: left;
		background: url(img/sprite-repeat.png) no-repeat left 5px;
		padding-left: 95px;
		min-height: 47px;
	}
	.wallpapers article.glass .roll {
		background-position-y: -66px;
	}
	.wallpapers article.glass .repeat {
		background-position-y: -92px;
	}
	.wallpapers .colourways {
		float: right;
	}
	.note {
		padding-left: 120px;
		background-position-y: 30px;
		width: 80%;
		margin: auto 10%;
	}
	.story {
		padding: 40px;
	}
	.story>h1 {
		text-align: left;
		padding-left: 55%;
	}
	.story .image {
		width: 40%;
		margin-left: 10%;
		margin-right: 5%;
	}
	.story .image img {
		max-height: 300px;
	}
	.story .text {
		width: 30%;
		margin-right: 15%;
	}
	.stockists {
		padding: 40px;
	}
	.stockists .list>article h1 {
		font-size: 1.25em;
	}
	.news {
		padding: 40px;
	}
	.wallpapers>article p, 
	.wallpapers>article li,
	.note p,
	.story p,
	.stockists .list>article p,
	.news .text p {
		font-size: inherit;
	}
}

@media only screen and (min-width: 1281px) {
	.wallpapers>article .inner {
		width: 60%;
	}
}

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

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

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

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

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

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.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: h5bp.com/p
 */

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

/*
 * Hide visually and from screenreaders, 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;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

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