body {
    font-family: sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    background-color: #fff;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.container {
  max-width: 1000px; 
  
  margin-left: auto;
  margin-right: auto;
  
  padding: 0 20px; 
}

.hero {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.headshot {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
}

.hero-text p {
    margin: 0 0 0.5rem 0;
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-links a {
    font-size: 1.5rem;
    color: inherit;
    text-decoration: none;
}

.social-links a:hover {
    opacity: 0.7;
}

.timeline {
    margin: 2rem 0;
}

.timeline-entry {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.timeline-emblem {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.timeline-year {
    flex-shrink: 0;
    width: 100px;
    font-weight: bold;
}

.timeline-content {
    flex: 1;
}

.handiwork-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin: 0.75rem 0 2rem 0;
}

.handiwork-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
}

.handiwork-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 120ms ease, opacity 120ms ease;
}

.handiwork-caption {
    text-align: center;
    font-size: 0.95rem;
}

.handiwork-item:hover img {
    opacity: 0.9;
    transform: translateY(-1px);
}

.handiwork-item:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
    border-radius: 12px;
}

.project-content img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-left: auto;
    margin-right: auto;
}

.project-content hr {
    margin: 1.5rem 0;
}

.project-content h2 {
    margin: 1.5rem 0 0.75rem 0;
}

.project-content figure {
    margin: 1.5rem 0;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
}

.project-content figure.skinny-figure {
    max-width: 240px;
}

.project-content figure img {
    width: auto;
    height: auto;
}

.project-content figcaption {
    margin-top: 0.5rem;
    text-align: left;
    font-size: 0.9rem;
    color: inherit;
    opacity: 0.8;
}

.project-content .go2-app-section figure {
    max-width: 470px;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 300px));
    gap: 1rem;
    margin: 1.5rem 0;
    justify-content: center;
}

.project-content figure + .image-grid {
    margin-top: 2.5rem;
}

.image-grid figure {
    margin: 0;
    display: flex;
    flex-direction: column;
    max-width: none;
}

.image-grid figure img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    max-width: none;
}

.image-grid figcaption {
    margin-top: 0.5rem;
    text-align: left;
    font-size: 0.9rem;
    color: inherit;
    opacity: 0.8;
}

@media (prefers-color-scheme: dark) {
    body {
        color: #e0e0e0;
        background-color: #1a1a1a;
    }

    a {
        color: #6bb6ff;
    }

    a:visited {
        color: #9d7fff;
    }
}

@media (max-width: 500px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .timeline-entry {
        flex-direction: row;
        gap: 0.75rem;
    }

    .timeline-emblem {
        width: 50px;
        height: 50px;
    }

    .timeline-year {
        width: auto;
    }

    .handiwork-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .image-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}
