/* Based on the Zerotype template by freewebsitetemplates.com, adapted to be responsive */
@font-face {
	font-family: 'OpenSans';
	src: url('../fonts/OpenSans-Regular.woff') format('woff'), url('../fonts/OpenSans-Regular.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
}
@font-face {
	font-family: 'Play';
	src: url('../fonts/Play-Regular.woff') format('woff'), url('../fonts/Play-Regular.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
}
:root {
	--accent: #f99600;
	--text: #585858;
	--heading: #2c2c2c;
	--line: #d5d5d5;
	--panel: #eee;
	--page-width: 1400px;
}
*, *::before, *::after {
	box-sizing: border-box;
}
body {
	background-color: #fff;
	color: var(--text);
	font-family: 'OpenSans', Arial, Helvetica, sans-serif;
	margin: 0;
}
img, video {
	border: 0;
	max-width: 100%;
	height: auto;
}
/* Shared centred column used by header, footer and page contents */
.wrap {
	max-width: var(--page-width);
	margin: 0 auto;
	padding: 0 40px;
}
.btn {
	background-color: var(--accent);
	border-radius: 4px;
	color: #fff;
	display: inline-block;
	font-size: 20px;
	line-height: 1.3;
	padding: 16px 36px;
	text-align: center;
	text-decoration: none;
}
.btn:hover {
	background-color: var(--heading);
}
.more {
	background-color: #727272;
	color: #fff;
	display: inline-block;
	font-size: 14px;
	line-height: 30px;
	padding: 0 16px;
	text-align: center;
	text-decoration: none;
}
.more:hover {
	background-color: var(--accent);
	color: #000;
}
/* Placeholder picture slot: swap the <div class="img-slot"> for an <img> when you have the picture */
.img-slot {
	align-items: center;
	aspect-ratio: 4 / 3;
	background-color: #f8f8f8;
	border: 2px dashed var(--line);
	color: #aeaeae;
	display: flex;
	font-size: 14px;
	justify-content: center;
	padding: 12px;
	text-align: center;
	width: 100%;
}
.img-slot.wide {
	aspect-ratio: 16 / 9;
}
/*------------------------------ HEADER ------------------------------*/
#header {
	background-color: var(--panel);
	border-bottom: 1px solid #e6e6e6;
	padding: 20px 0;
}
#header .wrap {
	display: flex;
	flex-direction: column;
	gap: 16px;
}
#header .logo {
	align-items: center;
	display: flex;
	gap: 20px;
}
#header .logo a {
	display: block;
}
#header .site-title {
	color: #000;
	font: clamp(32px, 5vw, 56px)/1.2 'Play', Arial, sans-serif;
}
#header .logo img {
	display: block;
	height: 120px;
	width: auto;
}
#navigation {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 36px;
	list-style: none;
	margin: 0;
	padding: 0;
}
#navigation a {
	color: #818181;
	font-size: 15px;
	line-height: 30px;
	text-decoration: none;
}
#navigation a:hover {
	color: #000;
}
#navigation li.active a {
	color: var(--accent);
}
/*------------------------------ HOME: HERO ------------------------------*/
#adbox {
	background-color: #f7f7f7;
	border-bottom: 1px solid #e6e6e6;
	padding: 60px 0;
}
#adbox .wrap {
	align-items: center;
	display: grid;
	gap: 40px;
	grid-template-columns: 1fr 1fr;
}
#adbox h1 {
	color: var(--heading);
	font-size: 52px;
	line-height: 1.1;
	margin: 0 0 12px;
	text-transform: uppercase;
}
#adbox h2 {
	font-size: 26px;
	line-height: 1.3;
	margin: 0 0 20px;
}
#adbox p {
	margin: 0 0 28px;
}
/*------------------------------ CONTENTS ------------------------------*/
#contents {
	padding-block: 54px;
}
h1 {
	color: #3e3e3e;
	font-size: 30px;
	font-weight: normal;
	line-height: 1.2;
	margin: 0 0 30px;
}
h2 {
	color: var(--heading);
	font-size: 24px;
	font-weight: normal;
	line-height: 1.2;
	margin: 0 0 12px;
}
h3 {
	color: var(--heading);
	font-size: 18px;
	font-weight: normal;
	margin: 0 0 8px;
}
p {
	color: var(--text);
	font-size: 16px;
	line-height: 24px;
	margin: 0 0 30px;
}
p a {
	color: var(--text);
}
/* Page intro under the main heading */
.intro {
	max-width: 700px;
}
/* Home: three summary blocks */
.columns {
	display: grid;
	gap: 30px;
	grid-template-columns: repeat(3, 1fr);
}
.columns .img-slot, .columns img {
	margin-bottom: 16px;
}
.section-title {
	border-bottom: 1px solid #e0e0e0;
	margin-top: 54px;
	padding-bottom: 12px;
}
/* How it works: alternating picture / text rows */
.steps {
	counter-reset: step;
	list-style: none;
	margin: 0;
	padding: 0;
}
.steps > li {
	align-items: center;
	border-top: 1px solid var(--line);
	display: grid;
	gap: 40px;
	grid-template-columns: 1fr 1fr;
	padding: 40px 0;
}
.steps > li:nth-child(even) .step-media {
	order: 2;
}
.steps h2::before {
	color: var(--accent);
	content: counter(step) ". ";
	counter-increment: step;
}
.video {
	margin: 0 0 40px;
}
.video video {
	background-color: #000;
	display: block;
	max-height: 80vh;
	width: 100%;
}
/* Simple table, e.g. specifications */
.table-scroll {
	overflow-x: auto;
}
.specs {
	border-collapse: collapse;
	margin: 0 0 30px;
	min-width: 400px;
	width: 100%;
}
.specs th, .specs td {
	border-bottom: 1px solid var(--line);
	padding: 10px 12px;
	text-align: left;
}
.specs th {
	color: var(--heading);
	font-weight: normal;
	width: 40%;
}
/* Date box used on news items */
.date {
	border: 1px solid var(--line);
	height: 78px;
	text-align: center;
	width: 70px;
}
.date p {
	margin: 12px 0 0;
}
.date p span {
	display: block;
	font-size: 30px;
	margin-bottom: 6px;
}
.author {
	color: var(--text);
	display: block;
	font-size: 12px;
	margin-top: 6px;
}
/** News: main column + sidebar **/
.with-sidebar {
	display: grid;
	gap: 44px;
	grid-template-columns: 1fr 300px;
}
.main {
	background: url(../images/divider.png) repeat-y right top;
	padding-right: 24px;
}
.sidebar ul, .news {
	list-style: none;
	margin: 0;
	padding: 0;
}
.news li {
	border-top: 1px solid var(--line);
	padding: 24px 0 0 100px;
	position: relative;
}
.news li .date {
	left: 0;
	position: absolute;
	top: 30px;
}
.section-title + .news li:first-child {
	border-top: 0;
}
.news .read-more, .post .back {
	text-align: right;
}
.news h2 a {
	color: inherit;
	text-decoration: none;
}
.news h2 a:hover {
	color: var(--accent);
}
.posts {
	border-top: 1px solid var(--line);
}
.posts li {
	border-bottom: 1px solid var(--line);
	padding: 24px 10px 0;
}
.posts li p {
	font-size: 14px;
}
.posts li .title {
	font-size: 16px;
	font-weight: normal;
	margin: 0 0 12px;
}
.posts li .title a {
	color: var(--heading);
	text-decoration: none;
}
/** Single article **/
.post {
	margin: 0 auto;
	max-width: 1000px;
}
.post-head {
	align-items: flex-start;
	display: flex;
	gap: 20px;
	margin-bottom: 30px;
}
.post-head h1 {
	margin: 0;
	padding-top: 12px;
}
.post figure {
	margin: 0 0 30px;
}
.post figcaption {
	font-size: 13px;
	margin-top: 6px;
}
/** About **/
#about {
	margin: 0 auto;
	max-width: 1000px;
}
#about .img-slot, #about img {
	margin-bottom: 30px;
}
#about h1, .section h1 {
	border-bottom: 1px solid #e0e0e0;
	padding-bottom: 12px;
}
/** Contact **/
.contact-page .section {
	max-width: 640px;
}
.message {
	display: flow-root;
}
/* Honeypot field: moved off-screen rather than display:none, which some bots skip */
.message .hp {
	height: 1px;
	left: -9999px;
	overflow: hidden;
	position: absolute;
	width: 1px;
}
.message label {
	color: var(--heading);
	display: block;
	font-size: 13px;
	margin: 0 0 4px;
}
.message input[type='text'], .message input[type='email'], .message textarea {
	border: 1px solid var(--line);
	color: var(--heading);
	font: 14px 'OpenSans', Arial, sans-serif;
	margin: 0 0 14px;
	padding: 8px;
	width: 100%;
}
.message textarea {
	height: 175px;
	resize: vertical;
}
.message button {
	background-color: #818181;
	border: 0;
	color: #fff;
	cursor: pointer;
	float: right;
	font: 14px/34px 'OpenSans', Arial, sans-serif;
	padding: 0 20px;
}
.message button:hover {
	background-color: var(--accent);
	color: #000;
}
/*------------------------------ FOOTER ------------------------------*/
#footer {
	background-color: var(--panel);
	border-top: 1px solid #d8d8d8;
	padding: 20px 0;
}
#footer .wrap {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 12px 30px;
	justify-content: space-between;
}
#footer p {
	font-size: 12px;
	line-height: 30px;
	margin: 0;
}
#footer ul {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	list-style: none;
	margin: 0;
	padding: 0;
}
#footer ul a {
	color: #818181;
	font-size: 12px;
	text-decoration: none;
}
#footer ul a:hover {
	color: #000;
}
/*------------------------------ SMALL SCREENS ------------------------------*/
@media (max-width: 760px) {
	.wrap {
		padding: 0 20px;
	}
	#adbox {
		padding: 36px 0;
	}
	#adbox .wrap, .columns, .steps > li, .with-sidebar {
		grid-template-columns: 1fr;
	}
	#adbox h1 {
		font-size: 36px;
	}
	#adbox .hero-media {
		order: -1;
	}
	.steps > li {
		gap: 20px;
	}
	.steps > li:nth-child(even) .step-media {
		order: 0;
	}
	.main {
		background: none;
		padding-right: 0;
	}
	.news li {
		padding-left: 0;
	}
	.news li .date {
		margin-bottom: 12px;
		position: static;
	}
	#navigation {
		gap: 4px 20px;
	}
	#header .logo {
		flex-wrap: wrap;
	}
}
