:root {
    --bg: #0f1115;
    --bg-alt: #161922;
    --text: #e8e9ec;
    --muted: #9aa0ac;
    --accent: #5b8cff;
    --border: #262a35;
    --max-width: 900px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
}

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

a:hover {
    text-decoration: underline;
}

.site-header {
    position: sticky;
    top: 0;
    background: rgba(15, 17, 21, 0.9);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--border);
    z-index: 10;
}

.nav {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-weight: 600;
    color: var(--text);
}

.nav-links a {
    margin-left: 1.5rem;
    color: var(--muted);
}

.nav-links a:hover {
    color: var(--text);
    text-decoration: none;
}

.hero {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 6rem 1.5rem 4rem;
    text-align: center;
}

.hero h1 {
    font-size: 2.75rem;
    margin: 0 0 0.5rem;
}

.tagline {
    color: var(--muted);
    font-size: 1.25rem;
    margin: 0;
}

.github-stats {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.github-stats img {
    display: block;
    width: 100%;
    height: auto;
    flex: 1 1 0;
    min-width: 0;
}

.section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 3rem 1.5rem;
    border-top: 1px solid var(--border);
}

.section h2 {
    margin-top: 0;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.project-grid img {
    max-width: 100%;
    height: auto;
}

.contrib-graph-wrap {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.25rem;
    margin-top: 1.5rem;
    overflow-x: auto;
}

.contrib-graph {
    display: block;
    width: 100%;
    height: auto;
    filter: invert(1) hue-rotate(180deg);
}

.site-footer {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
    color: var(--muted);
    text-align: center;
}
