/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

header, footer {
    margin: 0 auto;
    max-width: 640px;
    font-size: 18pt;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom:1px solid rgba(0, 0, 0, 0.1);
}
header {
    border-top: none;
    padding-bottom: 1rem;
}
footer {
    padding: 1rem 0;
    margin-top: 1rem;
    border-bottom: none;
}
header a, header a:visited, header a:active, header a:hover {
    color: #222;
    text-decoration: none;
}
h1 small {
    display: block;
    font-size: 50%;
}
.title ul {
    list-style-type: none;
    text-align: center;
    margin: 0;
    padding: 0;
}
.title ul li {
    margin: 1rem 0;
    padding: 0;
}
.title ul li p:first-of-type {
    font-size: 20pt;
    text-align: center;
}
.title ul li p {
    text-indent: 0;
    text-align: justify;
}
.title blockquote:first-of-type {
    font-style: italic;
}
.order {
    width: 100%;
    text-align: center;
    margin: 0 auto;
}
.order a {
    display: inline-block;
    margin: 0.5rem;
}
ul.pagination {
    margin: 1rem 0;
    padding: 0;
    list-style-type: none;
    text-align: center;
}
li.page-item {
    display: inline-block;
    margin: 0;
    padding: 0;
}
li.page-item a {
    padding: 0 0.5rem;
    margin: 0;
}
hr {
    border: none;
    width: 3rem;
    margin: 1rem auto;
}
hr::before {
    content: '§';
    display: block;
    text-align: center; 
}
main {
    margin: 0 auto;
    max-width: 640px;
    font-family: "Gentium Book Basic", serif;
    font-size: 18pt;
    text-align: justify;
    color: #222;
    line-height: 1.5;
}
main p {
    margin: 0;
    text-indent: 2rem;
    hyphens: auto;
    -webkit-hyphens: auto;
}
main p:first-of-type {
    text-indent: 0;
}
main blockquote {
    margin: 1rem 0;
    padding: 0 0 0 2rem;
    border-left: 3px solid #ddd;
}
main blockquote p {
    text-indent: 0;
}
main blockquote p + p {
    margin-top: 1rem;
}
main blockquote + p {
    text-indent: 0;
}
main .verse {
    white-space: pre-wrap;
    margin-left: 3rem;
}
main .verse p {
    text-indent: 0;
}
.footnotes {
    font-size: 80%;
}
.footnotes ol {
    padding-left: 1.5rem;
}
.footnotes hr::before {
    content: '';
}
.footnotes hr {
    margin-left: 0;
    width: 25%;
    border-top: 1px solid #222;
}
.footnotes p {
    text-indent: 0;
}
a {
    color: #262;
}
a:visited {
    color: #266;
}
.title img {
    max-width: 100%;
    margin: 0 auto;
    display: block;
}
img {
    max-width: 100%;
}
h1, h2 {
    text-align: center;
}
header nav ul {
    list-style-type: inline-block;
    margin: 0.5rem;
    padding: 0;
}
header nav ul li {
    display: inline-block;
    margin: 0;
    padding: 0 1rem;
}

.modal {
  display: none;
}
.modal.active {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.2);
}
.modal.active aside {
  position: relative;
  background-color: #fff;
  display: block;
  border: 1px solid #333;
  box-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  max-width: calc(640px - 2rem);
  margin: 0.5rem auto;
  padding: 1rem;
  max-height: calc(100vh - 2rem);
  overflow: scroll;
}
.modal.active aside aside {
  background-color: #eee;
}
.modal aside q:before, .modal aside q:after {
  content: '';
}
.modal aside h3 {
  text-align: center;
}
a.footnote-ref {
    font-weight: bolder;
    text-decoration: none;
    background-color: #ddd;
    margin: 1px;
    padding: 1px;
    border: 1px solid transparent;
    border-radius: 2px;
}

.cite {
    background-color: #eee;
    padding: 0 1px;
    border: 1px solid transparent;
    border-radius: 2px;
    cursor: pointer;
}
.cite-ref {
    display: none;
}

@media only screen and (max-width: 640px) {
    body {
        padding: 0;
        margin: 0;
    }
    main, header, footer {
        width: 100%;
        padding: 0 2rem;
    }
    main {
        text-align: left;
    }
    .footnotes hr {
        width: 50%;
    }
    .modal.active aside {
        width: calc(100% - 3rem);
    }
}
