body {
  	background-color: gainsboro;
  	font-family: Garamond, serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 150%;

    display: flex;
    flex-direction: column;
    align-items: stretch;

    -webkit-font-smoothing: antialiased;
    -webkit-overflow-scrolling: touch;
}

header {
    font-family: Avenir, Helvetica, sans-serif;
}

/* DEBUG
 * ===========================================================
 * */

header, main, footer {
}
header, main, footer {
background-color: white;
}

/* Layout
 * ===========================================================
 * */

header, footer {
    padding-left: 4em;
    padding-right: 4em;
}

main {
    padding-left: 4em;
    padding-right: 4em;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;

    border-bottom: solid 1pt black;
    padding-top: 1em;
}

footer {
    margin-top: 1em;
    padding-top: 1em;
    padding-bottom: 1em;
    border-top: dotted 1pt black;
}

/* Headings
 * ===========================================================
 * */

h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
    color: #333;
    line-height: 170%;
}

h1#title {
	font-size: 180%;
	font-weight: 600;
    margin-bottom: 0;
}

h1 {
	font-size: 22pt;
	margin-top: 36pt;
	margin-bottom: 18pt;
}

h2 {
    font-size: 120%;
	font-weight: 500;
	margin-top: 24pt;
	margin-bottom: 12pt;
}

/* Navigation
 * ===========================================================
 * */


nav {
    display: flex;
    flex-wrap: wrap;
}

nav a, header h1 a {
	text-decoration: none;
}
nav a:visited, header h1 a:visited {
	color: black; 
}

header h1 {
    margin-top: 0pt;
	margin-bottom: 0pt;
    font-weight: 600;
    font-size: 120%;
    text-transform: capitalize;
}

nav ul {
    list-style: none;
    margin-left: 0;
}

nav li {
    display: inline;
    margin-left: 1em;
}


/* Paragraph Styles
 * ===========================================================
 * */

blockquote {
    border-left: 2pt #f2f2f2 solid;
    padding-left: 12pt;
    font-style: italic;
}

/* Character styles
 * ===========================================================
 * */

a {
    color: SaddleBrown;
    text-decoration-style: dotted;
}

a:visited {
    color: Peru;
}

strong, b {
    font-weight: 600;
}

time, author {
    font-style: italic;
    font-size: 80%;
}

/* Lists
 * ===========================================================
 * */

ul {
    list-style-type: square;
}

ul.toc {
    padding-left: 0;
    list-style-type: none;
}

li .date {
    font-style: italic;
}

/* Table
 * ===========================================================
 * */

table {
    border-collapse: collapse;
    border-top: 2pt solid black;
    border-bottom: 2pt solid black;
}

table > caption {
    /* Note: should be same as figcaption */
    font-size: 80%;
    font-style: italic;
    padding-top: 6px;
    padding-bottom: 6px;
}

thead {
    border-bottom: 1pt solid black;
}
th {
    padding-top: 2pt;
    padding-bottom: 2pt;
}

tr:nth-child(even) {
    background: linen
}
tr:nth-child(odd) {
    background: white
}

/* Image
 * ===========================================================
 * */

img {
    margin-left: auto;
    margin-right: auto;
    display: block;
    max-width: 100%;
}

figcaption {
    /* Note: should be same as table > caption */
    font-size: 80%;
    font-style: italic;
    text-align: center;
}

