/* Space Mono, self-hosted (SIL OFL 1.1, see /fonts/OFL.txt). Only 400 is loaded,
   as before; bold is synthesized. */
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/space-mono-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/space-mono-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Global Defaults */
body {
    font-family: 'Space Mono', monospace;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
    margin: 0 auto;
    padding: 1rem;
    max-width: 800px;
}

/* Headings */
h1, h2, h3 {
    font-weight: bold;
    margin: 1.5rem 0 0.5rem;
    line-height: 1.2;
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.5rem;
}

h3 {
    font-size: 1.25rem;
}

/* Main content */
main {
    padding: 1rem;
}

main p {
    margin-bottom: 1rem;
}

main hr {
    margin: 2rem auto;
    width: 75%;
    border: none;
    border-top: 1px solid #ccc;
}

main ul,
main ol {
    margin-left: 2rem;
    padding-left: 1rem;
    margin-bottom: 1rem;
    text-align: left;
}

/* Navigation */
nav {
    position: sticky;
    top: 0;
    background-color: #fff;
    border: 2px solid #333;
    border-radius: 2rem;
    margin: 0 auto 1rem;
    max-width: 600px;
    font-size: 1.25rem;
    z-index: 100;
}

nav h2 {
    padding: 1rem;
    background: green;
    color: white;
    border-radius: 2rem 2rem 0 0;
}

nav > h2:first-child {
    padding-top: 0;
    margin-top: 0;
}

nav h2 a {
    text-decoration: none;
    color: white;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    padding: 0.5rem 1rem;
}

nav li {
    margin: 0.25rem 0;
}

nav a, nav a:visited {
    color: #333;
    text-decoration: none;
    padding: 0.5rem 1rem;
    display: inline-block;
    border-radius: 0.5rem;
    transition: background-color 0.3s;
}

nav a:hover, nav a:focus {
    background-color: #333;
    color: #fff;
    cursor: pointer;
}

nav li.active {
    font-weight: bold;
}

/* Footer */
footer {
    margin-top: 4rem;
    text-align: center;
    font-size: 0.9rem;
    color: #666;
}

footer span {
    display: inline-block;
    padding: 0.5rem;
}

/* Article Styling */
article.blog-article {
    text-align: left;
    margin-bottom: 2rem;
}

/* CV Styling */
.cv {
    text-align: center;
}

.cv ul, .cv ol {
    padding-left: 2rem;
    text-align: left;
}

.cv section hr {
    max-width: 40%;
    margin: 2rem auto;
}

.cv p {
    text-align: left;
    margin-bottom: 1rem;
}

/* Responsive Layout */
@media (max-width: 768px) {
    body {
        padding: 0.5rem;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav a {
        width: 100%;
        text-align: center;
    }
}
