/* @import url(//fonts.googleapis.com/css?family=Open+Sans:300,400,700,600); */
/* @import url(//fonts.googleapis.com/css?family=Inconsolata); */

:root {
    --body-font: georgia, 'times new roman', serif;
    --header-font: sans-serif;
    --banner-font: georgia, 'times new roman', serif;
    --code-font: monospace;
}

html {
    line-height: 1.58;
}

.tightlines {
    line-height: 1.15;
}

body {
    margin-top: 0;
    font-size: 1.25rem;
}

body, table {
    font-family: var(--body-font);
    font-weight: 300;
}

h1, h2, h3, h4, h5, h6, th {
    font-family: var(--header-font);
    font-weight: normal;
    line-height: 1.15;
}

b, strong {
    font-weight: bold;
}

.comment-container {
    margin-top: 3em;
}

.comment-container a.about-comments {
    color: black;
    text-decoration: none;
}

.comment-container .comment-anchor {
    color: black;
    text-decoration: none;
}

.comment-container .comment {
    margin-top: 1em;
    padding-top: 0.2em;
    border-top: solid #ccc 1px;
}

.comment-container .comment-author {
    font-family: var(--body-font);
}

.comment-container .comment-date {
    font-family: var(--body-font);
    font-size: 80%;
    color: #888;
}

.comment-container .comment-in-reply-to {
    font-family: var(--body-font);
    font-size: 80%;
}

.comment-container .comment-text {
    margin-left: 2em;
}

.redacted {
	color: black;
	background-color: black;
}

.footnotes {
  font-size: 80%;
}

.center { text-align: center; }
.vcenter { vertical-align: middle; }

.floatleft  { float: left;  line-height: 1.15; }
.floatright { float: right; line-height: 1.15; }
.clear      { clear: both;  }

#page {
}

.limit-width {
    max-width: 40rem;
}

#banner_img {
    width: 100%;
    vertical-align: bottom;
    min-height: 99px;
    max-height: 99px;
    object-fit: cover;
}

#banner h1 {
    position: relative;
    bottom: 1.5em;
    right: 0.5em;
    height: 0;
    text-align: right;
    paddingx-bottom: 0.2em;
    margin: 0;
    font-size: 2.5rem;
    font-family: var(--banner-font);
    font-weight: 600;
    text-shadow: white 0 0 3px;
}

#banner h1 a {
    text-decoration: none;
    color: black;
}

#menu {
    border-top: solid black 2px;
    padding-top: 0.4em;
    text-align: center;
    background-color: #eee;
}

#content {
    margin: 2rem auto 2rem auto;
    max-width: 48rem;
}

#content_inner > * {
    padding: 0 0.5rem;
}

body.post #content_inner > * {
    padding: 0;
}

body.post #content_inner > .story {
    clear: both;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    padding: 0 0 2rem 0;
}

#footer {
    margin-top: 1em;
    text-align: center;
    background-color: #eee;
    padding-bottom: 0.4em;
    border-bottom: solid black 2px;
}

.story > * {
    margin: 0 0.5rem;
    min-width: 0;
    /* border: solid red 3px; */
}

.hfill {
    flex: 9999 1 0;
    margin: 0;
    min-width: 0;
    width: 0;
}

.story-title {
    width: 100%;
    width: calc(min(100%, 100vw - 1rem));
}

.story-title > h2 {
}

.story-meta {
    flex: 1 1 auto;
    width: 6rem;
    max-width: 40rem;
}

.story-date {
    /* display: flex; */
    /* flex-direction: column; */
    background: black;
    color: white;
    text-transform: uppercase;
    padding: 1rem;
    text-align: right;

    margin-top: 0.5rem;
    margin-bottom: 0;
}

.story-date > .day-of-month {
    font-size: 150%;
}

.story-date > .time {
    margin-top: 0.5rem;
    font-size: 46.666%;
}

.story-details {
    margin: 0;
    font-size: 50%;
}

.story-details .author.non-site-author {
    margin-top: 0.5rem;
}

.story-details > * {
    margin-bottom: 0.5rem;
}

.story-details .tags > a {
    display: block;
}

.story-title a, .story-details .author a {
    text-decoration: none;
    color: inherit;
}

.author .avatar {
    display: block;
    float: left;
    line-height: 0;
    margin-bottom: 0.333rem;
    margin-right: 0.5rem;
}

