/* 1. GLOBAL STYLES & THEME */
body {
    /* High-quality monospace font stack */
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
    font-size: 16px;
    line-height: 1.7;

    /* Dark Theme Colors */
    background-color: #131314;
    /* Deep charcoal */
    color: #e3e3e3;
    /* Off-white for readability */

    /* Layout */
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

/* 2. HEADER & NAVIGATION */
header {
    border-bottom: 1px solid #444;
    margin-bottom: 30px;
    padding-bottom: 10px;
}

header h1 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

nav a {
    margin-right: 15px;
    color: #888;
    text-decoration: none;
    background: none;
    padding: 0;
}

nav a:hover {
    color: #fff;
    text-decoration: underline;
}

/* 3. LINKS */
a {
    color: #8ab4f8;
    /* Soft blue */
    text-decoration: none;
    background-color: #2a2a2b;
    /* Subtle highlight box */
    padding: 2px 5px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

a:hover {
    background-color: #3c3c3d;
    color: #c2e7ff;
}

/* 4. POST LIST (Home Page) */
ul {
    list-style: none;
    padding: 0;
}

li {
    margin-bottom: 15px;
}

.post-date {
    color: #666;
    margin-right: 10px;
}

/* 5. CODE BLOCKS (The IDE Look) */
pre {
    background-color: #000000;
    /* True black background for code */
    border: 1px solid #333;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    /* Scrollbar for long lines of code */
    margin: 20px 0;
}

/* This targets the text inside the black box */
pre code {
    background-color: transparent;
    /* Removes that accidental light background */
    color: #dcdcdc;
    /* Consistent light grey text */
    padding: 0;
    font-size: 14px;
    display: block;
    line-height: 1.5;
}

/* This targets single words of code inside a paragraph */
p code,
li code {
    background-color: #2a2a2b;
    padding: 2px 4px;
    border-radius: 3px;
    color: #ff79c6;
    /* Pink pop for variables/inline code */
    font-family: inherit;
}

/* 6. IMAGES & FIGURES */
article img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    border: 1px solid #333;
}

figure {
    margin: 0;
    text-align: center;
}

figcaption {
    font-size: 0.85rem;
    color: #888;
    margin-top: -20px;
    margin-bottom: 30px;
}

/* 7. FOOTER */
footer {
    margin-top: 50px;
    border-top: 1px solid #444;
    padding-top: 20px;
    font-size: 0.9rem;
    color: #666;
}

footer a {
    color: #666;
    background: none;
    text-decoration: underline;
    padding: 0;
}

footer a:hover {
    color: #ffffff;
    background: none;
}

/* 8. MISC HELPERS */
blockquote {
    margin: 20px 0;
    padding-left: 15px;
    border-left: 3px solid #8ab4f8;
    color: #aaa;
    font-style: italic;
}

.back-link {
    background: none;
    padding: 0;
    font-size: 0.9rem;
    color: #888;
}

.back-link:hover {
    color: #fff;
    background: none;
    text-decoration: underline;
}

main hr {
    border: 0;
    border-top: 1px solid #333;
    margin: 40px 0 20px 0;
}


/* Styling the superscript link */
sup a {
    text-decoration: none;
    /* Removes the underline */
    font-size: 0.8em;
    /* Makes it slightly smaller */
    padding: 0 2px;
    /* Adds a tiny bit of breathing room */
}

sup a:hover {
    text-decoration: underline;
    /* Shows underline only on hover */
    color: #ff4500;
    /* Optional: change color on hover */
}

/* Optional: subtle styling for the footnote section */
.footnotes {
    font-size: 0.9em;
    color: #555;
    margin-top: 40px;
}