:root {
    /* Dark Mode Palette */
    --bg: #0a0a0a;
    --text: #f0f0f0;
    --accent: #ff5e00;
    --dim: #888888;
    --border: #2a2a2a;
    --tag-bg: #1a1a1a;
    --hover-bg: #141414;
    --font-mono: 'SFMono-Regular', Consolas, Menlo, monospace;
}

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

body {
    font-family: var(--font-mono);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    padding: 4rem 2rem;
    max-width: 720px;
    margin: 0 auto;
    -webkit-font-smoothing: antialiased;
}

/* ============================= */
/* Header */
/* ============================= */

header {
    margin-bottom: 3.5rem;
}

h1 {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.title {
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 4px;
}

.location {
    font-size: 0.8rem;
    color: var(--dim);
    margin-bottom: 0.8rem;
}

.contact {
    font-size: 0.8rem;
    margin: 1rem 0 1.2rem 0;
    padding: 0.6rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.contact a {
    color: var(--dim);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.contact a:hover {
    color: var(--text);
    border-bottom: 1px solid var(--accent);
}

.stats {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

.bio {
    font-size: 0.95rem;
    max-width: 560px;
    color: #d1d1d1;
}

/* ============================= */
/* Sections */
/* ============================= */

section {
    margin-bottom: 3.5rem;
}

h2 {
    font-size: 0.75rem;
    color: var(--dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 0;
}

/* ============================= */
/* Project Styling */
/* ============================= */

.project-group {
    margin-bottom: 1rem;
    padding: 4px 0;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.project-group:hover {
    background: var(--hover-bg);
}

.project-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    text-decoration: none;
    color: inherit;
    padding: 0.5rem 0;
    transition: color 0.2s ease;
}

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

.project-title {
    font-weight: 600;
    font-size: 1rem;
}

.project-tag {
    font-size: 0.7rem;
    font-weight: 400;
    background: var(--tag-bg);
    padding: 2px 8px;
    margin-left: 8px;
    border-radius: 2px;
    vertical-align: middle;
    color: #cccccc;
    border: 1px solid var(--border);
}

.project-year {
    font-size: 0.8rem;
    color: var(--dim);
}

.project-desc {
    font-size: 0.85rem;
    color: var(--dim);
    margin-top: -2px;
    padding-bottom: 0.5rem;
}

/* ============================= */
/* Stack Section */
/* ============================= */

.stack-list {
    font-size: 0.9rem;
    color: #cccccc;
}

.stack-list strong {
    color: var(--dim);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.7rem;
    margin-right: 5px;
}

/* ============================= */
/* Footer */
/* ============================= */

footer {
    border-top: 1px solid var(--border);
    padding-top: 1.2rem;
    margin-top: 4rem;
    font-size: 0.75rem;
    color: var(--dim);
}

/* ============================= */
/* Responsive */
/* ============================= */

@media (max-width: 600px) {
    body {
        padding: 2rem 1.2rem;
    }

    .project-item {
        flex-direction: column;
        gap: 4px;
        align-items: flex-start;
    }
}