:root {
    --bg-color: #ffffff;
    --delimiter-color: #e7e7e7;
    --header-footer-bg-color: #fafafa;
    --header-footer-height: 30px;
    --link-color: #6495ed;
    --text-color-primary: #5c5c5c;
    --text-color-secondary: #afafaf;
    --thumbnail-border-color: #e7e7e7;
}

.dark-mode {
    --bg-color: #333333;
    --delimiter-color: #5c5c5c;
    --header-footer-bg-color: #262626;
    --text-color-primary: #d1cece;
    --text-color-secondary: #908686;
    --thumbnail-border-color: #d1cece;
}

* {
    margin: 0;
    padding: 0;
}

body {
    color: var(--text-color-primary);
    background-color: var(--bg-color);
    font-size: 14px;
    font-family: -apple-system,system-ui,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
}

a {
    text-decoration: none;
    color: var(--link-color);
}

h1, h2, h3, h4, h5 {
    font-weight: 350;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: 100%;
}

div#landing {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

div#landing header {
    position: fixed;
    width: 100%;
    height: var(--header-footer-height);
    padding: 20px;
    border-bottom: 1px solid var(--delimiter-color);
    background-color: var(--header-footer-bg-color);
}

div#landing header div#header-wrap {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: var(--header-footer-height);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

div#landing header div#header-wrap div#header-left {
    display: flex;
    flex-direction: row;
    justify-content: start;
}

div#landing header div#header-wrap div#header-left > span {
    font-weight: 500;
    margin-right: 15px;
}

div#landing header div#header-wrap div#header-right {
    display: flex;
    flex-direction: row;
    justify-content: end;
    align-items: center;
}

div#landing header div#header-wrap img {
    height: 30px;
    width: 30px;
    margin-right: 40px;
}

nav ul li {
    display: inline;
    margin-left: 5px;
}

div#landing main {
    flex: 1;
    flex-grow: 1;
    margin-top: 80px;
}

div#landing main div#body-wrap {
    margin-top: 20px;
    margin-bottom: 40px;
    margin-left: auto;
    margin-right: auto;
    max-width: 40rem;
    padding: 1rem;
}

div#landing footer {
    border-top: 1px solid var(--delimiter-color);
    background-color: var(--header-footer-bg-color);
    height: var(--header-footer-height);
    flex-shrink: 0;
    padding: 20px;
}

div#landing footer div#footer-wrap {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    height: var(--header-footer-height);
}

ul#posts {
    list-style-type: none;
}

ul#posts li {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

div#post img#thumbnail {
    width: -moz-fill-available;
    width: -webkit-fill-available;
    width: fill-available;
    border: 2px solid var(--thumbnail-border-color);
    border-radius: 15px;
}

div#post span.label {
    font-style: italic;
    font-size: 0.75rem;
    color: var(--text-color-secondary);
}

div#post h1#title {
    margin-top: 20px;
}

div#content {
    margin-top: 20px;
    margin-bottom: 20px;
    font-size: 1.15rem;
    line-height: 1.5;
    font-weight: 350;
}

div#post div#content strong {
    font-weight: 550;
}

div#content p {
    margin-bottom: 30px;
}

div#post div#content h3 {
    margin-bottom: 15px;
}

div#post div#content ul {
    margin-left: 20px;
    margin-bottom: 30px;
}

div#post div#content p + ul {
    margin-top: -30px;
}

div#post div#post-date {
    margin-top: 30px;
    text-align: center;
}

div#post div#content table {
    border-spacing: 0;
    border: 1px solid var(--text-color-secondary);
}

div#post div#content table th {
    font-weight: normal;
    color: var(--bg-color);
    background-color: var(--text-color-secondary);
    padding: 5px;
    text-align: left;
}

div#post div#content table td {
    padding: 5px;
}

div#post div#content table.habit tr td {
    color: #5c5c5c;
}

div#post div#content table.habit tr td:first-of-type, div#post div#content table.habit tr td:nth-of-type(2) {
    text-align: right;
}

div#post div#content table.habit tr.habit-blue td {
    background-color: #b0e5f4;
}

div#post div#content table.habit tr.habit-green td {
    background-color: #b0f4bc;
}

div#post div#content table.habit tr.habit-red td {
    background-color: #f4b0bc;
}
