:root {
    --background-color: #edf0f4;
    --foreground-color: #ffffff;
    --highlight-color: #404040;

    --content-color: #acacac;
    --header-color: #000000;
    --code-color: #a0c0a0;
    --link-color: #3498db;
    --bold-color: #d0a070;
}

/* force overflow to post-outer only */
html,
body {
    height: 100%;
    width: 100%;
    margin: 0;
}

/* global font */
body {
    background-color: var(--background-color);

    font-family: "Noto Sans Mono", monospace;
    font-variation-settings: "wdth" 100;
    font-optical-sizing: auto;
    font-weight: <weight>;
    font-style: normal;
    font-size: 14px;

    scroll-padding-top: constant(safe-area-inset-top);
    scroll-padding-top: env(safe-area-inset-top);
}
div#flex-stack {
    flex-direction: column;
    vertical-align: middle;
    display: flex;

    max-width: 900px;
    height: 100vh;
    margin: auto;
}

/* floating title bar */
div#title-outer {
    padding: 20px;
}

div#title-inner {
    background-color: var(--foreground-color);
    border-radius: 8px;

    text-align: center;
    padding: 3px;
    border-bottom: 2px solid var(--link-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* title is a hyperlink but inherits style of h2 */
div#title-inner > a {
    text-decoration: none;
    display: block;

    color: var(--header-color);
    margin-bottom: 0.83em;
    margin-top: 0.83em;
    font-weight: bold;
    font-size: 1.5em;
}

/* contain overflow entirely within posts-outer */
div#posts-outer {
    position: relative;
    overflow-y: auto;
}

div#posts-outer::-webkit-scrollbar {
    background-color: var(--background-color);
    width: 3px;
}

div#posts-outer::-webkit-scrollbar-track {
    background-color: var(--background-color);
}

div#posts-outer::-webkit-scrollbar-thumb {
    background-color: var(--highlight-color);
}

/* padding & etc */
div#posts-inner {
    padding-bottom: 20px;
    padding-right: 20px;
    padding-left: 20px;
}

div.post-spacer {
    height: 10px;
}

div.post {
    background-color: var(--foreground-color);
    padding: 3px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

div.content {
    color: var(--content-color);
    margin-right: 10px;
    margin-left: 10px;
}

/* horizontal flexbox title - name & timestamp */
div.post-title {
    flex-direction: row;
    display: flex;
}

a.post-title-name {
    color: var(--header-color);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.17em;

    margin-bottom: 5px;
    margin-top: 1em;
}

div.post-title-date {
    margin-bottom: 0px;
    text-align: right;
    margin-right: 0px;
    margin-left: auto;
    margin-top: auto;
    font-size: 12px;
    width: auto;
}

/* globally color links */
a {
    text-decoration: none;
    color: var(--link-color);
}

a:link:hover {
    text-decoration: underline;
}

a.readmore {
    text-decoration: none;
    font-size: 12px;
}

a.readmore:hover {
    text-decoration: none;
}

p.tag-container {
    font-size: 12px;
}

div#starship {
    position: fixed;
    display: block;
    z-index: 100;
    bottom: 10px;
    left: 0px;

    background: #303030;
    font-size: 13px;
    color: #d0a070;

    font-family: "Noto Sans Mono", monospace;
    font-variation-settings: "wdth" 100;
    font-optical-sizing: auto;
    font-weight: <weight>;
    font-style: normal;
    font-size: 14px;

    padding-bottom: 4px;
    padding-right: 4px;
    padding-left: 6px;
    padding-top: 4px;

    transform: translateX(calc(-100% + 26px));
    transition: 1s;
}

div#starship:hover {
    transform: translateX(10px);
}

div#grabber {
    display: inline-block;
    text-align: center;
    margin-left: 8px;
    width: 18px;
}

/* various other colors & styles */
b {
    color: var(--bold-color);
}

h1,
h2,
h3,
h4,
h5 {
    color: var(--header-color);
}

hr {
    border-top: 1px solid var(--highlight-color);
    border-color: var(--highlight-color);
    color: var(--highlight-color);
}

div.oldposts {
    margin: 0 auto;
    text-align: center;
}
