:root {
    background-color: var(--gray-900);
    color: white;
    font-size: 14px;
    line-height: 1.4;
    --body-font: "Verdana", sans-serif;
    --header-font: Georgia, serif;
    --header-line-height: 1.8;
    --header-font-size: 1.5rem;
    --gray-1000: #0a0a0a; /* Darkest */
    --gray-900: #1e1e1e; /* Background */
    --gray-800: #2a2a2a; /* Subtle backgrounds */
    --gray-700: #333333; /* Code */
    --gray-600: #444444; /* Borders */
    --gray-500: #666666; /* */
    --gray-400: #888888; /* Secondary text */
    --gray-300: #aaaaaa; /* */
    --gray-200: #cccccc; /* */
    --gray-100: #eeeeee; /* Lightest */
}

::selection {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

::-moz-selection {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

body {
    font-family: var(--body-font);
    margin: auto;
    max-width: 764px;
    padding: 24px;
}

.title {
    font-size: 2.5rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--header-font);
    line-height: var(--header-line-height);
    font-size: var(--header-font-size);
}

main {
    margin-top: 34px;
    margin-bottom: 34px;
}

header {
    border-bottom: solid 1px var(--gray-600);
    padding-bottom: 12px;
    margin-bottom: 16px;
    align-content: baseline;
    display: flex;
    flex-direction: row;
    gap: 4px;
    align-items: center;
}

header a {
    text-decoration: none;
}

header a:hover {
    text-decoration: none;
}

footer {
    border-top: solid 1px var(--gray-600);
    padding-top: 12px;
    padding-bottom: 24px;
}

.copy {
    color: white;
}

.copy .symbol {
    font-family: Arial, sans-serif;
}

.tags {
    margin-top: 8px;
    font-style: italic;
    color: var(--gray-400);
}

.tags a {
    color: var(--gray-400);
}

.tags a:hover {
    color: var(--gray-400);
    opacity: 0.8;
}

.tags::before {
    content: "* * *";
    display: block;
    text-align: left;
    color: var(--gray-600);
    font-size: 1.5em;
    margin: 24px 0 8px 0;
}

.list li {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: start;
}

.list time {
    white-space: nowrap;
}

.content-wrap {
    margin: auto;
    max-width: 764px;
    padding: 24px;
}

details {
    cursor: pointer;
    margin-top: 16px;
}

summary {
    color: var(--gray-400);
}

nav a {
    border: solid 1px var(--gray-600);
    padding-bottom: 2px;
    padding-left: 4px;
    padding-right: 4px;
    text-decoration: none;
}

nav a:hover {
    text-decoration: none;
    background-color: var(--gray-800);
}

nav {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.menu-list {
    margin-top: 12px;
}

.menu-list p {
    margin-bottom: 0;
}

.socials {
    display: flex;
    flex-direction: row;
    gap: 6px;
    margin-top: 4px;
}

a {
    color: white;
}

a:hover {
    color: white;
    opacity: 80%;
}

a[href^="/"]:not([href^="//"]),
a[href*="tseeley.com"],
a[href*="127.0.0.1"],
a[href*="localhost"] {
    text-decoration: underline solid 1.5px;
}

a[href^="http"]:not([href*="tseeley.com"]):not([href*="127.0.0.1"]):not(
        [href*="localhost"]
    ),
a[href^="mailto:"] {
    text-decoration: none;
    background-image: linear-gradient(
        to right,
        currentColor 50%,
        transparent 50%
    );
    background-size: 4px 1.5px;
    background-position: 0 100%;
    background-repeat: repeat-x;
}

h1 a.zola-anchor,
h2 a.zola-anchor,
h3 a.zola-anchor,
h4 a.zola-anchor,
h5 a.zola-anchor,
h6 a.zola-anchor {
    text-decoration: none;
}

h1 a.zola-anchor:hover,
h2 a.zola-anchor:hover,
h3 a.zola-anchor:hover,
h4 a.zola-anchor:hover,
h5 a.zola-anchor:hover,
h6 a.zola-anchor:hover {
    text-decoration: underline solid 1.5px;
    opacity: 1;
}

header a,
header a:hover,
nav a,
nav a:hover,
.list a,
.list a:hover {
    text-decoration: none !important;
}

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

ol {
    margin-top: 0;
}

article ul:not(.list),
main ul:not(.list) {
    padding-left: 40px;
}

article ul:not(.list) li,
main ul:not(.list) li {
    list-style-type: square;
    position: relative;
}

article ol,
main ol {
    padding-left: 40px;
}

article ol li,
main ol li {
    position: relative;
}

.intro {
    margin-bottom: 24px;
}

.list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.list li {
    display: block;
}

.list a {
    text-decoration: none;
}

.list
    a[href^="http"]:not([href*="tseeley.com"]):not([href*="127.0.0.1"]):not(
        [href*="localhost"]
    ),
.list a[href^="mailto:"] {
    background-image: none;
}

.list .project-description {
    margin-left: 4px;
}

.list time,
.list .count {
    margin-left: 4px;
}

time {
    font-style: italic;
    color: var(--gray-400);
}

.count {
    font-style: italic;
    color: var(--gray-400);
}

pre {
    padding-top: 12px;
    padding-bottom: 12px;
    padding-left: 12px;
    padding-right: 12px;
    overflow-x: auto;
}

h2 {
    margin-bottom: 14px;
}

.subtitle {
    margin-top: 0;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
}

.subtitle time {
    margin: 0;
}

strong,
b {
    font-weight: bold;
}

.log {
    margin-bottom: 4px;
}

.log p {
    margin-bottom: 0;
    margin-top: 4px;
}

.log time {
    margin: 0;
}

.project-description {
    color: var(--gray-400);
    font-style: italic;
    /*vertical-align: baseline;*/
}

.project-description a {
    color: var(--gray-400);
}

.header-img {
    margin-top: 10px;
}

p {
    margin-bottom: 8px;
}

.list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.list a {
    text-decoration: none;
    /*vertical-align: baseline;*/
}

.list p {
    margin-bottom: 2px;
    margin-top: 2px;
}

:not(pre) > code {
    background-color: var(--gray-700);
    padding: 2px 4px;
    border-radius: 1px;
    font-family: monospace;
    font-size: 0.9em;
}

aside {
    margin-top: 20px;
    margin-bottom: 20px;
    padding-left: 16px;
    padding-right: 8px;
    padding-top: 8px;
    padding-bottom: 8px;
    background-color: var(--gray-800);
    box-shadow: inset 4px 0 0 var(--gray-600);
}

@media screen and (min-width: 550px) {
    .content-wrap {
        display: grid;
        grid-template-columns: 1fr 150px;
        grid-template-areas:
            "header header"
            "main nav"
            "footer footer";
        gap: 24px;
        align-items: start;
    }

    header {
        grid-area: header;
    }

    .title {
        margin-top: 0;
    }

    main {
        grid-area: main;
        margin-top: 0;
    }
    nav {
        margin-top: 0;
        grid-area: nav;
        flex-direction: column;
        align-items: flex-end;
    }

    nav a {
        width: fit-content;
    }

    footer {
        grid-area: footer;
    }
}

@media screen and (min-width: 550px) {
    .content-wrap {
        display: grid;
        grid-template-columns: 1fr 150px;
        grid-template-areas:
            "header header"
            "main nav"
            "footer footer";
        gap: 24px;
        align-items: start;
    }

    header {
        grid-area: header;
    }

    .title {
        margin-top: 0;
    }

    main {
        grid-area: main;
        margin-top: 0;
    }
    nav {
        margin-top: 0;
        grid-area: nav;
        flex-direction: column;
        align-items: flex-end;
        margin-bottom: 34px;
    }

    nav a {
        width: fit-content;
    }

    footer {
        grid-area: footer;
    }
}
