/* Reset */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, 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;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

* {
    box-sizing: border-box;
}

/* automatic/manual light mode */
:root {
  color-scheme: light;
    --desktop-font-size: 1.2rem/1.5;
    --mobile-font-size: 1rem/1.4;
    --font-sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif,"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    --font-serif: Iowan Old Style, Apple Garamond, Baskerville, Times New Roman, Droid Serif, Times, Source Serif Pro, serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol;
    --font-mono: Menlo, Consolas, Monaco, Liberation Mono, Lucida Console, monospace;
}

body {
    /* color: var(--text-color); */
    background: var(--body-background-color);
    margin: 0 auto;
    max-width: 75ch;
    padding: 0 0.5rem;
}

/*html,*/
body {
    font: var(--desktop-font-size) var(--font-sans);
    letter-spacing: 1px;
    line-height: 1.5em;
    /* color: var(--text-color); */
    font-size: 99%;
}

h1,h2,h3,h4,h5,h6,p,blockquote,dl,img,figure {
    margin: 2rem 0;
}

h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.2; }
h1 { font-size: 200%; }
h2 { font-size: 150%; }
h3 { font-size: 120%; }
h4,h5,h6 { font-size: 100%; }
h5, h6 { text-transform: uppercase; }

header h1 { border-bottom: 1px solid; }

p { margin: 2rem 0; }

a, a:visited {
     color: var(--link);
}
a:hover, a:focus {
   color: var(--link-highlight);
}

strong, time, b { font-weight: 700; }
em, dfn, i { font-style: italic; }
sub { font-size: 60%; vertical-align: bottom; }
small { font-size: 80%; }

blockquote, q {
    background: var(--blockquote-background);
    border-left: 10px solid var(--blockquote-border);
    display: block;
    font-weight: 400;
    padding: 1rem;
}

blockquote p:first-child { margin-top: 0; }
blockquote p:last-child { margin-bottom: 0; }
cite {
    font-weight: 200;
    margin-top: 1rem;
}

kbd,code,samp,pre,var { font-family: var(--font-mono); font-size: 95%; }
code pre , pre code { padding: 0px; }
code pre , pre code { margin-top: 50px; }
pre {
  border: 1px solid #ddd;
  box-shadow: 5px 5px 5px #eee;
  padding: 1em;
  overflow-x: auto;
}
code {padding: 3px;}
p code {padding: 3px; background: var(--inline-code-background);}
li code {padding: 3px; background: var(--inline-code-background);}
li pre code {padding: 3px; background: none;}


hr {
    /* background: var(--text-color); */
    border: 0;
    height: 1px;
    margin: 4rem 0;
}

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

figure {
    border: 1px solid var(--primary-color);
    display: inline-block;
    padding: 1rem;
    width: 100%;
}
figure img { margin: 0 auto; }
figure figcaption { font-size: 80%; margin-top: 0.5rem; text-align: center; }

ul, ol { margin: 0rem 0; padding: 0 0 0 2rem; }
ul li { margin: 0rem 0; padding: 0 0 0 0rem; }
ul, ol, li, a {margin: 0;}
ul p { margin: 0rem 0; padding: 0 0 0 0; }

.highlight { margin: 1rem; }

dl dd { padding-left: 2rem; }

table {
    border-top: 1px solid var(--table-border);
    border-bottom: 1px solid var(--table-border);
    border-collapse: collapse;
    table-layout: fixed;
    text-align: left;
    display: block;
    overflow-x: auto;
    max-width: -moz-fit-content;
    max-width: fit-content;
    margin: 0 auto;
    border-spacing: 0;
    width: 100%;
}
table caption { margin: 2rem 0; }
table tbody tr:nth-child(even) { background: var(--table-even-child); }
table th { background: var(--table-header); font-weight: 700; }
th, td { padding: 5px; }
table thead th { border-bottom: 1px solid #ddd; }

.highlight table td pre {
    overflow-x: hidden;

}


.menu {
}

.menu a:hover{
}

.menu div{
    display:inline-block;
    padding-top: 0em;
    padding-right: 0.5rem;
}

.name {
    font-family: var(--font-serif);
    font-size: 250%;
    font-weight: bold;
    font-variant-caps: small-caps;
    padding: 2rem 0 0.5rem 0;
    color: var(--name-color);
}

header {
    /* border-bottom: 2px solid var(--text-color); */
    border-bottom: 2px solid black;
    padding-bottom: 1rem;
}

.tagrender {
    display: inline;
    padding-right: 1em;
}

.tagsrender {
  padding-bottom: 2em;
}

figure {
    margin: 0 auto;
}

.tagsdiv {
    /* border-top: 2px solid var(--text-color); */
    border-top: 2px solid black;
    font-size: small;
}

.footer {
    /* border-top: 2px solid var(--text-color); */
    border-top: 2px solid black;
    font-size: 75%;
    text-align: center;
}

.tagscounter {
    font-style: italic;
    font-size: 75%;
    padding-top: 2rem;
    display: inline-block;
}

.postmeta {
    font-size: 65%;
}

.tableofcontents {
  padding-top: 1em;
}

.content {
  padding-bottom: 2em;
}

.seriesrender {
    display: inline;
    padding-right: 1em;
    padding-bottom: 2em;
}

.serrender {
    padding-bottom: 1em;
}

.listheader {
  font-size: x-large;
  font-weight: bold;
  padding-bottom: 1em;
  padding-top: 1em;

}

.posttitle {
    font-size: 170%;
  font-weight: bold;
  font-variant-caps: small-caps;
  padding-top: 1rem;
}

lastmod {
  font-size: 65%;
}

.contactemailfooter {
    padding-top: 1rem;
    /* border-top: 2px solid var(--text-color); */
    border-top: 2px solid black;
}


@media screen and (max-width: 75ch) {
    body {
        font: var(--mobile-font-size) var(--font-sans);
        padding-left: 20px;
        padding-right: 20px;
    }
}

.hometitle {
    font-size: 100%;
    display: inline;
    /* border: 1px solid red; */
}

.homedate {
    font-size: 70%;
    /* border: 1px solid red; */
    padding-bottom: 0.5rem;
}

.posttags a {
    font-size: 75%;
    color: var(--link);
    border: 1px solid none;
    background-color: var(--tags-background);
    display: inline-block;
    margin-right: 10px;
    padding: 0px 6px;
    margin-top: 9px;
    border-radius: 15px;
}

.posttags a:hover {
    color: var(--link-highlight);

}

.menu a {
    /* color: var(--text-color); */
    /* border: 1px solid var(--tertiary-color); */
    display: inline-block;
    margin-right: 10px;
    padding: 1px 6px;
    margin-top: 9px;
    border-radius: 5px;
    text-decoration: none;
}

.menu a:hover {
    /* border: 1px solid var(--link-highlight); */
}

.kb-club a {
	text-decoration: none;
  color: black;
  padding: .25rem 0;
  font-family: monospace;
  background: lightgreen;
}

.kb-club {
    margin-bottom: 35px;
    font-size: 125%;
}

.kb-club-bg,
.kb-club-no-bg {
	padding: .25rem .5rem;
}

.club img {
  margin-left: auto;
  margin-right: auto;
}
