@import url("https://use.typekit.net/nri4usf.css");

body {
    font-family: source-sans-pro-1, source-sans-pro-2, sans-serif;
    /* font-family: Georgia, serif; */
    width: 45em;
    max-width: 90%;
    margin: 3em auto;
    line-height: 1.5;
}

h1, p.subtitle {
    font-size: 2rem;
    line-height: 1.2;
    text-align: center;
    font-weight: 700;
    /* border-bottom: 2px solid black; */
    /* padding-bottom: 0.3em; */
}

p.subtitle {
    font-weight: normal;
    margin-top: -0.5em;
}

h2 {
    font-variant: small-caps;
    font-weight: normal;
}

h3 {
    font-weight: 700;
    font-size: 1em;
}

#header {
    margin: 0 auto;
    max-width: 100%;
}

#credits {
    font-size: small;
}

/* #sidebar { */
/*     width: 15em; */
/*     max-width: 90%; */
/*     float: right; */
/*     margin: 0 0 2em 2em; */
/*     padding-left: 1em; */
/*     border-left: 1px solid black; */
/* } */

@media (min-width: 40rem) {
    section.sidebar {
	width: 15rem;
	max-width: 90%;
	float: right;
	margin: 0 0 2em 2em;
	padding-left: 1em;
	border-left: 1px solid black;
    }
}


section.sidebar > :first-child {
    margin-top: 0;
}

section.sidebar > :last-child {
    margin-bottom: 0;
}

p {
    text-align: justify;
}

a {
    color: black;
    /* text-decoration: underline dotted; */
}
a:hover {
    text-decoration: underline solid;
}

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

.center, .center p {
    text-align: center;
}

code, tt, kbd {
    font: 0.95em source-code-pro-1, source-code-pro-2, monospace;
}

.updated {
    background: #ff9;
}

.center img {
    display: inline;
}

.thumbs img {
    width: 128px;
}
.thumbs a {
    border-bottom: none;
}

@media (max-width: 40rem) {
    #lectures table, #lectures thead, #lectures tbody, #lectures tr, #lectures th, #lectures td {
	display: block;
    }

    #lectures thead {
	display: none;
    }

    /* #lectures tr { */
    /* 	margin: 1em 0; */
    /* } */

    #lectures td:first-child {
	font-weight: bold;
    }

    #lectures tr:not(:first-child) td:first-child:not(:empty) {
	margin-top: 1em;
    }
}

@media (min-width: 40rem) {
    #lectures table {
	width: 100%;
	margin-left: 0;
	margin-right: 0;
	border: solid black;
	border-width: 2px 0;
	border-collapse: collapse;
    }

    #lectures th {
	border-bottom: 1px solid black;
    }

    th, td {
	padding: 0.5ex 0 0.5ex 1em;
	vertical-align: top;
    }

    th {
	text-align: left;
    }

    #lectures td:first-child {
	white-space: nowrap;
	padding-left: 0;
    }
}
