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

/* Base styles */
body {
    font-family: 'Switzer', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #F5F5F4;
}

main {
    max-width: 996px;
    margin: 0 auto;
    padding: 180px 48px 48px;
}

/* Typography styles */
.heading-1 {
    font-family: 'PT Serif', serif;
    font-size: 64px;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #1C1917;
}

.body {
    font-size: 17px;
    line-height: 150%;
    color: #1C1917;
}

.detail {
    font-size: 15px;
    font-weight: 400;
    line-height: 150%;
    color: #A8A29E;
}

/* Hero section */
.hero {
    margin-bottom: 120px;
}

.hero h1 em {
    font-style: italic;
}

/* Experience and About sections - side by side */
.experience-about-wrapper {
    display: flex;
    gap: 144px;
    margin-bottom: 120px;
    align-items: flex-start;
}

.experience {
    max-width: 277px;
    flex-shrink: 0;
}

.about {
    flex: 1;
}

.job:not(:last-child) {
    margin-bottom: 12px;
}

.job .detail {
    margin-bottom: 2px;
}

.about .detail {
    margin-bottom: 2px;
}

/* Gallery section */
.gallery {
    margin-bottom: 120px;
}

.gallery img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 24px;
}

.gallery img:last-child {
    margin-bottom: 0;
}

/* Footer */
.footer {
    display: flex;
    gap: 32px;
    margin-bottom: 0px;
}

.footer a {
    font-size: 17px;
    font-weight: 500;
    color: #A8A29E;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer a:hover {
    color: #111827;
}

/* Tablet version (999px - 700px) */
@media (max-width: 999px) {
    main {
        padding: 104px 48px 32px;
    }
    
    .heading-1 {
        font-size: 56px;
        line-height: 1.1;
        letter-spacing: -0.03em;
    }
    
    .hero {
        margin-bottom: 48px;
    }
    
    .experience-about-wrapper {
        flex-direction: column;
        gap: 48px;
        margin-bottom: 48px;
    }
    
    .experience {
        max-width: 100%;
        order: 2;
    }
    
    .about {
        order: 1;
    }
    
    .gallery {
        margin-bottom: 48px;
    }
    
    .footer {
        margin-bottom: 0;
    }
}

/* Mobile version (less than 700px) */
@media (max-width: 700px) {
    main {
        padding: 48px 24px 16px;
    }
    
    .heading-1 {
        font-size: 40px;
        line-height: 1.1;
        letter-spacing: -0.03em;
    }
    
    .hero {
        margin-bottom: 48px;
    }
    
    .experience-about-wrapper {
        margin-bottom: 48px;
    }
    
    .experience {
        order: 2;
    }
    
    .about {
        order: 1;
    }
    
    .gallery {
        margin-bottom: 48px;
    }
    
    .gallery img {
        margin-bottom: 12px;
    }
    
    .footer {
        flex-direction: column;
        gap: 8px;
    }
}