*,*::before,*::after {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    background: none;
    text-decoration: none;
    outline: none;
    font-family: inherit;
    line-height: inherit;
    font-weight: inherit;
    font-style: inherit;
    color: inherit;
    border: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale
}

:root {
    --color-bg: #ffffff;
    --color-text: #262626;
    --font-family: sans-serif;
    --font-size: 28px;
    --font-weight: 400;
    --font-style: normal;
    --l-text: 26rem;
    --font-scale-xs: 0.49;
    --font-scale-s: 0.553;
    --font-scale-m: 0.889;
    --font-scale-l: 1.226;
    --font-scale-xl: 1.402;
    font-size: var(--font-size);
    font-family: var(--font-family);
    font-style: var(--font-style);
    background: var(--color-bg);
    color: var(--color-text);
}

body, html {
    min-height: 100vh;
    font-size: 18px;
    line-height: 1rem;
}

body {
    margin: 0 auto;
}

ul {
    list-style: none;
}

li > a {
    color: #262626;
    font-weight: bold;
}

nav {
    max-width: 50rem;
    margin: 1rem auto 2rem auto;
    padding-right: 1rem;
    padding-left: 1rem;
	display: flex;
}

nav > h1 {
    display: inline-block;
    font-size: calc(var(--font-size) * var(--font-scale-m));
    margin-right: 0.5rem;
}

nav > h1 > a {
    color: #262626;
    text-decoration: none;
}

nav > ul {
    display: flex;
	flex-grow: 1;
}

nav > ul > li {
    display: inline-block;
    font-size: calc(var(--font-size) * var(--font-scale-s));
    margin-left: 0.25rem;
}

nav > ul > li:last-child {
    margin-left: auto;
}

main {
    max-width: 50rem;
    margin: 0 auto;
    padding-right: 1rem;
    padding-left: 1rem;
}

main > header {
    text-align: center;
    max-width: var(--l-text);
    margin: 0 auto;
}

main > header > h1 {
    font-size: calc(var(--font-size) * var(--font-scale-xl));
    line-height: 1.6rem;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
}

main > header > h2 {
    font-size: calc(var(--font-size) * var(--font-scale-l));
    line-height: 1.3rem;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
}

main > header > ul {
    list-style: none;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
    padding-bottom: 0.35rem;
    margin: 0 auto;
    font-size: calc(var(--font-size) * var(--font-scale-xs));
}

main > header > ul > li {
    display: inline;
}

main > header > ul > li > a:not(:last-child):after {
    content: ",";
}

.article-body {
    margin: 2rem auto;
}

.article-body p,.article-body h1,.article-body h2,.article-body h3,.article-body h4,.article-body h5,.article-body h6,.article-body ul,.article-body ol,.article-body dl,.article-body blockquote,.article-body pre {
    max-width: var(--l-text);
    margin-right: auto;
    margin-left: auto
}

.article-body p {
    margin-bottom: 0.5rem;
}

.article-body h1,.article-body h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-body blockquote {
    color: #6a737d;
    border-left: 0.25rem solid #dfe2ef;
    padding: 0 0.3rem;
    margin-bottom: 0.5rem;
}

.article-body a:not([class]) {
    color: #0366d6;
}

.article-body a:not([class]):hover {
    text-decoration: underline;
}

.article-body ol {
    padding-left: 2em;
    list-style-top: decimal;
}

.article-body ul {
    padding-left: 2em;
    list-style-type: disc;
}

.article-body em {
    font-style: italic;
}

.article-body strong {
    font-weight: bold;
}

.article-body table {
    border-color: grey;
    border-spacing: 0;
    border-collapse: collapse;
    overflow: auto;
    margin: 0 auto 1rem;
    table-layout: fixed;
    max-width: var(--l-text);
}

.article-body table tr {
    background-color: #ffffff;
    border-top: 1px solid #c6cbd1;
}

.article-body table th, .article-body table td {
    padding: 6px 13px;
    border: 1px solid #dfe2e5;
    font-weight: bold;
}

.article-body table tr {
    background-color: #fff;
    border-top: 1px solid #c6cbd1;
}

.article-body table tr:nth-child(2n) {
    background-color: #f6f8fa;
}

.article-body img {
    display: block;
    margin: 1rem auto;
    max-width: 100%;
}

.article-body hr {
    height: 0.2em;
    margin: 24px 0;
    background-color: #e1e4e8;
    border: 0;
}

.article-body code {
    padding: 0.2em 0.4em;
    margin: 0;
    font-size: 85%;
    border-radius: 3px;
    font-family: Menlo, monospace;
}

.article-body .codehilite {
    font-size: calc(var(--font-size) * var(--font-scale-s));
    max-width: var(--l-text);
    margin-top: 1rem;
    margin-bottom: 1rem;
    margin-left: auto;
    margin-right: auto;
    padding: 0.5rem;
	overflow: scroll;
}

.preview {
    border: 1px solid #b9b9b9;
    border-radius: 3px;
    width: fit-content;
    margin: 0 auto 1rem;
    padding: 10px;
    background: #f9f9a7;
    font-weight: bold;
}

.index {
    max-width: 50rem;
    padding-right: 1rem;
    padding-left: 1rem;
}

.index > ul {
    max-width: var(--l-text);
    margin: auto;
}

.index .tags {
    margin-bottom: 1rem;
}

.index .tags > li {
    display: inline-block;
    list-style: none;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
    margin: 0 auto;
    font-size: calc(var(--font-size) * var(--font-scale-xs));
}

.index .tags > li:not(:last-child):after {
    content: ",";
}

.index .tags .selected-tag {
    text-decoration: underline;
}

.no-posts {
    text-align: center;
    font-size: var(--font-size);
}

.post-footer {
    padding: 1rem;
    color: #262626;
    font-weight: bold;
    text-align: right;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: calc(var(--font-size) * var(--font-scale-s));
    max-width: 50rem;
    margin: 0 auto;
}
