:root {
    --primary-navy: #1a2b4c;
    --secondary-blue: #2e5090;
    --accent-orange: #e67e22;
    --light-gray: #f5f5f5;
    --text-dark: #2c3e50;
    --text-light: #5a6c7d;
    --white: #ffffff;
    --border-light: #e1e8ed;
    --max-width: 720px;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-sans);
    background: var(--primary-navy);
    color: var(--white);
    line-height: 1.7;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Navigation */
.site-header {
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--secondary-blue);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.site-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.site-title::before {
    content: "◆";
    color: var(--accent-orange);
    font-size: 1rem;
}

.site-title:hover {
    color: var(--accent-orange);
}

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

.nav-links a {
    color: var(--light-gray);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-orange);
}

/* Home page */
.intro {
    margin-bottom: 3rem;
}

.intro h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.intro p {
    color: var(--light-gray);
    font-size: 1.1rem;
}

/* Post previews */
.post-preview {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--secondary-blue);
}

.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(--white);
    text-decoration: none;
    transition: color 0.2s;
}

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

.post-meta {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.post-excerpt {
    color: var(--light-gray);
}

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

.post-header h1 {
    font-size: 2.2rem;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--white);
}

.post-tags {
    margin-top: 0.75rem;
}

.tag {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--white);
    text-decoration: none;
    margin-right: 0.75rem;
    background: var(--accent-orange);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: background 0.2s;
}

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

/* Post content */
.post-content {
    margin-bottom: 3rem;
}

.post-content h2 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--white);
    border-bottom: 2px solid var(--accent-orange);
    padding-bottom: 0.5rem;
}

.post-content h3 {
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--white);
}

.post-content p {
    margin-bottom: 1.25rem;
    color: var(--light-gray);
}

.post-content a {
    color: var(--accent-orange);
    text-decoration: underline;
}

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

.post-content ul,
.post-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
    color: var(--light-gray);
}

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

.post-content li::marker {
    color: var(--accent-orange);
}

.post-content blockquote {
    border-left: 3px solid var(--accent-orange);
    padding-left: 1.25rem;
    margin: 1.5rem 0;
    color: var(--light-gray);
    font-style: italic;
    background: rgba(46, 80, 144, 0.2);
    padding: 1rem 1.25rem;
    border-radius: 0 6px 6px 0;
}

.post-content code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    background: var(--secondary-blue);
    padding: 0.2em 0.4em;
    border-radius: 3px;
    color: var(--accent-orange);
}

.post-content pre {
    background: var(--text-dark);
    padding: 1.25rem;
    border-radius: 6px;
    overflow-x: auto;
    margin-bottom: 1.5rem;
    border-left: 3px solid var(--accent-orange);
}

.post-content pre code {
    background: none;
    padding: 0;
    font-size: 0.875rem;
    color: var(--light-gray);
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 1.5rem 0;
    border: 1px solid var(--secondary-blue);
}

.post-content hr {
    border: none;
    border-top: 1px solid var(--secondary-blue);
    margin: 2.5rem 0;
}

.post-content strong {
    color: var(--white);
    font-weight: 600;
}

/* Post footer */
.post-footer {
    padding-top: 2rem;
    border-top: 1px solid var(--secondary-blue);
}

.post-footer a {
    color: var(--accent-orange);
    text-decoration: none;
}

.post-footer a:hover {
    text-decoration: underline;
    color: var(--white);
}

/* Site footer */
.site-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--secondary-blue);
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-light);
}

.site-footer p {
    margin-bottom: 0.5rem;
}

.site-footer a {
    color: var(--accent-orange);
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
    color: var(--white);
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        padding: 1.5rem 1rem;
    }
    
    .nav {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .intro h1 {
        font-size: 1.75rem;
    }
    
    .post-header h1 {
        font-size: 1.75rem;
    }
}
