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

body {
    font-family: 'Instrument Sans', sans-serif;
    font-size: 0.88rem;
    line-height: 1.65;
    color: #3a3a3a;
    background-color: #f8f7f4;
    max-width: 560px;
    margin: 0 auto;
    padding: 10px 5px;
}

h1 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: #1a1a1a;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 0.92rem;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 6px;
    color: #1a1a1a;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
}

.links {
    margin-bottom: 10px;
}

.links a {
    color: #555;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.15s ease;
}

.links a:hover {
    color: #1a1a1a;
}

.links .separator {
    color: #bbb;
    margin: 0 6px;
    pointer-events: none;
}

.resume-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #999;
    cursor: default;
    position: relative;
}

.info-popover {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    right: -10px;
    width: 200px;
    padding: 8px 10px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.75rem;
    font-style: normal;
    color: #555;
    line-height: 1.4;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    z-index: 10;
}

.info-icon:hover .info-popover {
    display: block;
}

p {
    margin-bottom: 8px;
    font-size: 0.88rem;
    line-height: 1.7;
}

ul {
    margin-left: 0;
    margin-bottom: 5px;
    padding-left: 18px;
}

li {
    margin-bottom: 5px;
    line-height: 1.6;
}

.job-title {
    font-weight: 600;
    color: #1a1a1a;
}

.publication-title {
    font-style: italic;
    color: #1a1a1a;
}

.venue {
    font-weight: 500;
}

.project-link {
    color: #555;
    text-decoration: underline;
    text-decoration-color: #ccc;
    text-underline-offset: 2px;
    font-weight: 500;
    transition: text-decoration-color 0.15s ease, color 0.15s ease;
}

.project-link:hover {
    color: #1a1a1a;
    text-decoration-color: #1a1a1a;
}

.fun-fact {
    color: #555;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.intro {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 14px;
}

.intro-text {
    flex: 1;
}

.me-pic {
    width: 90px;
    height: 90px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    margin-top: 2px;
}

.me-pic-mobile {
    display: none;
}

blockquote {
    background-color: #f0efec;
    margin-bottom: 0;
    padding: 10px 15px;
    border-left: 2px solid #d5d3ce;
}

.photo-container {
    display: flex;
    gap: 8px;
    margin: 5px 0 40px 0;
    align-items: flex-start;
}

.photo-container img {
    border-radius: 3px;
    height: 300px;
    width: auto;
    max-width: none;
    flex-shrink: 0;
}

.github-snake {
    width: 100%;
    margin-bottom: 40px;
}

#photo-label {
    display: block;
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 2px;
}

@media (min-width: 601px) and (max-width: 1024px) {
    body {
        padding: 10px 24px;
    }
}

@media (max-width: 600px) {
    body {
        padding: 10px 24px;
        font-size: 0.92rem;
        line-height: 1.7;
    }

    h1 {
        font-size: 1.4rem;
        margin-top: 8px !important;
    }

    .links a {
        display: inline-block;
        margin-bottom: 4px;
    }

    .photo-container {
        display: flex;
        gap: 8px;
        overflow: visible;
        justify-content: center;
    }

    .photo-container img {
        height: 200px;
        width: auto;
    }

    .intro {
        flex-direction: column;
        gap: 12px;
    }

    .me-pic {
        width: 70px;
        height: 70px;
    }

    .intro .me-pic {
        display: none;
    }

    .me-pic-mobile {
        display: block;
        margin-top: 40px;
    }
}
