/* Essay pages: same look as the main site (PageOne theme), but responsive. */
@font-face {
    font-family: 'MerriweatherBold';
    src: url('../css/fonts/merriweather-bold-webfont.woff') format('woff'),
         url('../css/fonts/merriweather-bold-webfont.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
    box-sizing: border-box;
}

html {
    overflow-y: scroll;
    scroll-padding-top: 90px; /* keep anchor targets clear of the fixed header */
}

body {
    margin: 0;
    font-family: Georgia, Serif;
    font-size: 17px;
    line-height: 1.8;
    color: #3B3B3B;
    background: url(../images/bg.png) left top repeat;
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 1);
}

a:link, a:visited {
    color: #285935;
    text-decoration: underline;
}

a:hover, a:focus, a:active {
    color: #5E1F00;
}

/* Header (same as main site) */
#header-wrap {
    background: url(../images/header-bg.png);
    width: 100%;
    height: 70px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
}

header {
    max-width: 940px;
    height: 70px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header .logo {
    display: block;
    background: url(../images/logo.png) no-repeat;
    height: 31px;
    width: 130px;
    text-indent: -9999em;
    overflow: hidden;
}

header nav a:link, header nav a:visited {
    font: bold 12px/25px Helvetica, Arial, Sans-serif;
    color: #c5c4c4;
    margin-left: 20px;
    text-decoration: none;
    text-shadow: 0 -1px 0 rgba(10, 10, 10, 1);
}

header nav a:hover {
    color: #17a231;
}

/* Article */
article {
    max-width: 760px;
    margin: 0 auto;
    padding: 110px 16px 40px;
}

h1, h2 {
    font-family: 'MerriweatherBold', Serif;
    font-weight: normal;
}

h1 {
    font-size: 32px;
    line-height: 1.4;
    color: #046416;
    margin: 0 0 12px;
}

h2 {
    font-size: 22px;
    line-height: 1.4;
    margin: 2.2em 0 0.6em;
    padding-top: 30px;
    background: url(../images/section-sep.png) repeat-x left top;
}

p {
    margin: 0 0 1.1em;
}

.meta {
    color: #777777;
    font-size: 15px;
}

.lang {
    font-size: 15px;
    margin-bottom: 1.5em;
}

.lang strong {
    color: #046416;
}

sup a:link, sup a:visited {
    text-decoration: none;
    font-size: 0.8em;
}

.table-wrap {
    overflow-x: auto;
    margin-bottom: 1.1em;
}

table {
    border-collapse: collapse;
    width: 100%;
    font-size: 15px;
    line-height: 1.5;
    background-color: rgba(255, 255, 255, 0.6);
}

th, td {
    border: 1px solid #cfcfcf;
    padding: 6px 10px;
    text-align: left;
    vertical-align: top;
}

th {
    color: #046416;
    background-color: rgba(4, 100, 22, 0.08);
}

ul {
    padding-left: 22px;
}

li {
    margin-bottom: 6px;
}

hr {
    border: none;
    height: 2px;
    background: url(../images/section-sep.png) repeat-x left top;
    margin: 2.5em 0 1.5em;
}

.afterword {
    font-style: italic;
    color: #666666;
}

ol.refs {
    font-size: 15px;
    line-height: 1.6;
    padding-left: 24px;
}

ol.refs li {
    word-break: break-word;
}

.back {
    margin-top: 2.5em;
    text-align: right;
}

@media (max-width: 600px) {
    body {
        font-size: 16px;
    }

    h1 {
        font-size: 26px;
    }

    header .logo {
        width: 100px;
        background-size: auto 24px;
        background-position: left center;
    }

    header nav a:link, header nav a:visited {
        margin-left: 10px;
        font-size: 11px;
    }
}
