/* Phrack-style minimal design with dark mode */
:root {
    --bg-color: #fff;
    --text-color: #000;
    --border-color: #000;
    --meta-color: #666;
    --code-bg: #f5f5f5;
    --link-color: #000;
}

[data-theme="dark"] {
    --bg-color: #0d1117;
    --text-color: #c9d1d9;
    --border-color: #30363d;
    --meta-color: #8b949e;
    --code-bg: #161b22;
    --link-color: #c9d1d9;
}

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

body {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--bg-color);
    margin: 0;
    padding: 20px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 80ch;
    margin: 0 auto;
}

header {
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

.header-content {
    flex: 1;
}

header h1 {
    font-size: 24px;
    font-weight: normal;
    margin-bottom: 10px;
}

nav a {
    color: var(--link-color);
    text-decoration: none;
}

nav a:hover {
    text-decoration: underline;
}

/* Dark mode toggle */
.theme-toggle {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    font-family: 'Courier New', monospace;
    font-size: 12px;
    padding: 4px 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: var(--text-color);
    color: var(--bg-color);
}

main {
    margin-bottom: 40px;
}

section {
    margin-bottom: 30px;
}

h2 {
    font-size: 18px;
    font-weight: normal;
    margin-bottom: 15px;
    text-transform: lowercase;
}

ul {
    list-style: none;
}

ul li {
    margin-bottom: 5px;
}

a {
    color: var(--link-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

footer {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    font-size: 12px;
}

/* Blog post styling */
.post-meta {
    color: var(--meta-color);
    font-size: 12px;
    margin-bottom: 20px;
}

.post-content {
    margin-bottom: 30px;
}

.post-content p {
    margin-bottom: 15px;
}

.post-content pre {
    background: var(--code-bg);
    padding: 10px;
    margin: 15px 0;
    overflow-x: auto;
    border: 1px solid var(--border-color);
}

.post-content code {
    font-family: 'Courier New', monospace;
    font-size: 13px;
}

/* Responsive */
@media (max-width: 600px) {
    body {
        padding: 10px;
        font-size: 13px;
    }
    
    .container {
        max-width: 100%;
    }
}