/* Google fonts, provided locally for privacy. */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/JetBrains_Mono/static/JetBrainsMono-Regular.ttf) format('truetype');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/JetBrains_Mono/static/JetBrainsMono-Bold.ttf) format('truetype');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/JetBrains_Mono/static/JetBrainsMono-Italic.ttf) format('truetype');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/JetBrains_Mono/static/JetBrainsMono-BoldItalic.ttf) format('truetype');
}
@font-face {
  font-family: 'Cabin';
  font-style: normal;
  font-weight: 400;
  font-stretch: normal;
  font-display: swap;
  src: url(/fonts/Cabin/static/Cabin-Regular.ttf) format('truetype');
}
@font-face {
  font-family: 'Cabin';
  font-style: normal;
  font-weight: 700;
  font-stretch: normal;
  font-display: swap;
  src: url(/fonts/Cabin/static/Cabin-Bold.ttf) format('truetype');
}
@font-face {
  font-family: 'Cabin';
  font-style: italic;
  font-weight: 400;
  font-stretch: normal;
  font-display: swap;
  src: url(/fonts/Cabin/static/Cabin-Italic.ttf) format('truetype');
}
@font-face {
  font-family: 'Cabin';
  font-style: italic;
  font-weight: 700;
  font-stretch: normal;
  font-display: swap;
  src: url(/fonts/Cabin/static/Cabin-BoldItalic.ttf) format('truetype');
}
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/Lora/static/Lora-Regular.ttf) format('truetype');
}
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/Lora/static/Lora-Bold.ttf) format('truetype');
}
@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/Lora/static/Lora-Italic.ttf) format('truetype');
}
@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/Lora/static/Lora-BoldItalic.ttf) format('truetype');
}

:root {
    --symbol-fonts: "Arial Unicode", "Apple Symbols", "Symbol", "Symbola_hint";
    --body-family: "Lora", serif, var(--symbol-fonts);
    --title-family: "Cabin", sans-serif, var(--symbol-fonts);
    --mono-family: "JetBrains Mono", monospace, var(--symbol-fonts);
    font-size: 16pt;
    line-height: 1.5;
}

html {
    margin: 0;
    background-color: #fffff8;
    height: 100%;
}

body {
    margin: 0;
    margin-left: auto;
    margin-right: auto;
    max-width: 50rem;
    font-family: var(--body-family);
    height: 100%;
}

article {
    height: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

article main {
    flex: 1;
}

.article > header {
    min-height: 7rem;
    padding-left: 1rem;
    margin-bottom: 0;
    border-bottom: 2px solid #777777;
    text-align: left;
}

.article > header > h1 {
    margin-top: 3rem;
    margin-bottom: 0;
}

.article > header > h2 {
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.article > header h1 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    padding-top: 2.5rem;
}

.article > header .tagline {
    display: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--title-family);
}

h1 {
    font-size: 1.728rem;
}

h2 {
    font-size: 1.44rem;
    font-weight: normal;
}

h3 {
    font-size: 1.1rem;
    font-weight: normal;
}

body.home nav.top {
    display: none;
}

nav.bottom {
    display: block;
    margin-bottom: 1rem;
    font-size: 80%;
    color: #555555;
    border-top: 1px solid #777777;
    padding-top: 0.25rem;
}

main {
    padding-top: 1rem;
    margin-left: 1rem;
    margin-right: 1rem;
    max-width: 50rem;
    margin-bottom: 1in;
}

img.banner {
    float: right;
    padding-top: 1rem;
    max-width: 192px;
}

.left {
    float: left;
    padding-right: 1rem;
}

.right {
    float: right;
    padding-left: 1rem;
}

code {
    font-size: 85%;
}

a, a:visited {
    text-decoration: underline;
    color: blue;
}

footer {
    padding-bottom: 3rem;
}

.footnotes .footnote {
    padding-left: 1rem;
}

@media screen and (min-width: 600px) {
    nav.top {
        background-color: rgb(214, 220, 232);
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
        padding-left: inherit;
        text-align: center;
        font-size: 80%;
    }

    nav.top p {
        display: none;
    }

    nav.top ul::after {
        content: " ❧";
    }

    nav.top ul {
        display: inline;
    }

    nav.top ul li::before {
        content: "❧ ";
    }

    nav.top ul li {
        display: inline;
    }

    .article > header .tagline {
        font-size: 1rem;
        display: block;
        position: absolute;
        right: 3rem;
        top: 2rem;
        color: rgba(255,255,255, 0.85);
        font-style: italic;
        font-weight: normal;
    }
}
