@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&family=JetBrains+Mono:wght@400&display=swap');

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

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: #0d0d0d;
    color: #e0e0e0;
    line-height: 1.75;
}

.site-header {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #222;
    position: sticky;
    top: 0;
    background: #0d0d0d;
    z-index: 10;
}

.site-header a {
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.2s;
}

.site-header a:hover {
    color: #ff4500;
}

.site-header nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.3rem;
    line-height: 1;
    transition: transform 0.2s;
    color: #888;
    display: flex;
    align-items: center;
}
.theme-toggle:hover {
    transform: scale(1.2);
    color: #ff4500;
}
.theme-toggle .icon-moon { display: none; }
html.light .theme-toggle .icon-sun { display: none; }
html.light .theme-toggle .icon-moon { display: block; }
html.light .theme-toggle { color: #555; }
html.light .theme-toggle:hover { color: #e34234; }

.view-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    text-decoration: none;
    transition: transform 0.2s;
    border-bottom: none !important;
}
.view-toggle:hover {
    transform: scale(1.3);
    border-bottom: none !important;
}
.view-toggle svg {
    width: 28px;
    height: 28px;
    transition: fill 0.2s;
}
.view-toggle:hover svg {
    fill: #ff6600;
}

.content {
    max-width: 680px;
    margin: 4rem auto;
    padding: 0 1.5rem;
}

.content h1 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 0.5rem;
    color: #fff;
    letter-spacing: -0.03em;
}

.content .meta {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.content h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-top: 3rem;
    margin-bottom: 0.75rem;
    color: #fff;
    letter-spacing: -0.02em;
}

.content h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    color: #ccc;
}

.content p, .content li {
    margin-bottom: 1.25rem;
    color: #bbb;
}

.content ul, .content ol {
    padding-left: 1.5rem;
}

.content li::marker {
    color: #ff4500;
}

.content a {
    color: #ff6600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.content a:hover {
    border-bottom-color: #ff6600;
}

.content strong {
    color: #fff;
    font-weight: 600;
}

.content code {
    font-family: 'JetBrains Mono', monospace;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    padding: 0.15em 0.4em;
    border-radius: 4px;
    font-size: 0.85em;
    color: #ff6600;
}

.content pre {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-left: 3px solid #ff4500;
    padding: 1.25rem;
    border-radius: 6px;
    overflow-x: auto;
    margin: 2rem 0;
}

.content pre code {
    background: none;
    border: none;
    padding: 0;
    color: #e0e0e0;
}

.content blockquote {
    border-left: 3px solid #ff4500;
    padding: 1rem 1.25rem;
    margin: 2rem 0;
    background: #1a1a1a;
    border-radius: 0 6px 6px 0;
    color: #999;
    font-style: italic;
}

.content hr {
    border: none;
    height: 1px;
    background: linear-gradient(to right, #ff4500, transparent);
    margin: 3rem 0;
}

.content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 2rem 0;
}

/* List pages */
.post-list h1 {
    margin-bottom: 3rem;
}

.post-list article {
    padding: 1.25rem 0;
    border-bottom: 1px solid #1a1a1a;
    transition: border-color 0.2s;
}

.post-list article:hover {
    border-color: #ff4500;
}

.post-list h2 {
    font-size: 1.2rem;
    margin: 0 0 0.25rem 0;
}

.post-list h2 a {
    color: #fff;
    border-bottom: none;
}

.post-list h2 a:hover {
    color: #ff4500;
}

.post-list em {
    color: #555;
    font-size: 0.8rem;
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.site-footer {
    text-align: center;
    padding: 4rem 2rem;
    color: #444;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Light mode */
html.light body {
    background: #f5f5f5;
    color: #222;
}
html.light .site-header {
    background: #f5f5f5;
    border-bottom-color: #ddd;
}
html.light .site-header a { color: #555; }
html.light .site-header a:hover { color: #e34234; }
html.light .content h1,
html.light .content h2,
html.light .content strong { color: #111; }
html.light .content h3 { color: #333; }
html.light .content p,
html.light .content li { color: #444; }
html.light .content a { color: #e34234; }
html.light .content a:hover { border-bottom-color: #e34234; }
html.light .content code {
    background: #eee;
    border-color: #ddd;
    color: #e34234;
}
html.light .content pre {
    background: #eee;
    border-color: #ddd;
}
html.light .content pre code { color: #222; }
html.light .content blockquote {
    background: #eee;
    color: #555;
}
html.light .post-list article { border-bottom-color: #ddd; }
html.light .post-list article:hover { border-color: #e34234; }
html.light .post-list h2 a { color: #111; }
html.light .post-list h2 a:hover { color: #e34234; }
html.light .site-footer { color: #999; }
