:root {
    --header: #e2a528;
    --red: #ff3a32;
    --text: #cdd6f4;
    --subtext: #4a4d4e;
    /*--overlay: #6c7086;*/
    --base: #1a0b0c;
    --mantle: #0e0506;
}

body {
    background-color: var(--base);
    color: var(--text);
    display: grid;
    font-family: Roboto, sans-serif;
    font-size: 1.3em;
    line-height: 1.5em;
    place-items: center;
}

header {
    margin-top: 2em;
}

main {
    background-color: var(--base);
    border-radius: 0;
    box-shadow: none;
    max-width: min(1080px, 90vw);
}

blockquote {
    margin: 0px;
}

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

footer {
    margin-top: 1em;
    padding-bottom: 2em;
}

footer div {
    text-align: center;
}

h1,h2,h3 {
    line-height: 1.5em;
    color: var(--header)
}

hr {
    border: 1px solid var(--subtext);
    margin-bottom: 1.5em;
    margin-top: 1.5em;
}

i {
    color: var(--header)
}

.ascii {
    font-family: monospace;
    font-size: 0.8em;
    line-height: 1em;
}

.codebox {
    background-color: var(--mantle);
    border: 1px solid var(--mantle);
    border-radius: 8px;
    color: var(--text);
    font-size: 1.2em;
    line-height: 0;
    overflow-x: auto;
    padding-left: 2em;
}

.contacts {
    display: flex;
    flex-direction: column;
    gap: 0.6em;
    margin-top: 1em;
}

.contacts-button {
    background-color: var(--red);
    border-radius: 8px;
    color: var(--base);
    display: inline-block;
    font-size: 1.2em;
    font-weight: bold;
    padding: 1em;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.contacts-button:hover {
    text-decoration: none;
    transform: scale(1.025);
}

.homepage h2 {
    color: var(--header);
}

.icon {
    position: relative;
    height: 0.8em;
    margin-right:10px;
    top: 1px;
}

.posts {
    display: flex;
    flex-direction: column;
    gap: 0.6em;
    margin-top: 1em;
}

.posts a {
    text-decoration: none;
}

.post-title {
    color: var(--text);
    font-weight: bold;
}

.posts-item {
    background-color: var(--mantle);
    border-radius: 8px;
    color: var(--text);
    padding: 1em;
    transition: transform 0.2s ease;
}

.posts-item:hover {
    color: var(--text);
    transform: scale(1.025);
}

.timedate {
    color: var(--subtext);
    font-style: italic;
}

.titleheader {
    color: var(--red);
    font-size: 3em;
    font-weight: bold;
}

.titleheader:hover {
    color: var(--red);
    text-decoration: none;
}

@media screen and (max-width: 530px) {
    body {
        font-size: 1em;
    }

    p {
        font-size: 1.2em;
    }

    .ascii {
        font-size: 0.6em;
        line-height: normal;
    }

    .codebox {
        font-size: 1em;
    }
}
