/* Base Reset and Typography */
:root {
    --text-color: #333;
    --secondary-color: #666;
    --link-color: #0066cc;
    --border-color: #eee;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
    --font-family: "Songti SC", "SimSun", "STSong", serif;
}

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

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
    padding: 2rem 1rem;
}

a {
    color: var(--link-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Layout */
.container {
    max-width: 800px;
    margin: 0 auto;
}

/* Header */
.resume-header {
    text-align: left;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.resume-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #111;
}

.contact-info {
    color: var(--secondary-color);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.contact-info a {
    color: var(--secondary-color);
    text-decoration: none;
    margin-right: 0.5rem;
}

.contact-info a:hover {
    color: var(--link-color);
}

.bio {
    max-width: 600px;
}

/* Sections */
.section {
    margin-bottom: 2rem;
}

.section h2 {
    font-size: 1.4rem;
    color: #111;
    margin-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
    /* Subtle underline for sections */
    padding-bottom: 0.3rem;
    display: inline-block;
}

/* Items (Education, Experience) */
.item {
    margin-bottom: 1.2rem;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.2rem;
}

.item-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #222;
}

.date {
    font-size: 0.9rem;
    color: var(--secondary-color);
    white-space: nowrap;
}

.degree,
.company {
    font-style: italic;
    /* Distinctive style for sub-headers */
    color: #444;
}

/* Publications */
.publication {
    margin-bottom: 0.8rem;
}

.publication p {
    margin-bottom: 0;
}

/* Lists */
ul {
    padding-left: 1.2rem;
    margin-top: 0.5rem;
}

li {
    margin-bottom: 0.3rem;
}

.interests-list {
    list-style: none;
    /* Cleaner look for interests */
    padding-left: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.interests-list li {
    background: #f5f5f5;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.95rem;
}

/* Print Tweaks */
@media print {
    body {
        padding: 0;
    }

    .container {
        max-width: 100%;
    }

    a {
        text-decoration: none;
        color: #000;
    }
}