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

/* Base */
html { background: #0a0a0f; }
body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background: #0a0a0f;
    color: #e0ddd4;
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: #c4a35a; text-decoration: none; transition: color 0.2s ease; }
a:hover { color: #d4b36a; text-decoration: underline; }

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

/* Site chrome */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 2rem;
    border-bottom: 1px solid #1a1a2e;
    background: #050510;
}

.site-header .brand img {
    width: 40px;
    height: 40px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}
.site-header .brand:hover img { opacity: 1; }

.site-nav {
    display: flex;
    gap: 1.5rem;
    font-size: 0.95rem;
}
.site-nav a { color: #b0a990; }
.site-nav a:hover { color: #c4a35a; text-decoration: none; }

.site-main {
    flex: 1;
    max-width: 760px;
    width: 100%;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.site-footer {
    text-align: center;
    padding: 2rem;
    font-size: 0.85rem;
    color: #5a5647;
    border-top: 1px solid #1a1a2e;
}
.site-footer a { color: #5a5647; }
.site-footer a:hover { color: #c4a35a; text-decoration: none; }

/* Posts */
.post-header { margin-bottom: 2rem; }

.post-meta {
    font-size: 0.8rem;
    color: #8a8677;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.75rem;
}

.post-meta .version {
    color: #c4a35a;
}

.post-title {
    font-size: 2.4rem;
    color: #f0c674;
    line-height: 1.2;
    text-shadow: 0 0 24px rgba(240, 198, 116, 0.15);
}

.post-content {
    font-size: 1.05rem;
    color: #c8c4b8;
}

.post-content p { margin-bottom: 1.2rem; }
.post-content ul, .post-content ol { margin: 1.2rem 0 1.2rem 2rem; }
.post-content li { margin-bottom: 0.5rem; }
.post-content strong { color: #e0ddd4; }
.post-content em { color: #b0a990; }

.post-content code {
    font-family: 'Consolas', 'Monaco', monospace;
    background: #1a1a2e;
    padding: 0.1rem 0.4rem;
    border-radius: 2px;
    font-size: 0.92em;
    color: #d4b36a;
}

.post-content pre {
    background: #1a1a2e;
    padding: 1rem 1.25rem;
    border-radius: 4px;
    overflow-x: auto;
    margin: 1.2rem 0;
    border-left: 3px solid #c4a35a;
    line-height: 1.5;
}
.post-content pre code { background: none; padding: 0; color: #e0ddd4; font-size: 0.9rem; }

.post-content blockquote {
    border-left: 3px solid #c4a35a;
    padding-left: 1rem;
    margin: 1.2rem 0;
    color: #8a8677;
    font-style: italic;
}

.post-content h2 {
    font-size: 1.5rem;
    color: #c4a35a;
    margin: 2rem 0 1rem;
}

.post-content h3 {
    font-size: 1.2rem;
    color: #c4a35a;
    margin: 1.5rem 0 0.5rem;
}

.post-content a {
    border-bottom: 1px solid rgba(196, 163, 90, 0.4);
}
.post-content a:hover { border-color: #d4b36a; text-decoration: none; }

.post-footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #1a1a2e;
    text-align: center;
    font-size: 0.9rem;
}

/* Devlog index */
.devlog-index h1 {
    color: #f0c674;
    font-size: 2.4rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 24px rgba(240, 198, 116, 0.15);
}

.devlog-intro {
    color: #8a8677;
    font-style: italic;
    margin-bottom: 2.5rem;
    font-size: 1.05rem;
}

.post-list {
    list-style: none;
    padding: 0;
}

.post-card {
    margin-bottom: 1.25rem;
    border-left: 2px solid #2a2a3e;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.post-card:hover {
    border-color: #c4a35a;
    background: rgba(196, 163, 90, 0.03);
}

.post-card a {
    display: block;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: inherit;
}
.post-card a:hover { text-decoration: none; }

.post-card time {
    font-size: 0.75rem;
    color: #8a8677;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    display: inline-block;
    margin-right: 0.75rem;
}

.post-card .post-version {
    font-size: 0.75rem;
    color: #c4a35a;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.post-card h2 {
    font-size: 1.3rem;
    color: #c4a35a;
    margin: 0.4rem 0 0.4rem;
    line-height: 1.3;
}

.post-card p {
    font-size: 0.95rem;
    color: #8a8677;
    line-height: 1.5;
}

/* Pages (privacy etc) */
.page h1 {
    color: #f0c674;
    font-size: 2.4rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 24px rgba(240, 198, 116, 0.15);
}

.page-content { color: #c8c4b8; font-size: 1.05rem; }
.page-content h2 {
    font-size: 1.5rem;
    color: #c4a35a;
    margin: 2rem 0 1rem;
}
.page-content h3 {
    font-size: 1.2rem;
    color: #c4a35a;
    margin: 1.5rem 0 0.5rem;
}
.page-content p { margin-bottom: 1.2rem; }
.page-content ul, .page-content ol { margin: 1.2rem 0 1.2rem 2rem; }
.page-content li { margin-bottom: 0.5rem; }
.page-content strong { color: #e0ddd4; }
.page-content a { border-bottom: 1px solid rgba(196, 163, 90, 0.4); }
.page-content a:hover { text-decoration: none; border-color: #d4b36a; }

/* Responsive */
@media (max-width: 600px) {
    .site-header { padding: 1rem 1.25rem; }
    .site-nav { gap: 1rem; font-size: 0.9rem; }
    .site-main { padding: 2rem 1.25rem; }
    .post-title, .devlog-index h1, .page h1 { font-size: 1.8rem; }
    .post-card a { padding: 0.85rem 1rem; }
}
