* {
	box-sizing: border-box;
}

body {
	font-family: Merriweather, serif;
	color: #495762;
	font-size: 16px;
	font-weight: 300;
	line-height: 1.7;
}

header, main, footer {
	width: 100%;
	max-width: 960px;
	margin: 0 auto;
}

header {
	text-align: center;
	margin-top: 20px;
	font-family: Yantramanav, sans-serif;
}

#header-text {
	display: block;
	width: 900px;
	max-width: 100%;
	height: 0;
	padding-bottom: 27%;
	color: transparent;
	margin: 0 auto;
	background: url(../images/misselixirmixer-logo.png) no-repeat center;
	background-size: contain;
}

.site-description, footer p {
	color: #495762;
	font-size: 14px;
	letter-spacing: 2.5px;
	text-transform: uppercase;
}

main {
	padding: 20px 16px 0 20px;
}

h1, h2, h3, h4, h5, footer p {
	font-family: Yantramanav, sans-serif;
	font-weight: 300;
	text-align: center;
	letter-spacing: 2.5px;
}

#main-content {
	margin-bottom: 40px;
}

#main-content h2 {
	font-size: 40px;
	line-height: 1.5;
	margin: 0 0 20px 0;
}

#main-content p {
	text-align: center;
	margin: 20px auto;
}

p.caption {
	font-size: 12px;
	font-family: Yantramanav, sans-serif;
	text-transform: uppercase;
	margin-top: 0;
}

#scroll-button {
	display: none;
}

aside {
	width: 300px;
	max-width: 100%;
	margin: 0 auto 20px auto;
}

aside p {
	font-size: 13px;
	line-height: 1.5;
}

.box {
	padding: 0 20px 8px 20px;
	margin-bottom: 20px;
	border: 1px solid #eaeaea;
}

main p a, footer p a {
	text-decoration: none;
	color: #8193a1;
	border-bottom: 2px solid transparent;
	transition: .5s;
}

main p a:hover, footer p a:hover {
	color: #495762;
  border-bottom: 2px solid #495762;
}

main img {
	max-width: 100%;
}

#social {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 60px;
}

#main-content #social p {
	display: inline-block;
	line-height: 1.1;
	padding: 12px 0 8px 0;
	text-align: center;
	margin: 0;
}

#social a {
	display: inline-block;
	width: 50px;
	height: 50px;
	padding: 10px;
	opacity: 1;
	transition: .5s;
}

#social a:hover {
	opacity: .5;
}

[class*="is-style"] {
	position: relative;
}

[class*="is-style"] > div:before {
  content: " ";
  display: block;
  position: absolute;
  background-repeat: no-repeat;
  background-size: 100%;
  z-index: -1;
}

.is-style-grapes > div {
  padding-bottom: 46px;
}

.is-style-grapes > div:before {
  bottom: 0;
  left: -34px;
  width: 18vw;
  height: 20vw;
  background-image: url(../images/grapes.png);
}

.is-style-ornaments > div {
	position: relative;
  padding-bottom: 9vw;
	margin: 40px 0;
}

.is-style-ornaments > div:before {
  bottom: 0;
  left: 50%;
  margin-left: -16vw;
  width: 32vw;
  height: 9vw;
  background-image: url(../images/ornament.png);
}

footer {
	padding: 40px 0 50px;
	margin-top: 20px;
	border-top: 1px solid #eaeaea;
}

footer p {
	text-align: center;
	margin: 4px 0;
}

@media screen and (min-width: 700px) {
	
	.is-style-grapes > div {
    padding-bottom: 20px;
  }
  
  .is-style-grapes > div:before {
    left: -20px;
    width: 120px;
    height: 140px;
  }

	.is-style-ornaments > div {
    padding-bottom: 80px;
  }

  .is-style-ornaments > div:before {
    margin-left: -106px;
    width: 212px;
    height: 70px;
  }
	
	main {
		display: flex;
		justify-content: space-between;
		width: 100%;
		padding-top: 40px;
	}
	
	#main-content {
		display: flex;
		flex-direction: column;
		width: 560px;
		max-width: 60%;
		justify-content: center;
		padding-bottom: 40px;
		margin-bottom: 0;
	}
	
	#main-content p {
		font-size: 22px;
		margin: 30px 0;
	}
	
	aside {
		max-width: 35%;
		margin: 0;
	}
	
}	

@media screen and (min-width: 900px) and (orientation: landscape) {
	
	body {
		font-size: 18px;
	}
	
	header {
		display: flex;
		flex-direction: column;
		min-height: calc(100vh - 120px);
		justify-content: center;
	}
	
	#scroll-button {
		display: block;
		height: 120px;
		padding-bottom: 60px;
	}

	.scroll-to-content {
		position: relative;
		display: block;
		width: 60px;
		height: 60px;
		color: transparent;
		font-size: 0;
		background: none;
		margin: 0 auto;
		border: 1px solid #cfcfcf;
		border-radius: 60px;
		overflow: hidden;
		box-shadow: -2px 2px 5px rgba(0, 0, 0, 0.35);
		cursor: pointer;
		transition: background .5s;
	}
	
	.scroll-to-content:hover {
		background: #eeeeee;
	}

	.scroll-to-content:before, .scroll-to-content:after {
		position: absolute;
		content: "";
		top: 29px;
		left: 10px;
		display: block;
		width: 24px;
		height: 4px;
		background: #000;
		border-radius: 4px;
		overflow: hidden;
		transform: rotate(50deg);
	}

	.scroll-to-content:after {
		left: auto;
		right: 10px;
		transform: rotate(-50deg);
	}
	
}

