@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap');

body {
    margin: 0;
    text-align: center;
    font-family: "Inter", Arial, sans-serif;
    line-height: 1.6;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px;
}

.top-bar a {
    color: inherit;
    text-decoration: none;
}

.site-name {
    font-weight: 700;
}

.top-bar nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 24px;
}

.personal-content {
    max-width: 1000px;
    margin: 80px auto 0;
    padding: 0 24px;
}

.youtube-intro {
    display: flex;
    align-items: center;
    gap: 24px;
    text-align: left;
}

.youtube-intro p {
    flex: 1;
}

.page-images {
    width: 500px;
    max-width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.page-image {
    margin: 0;
    text-align: center;
}

.page-image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
}

.page-image figcaption {
    margin-top: 8px;
    font-size: 0.9em;
}

.youtube-link {
    display: inline-block;
    font-size: 2em;
    margin-bottom: 100px;
}

.projects-content {
    margin-bottom: 100px;
}

.project-list {
    display: grid;
    gap: 12px;
    text-align: left;
}

.project-bar {
    display: block;
    padding: 16px 20px;
    border: 1px solid #ccc;
    color: inherit;
    text-decoration: none;
}

.project-bar:hover, .project-bar:focus-visible {
    background: #f2f2f2;
}

.project-description {
    max-width: 750px;
    margin: 0 auto 32px;
    text-align: left;
    white-space: pre-wrap;
}

.project-photos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.project-photo {
    width: 450px;
    max-width: 100%;
    margin: 0;
}

.project-photo img {
    width: 100%;
    max-width: 450px;
    max-height: 500px;
    object-fit: contain;
}

.project-photo figcaption {
    margin-top: 8px;
    font-size: 0.9em;
}

.project-video {
    max-width: 750px;
    margin: 32px auto 0;
}

.project-video iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
}

.introduction {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 24px;
    text-align: left;
}

.introduction-text {
    flex: 1;
    line-height: 1.6;
}

.profile {
    width: 700px;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    text-align: center;
}

.profile figcaption {
    margin-top: 8px;
    font-size: 0.9em;
}

.profile-image {
    width: 700px;
    max-width: 100%;
    height: auto;
}

@media (max-width: 700px) {
    .youtube-intro {
        flex-direction: column;
    }

    .introduction {
        flex-direction: column;
        gap: 24px;
        margin: 40px auto;
    }
}
