/*
 * Failover pages: University of Sussex branding
 * Colours and fonts taken from www.sussex.ac.uk (algae.css):
 *   Body text Inter, headings Libre Baskerville
 *   Footer dark green #033803 to teal #32d8c5, accent green #0fed8d, link hover #a7d936
 */

:root {
	--uos-black: #000;
	--uos-white: #fff;
	--uos-green-dark: #033803;
	--uos-teal: #32d8c5;
	--uos-green-bright: #0fed8d;
	--uos-lime: #a7d936;
	--uos-navy: #1d4289;
	--uos-link-hover: #1585cf;
	--uos-grey-light: #f4f4f4;
	--uos-grey-border: #cacaca;
	--uos-sans: Inter, Arial, "Helvetica Neue", Helvetica, sans-serif;
	--uos-serif: "Libre Baskerville", Georgia, garamond, serif;
}

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

html, body, div, span, h1, h2, h3, h4, h5, h6, p, a, img {
	margin: 0;
	padding: 0;
	border: 0;
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	background: var(--uos-white);
	color: var(--uos-black);
	font-family: var(--uos-sans);
	font-size: 100%;
	font-weight: 400;
	line-height: 1.5;
}

/*/////////////////////////TEXT/////////////////////////*/

p, li, table td {
	font-size: 1.125rem;
	line-height: 1.6;
	color: var(--uos-black);
}

p {
	margin: 0 0 1.1em 0;
}

p.lead {
	font-size: 1.3rem;
	font-weight: 600;
}

h1, h2, h3 {
	font-family: var(--uos-serif);
	font-weight: 400;
	color: var(--uos-black);
	line-height: 1.25;
}

h1 {
	font-size: 2.5rem;
}

h2 {
	font-size: 1.75rem;
	margin: 1.2em 0 .5em;
}

a {
	color: var(--uos-navy);
	text-decoration: underline;
	text-underline-offset: 2px;
}

a:hover {
	color: var(--uos-link-hover);
}

a:focus-visible {
	outline: 3px solid var(--uos-green-bright);
	outline-offset: 2px;
}

#standfirst {
	margin-bottom: 1.5rem;
	padding-bottom: 1.25rem;
	border-bottom: 4px solid var(--uos-green-bright);
}

#standfirst h1 {
	margin: 0;
}

#standfirst p {
	font-size: 1.3rem;
	font-weight: 600;
}

/*/////////////////////////LAYOUT/////////////////////////*/

#container {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

#header {
	background: var(--uos-white);
	border-bottom: 1px solid var(--uos-grey-border);
	padding: 1rem 1.5rem;
}

#logo {
	max-width: 1100px;
	margin: 0 auto;
}

#logo img {
	display: block;
	height: 66px;
	width: auto;
}

#wrapper {
	flex: 1 0 auto;
	width: 100%;
	max-width: 1100px;
	margin: 0 auto;
	padding: 3rem 1.5rem 4rem;
}

#content {
	max-width: 760px;
}

/*/////////////////////////FOOTER/////////////////////////*/

#footer {
	flex-shrink: 0;
	min-height: 9rem;
	padding: 2rem 1.5rem 3rem;
	background: var(--uos-green-dark);
	background-image: linear-gradient(170deg, var(--uos-green-dark) 45%, var(--uos-teal) 280%);
	color: var(--uos-white);
}

#footer p {
	max-width: 1100px;
	margin: 0 auto;
	font-size: .95rem;
	color: var(--uos-white);
}

#footer a {
	color: var(--uos-white);
}

#footer a:hover {
	color: var(--uos-lime);
}

/*/////////////////////////SMALL SCREENS/////////////////////////*/

@media (max-width: 600px) {
	h1 {
		font-size: 1.9rem;
	}

	p, li, table td {
		font-size: 1.05rem;
	}

	#logo img {
		height: 54px;
	}

	#wrapper {
		padding: 2rem 1rem 3rem;
	}
}
