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

body {
    background-color: #ffffff;
    color: #2d2d2d;
    font-family: system-ui, -apple-system, sans-serif;
    line-height: 1.6;
}

/* Main container */
main {
    max-width: 850px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* Header styles */
.intro {
    width: 100%;
    margin-bottom: 6rem;
}

h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
    font-weight: 400;
}

.intro-content {
    max-width: 600px;
    font-size: 1.2rem;
}

.intro-content p {
    margin-bottom: 2rem;
}

.intro-content h2 {
    font-size: 1.8rem;
    margin: 1rem 0 1rem 0;
    font-weight: 500;
}

.intro-content a {
    color: #0066cc;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.intro-content a:hover {
    border-bottom-color: #0066cc;
}

.note {
    background: #f5f5f5;
    padding: 1.5rem;
    margin: 3rem 0;
    border-radius: 4px;
    font-style: italic;
}

/* Projects grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    width: 100%;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* Project cell styles */
.project-cell {
    aspect-ratio: 1;
    position: relative;
    background: #f5f5f5;
    max-width: 450px;
    border-radius: 4px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease;
}

.project-cell:hover {
    transform: translateY(-5px);
}

/* Project image styles */
.project-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Project content overlay */
.project-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 1rem;
    text-align: center;
}

.project-cell:hover .project-content {
    opacity: 1;
}

/* Section spacing */
h2 {
    font-size: 1.75rem;
    margin-top: 5rem;
    margin-bottom: 1.25rem;
    font-weight: 500;
    color: #333333;
}

h2:first-of-type {
    margin-top: 3rem;
}

/* Section spacing */
.sketches, .teaching, .writing {
    margin-bottom: 4rem;
}

/* Responsive styles */
@media (max-width: 768px) {
    main {
        padding: 2rem 1rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    .intro-content {
        width: 100%;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-color-scheme: dark) {
    .intro-content a {
        color: #66b3ff;
    }
    
    .intro-content a:hover {
        border-bottom-color: #66b3ff;
    }
}