:root {
    --bg-color: #ffffff;
    --text-color: #000000;
    --link-color: #0000EE;
    --visited-color: #551A8B;
    --accent-color: #cccccc;
    --font-stack: monospace;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-stack);
    margin: 0;
    padding: 20px;
    line-height: 1.5;
}

main {
    max-width: 700px;
    margin: 0 auto;
    width: 100%;
}

h1, h2, h3 { margin-bottom: 5px; }

a { color: var(--link-color); text-decoration: none; border-bottom: 1px solid transparent;}
a:visited { color: var(--visited-color); }
a:hover { text-decoration: underline; }

.section-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-top: 30px;
    margin-bottom: 15px;
    display: block;
}

hr { border: 0; border-top: 1px solid #000; margin: 20px 0; }
hr.light { border-top: 1px solid var(--accent-color); }

header { text-align: center; margin-bottom: 20px; }

.nav-links .nav-item {
    white-space: nowrap;
    display: inline-block;
    margin: 0 5px;
    margin-top: 10px;
}

.content-block { margin-left: 20px; }
p { margin-top: 0; margin-bottom: 10px; text-align: justify; }

ul { padding-left: 20px; margin-top: 0; }
li { margin-bottom: 10px; }


.grid-list {
    display: grid;
    grid-template-columns: 160px 1fr; 
    gap: 10px;
    margin-bottom: 10px;
}
.grid-label { font-weight: bold; }

figure {
    margin: 30px 0; 
    padding: 0;
    text-align: center;
    width: 100%;
    font-style: italic;
    font-size: 0.8em;
    color: #666;
}

img {
    max-width: 100%;
    height: auto;
    display: block; 
    margin: 0 auto;
}

em {
    display: block;
    text-align: center;
    font-style: italic;
    font-size: 0.8em;
    color: #666;
    margin-top: -10px;
    margin-bottom: 20px;
}

footer {
    text-align: center;
    font-size: 0.85rem;
    color: #666;
    margin-top: 40px;
    font-style: italic;
}

.post-date { font-weight: bold; color: #555; }
.post-lang { font-weight: bold; color: #000; margin-right: 5px; }

pre {
    background-color: #f5f5f5;
    padding: 15px;
    border: 1px solid #ddd;
    overflow-x: auto;
    font-size: 0.9em;
}
code { font-family: monospace; }

@media (max-width: 600px) {
    .grid-list { grid-template-columns: 1fr; gap: 5px; margin-bottom: 20px; }
    .content-block { margin-left: 5px; }
}
