body {
    --background: #111;
    --background-2: #252525;
    --background-3: #444;
    --color: #fffbe3;
    --color-2: #d0c895;
    --color-3: #999;
    --content-width: 800px;

    background: var(--background);
    color: var(--color);
    font-family: "Reckless", serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wrapper {
    max-width: var(--content-width);
    width: calc(100% - 40px);
    padding-left: 20px;
    padding-right: 20px;
    margin-bottom: 100px;
    min-height: 100vh;
}

code {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.8em;
    color: var(--color-2);
}

p, h1, h2, h3, h4, h5, h6, li {
    font-size: 1.3rem;
}

h1:before, h2:before, h3:before, h4:before, h5:before, h6:before {
    font-family: "Reckless", serif;
    color: var(--color-2);
    margin-right: 10px;
}

h1 {
    font-size: 2em;
    margin: 0;
    margin-top: 50px;
}
h1:before {
    content: '#';
    /*margin-left: -27px;*/
}
h2 {
    font-size: 1.7em;
    margin: 0;
    margin-top: 50px;
}
h2:before {
    content: '##';
    /*margin-left: -27px;*/
}
h3 {
    font-size: 1.4em;
    margin: 0;
    margin-top: 50px;
}
h3:before {
    content: '###';
    /*margin-left: -27px;*/
}
h4 {
    font-size: 1.3rem;
    color: var(--color-2);
    margin: 0;
    margin-top: 50px;
}
h4:before {
    content: '####';
    /*margin-left: -27px;*/
}
h5 {
    font-size: 1.3rem;
    color: var(--color-2);
    margin: 0;
    margin-top: 50px;
}
h5:before {
    content: '#####';
    /*margin-left: -27px;*/
}
h6 {
    font-size: 1.3rem;
    color: var(--color-2);
    margin: 0;
    margin-top: 50px;
}
h6:before {
    content: '######';
    /*margin-left: -27px;*/
}

a {
    color: #dfdbc3;
}

p {
    margin: 20px 0 0;
    padding: 0;
}

.feed-item {
    margin: 30px 0;
    background: var(--background-2);
    padding: 15px;
    border: 1px solid var(--background-3);
}

.feed-item .tag, .secondary {
    color: var(--color-2);
    font-style: italic;
}

.secondary {
    font-size: 0.8em;
}

.button-links a {
    margin-right: 10px;
}

.obsidian {
    font-family: "Obsidian", serif;
}

.hero {
    font-family: "Obsidian", serif;
    font-size: 11em;
    margin-top: 0;
}

.hero-2 {
    font-size: 3rem;
    margin-top: 10px;
    margin-bottom: 30px;
    font-weight: bold;
}

nav {
    margin-top: 25px;
    padding-bottom: 25px;
    margin-bottom: 25px;
    border-bottom: 1px solid #7f7b63;
    /*margin-bottom: 150px;*/
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 30px;
}

nav ul a {
    color: #fffbe3;
    text-decoration: none;
}

nav ul a:hover {
    color: #cfcbb3;
}

blockquote {
    border-left: 2px solid var(--color-2);
    color: var(--color-2);
    padding-left: 10px;
    margin-left: 10px;
}

blockquote p {
    font-size: 1em;
    margin: 0;
}

img {
    max-width: 100%;
}

.blog.content-wrapper img {
    height: auto !important;
    margin-top: 25px;
}

center {
    margin: 0 20px;
    color: var(--color-2);
}

pre {
    overflow-x: scroll;
}

hr {
    border-color: var(--color-2);
    margin: 30px 0;
}

button {
    border: 1px solid var(--background-3);
    color: var(--color-2);
    background: var(--background-2);
    padding: 3px 15px;
    margin: 15px 0;
    transition: all 0.1s linear;
}

button:hover {
    cursor: pointer;
    color: var(--color);
    background: var(--background);
    border-color: var(--color-2);
}

ul li {
    margin: 3px 0;
}

ul.plain {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

ul.plain li {
    margin: 20px 0;
}

.italic {
    font-style: italic;
}

#about {
    margin-top: 50px;
}

footer {
    width: 100%;
    min-height: 300px;
    background-color: #ffffff08;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

footer .obsidian {
    font-size: 4em;
    margin-right: 30px;
    padding-right: 30px;
    border-right: 1px solid #fffbe1;
}

footer p {
    margin: 5px 0 0;
}

.inline-markmark-logo {
    height: 16pt;
    margin-bottom: -3px;
    opacity: 0.75;
}

table, td, th {
    border: 1px solid var(--color-2);
    border-collapse: collapse;
}

td, th {
    padding: 7px;
}

.ws-nowrap {
    white-space: nowrap;
}

.photo-exif {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin-top: 30px;
    margin-bottom: 30px;
    width: calc(var(--content-width) + 260px);
}

.photo-exif .img-wrapper img {
    margin: 0;
    border-radius: 15px;
    max-height: calc(100vh - 20px);
    width: auto;
}

.photo-exif .exif-wrapper {
    min-width: 250px;
}

.photo-exif .exif-wrapper ul {
    list-style-type: none;
    margin: 0;
    color: var(--color-3);
    background: var(--background-2);
    padding: 10px;
    border-radius: 15px;
}

.photo-exif .exif-wrapper ul li {
    display: flex;
    flex-direction: row;
    margin: 7px 0;
}

.photo-exif .exif-wrapper ul li svg {
    min-width: 24px;
    max-width: 24px;
    min-height: 24px;
    max-height: 24px;
    margin-right: 7px;
}

.photo-exif .exif-wrapper ul .title {
    color: var(--color);
    font-style: italic;
}

/* https://keepandroidopen.org/ */
.kao-banner {
    width: 100%;
}

@media screen and (max-width: 1270px) {
    /* 1020px = 800px (max content width) + 470px (.photo-exif title card width * 2) */
    /* Below that, reformat for portrait mode. */
    .photo-exif {
        flex-direction: column;
        width: unset;
    }

    .photo-exif .exif-wrapper ul {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0 20px;
    }

    .photo-exif .exif-wrapper ul .title {
        flex-basis: 100%;
    }
}

@media screen and (max-width: 500px) {
    nav ul {
        flex-direction: column;
        gap: 20px;
    }

    footer {
        flex-direction: column;
        align-items: start;
    }

    footer .obsidian, footer p {
        margin: 0 50px;
    }

    footer .obsidian {
        border-right: unset;
        margin-bottom: 20px;
    }
}
