/*
Theme Name: Fish Farmer (2019)
Theme URI: http://www.dcthomson.co.uk
Author: Robert Paul
Author URI: http://www.dcthomson.co.uk
Description: Core CSS for the Fish Farmer theme (2019).
*/

*,
*:before,
*:after {
	box-sizing: inherit;
}

/* Borrowed from Eric Meyer's Reset CSS: https://meyerweb.com/eric/tools/css/reset/ */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}

html {
	height: 100%;
	font-family: 'Lato', Arial, sans-serif;
	box-sizing: border-box;
}

ul,
ol {
	list-style: none;
}

img {
	max-width: 100%;
	height: auto;
}

a {
	text-decoration: none;
	color: inherit;
}

.clearfix:after {
	content: '';
	display: block;
	clear: both;
}

.hidden {
	display: none;
}

/*****
Layout
*****/

.wrap {
	position: relative;
	margin-left: auto;
	margin-right: auto;
	width: 100%;
	max-width: 1040px;
}

/********
Variables
********/

:root {
  /* Colours */
	--ff-blue: #00477e;
	--ff-blue-lighten: #1667a7;
	--ff-blue-darken: #043358;

	/* Transitions */
	--ff-transition: all ease .15s;
}

/*********
Typography
*********/

.title {
	font-weight: 700;
}

.title__highlight {
	color: var(--ff-blue);
}

.cms h1,
.cms h2,
.cms h3,
.cms h4,
.cms h5,
.cms h6 {
	margin-top: .5rem;
	margin-bottom: .5rem;
	line-height: 120%;
	font-weight: bold;
}

.cms p {
	margin-top: 1rem;
	margin-bottom: 1rem;
}

.cms p > a {
	font-weight: inherit;
	word-wrap: break-word;
	text-decoration: underline;
	color: var(--ff-blue-lighten);
}

.cms p > img {
	display: block;
	max-width: 100%;
	height: auto;
}

.cms a:hover {
	text-decoration: underline;
}

.cms hr {
	display: block;
	margin-top: 1rem;
	margin-bottom: 1rem;
	width: 100%;
	border: 0;
	height: 1px;
	background-color: #e5e5e5;
}

.cms strong,
.cms b {
	font-weight: 600;
}

.cms em,
.cms i {
	font-style: italic;
}

.cms ul,
.cms ol {
	margin: 1.5rem;
}

.cms p,
.cms ul,
.cms ol {
	line-height: 150%;
}

.cms ul ul,
.cms ol ol {
	margin: 1rem;
}

.cms ul {
	list-style: disc;
}

.cms ol {
	list-style: decimal;
}

.cms ul li,
.cms ol li {
	margin-bottom: .5rem;
}

.cms blockquote {
	position: relative;
	margin: 6%;
	padding-left: 40px;
	min-height: 32px;
}

.cms blockquote:before {
	content: '\201C';
	position: absolute;
	top: -2px;
	left: 0;
	display: block;
	width: 32px;
	height: 32px;
	line-height: 100%;
	font-family: inherit;
	font-weight: 400;
	font-size: 4rem;
	text-align: center;
}

.cms blockquote > h1,
.cms blockquote > h2,
.cms blockquote > h3,
.cms blockquote > h4,
.cms blockquote > h5,
.cms blockquote > h6,
.cms blockquote > p,
.cms blockquote > pre {
	margin: 0;
	line-height: 140%;
	font-size: 110%;
	font-weight: 300;
	text-align: left !important;
	color: #000;
}

.cms blockquote p {
	padding: 0 !important;
	border: 0 !important;
}

/* Typography > Thumbnails */
.cms figure > img {
	display: block;
	max-width: 100%;
}

.cms figure > figcaption {
	padding-top: 4px;
	padding-bottom: 4px;
	line-height: 140%;
	border-bottom: 1px solid #e5e5e5;
	font-size: 75%;
}

/************
Accessibility
************/

.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
}

.screen-reader-text:focus {
	clip: auto !important;
	z-index: 100000;
	top: 5px;
	left: 5px;
	display: block;
	padding: 10px;
	width: auto;
	height: auto;
	line-height: normal;
	background-color: #f1f1f1;
	text-decoration: none;
	font-family: sans-serif;
	font-size: 14px;
	border-radius: 6px;
	box-shadow: 0 0 2px 2px rgba(0,0,0,.6);
}
