:root {
    --bg-color: #ffffff;
    --text-color: #1a1a1a;
    --link-color: #0066cc;
    --secondary-text: #666666;
    --spacing-unit: 1.5rem;
    --max-width: 680px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #111111;
        --text-color: #eeeeee;
        --link-color: #66b3ff;
        --secondary-text: #aaaaaa;
    }
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    padding: 2rem 1rem;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.profile {
    margin-bottom: calc(var(--spacing-unit) * 3);
}

h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.role {
    color: var(--secondary-text);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-unit);
}

.social-links {
    display: flex;
    gap: 1rem;
    font-size: 0.95rem;
}

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

.social-links a:hover {
    border-bottom-color: var(--text-color);
}

.projects h2 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--secondary-text);
    margin-bottom: var(--spacing-unit);
    border-bottom: 1px solid var(--secondary-text);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.project-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.project-list li {
    margin-bottom: 0;
}

.project-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    height: 100%;
}

.project-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    background-color: #333;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.project-card:hover .project-thumb {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.project-title {
    color: var(--link-color);
    font-weight: 500;
    line-height: 1.4;
}

.project-card:hover .project-title {
    text-decoration: underline;
}

@media (max-width: 480px) {
    body {
        padding: 1.5rem 1rem;
    }
    
    h1 {
        font-size: 1.75rem;
    }
}