.story-main {
    flex: 0 1 40rem;
    max-width: 40rem;
}

iframe {
    margin: auto;
    display: block;
}

ul, ol {
    padding-left: 2em;
}

section.story-body > ul,
section.story-body > ol {
    clear: left;
}

ol { list-style-type: decimal; }
ol ol { list-style-type: lower-alpha; }
ol ol ol { list-style-type: lower-roman; }
ol ol ol ol { list-style-type: decimal; }

hr {
    border: none;
    border-bottom: solid #ccc 1px;
    height: 1px;
}

h5 {
  font-size: 1.2rem;
  margin: 1.5em 0 0 0;
}

pre, code {
    font-family: var(--code-font);
    font-size: 1rem;
}

pre.code, pre code {
    display: block;
    font-size: 0.8rem;
    color: #060;
}

code {
    color: #060;
}

a code {
    color: #06c;
}
a:visited code {
    color: #868;
}

code > span {
    background: white;
}

table {
	margin-top: 0.5em;
	margin-bottom: 0.5em;
	border-collapse: collapse;
	border: none;
	font-size: 80%;
}

table.columnar {
	border: solid black 1px;
}

table td {
	border-right: solid gray 1px;
	border-bottom: solid gray 1px;
	padding: 0.125em;
	padding-left: 0.5em;
	padding-right: 0.5em;
}

table.columnar td {
	border-bottom: none;
	border-right: solid black 1px;
}

table th {
	border: solid black 1px;
	text-align: left;
	padding: 0.125em;
	padding-left: 0.5em;
	padding-right: 0.5em;
}

table.columnar th {
	border-bottom: solid gray 1px;
}

table tr {
	vertical-align: top;
}

table.columnar tr {
}

th.noborder {
    border: none;
}

table.noborder td, table.noborder th {
    border: none;
}

blockquote {
    margin-left: 1rem;
    border-left: solid #ccc 1rem;
    padding-left: 1rem;
    color: #444;
    font-size: 90%;
}

span.draft {
}

span.highlight {
    background: #ff8;
    font-weight: 400;
}

figure.highlight {
    margin: inherit;
}

figure.insetfigure {
    float: right;
    max-width: 12.333rem;
    margin: 0 0 1em 1em;
}

figure.insetfigure._50 {
    max-width: 19rem;
}

figure.insetfigure.floatleft {
    float: left;
    margin: 0 1em 1em 0;
}

figure.figurerow {
    clear: both;
    display: flex;
    justify-content: space-between;
    margin: 0 -0.5em;
}

figure.figurerow > p {
    flex: 1;
    margin: 0 0.5em;
}

figure > p img {
    display: block;
    max-width: 100%;
}

figure > p {
    font-size: 80%;
}

figure.insetfigure > p:first-child {
    margin-top: 0.5em;
}

figure.insetfigure > p:last-child {
    margin-bottom: 0;
}

.video-wrapper {
    /* After https://css-tricks.com/fluid-width-video/ */
    position: relative;
    padding-bottom: 56.25%;
    padding-bottom: calc(var(--aspect-ratio, 0.5625) * 100%);
    height: 0;
    clear: both;
}
.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/*---------------------------------------------------------------------------*/

@media (max-width: 48.5rem) {
    /* #banner_img { visibility: hidden; } #banner { background: blue; } */
    .limit-width {
        max-width: 100%;
    }
    #content {
        max-width: 40rem;
    }

    .story {
        display: block !important;
    }
    .story-meta {
        float: left;
        max-width: 6rem;
        margin-right: 0.666rem;
        margin-bottom: 1rem;
        margin-left: 0.333rem;
        background: #eee;
    }
    .story-date {
        margin-top: 0;
    }
    .story-details {
        margin-left: 0.1rem;
        font-size: 50%;
    }
    .avatar {
        margin-left: -0.1rem;
        width: 100%;
    }

    .story-main img {
        max-width: 100%;
    }

    figure.insetfigure {
        max-width: 100% !important;
        float: none;
        margin: 0;
    }
}

@media (max-width: 32rem) {
    body {
        font-size: 1rem;
    }
    .story-meta {
        max-width: 5rem;
    }
    .story-details {
        font-size: 62.5%;
    }
}
