:root {
    /* Light mode colors - inspired by Greek pottery */
    --bg-primary: #EAE0D6;
    --bg-secondary: #F5F5DC;
    --text-primary: #1A1A1A;
    --text-secondary: #6B5E51;
    --text-muted: #857A6F;
    --accent-terracotta: #B46B4E;
    --accent-terracotta-light: #D08D69;
    --accent-verdigris: #758D81;
    --border-color: #C47D5B;
    --border-subtle: #E0DCD4;
}

@media (prefers-color-scheme: dark) {
    :root {
        /* Dark mode colors - inspired by Greek pottery */
        --bg-primary: #1A1A1A;
        --bg-secondary: #2E2E2E;
        --text-primary: #EAE0D6;
        --text-secondary: #E0DCD4;
        --text-muted: #857A6F;
        --accent-terracotta: #D08D69;
        --accent-terracotta-light: #B46B4E;
        --accent-verdigris: #758D81;
        --border-color: #6B5E51;
        --border-subtle: #3C3C3C;
    }
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    font-size: 16px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 24px;
}

header {
    margin-bottom: 80px;
    position: relative;
}

h1 {
    font-size: 32px;
    font-weight: 600;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.name-first {
    color: var(--accent-terracotta);
}

.name-last {
    color: var(--accent-verdigris);
}

.tagline {
    font-size: 18px;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 40px;
}

nav {
    position: absolute;
    top: 0;
    right: 0;
}

nav a {
    color: var(--text-primary);
    text-decoration: none;
    margin-right: 24px;
    font-size: 15px;
    transition: color 0.2s ease;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-terracotta);
    transition: width 0.3s ease;
}

nav a:hover {
    color: var(--accent-terracotta);
}

nav a:hover::after {
    width: 100%;
}

section {
    margin-bottom: 80px;
}

h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 32px;
    letter-spacing: -0.3px;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 12px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--accent-terracotta);
}

.about {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.projects {
    display: grid;
    gap: 32px;
}

.project {
    padding: 24px 0;
    border-bottom: 1px solid var(--border-subtle);
    transition: transform 0.2s ease, padding-left 0.2s ease;
}

.project:hover {
    transform: translateX(4px);
    padding-left: 8px;
}

.project:last-child {
    border-bottom: none;
}

.project-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.2px;
    color: var(--text-primary);
}

.project-title::before {
    content: '→';
    color: var(--accent-terracotta);
    margin-right: 8px;
    opacity: 0;
    transition: opacity 0.2s ease, margin-right 0.2s ease;
}

.project:hover .project-title::before {
    opacity: 1;
    margin-right: 12px;
}

.project-description {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

.project-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.project-title a:hover {
    color: var(--accent-terracotta);
}

.project-screenshots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.project-screenshots:has(img:only-child) {
    grid-template-columns: minmax(150px, calc((100% - 48px) / 4));
}

.screenshot {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid var(--border-subtle);
}

.screenshot:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.contact {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 2px solid var(--border-color);
}

.contact a {
    color: var(--accent-terracotta);
    text-decoration: none;
    font-size: 17px;
    font-weight: 500;
    transition: color 0.2s ease;
    border-bottom: 1px solid transparent;
}

.contact a:hover {
    color: var(--accent-terracotta-light);
    border-bottom-color: var(--accent-terracotta-light);
}

@media (max-width: 600px) {
    .container {
        padding: 40px 20px;
    }

    h1 {
        font-size: 28px;
    }

    .tagline {
        font-size: 16px;
    }

    nav {
        position: static;
        margin-top: 24px;
    }

    nav a {
        display: block;
        margin-bottom: 12px;
        margin-right: 0;
    }

    nav a::after {
        display: none;
    }

    section {
        margin-bottom: 60px;
    }

    .project:hover {
        transform: none;
        padding-left: 0;
    }

    .project-screenshots {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}
