/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #fafafa;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Layout */
.container {
    max-width: 680px;
    margin: 0 auto;
    padding: 100px 30px 80px;
}

/* Typography */
h1 {
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

h2 {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
    margin-top: 4rem;
    color: #666;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
    max-width: 65ch;
}

a {
    color: #1a1a1a;
    text-decoration: none;
    border-bottom: 1px solid #d0d0d0;
    transition: border-color 0.2s ease;
}

a:hover {
    border-bottom-color: #1a1a1a;
}

/* Header */
header {
    margin-bottom: 3rem;
}

.headshot {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    display: block;
}

.title {
    font-size: 1rem;
    color: #666;
    font-weight: 400;
}

/* Sections */
section {
    margin-bottom: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e5e5;
}

section:first-of-type {
    border-top: none;
    padding-top: 0;
}

.intro {
    margin-bottom: 4rem;
}

.intro p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #333;
}

/* Projects */
.project {
    margin-bottom: 3rem;
}

.project:last-child {
    margin-bottom: 0;
}

.period {
    font-size: 0.875rem;
    color: #999;
    margin-bottom: 0.75rem;
    font-weight: 400;
}

.project p:last-child {
    margin-bottom: 0;
}

/* Background */
.background p {
    line-height: 1.7;
}

/* Contact */
.contact p {
    line-height: 2;
}

.contact a {
    display: inline-block;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .container {
        padding: 60px 24px 60px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        margin-top: 3rem;
    }

    .intro p {
        font-size: 1rem;
    }

    section {
        margin-bottom: 3rem;
    }

    .headshot {
        width: 80px;
        height: 80px;
        margin-bottom: 1.25rem;
    }
}

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

    h1 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.125rem;
    }
}
