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

body {
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
    background-color: #FAF9F7;
    color: #2D2D2D;
    line-height: 1.6;
    max-width: 800px;
    margin-inline: auto;
    padding: 60px 30px;
}

a {
    color: #2D2D2D;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #6B6B6B;
}

/* Header */
.header {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-bottom: 16px;
}

.profile-photo {
    border-radius: 50%;
    width: 96px;
    height: 96px;
    object-fit: cover;
    border: 3px solid #E8E4DE;
}

.header-text h1 {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 2px;
}

.header-text .subtitle {
    font-size: 15px;
    color: #6B6B6B;
}

/* Social links */
.social-links {
    display: flex;
    gap: 18px;
    margin-bottom: 40px;
    padding-left: 124px;
}

.social-links a {
    font-size: 18px;
    color: #6B6B6B;
}

.social-links a:hover {
    color: #2D2D2D;
}

/* Bio */
.bio {
    font-size: 15px;
    color: #4A4A4A;
    margin-bottom: 48px;
    max-width: 600px;
    line-height: 1.7;
}

/* Section */
.section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #9A9A9A;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 1px solid #E8E4DE;
}

/* Experience entry */
.entry {
    margin-bottom: 28px;
}

.entry-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 2px;
}

.entry-title {
    font-weight: 800;
    font-size: 15px;
}

.entry-date {
    font-size: 13px;
    color: #9A9A9A;
    white-space: nowrap;
}

.entry-org {
    font-size: 14px;
    color: #6B6B6B;
    margin-bottom: 4px;
}

.entry-description {
    font-size: 14px;
    color: #6B6B6B;
    line-height: 1.6;
}

/* Skills */
.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
}

.skill-tag {
    font-size: 13px;
    padding: 4px 12px;
    background-color: #EDEAE5;
    border-radius: 20px;
    color: #4A4A4A;
}

/* Resume button */
.resume-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    font-weight: 800;
    color: #6B6B6B;
    background: none;
    margin-top: 40px;
    padding: 10px 20px;
    border: 1px solid #E8E4DE;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.resume-link:hover {
    color: #2D2D2D;
    border-color: #CCC;
    background-color: #F0EEEA;
}

/* Print */
@media print {
    @page {
        size: A4;
        margin: 14mm 16mm;
    }

    body {
        background: white !important;
        color: #2D2D2D !important;
        padding: 0;
        margin: 0;
        max-width: none;
        font-size: 11px;
        line-height: 1.5;
    }

    footer, nav {
        display: none !important;
    }

    .header {
        gap: 16px;
        margin-bottom: 8px;
    }

    .profile-photo {
        width: 56px;
        height: 56px;
        border: 2px solid #DDD;
    }

    .header-text h1 {
        font-size: 22px;
        margin-bottom: 0;
    }

    .header-text .subtitle {
        font-size: 11px;
        color: #6B6B6B !important;
    }

    .bio {
        font-size: 10px;
        color: #4A4A4A !important;
        margin-bottom: 20px;
        max-width: none;
    }

    .section {
        margin-bottom: 16px;
    }

    .section-title {
        font-size: 9px;
        color: #9A9A9A !important;
        border-bottom-color: #DDD !important;
        margin-bottom: 10px;
        padding-bottom: 4px;
    }

    .entry {
        margin-bottom: 12px;
        break-inside: avoid;
    }

    .entry-title {
        font-size: 11px;
    }

    .entry-date {
        font-size: 10px;
        color: #9A9A9A !important;
    }

    .entry-org {
        font-size: 10px;
        color: #6B6B6B !important;
    }

    .entry-description {
        font-size: 10px;
        color: #555 !important;
    }

    .skill-tag {
        font-size: 9px;
        padding: 2px 8px;
        background-color: #EDEAE5 !important;
        color: #4A4A4A !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* Responsive */
@media (max-width: 600px) {
    body {
        padding: 40px 20px;
    }

    .header {
        flex-direction: column;
        text-align: center;
    }

    .social-links {
        padding-left: 0;
        justify-content: center;
    }

    .entry-header {
        flex-direction: column;
        gap: 2px;
    }
}

/* Dark theme */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1A1A1A;
        color: #E0E0E0;
    }

    a {
        color: #E0E0E0;
    }

    a:hover {
        color: #AAAAAA;
    }

    .profile-photo {
        border-color: #333;
    }

    .header-text .subtitle {
        color: #9A9A9A;
    }

    .social-links a {
        color: #9A9A9A;
    }

    .social-links a:hover {
        color: #E0E0E0;
    }

    .bio {
        color: #B0B0B0;
    }

    .section-title {
        color: #777;
        border-bottom-color: #333;
    }

    .entry-date {
        color: #777;
    }

    .entry-org {
        color: #9A9A9A;
    }

    .entry-description {
        color: #9A9A9A;
    }

    .skill-tag {
        background-color: #2A2A2A;
        color: #B0B0B0;
    }

    .resume-link {
        color: #9A9A9A;
        border-color: #333;
    }

    .resume-link:hover {
        color: #E0E0E0;
        border-color: #555;
        background-color: #252525;
    }
}
