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

:root {
    --ink: #22262f;
    --muted: #667081;
    --line: #d7dce4;
    --soft: #ffffff;
    --accent: #7b5f3b;
    --accent-strong: #2f3a4b;
    --paper: #ffffff;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
    color: var(--ink);
    background: #ffffff;
    min-height: 100vh;
}

a {
    color: inherit;
}

.container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    background: #ffffff;
    box-shadow: none;
    border-radius: 24px;
    padding: 18px 22px 22px;
}

.resume-page {
    padding: 18px 0 28px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 0 0 14px;
    border-bottom: 1px solid rgba(215, 220, 228, 0.8);
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pill-button,
.language-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 0.86rem;
    text-decoration: none;
    color: var(--ink);
}

.pill-button-primary {
    background: var(--accent-strong);
    border-color: var(--accent-strong);
    color: #fff;
    font-weight: 700;
}

.pill-button-muted {
    background: #ffffff;
    color: var(--muted);
}

.pill-note {
    font-size: 0.88rem;
    color: #7c5f28;
}

.language-switcher {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.language-chip {
    cursor: pointer;
    background: #ffffff;
}

.language-chip.is-active {
    background: var(--accent-strong);
    color: #fff;
    font-weight: 700;
}

.hero {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 22px;
    padding: 4px 0 20px;
    border-bottom: 1px solid rgba(215, 220, 228, 0.8);
}

.hero-left {
    align-self: start;
}

.portrait-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 20px;
    background: #ffffff;
    overflow: hidden;
    box-shadow: none;
}

.portrait-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.hero-right {
    min-width: 0;
}

.name-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    border-bottom: 1px solid rgba(215, 220, 228, 0.9);
    padding-bottom: 8px;
    margin-bottom: 10px;
}

.name-row h1 {
    font-size: clamp(2.4rem, 4vw, 3.6rem);
    line-height: 1;
    letter-spacing: -0.05em;
}

.social-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 10px;
    font-size: 0.92rem;
    color: var(--accent-strong);
}

.social-row a {
    text-decoration: none;
    font-weight: 700;
}

.intro-copy {
    display: grid;
    gap: 14px;
    font-size: 0.98rem;
    color: var(--ink);
}

.intro-copy p {
    max-width: 70ch;
}

.summary-section {
    padding-top: 18px;
    margin-top: 18px;
    border-top: 1px solid rgba(215, 220, 228, 0.9);
}

.summary-section p {
    max-width: 85ch;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding: 16px 0 8px;
}

.info-card h2,
.section-heading h2 {
    font-size: 1.35rem;
    line-height: 1.1;
    font-weight: 800;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(215, 220, 228, 0.9);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.info-card,
.experience-item {
    background: #ffffff;
    border-radius: 0;
    padding: 0 0 12px;
}

.info-card ul,
.experience-item ul {
    list-style: none;
}

.info-card li,
.experience-item li {
    margin-bottom: 10px;
}

.info-card strong {
    font-weight: 700;
}

.experience-section {
    padding-top: 18px;
    margin-top: 18px;
    border-top: 1px solid rgba(215, 220, 228, 0.9);
}

.section-heading {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 12px;
}

.section-note {
    font-size: 0.95rem;
    color: var(--muted);
}

.experience-item {
    margin-bottom: 12px;
}

.experience-headline {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.experience-headline h3 {
    font-size: 1rem;
    line-height: 1.35;
}

.experience-headline span {
    color: var(--muted);
    white-space: nowrap;
}

.experience-item ul {
    padding-left: 18px;
    list-style: disc;
    color: var(--ink);
}

.experience-tags {
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.92rem;
}

.experience-tags a {
    text-decoration: none;
    color: var(--accent-strong);
    word-break: break-word;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(215, 220, 228, 0.9);
    color: var(--muted);
    font-size: 0.92rem;
}

.site-footer a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    min-height: 32px;
    border-radius: 999px;
    text-decoration: none;
    color: var(--ink);
    background: #ffffff;
}

@media (max-width: 860px) {
    .container {
        padding: 16px;
        border-radius: 20px;
    }

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

    .hero-left {
        width: 180px;
    }

    .name-row {
        flex-direction: column;
    }

    .social-row {
        justify-content: flex-start;
        padding-top: 0;
    }

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

    .site-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 520px) {
    .container {
        width: min(100% - 16px, 1120px);
        padding: 14px;
    }

    .topbar {
        align-items: flex-start;
    }

    .language-switcher {
        margin-left: 0;
    }

    .hero-left {
        width: 100%;
        max-width: 220px;
    }

    .portrait-image {
        left: -18px;
        top: -34px;
        width: 460px;
    }

    .name-row h1 {
        font-size: 2.4rem;
    }
}