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

:root {
    --bg: #0a0a0a;
    --surface: #141414;
    --border: #262626;
    --text: #fafafa;
    --text-muted: #a1a1a1;
    --accent: #3b82f6;
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

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

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

.logo-img {
    height: 40px;
    width: auto;
}

/* Main */
main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

/* Hero */
.hero {
    text-align: center;
    padding: 4rem 0;
}

.hero-logo {
    max-width: 400px;
    width: 100%;
    height: auto;
    margin-bottom: 1.5rem;
}

.tagline {
    color: var(--text-muted);
    font-size: 1.25rem;
    max-width: 500px;
    margin: 0 auto;
}

/* Projects */
.projects h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-weight: 500;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.project-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: border-color 0.2s;
}

.project-card:hover {
    border-color: var(--accent);
}

.project-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.project-card p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.tag {
    background: var(--border);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.project-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.project-link:hover {
    text-decoration: underline;
}

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

/* Project Page */
.project-page {
    max-width: 700px;
    margin: 0 auto;
}

.back-link {
    color: var(--text-muted);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 2rem;
}

.back-link:hover {
    color: var(--text);
}

.project-page h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.project-page .tags {
    margin-bottom: 2rem;
}

.project-intro {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.project-steps h2 {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-weight: 500;
}

.project-steps ol {
    list-style: none;
    counter-reset: step;
}

.project-steps li {
    counter-increment: step;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    padding-left: 3rem;
    position: relative;
}

.project-steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 600;
    font-size: 1.25rem;
}

/* Markdown Content */
#content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

#content h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text);
}

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

#content p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

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

#content li {
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

#content a {
    color: var(--accent);
    text-decoration: none;
}

#content a:hover {
    text-decoration: underline;
}

#content code {
    background: var(--surface);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
}

#content pre {
    background: var(--surface);
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 1rem;
}

#content pre code {
    background: none;
    padding: 0;
}

#content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

#content strong {
    color: var(--text);
}

/* Responsive */
@media (max-width: 640px) {
    .hero h1 {
        font-size: 2rem;
    }

    main {
        padding: 1rem;
    }
}
