:root {
    --heading-font: "Arial", sans-serif;
    --body-font: "Georgia", serif;
    --font-size: 22px;
}

html {
    font-family: var(--body-font);
    font-size: var(--font-size);
}

html:fullscreen {
    font-size: 24px;
}

h1, h2, h3, h4, h5, h6, .wordmark, #nav-main ul li a {
    font-family: var(--heading-font);
    letter-spacing: -1px;
}

body {
    min-height: 100vh;
}

body::-webkit-scrollbar {
    display: none;;
}

main {
    height: inherit;
    display: flex;
    flex-direction: column;
    justify-content: stretch;
}

.fixed {
    position: fixed;
    top: 0;
}

#actions {
    width: 100%;
    padding: .5rem;
}

#actions button:first-of-type {
    margin-right: 1rem;
}

#actions button {
    background: transparent;
    border: none;
    width: fit-content;
    padding: 0;
}

#actions button:hover {
    color:aquamarine !important;
}

.aligned.right {
    justify-content: flex-end;
}

.flex {
    display: flex;
}

.flex.row {
    flex-direction: row;
}

.space-between {
    justify-content: space-between;
}

.align-center {
    align-items: center;
}

.align-end {
    align-items: flex-end;
}

.centered {
    align-items: center;
    justify-content: center;
}

.flex.col {
    flex-direction: column;
}

.footer-info {
    width: 100%;
    justify-content: center;
}

.flex-end {
    justify-content: flex-end;
}

.flex.footer-info {
    gap: 1rem;
}

.footer-info .flex.col {
    min-width: 250px;
}

.gap-1 {
    gap: 1rem;
}

.wrap {
    flex-wrap: wrap;
}

footer {
    position:relative;
}

.post {
    margin-bottom: 1em;
}

.wordmark {
    font-size: 2em;
    text-transform: uppercase;
    font-weight: 600;
}

.icon span {
    display: inline-block;
    width: fit-content;
    height: fit-content;
}

.icon svg {
    width: 1em;
    height: 1em;
    margin-right: .4em;
}

.hide {
    display: none;
}

.icon:hover {
    color: inherit !important;
}

html[data-theme="dark"] .icon,
html[data-theme="dark"] #actions button {
    color: white;
}

html[data-theme="light"] .icon,
html[data-theme="light"] #actions button {
    color: #24333e;
}

.mb-0 {
    margin-bottom: 0;
}

.m-0 {
    margin-bottom: 0;
}

.pills {
    margin-top: 1em;
}

.pill {
    background-color: #237fc0;
    display: inline-block;
    border-radius: .25em;
    line-height: 1em;
    padding: .5em .5em;
    color: white;
}

.footnotes p {
    margin: 0;
}

.book-notes {
    flex-grow: 0;
    width: 80ch;
}

#content {
    max-width: 70ch;
}

.optional summary {
    margin: 0px;
    font-weight: bold;
}

.book {
    border: solid black 2px;
    padding: .2em;
    background: rgb(235, 235, 235);
    height: min-content;
}

.text-center {
    text-align: center;
}

.book figcaption {
    text-align: center;
    padding: 0;
}

.book-list hgroup p {
    margin-bottom: 0px;
}

.summary p {
    margin-bottom: 0px;
}

.content > p {
    letter-spacing: .06em;
    line-height: 1.6;
}

.content > p:not(:first-of-type) {
    text-indent: 1em;
}

.content code {
    text-indent: 0;
}

@supports (initial-letter: 2) or (-webkit-initial-letter: 2) {
    .content > p:first-of-type::first-letter {
        -webkit-initial-letter: 2;
        -moz-initial-letter: 2;
        initial-letter: 2;
        margin: 0 .25em;
    }
}

.category-article h2,
.category-article p {
    margin-bottom: 0px;
}

.blackbear {
    background:
        linear-gradient(rgba(255, 255, 255, 0.65), rgba(255,255,255, 1.0) 45%), 
        url("/images/blackbear.jpg") no-repeat center center / cover local content-box;
}

@media (max-width: 1440px) {
    .blackbear {
        background:
            linear-gradient(rgba(255, 255, 255, 0.65), rgba(255,255,255, 1.0) 35%), 
            url("/images/blackbear.jpg") no-repeat top center / contain local content-box;
    }
}

@media (max-width: 840px) {
    .blackbear {
        background:
            linear-gradient(rgba(255, 255, 255, 0.35), rgba(255,255,255, 1.0) 10%), 
            url("/images/blackbear.jpg") no-repeat top center / contain local content-box;
    }
}

