:root {
    --rosewater: #f5e0dc;
    --flamingo: #f2cdcd;
    --pink: #f5c2e7;
    --mauve: #cba6f7;
    --red: #f38ba8;
    --maroon: #eba0ac;
    --peach: #fab387;
    --yellow: #f9e2af;
    --green: #a6e3a1;
    --teal: #94e2d5;
    --sky: #89dceb;
    --sapphire: #74c7ec;
    --blue: #89b4fa;
    --lavender: #b4befe;
    --text: #cdd6f4;
    --subtext1: #bac2de;
    --subtext0: #a6adc8;
    --overlay2: #9399b2;
    --overlay1: #7f849c;
    --overlay0: #6c7086;
    --surface2: #585b70;
    --surface1: #45475a;
    --surface0: #313244;
    --base: #1e1e2e;
    --mantle: #181825;
    --crust: #11111b;
}

/*
@media (prefers-color-scheme: light) {
    --rosewater: #dc8a78;
    --flamingo: #dd7878;
    --pink: #ea76cb;
    --mauve: #8839ef;
    --red: #d20f39;
    --maroon: #e64553;
    --peach: #fe640b;
    --yellow: #df8e1d;
    --green: #40a02b;
    --teal: #179299;
    --sky: #04a5e5;
    --sapphire: #209fb5;
    --blue: #1e66f5;
    --lavender: #7287fd;
    --text: #4c4f69;
    --subtext1: #5c5f77;
    --subtext0: #6c6f85;
    --overlay2: #7c7f93;
    --overlay1: #8c8fa1;
    --overlay0: #9ca0b0;
    --surface2: #acb0be;
    --surface1: #bcc0cc;
    --surface0: #ccd0da;
    --base: #eff1f5;
    --mantle: #e6e9ef;
    --crust: #dce0e8;
}
*/

/*
@font-face {
    font-family: Roboto, sans-serif;
    src:
        local("Roboto, sans-serif"),
        url('/fonts/Roboto-Regular.ttf');
}
*/

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

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

blockquote {
    margin: 0px;
}

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

a:hover {
    color: var(--sky);
    text-decoration: underline;
}

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

footer div {
    text-align: center;
}

h1 {
    color: var(--mauve)
}

h2 {
    color: var(--text);
}

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

p {
    color: var(--subtext1);
}

.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);
    overflow-x: auto;
    padding-left: 2em;
}

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

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

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

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

.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 {
    font-weight: bold;
}

.posts a:hover {
    color: var(--teal);
}

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

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

.timedate {
    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;
    }
}
