/* Mary Roach — site styles
   Modernised from the original marystyles.css. Colours, type and layout
   behaviour are unchanged except where noted:
     - a:link            #ed2024 -> #bb1116   (WCAG AA on #c2e0af: 3.02 -> 4.55)
     - a:hover/:visited  #cc3333 -> #ad2a2a   (3.57 -> 4.64)
     - .bottombar2       #ffffff -> #5c4033   (1.44 -> 6.52)
   No other colour, font or metric has been altered. */

body,
div,
dl,
dt,
dd,
ul,
ol,
li,
h1,
h2,
h3,
h4,
h5,
h6,
pre,
form,
fieldset,
input,
blockquote,
th,
td,
p {
	margin: 0;
	padding: 0;
}

body {
	font-size: 62.5%;
	background-color: #c2e0af;
	margin: 0 auto auto auto;
	text-align: center;
	font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
}

#wrapper {
	max-width: 800px;
	margin: 20px auto auto auto;
	font-size: 1.4em;
	line-height: 2.0em;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: auto;
	z-index: 1000;
	padding: 8px 12px;
	background: #fff;
	color: #111;
}

.skip-link:focus {
	left: 10px;
	top: 10px;
}

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

img {
	border-style: none;
	max-width: 100%;
}

/* The old pages carried an HTML 4.01 Transitional doctype, which put browsers in
   "almost standards" mode: a line box holding nothing but an image gets no
   descender gap. HTML5's <!DOCTYPE html> is full standards mode, which adds that
   gap back (~9px under every stand-alone image) and pushes the rest of the page
   down. Aligning those images to the bottom of their line box reproduces the
   original layout exactly. Images that sit inline within running text (the nav
   icons, the "@" glyph in the contact addresses) are deliberately left on the
   baseline, exactly as before. */
#leftcol img,
#photowithcaption img,
#photonocaption img,
img#photowithcaption,
img#photonocaption,
.photocenter img,
.homemainbook img,
.smallbooks img {
	vertical-align: bottom;
}

a:link {
	text-decoration: none;
	color: #bb1116;
}

a:hover,
a:active {
	text-decoration: underline;
	color: #ad2a2a;
}

a:visited {
	color: #ad2a2a;
	text-decoration: none;
}

h1,
h2 {
	font-size: 1.5em;
	font-weight: bold;
	line-height: 1.8em;
	margin-top: 10px;
}

h3,
h4 {
	font-size: 1.4em;
	font-weight: bold;
	line-height: 1.6em;
	margin-top: 10px;
}

h5,
h6 {
	font-size: 1.2em;
	font-weight: bold;
	line-height: 1.4em;
	margin-top: 10px;
}

/* Wordmark — replaces the retired 800x175 logotype GIF.
   Live text in the site's own font stack, in the GIF's own white.
   Geometry matches the source exactly: ink box x13-x782, baseline y126,
   cap height 107px. textLength pins the width so it scales like the
   <img max-width:100%> it replaces, whatever font actually resolves. */
#logo {
	margin: 0;
	padding: 0;
}

.logotype {
	display: block;
	width: 800px;
	max-width: 100%;
	height: auto;
	margin: 0 auto;
}

.logotype text {
	font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
	font-size: 140px;
	fill: #fff;
}

#nav,
#navtop {
	font-size: 1.0em;
	margin: 40px auto 10px auto;
	clear: both;
}

#nav {
	margin-top: 0;
	padding-top: 20px;
}

#nav a:link,
#navtop a:link,
#nav a:hover,
#navtop a:hover,
#nav a:visited,
#navtop a:visited,
#nav a:active,
#navtop a:active {
	margin-left: 15px;
	margin-right: 15px;
}

#leftcol {
	width: 360px;
	float: left;
}

.center {
	width: 450px;
	margin: 10px auto;
	line-height: 1.5em;
}

.photocenter {
	margin: 30px auto;
	width: 350px;
}

p.fourhundred {
	width: 400px;
}

.homemainbook {
	float: left;
	margin-left: 50px;
}

.homemainfuzz {
	margin-right: 30px;
	margin-bottom: 30px;
	margin-left: 0;
}

.orderlinks {
	list-style-type: disc;
	list-style-position: inside;
	text-align: left;
	margin: 0;
	padding-left: 0;
}

#noscroll .orderlinks li,
#leftcol .orderlinks li,
.orderlinks li {
	margin-left: 0;
}

.homemainbook img {
	margin-left: 0;
	transition: transform .2s;
}

.homemainbook img:hover {
	transform: scale(1.05);
}

#noscroll {
	text-align: left;
	width: 380px;
	margin: 10px 0 0 0;
	line-height: 1.5em;
	float: right;
}

#noscroll ol,
#leftcol li {
	list-style-position: inside;
}

#noscroll li,
#leftcol li {
	margin: 0 0 0 15px;
	padding: 0 0 5px 0;
}

#nomargin li {
	margin: 0;
}

#noscroll p {
	padding: 0 0 10px 0;
}

#credits {
	font-size: .8em;
	text-align: right;
}

.attrib {
	font-size: .9em;
}

.chapter {
	font-size: .9em;
	line-height: 1.2em;
	font-style: italic;
	margin: 10px 0 0 0;
	padding-bottom: 0;
}

#photowithcaption,
#photonocaption {
	margin: 20px 30px 30px 10px;
	float: left;
	width: 350px;
}

.smallbooks {
	float: left;
	width: 107px;
	text-align: left;
	font-size: 1.0em;
	line-height: 1.2em;
	margin: 0 0 30px 30px;
	height: 165px;
}

.smallbooksfuzz {
	margin-left: 10px;
}

.bottombar2 {
	color: #5c4033;
	font-size: .8em;
	text-align: center;
	margin-top: 40px;
}

.bottombar2 a:link,
.bottombar2 a:visited {
	color: #5c4033;
}

.bottombar2 a:hover,
.bottombar2 a:active {
	color: #7b5443;
}

@media only screen and (max-width: 736px) {

	body {
		line-height: 1em;
	}

	#wrapper {
		max-width: 90%;
		margin: 0 5%;
	}

	#nav,
	#navtop {
		font-size: 1.6em;
	}

	#navtop {
		margin-bottom: 10px;
	}

	#nav {
		clear: both;
		padding-top: 2em;
		margin-top: 40px;
	}

	.homemainbook {
		float: none;
		margin: 0 5%;
	}

	.homemainbook img {
		margin-left: 0;
	}

	#leftcol {
		width: 100%;
		float: none;
	}

	div#noscroll,
	p.center,
	p.fourhundred {
		font-size: 1.2em;
		line-height: 1.4em;
		width: 90%;
		margin: 0 5%;
	}

	#photowithcaption,
	#photonocaption {
		margin: 1em;
		float: none;
		width: 80%;
		height: auto;
	}

	#photowithcaption img,
	#photonocaption img {
		width: 80%;
		height: auto;
	}

	.photocenter {
		margin: 30px auto;
		width: 70%;
	}

	.photocenter img {
		width: 100%;
	}

	.smallbooks {
		display: block;
		float: none;
		width: 107px;
		text-align: left;
		font-size: 1.6em;
		line-height: 1.2em;
		margin: 0;
	}

	.otherbooks {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		justify-items: center;
		row-gap: 1em;
	}

	.otherbooks > p {
		grid-column: 1 / -1;
		width: 100%;
	}

	.smallbooksfuzz img {
		max-width: 107px;
	}
}
