:root {
    --max-width: 900px;
    --text-color: #222;
    --muted-color: #666;
    --accent-color: #0077b6;
    --link-color: #0055aa;
    --section-line-height: 3px;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-color);
    background: #fbfaf8;
    line-height: 1.5;
}

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

.container {
    max-width: var(--max-width);
    margin: 20px auto;
    padding: 0 20px 80px;
}

/* Header */
.header { display: flex; align-items: baseline; gap: 15px; }
.name { font-size: 2.5rem; font-weight: 600; }
.pronunciation { font-size: 1rem; color: var(--muted-color); }

/* Intro */
.intro {
    display: grid;
    grid-template-columns: 328px 1fr;
    gap: 30px;
    margin-bottom: 25px;
    align-items: start;
}

.intro-left { display: flex; flex-direction: column; padding: 0 0 0 25px; }

.intro-wrapper::before,
section h2::after {
    content: '';
    display: block;
    height: var(--section-line-height);
    background: linear-gradient(to right, var(--accent-color), #fbfaf8);
}

.intro-wrapper::before { width: min(890px, 100%); margin-bottom: 15px; }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px 20px;
    margin-top: 10px;
}

.contact-item { display: flex; align-items: center; gap: 8px; }
.contact-item i { font-size: 16px; color: var(--text-color); }

.contact-divider {
    height: 1.25px;
    background-color: var(--muted-color);
    margin: 10px 0 4px;
}

.last-updated { font-size: 0.85rem; color: var(--muted-color); }

.bio { font-size: 1.05rem; padding-top: 8px; }
.bio p, .bio ul { margin: 0 0 10px; }

/* Sections */
section { margin-bottom: 25px; }

section h2 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
    display: inline-block;
    position: relative;
    white-space: nowrap;
}

section h2::after {
    position: absolute;
    left: 0;
    bottom: -4px;
    z-index: -1;
    width: min(890px, calc(100vw - 40px));
}

/* Publications */
.pub {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 5px;
    padding-left: 20px;
}

.pub img {
    width: 150px;
    height: 105px;
    object-fit: cover;
    border: 2px solid var(--muted-color);
}

.pub-title { font-weight: 600; font-size: 0.85rem; margin-top: 3px; }
.pub-meta, .pub-links, .pub-desc { font-size: 0.85rem; color: var(--muted-color); }

/* Items */
.item { margin-bottom: 15px; margin-left: 25px; }
.item-title { font-weight: 600; }

.item-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    color: var(--muted-color);
}

.item-location, .item-dates { white-space: nowrap; }

/* Other */
.other-group { margin-left: 25px; margin-bottom: 15px; }
.other-label { font-size: 1rem; font-weight: 600; margin-bottom: 6px; }

/* Mobile */
@media (max-width: 800px) {
    .header { flex-wrap: wrap; gap: 0; }
    .pronunciation { margin-bottom: 15px; }
    .intro { grid-template-columns: 1fr; gap: 12px; }
    .intro-left { padding: 0; }
    .pub { grid-template-columns: 1fr; }
    .pub img { display: block; margin: 0 auto; }

    section h2::after,
    .intro-wrapper::before { width: calc(100vw - 40px); }

    .item-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .item-location, .item-dates { white-space: normal; }
}

@media (max-width: 440px) {
    .contact-item { word-break: break-all; }
}
