/* ------------------------------------------------------------------
   Plain, left aligned, bold blue hyperlinks on a warm grey ground.
   One stylesheet, no imports, no web fonts.
   ------------------------------------------------------------------ */

body {
	background: #ccd4de;
	color: #000000;
	font-family: Arial, Helvetica, "Liberation Sans", sans-serif;
	font-size: 15px;
	line-height: 1.5;
	margin: 1.5em;
	max-width: 52em;
	text-align: left;
}

a:link    { color: #0000cc; font-weight: bold; text-decoration: underline; }
a:visited { color: #6a3f8f; }
a:active  { color: #cc0000; }

h1 {
	font-size: 2em;
	font-weight: bold;
	letter-spacing: -0.01em;
	margin: 0 0 0.25em 0;
}

h2 {
	font-size: 1.4em;
	margin: 1.1em 0 0.6em 0;
}

h3 {
	font-size: 1.1em;
	margin: 1.6em 0 0.1em 0;
}

h4 {
	font-size: 1em;
	margin: 1.2em 0 0.1em 0;
}

p { margin: 0.65em 0; }

/* Used sparingly on purpose: once under the masthead, once above the
   footer. Anything more starts to look like a resume. */
hr {
	border: 0;
	border-top: 1px solid #8b97a8;
	margin: 1.1em 0;
}

ul { margin: 0.4em 0; padding-left: 1.5em; }
li { margin: 0.15em 0; }

/* --- masthead ---------------------------------------------------- */

.masthead {
	display: flex;
	flex-wrap: wrap;
	gap: 1.6em;
}

.masthead-photo img {
	border: 1px solid #000000;
	display: block;
	height: auto;
	max-width: 100%;
	width: 210px;
}

.masthead-text { flex: 1 1 22em; }

.masthead-text p { margin: 0; }

.masthead-text h1 { margin-bottom: 0.55em; }


.contact { margin-top: 0.7em; }

/* --- navigation -------------------------------------------------- */

.nav {
	margin: 0 0 0.2em 0;
}

.nav a, .nav b {
	display: inline-block;
	margin-right: 1.6em;
	white-space: nowrap;
}

/* --- entries (jobs, schools, volunteering) ----------------------- */

.entry { margin-bottom: 1.5em; }

.meta {
	font-size: 0.95em;
	margin: 0 0 0.35em 0;
}

/* --- projects ---------------------------------------------------- */

.project { margin-bottom: 2.4em; }

.stack { font-style: italic; margin: 0.1em 0 0.3em 0; }

.jump { margin-bottom: 1.4em; }

.jump a { margin-right: 1.2em; white-space: nowrap; }

figure { margin: 0.9em 0; }

figure img {
	border: 1px solid #000000;
	display: block;
	height: auto;
	max-width: 100%;
	width: 480px;
}

figcaption {
	font-size: 0.9em;
	font-style: italic;
	margin-top: 0.35em;
}

/* --- picture libraries ------------------------------------------- */

.gallery { margin: 1.1em 0 0.4em 0; }

.gallery-label {
	font-size: 0.9em;
	margin: 0 0 0.5em 0;
}

.shots {
	display: flex;
	flex-wrap: wrap;
	gap: 1em;
	list-style: none;
	margin: 0;
	padding: 0;
}

.shots li {
	margin: 0;
	width: 150px;
}

.shots li a { line-height: 0; }

.shots a { display: block; }

.shots img {
	/* Letterbox bars blend into the page instead of reading as white blocks. */
	background: transparent;
	border: 1px solid #000000;
	display: block;
	height: 140px;
	object-fit: contain;
	width: 100%;
}

.shots .shot-caption {
	display: block;
	font-size: 0.8em;
	line-height: 1.35;
	margin-top: 0.3em;
}

/* --- misc -------------------------------------------------------- */

.backlink { font-size: 0.85em; margin-top: 0.8em; }

.footer { font-size: 0.9em; }

table { border-collapse: collapse; margin: 0.5em 0; }
td { padding: 0.1em 1.4em 0.1em 0; vertical-align: top; }

/* --- embedded media (video, report PDFs) ------------------------- */

.media { margin: 1.2em 0; }

.media video {
	border: 1px solid #000000;
	display: block;
	height: auto;
	max-width: 100%;
}

.media .pdf {
	background: #ffffff;
	border: 1px solid #000000;
	display: block;
	height: 780px;
	max-width: 100%;
	width: 100%;
}

.media-caption {
	font-size: 0.9em;
	font-style: italic;
	margin: 0.35em 0 0 0;
}

.media-label { margin: 0 0 0.5em 0; }

@media (max-width: 640px) {
	.media .pdf { height: 460px; }
}

/* Portrait cover videos should not run the full column width. */
.media video.cover-video { max-height: 460px; width: auto; }

/* --- code extracts and data tables -------------------------------- */

.snippet, .datatable { margin: 1.2em 0; }

.snippet-label { margin: 0 0 0.4em 0; }

.snippet-file {
	font-family: "DejaVu Sans Mono", Consolas, monospace;
	font-size: 0.85em;
}

pre {
	background: #eef0ea;
	border: 1px solid #8b97a8;
	margin: 0;
	overflow-x: auto;
	padding: 0.7em 0.9em;
}

code {
	font-family: "DejaVu Sans Mono", Consolas, monospace;
	font-size: 0.82em;
	line-height: 1.45;
	white-space: pre;
}

/* Wide tables scroll on their own rather than pushing the page sideways. */
.scroll { overflow-x: auto; }

.datatable table {
	border-collapse: collapse;
	font-size: 0.88em;
	min-width: 100%;
}

.datatable th, .datatable td {
	border: 1px solid #8b97a8;
	padding: 0.3em 0.6em;
	text-align: left;
	vertical-align: top;
}

.datatable th { background: #c2cbd6; }

.datatable td:first-child, .datatable td:nth-child(2) { white-space: nowrap; }

.datatable code, .datatable td:first-child { font-family: "DejaVu Sans Mono", Consolas, monospace; }

.controls { font-size: 0.92em; }

h5 {
	font-size: 1em;
	margin: 1.4em 0 0.2em 0;
}
