: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;
}

.stat-card {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.25rem;
}

.contrib-graph-wrap {
    margin-top: 1.5rem;
    overflow-x: auto;
}

.contrib-grid {
    display: grid;
    grid-template-rows: repeat(7, 10px);
    grid-auto-flow: column;
    grid-auto-columns: 10px;
    gap: 3px;
    width: max-content;
}

.contrib-cell {
    width: 10px;
    height: 10px;
    border-radius: 2px;
}

.contrib-empty {
    background: transparent;
}

.recent-commits {
    margin-top: 1.5rem;
    text-align: left;
}

.recent-commits h3 {
    margin: 0 0 1rem;
    font-size: 0.85rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.commit-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.commit-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.75rem;
    align-items: baseline;
}

.commit-repo {
    font-weight: 600;
    color: var(--accent);
    white-space: nowrap;
}

.commit-message {
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.commit-meta {
    color: var(--muted);
    font-size: 0.85rem;
    white-space: nowrap;
}

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