/* Font type and sizing */
body {
    font-family: "Roboto", sans-serif;
    /* You might also want to set a base font size and line height here */
    font-size: 16px;
    /* A good default for readability */
    line-height: 1.6;
    /* Improves readability, especially for longer paragraphs */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Roboto Slab", serif;
}

/* Stronger font weight for the top left corner branding elemnent */
div.name {
    font-family: "Roboto Slab", serif;
    font-weight: 700;
}

/* --- */

/* Font colors */
/* my own var for colours */
:root {
    --link-hover-colour: #5eb3b3;
}

body {
    background-color: #111c1c;
    color: #e6f2f2;
}

.nav-and-icons,
.more-about-me-link,
.more-posts-link,
.toc-column {
    color: #e6f2f2d2;
}

a {
    color: #a1d9ff;
    /* Light blue */
    text-decoration: underline;
    /* Optional, but helps identify links */
}

/* Override Bootstrap var used for inline code colors. */
:root {
    --bs-code-color: #ffbf69;
}

/* Also add some spacing for them without affecting the code
   in <pre> blocks. */
code:not(pre > code) {
    padding-left: 0.2rem;
    padding-right: 0.2rem;
}
/* --- */

.toc-column {

    /* Sticky column for TOC, pushing it down a bit from the top. */
    top: 10%;
}

/* Hugo renders the ul, so I can't add a class to the ul element, so instead I target
   it with custom CSS here. */
nav#TableOfContents ul {
    list-style: none;
    padding-left: 0px;
}

/* Unstyling links and then bringing back just hover style on some */
.name a,
.nav-and-icons a,
.posts a,
.about-on-main a,
.toc-column a {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.name a:hover,
.nav-and-icons a:hover,
.posts a:hover,
.about-on-main a:hover,
.toc-column a:hover {
    color: var(--link-hover-colour);
}

/* --- */

.left-bar-column .name a {
    font-size: 2rem;
}

.post h2 {
    padding-top: 1rem;
    padding-bottom: 0.5rem;
}

.bi {
    /* I don't know why I need this, but without it, the Codeberg icon gets big */
    width: 1.25em;
}

.bi {
    font-size: 1.5em;
}

/* Some more fine-tuning of the padding and margin for the GitHub and Codeberg icons
   to get the whole row to display with right spacing between them. */
.bi-github {
    padding-left: 0.1em;
}

.codeberg-icon {
    margin-top: -0.2em;
}

/* Overriding the way Hugo renders code blocks to give them more style! =D */
pre {
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    font-family: 'Fira Code', 'Consolas', 'Monaco', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Add subtle border */
pre {
    border: 1px solid #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* --- */

/* I didn't code the <li> elements in the TOC, Hugo does. So I can't style them by
   adding Bootstrap classes to them. Instead, I use custom CSS here. */
nav#TableOfContents li {
    padding-bottom: 0.5rem;
}

.fs-small {
    font-size: 0.9rem;
    font-weight: 300;
    font-family: "Roboto Slab", serif;
}

.more-button {
    --bs-btn-hover-bg: transparent;
    --bs-btn-hover-border-color: var(--link-hover-colour);
}

img {
    max-width: 100%;
    height: auto;
}