/* color vars */
:root {
    --blog-background: #000000;
    --blog-text-normal: #e9e9e9;
    --blog-text-emphasis: #ffccee;
    --blog-text-emphasis-muted: #ffe7f7;
}

/* fonts */
@font-face {
    font-family: "Aporetic Serif";
    src: url("/public/fonts/aporetic/aporetic-serif-normalregularupright.ttf") format("truetype");
}

@font-face {
    font-family: "Aporetic Serif";
    src: url("/public/fonts/aporetic/aporetic-serif-normalboldupright.ttf") format("truetype");
    font-weight: bold;
}

@font-face {
    font-family: "Aporetic Serif";
    src: url("/public/fonts/aporetic/aporetic-serif-normalregularitalic.ttf") format("truetype");
    font-style: italic;
}

@font-face {
    font-family: "Aporetic Serif";
    src: url("/public/fonts/aporetic/aporetic-serif-normalbolditalic.ttf") format("truetype");
    font-weight: bold;
    font-style: italic;
}

@font-face {
    font-family: "Aporetic Serif";
    src: url("/public/fonts/aporetic/aporetic-serif-normalregularitalic.ttf") format("truetype");
    font-style: oblique;
}

@font-face {
    font-family: "Aporetic Serif";
    src: url("/public/fonts/aporetic/aporetic-serif-normalbolditalic.ttf") format("truetype");
    font-weight: bold;
    font-style: oblique;
}


/* tags */
html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--blog-background);

    display: grid;
}

main {
    position: relative;
    min-height: 100vh;
}

article, .prose-header {
    display: flex;
    flex-direction: column;

    margin: auto;
    width: 650px;
}

article {
    padding-bottom: 8rem;
}

h1, h2, h3 {
    color: var(--blog-text-emphasis);
    font-family: "Aporetic Serif", serif;
}

p, time, li {
    color: var(--blog-text-normal);
    font-family: "Aporetic Serif", serif;
}

li {
    list-style-type: none;
}

footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 8rem;
}

header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

/* classes */
.page-header-link {
    font-family: "Aporetic Serif", serif;
    font-size: xx-large;
    text-decoration: none;
    color: var(--blog-text-emphasis-muted);
}

.page-header-nav-links-container {
    padding-top: 0.5rem;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
}

.page-header-nav-link {
    text-decoration: none;
    font-family: "Aporetic Serif";
    font-style: italic;
    color: var(--blog-text-normal);
    transition: color 0.2s;
    padding-right: 1rem;
}

.page-header-nav-link:hover {
    color: var(--blog-text-emphasis);
}
    

.toc {
    position: fixed;
    top: 10rem;
    left: 2rem;
    width: auto;
    height: 60vh;
    opacity: 0;
    transition: opacity 0.5s;
}

.toc:hover {
    opacity: 1;
}

.toc-nav-el, .email {
    color: var(--blog-text-emphasis-muted);
    text-decoration: none;
    font-style: italic;
}

.email {
    color: var(--blog-text-normal);
}

.prose-header {
    text-align: center;
}

.prose-title {
    font-weight: bold;
}

.prose-subtitle {
    font-style: italic;
    font-size: medium;
    color: var(--blog-text-emphasis-muted);
}

.prose-section-heading {
    color: var(--blog-text-emphasis-muted);
    font-weight: bold;
}
