/* Latent Logs - Minimal Blog Theme */

:root {
    --bg: #1e1e2e;
    --bg-secondary: #313244;
    --text: #cdd6f4;
    --text-muted: #a6adc8;
    --accent: #cba6f7;
    --accent-hover: #f5c2e7;
    --border: #45475a;
    --code-bg: #181825;
}

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

html {
    font-size: 18px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navigation */
header {
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem;
}

nav {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

nav a:hover {
    color: var(--accent);
}

/* Main content */
main {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    flex: 1;
    width: 100%;
}

/* Hero section */
.hero {
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text);
}

/* Posts */
.recent-posts h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.post-preview {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.post-preview:last-child {
    border-bottom: none;
}

.post-preview h2,
.post-preview h3 {
    margin-bottom: 0.5rem;
}

.post-preview h2 a,
.post-preview h3 a {
    color: var(--text);
    text-decoration: none;
}

.post-preview h2 a:hover,
.post-preview h3 a:hover {
    color: var(--accent);
}

.post-preview time {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.post-preview p {
    margin-top: 0.5rem;
    color: var(--text-muted);
}

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

.post-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.post-header time {
    color: var(--text-muted);
}

.tags {
    margin-top: 1rem;
}

.tag {
    display: inline-block;
    background: var(--bg-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.85rem;
    color: var(--accent);
    text-decoration: none;
    margin-right: 0.5rem;
}

.tag:hover {
    background: var(--border);
}

.post-content {
    font-size: 1rem;
}

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

.post-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.post-content p {
    margin-bottom: 1rem;
}

.post-content ul,
.post-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

.post-content a {
    color: var(--accent);
}

.post-content a:hover {
    color: var(--accent-hover);
}

.post-content code {
    background: var(--code-bg);
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.9em;
}

.post-content pre {
    background: var(--code-bg);
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin-bottom: 1rem;
}

.post-content pre code {
    padding: 0;
    background: none;
}

.post-content blockquote {
    border-left: 3px solid var(--accent);
    padding-left: 1rem;
    margin: 1rem 0;
    color: var(--text-muted);
    font-style: italic;
}

/* Navigation */
.post-nav,
.pagination {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.post-nav a,
.pagination a {
    color: var(--accent);
    text-decoration: none;
}

.post-nav a:hover,
.pagination a:hover {
    text-decoration: underline;
}

/* Page */
.page h1 {
    margin-bottom: 2rem;
}

.page-content {
    font-size: 1rem;
}

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

.page-content p {
    margin-bottom: 1rem;
}

.page-content ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.page-content li {
    margin-bottom: 0.5rem;
}

.page-content a {
    color: var(--accent);
}

/* Footer */
footer {
    border-top: 1px solid var(--border);
    padding: 1.5rem 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 600px) {
    html {
        font-size: 16px;
    }

    header {
        padding: 1rem;
    }

    nav {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        gap: 1rem;
    }

    main {
        padding: 1.5rem 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }
}
