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

body {
    background-color: #000000;
    color: #ffffff;
    font-family: 'Anonymous Pro', monospace;
    font-size: 16px;
    line-height: 1.6;
    padding: 2rem;
}

body.home {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.42)),
        url('/img/bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

main {
    max-width: 800px;
    margin: 0 auto;
    min-height: calc(100vh - 300px);
}

/* Header */
.site-header {
    margin-bottom: 2rem;
}

.header-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 2rem 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 1.5rem;
    margin: 0;
}

.site-title a {
    color: #ffffff;
    text-decoration: none;
}

.site-title a:hover {
    color: #ddffdd;
}

.site-nav {
    display: flex;
    gap: 1.5rem;
}

.site-nav a {
    color: #ffffff;
    text-decoration: none;
    border: 1px solid #ffffff;
    padding: 0.4rem 0.8rem;
    transition: all 0.2s;
}

.site-nav a:hover {
    background-color: #ffffff;
    color: #000000;
    text-decoration: none;
}

/* Footer */
.site-footer {
    border-top: 1px solid #333;
    margin-top: 4rem;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-content .social-links {
    margin: 0;
}

.copyright {
    color: #888;
    font-size: 0.9rem;
}

@media (max-width: 600px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .site-nav {
        gap: 1rem;
    }
}

.container {
    padding: 2rem 0;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 700;
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: #ddffdd;
    text-decoration: none;
}

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

.social-links {
    margin: 2rem 0;
    display: flex;
    gap: 2rem;
}

.social-links a {
    color: #ffffff;
    text-decoration: none;
    border: 1px solid #ffffff;
    padding: 0.5rem 1rem;
    transition: all 0.2s;
}

.social-links a:hover {
    background-color: #ffffff;
    color: #000000;
}

@media (max-width: 600px) {
    .social-links {
        flex-direction: column;
        gap: 1rem;
    }

    .social-links a {
        text-align: center;
    }
}

/* Blog post styles */
.latest-posts {
    margin-top: 3rem;
    padding-top: 2rem;
}

.latest-posts h2 {
    margin-bottom: 2rem;
}

.post-summary {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
}

.post-summary h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.post-summary h3 a {
    color: #ffffff;
    text-decoration: none;
}

.post-summary h3 a:hover {
    text-decoration: underline;
}

.post-meta {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.post-excerpt {
    margin: 1rem 0;
}

.read-more {
    color: #ffffff;
    text-decoration: none;
    border: 1px solid #ffffff;
    padding: 0.25rem 0.75rem;
    display: inline-block;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.read-more:hover {
    background-color: #ffffff;
    color: #000000;
}

.post-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
}

.tags {
    display: block;
    margin-top: 0.5rem;
}

.tag {
    display: inline;
    color: #888;
    font-size: 0.85rem;
    text-decoration: none;
    margin-right: 0.75rem;
}

.tag:hover {
    color: #fff;
    text-decoration: underline;
}

.post-content {
    line-height: 1.8;
}

.post-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* Image modal */
.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.modal-close {
    position: absolute;
    top: 2rem;
    right: 3rem;
    color: #ffffff;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #888;
}

/* Sidenote / tip boxes */
.sidenote {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    background-color: #1a2a1a;
    border-left: 4px solid #4a9a4a;
    border-radius: 4px;
}

.sidenote strong {
    color: #6aba6a;
    margin-right: 0.5rem;
}

/* Code blocks */
pre {
    margin: 1.5rem 0;
    padding: 1rem;
    background-color: #24273a;
    border: 1px solid #333;
    border-radius: 4px;
    overflow-x: auto;
    font-family: 'Anonymous Pro', monospace;
}

code {
    font-family: 'Anonymous Pro', monospace !important;
    font-size: 0.9rem;
    color: #cad3f5;
}

pre code {
    display: block;
}

/* Ensure Chroma syntax highlighting uses Anonymous Pro */
.chroma, .chroma code, .chroma pre {
    font-family: 'Anonymous Pro', monospace !important;
}

/* Match Chroma background for consistency */
.chroma {
    background-color: #24273a;
}

/* Inline code */
p code, li code {
    background-color: #1a1a1a;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    border: 1px solid #333;
}

/* File blocks */
.file-block {
    margin: 1.5rem 0;
    border: 1px solid #333;
    border-radius: 4px;
    overflow: hidden;
}

.file-header {
    background-color: #1a1a1a;
    color: #888;
    padding: 0.5rem 1rem;
    font-family: 'Anonymous Pro', monospace;
    font-size: 0.85rem;
    border-bottom: 1px solid #333;
}

.file-content {
    background-color: #0a0a0a;
}

.file-content pre {
    margin: 0;
    border: none;
    border-radius: 0;
}
