/* ----------- GLOBAL ----------- */
:root {
    --background-color: #0e1012;
    --background-color-darker: #0c0d0e;
    --background-color-emphasis: #ffc24d24;
    --background-color-code: #0c0d0e;

    --text-color-normal: #e3e3e3; /* or ... #d4d4d8 */
    --text-color-subordination: #adadad;
    --text-color-emphasis: #ffc24d;
    --text-font-normal: "JetBrains Mono", monospace;

    --border-color: #ffc24d24;
    --border-radius: 10px;
    --border: solid 2px var(--border-color);

    --header-footer-padding: 16px;
}
@font-face {
  font-family: "JetBrains Mono";
  src:
    local("JetBrains Mono"),
    url("/assets/fonts/JetBrains_Mono/JetBrainsMono-VariableFont_wght.ttf") format("TrueType");
}
@keyframes opacity-animation {
    from { opacity: 0.3; }
    to { opacity: 1; }
}
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    background-color: var(--background-color);
    color: var(--text-color-normal);
    font-family: var(--text-font-normal);
    font-weight: 300;
    line-height: 1.5em;
}
a {
    color: var(--text-color-emphasis);
}
a:hover {
    animation: opacity-animation 1000ms infinite alternate-reverse;
}
/* PrismJS takes care of pre tag content */
pre {
    border-radius: var(--border-radius);
    background-color: var(--background-color-code) !important;
    margin: 2em 0 !important;
}
*::selection {
    color: var(--text-color-emphasis);
    background-color: var(--background-color-emphasis);
}
/* Bold */
strong {
    color: #ffffff;
    font-weight: 500;
}
hr {
    margin: 10px 0px 10px 0px;
}
/* strike-through, blockquote */
s, blockquote {
    color: var(--text-color-subordination);
}
blockquote {
    border-left: var(--border);
    padding-left: 16px;
    font-style: italic;
}
/* For "single back-ticks" inline code within paragraphs */
code {
    background-color: var(--background-color-code);
    color: var(--text-color-emphasis);
    font-family: var(--text-font-mono);
    border-radius: var(--border-radius);
    padding: 0.2em 0.4em;
    font-size: 0.9em;
    font-weight: 200;
    letter-spacing: 0.8px;
}
ul,
ol {
    /* lists are pulled too much to the right because we remove text-decoration */
    margin-left: 20px;
}
h1,
h2,
h3,
h4,
h5,
h6,
p {
    padding: 8px 0px 8px 0px;
}

/* ----------- HEADER ----------- */
header {
    display: flex;
    padding: var(--header-footer-padding);
    background-color: var(--background-color-darker);
}
.header-home-link {
    text-decoration: none;
    margin-right: auto;
    font-weight: bold;
}
.header-nav {
    display: flex;
    flex-direction: row;
    gap: 30px;
}
.header-nav-item {
    text-decoration: none;
    font-weight: bold;
}

/* ----------- MAIN ----------- */
main {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    /* center content and limit max width */
    max-width: 1200px;
    margin: auto;
    width: 100%;
}
main > article {
    width: 80%;
    padding: 32px 0px;
}

/* ----------- FOOTER ----------- */
footer {
    padding: var(--header-footer-padding);
    background-color: var(--background-color-darker);
}
