/* ==================== 디자인 토큰 ==================== */
:root {
    --accent:       #f5b301;   /* 옐로우 포인트 */
    --accent-soft:  #fff3cf;   /* 옐로우 옅은 배경 */
    --accent-dark:  #b07d00;   /* 텍스트용 진한 옐로우(대비 확보) */
    --ink:          #232323;   /* 제목/강조 텍스트 */
    --body:         #44444a;   /* 본문 텍스트 */
    --muted:        #8a8a90;   /* 보조 텍스트 */
    --bg:           #ffffff;
    --sidebar-bg:   #fafaf6;   /* 따뜻한 오프화이트 */
    --border:       #ececec;
}

/* ==================== 기본 ==================== */
* { box-sizing: border-box; }

body {
    font-family: 'Noto Sans KR', sans-serif;
    color: var(--body);
    background-color: var(--bg);
    margin: 0;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

.container {
    display: flex;
    align-items: flex-start;
    min-height: 100vh;
    max-width: 1180px;
    margin: 0 auto;
}

/* ==================== 사이드바 ==================== */
header.sidebar {
    background-color: var(--sidebar-bg);
    border-right: 1px solid var(--border);
    padding: 48px 36px;
    width: 320px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: sticky;
    top: 0;
    align-self: flex-start;
}

/* 프로필 사진 */
header img {
    width: 190px;
    height: 190px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.12);
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

.logo-placeholder {
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background-color: #ececec;
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9em;
}

header h1 {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--ink);
    margin: 24px 0 4px;
    letter-spacing: -0.01em;
}

/* 이름 아래 옐로우 악센트 바 */
header h1::after {
    content: "";
    display: block;
    width: 38px;
    height: 3px;
    background: var(--accent);
    border-radius: 3px;
    margin: 10px auto 0;
}

header .affiliation {
    font-size: 0.9em;
    color: var(--muted);
    margin-bottom: 1em;
}

header .contact {
    font-size: 0.9em;
    margin-bottom: 1.4em;
    word-break: break-all;
}

header .contact a {
    color: var(--body);
}

/* 사이드바 링크 */
.links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    font-size: 0.9em;
}

.links a {
    display: block;
    padding: 9px 14px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.18s ease;
}

.links a:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
    text-decoration: none;
    transform: translateY(-1px);
}

/* ==================== 메인 콘텐츠 ==================== */
.content {
    flex-grow: 1;
    padding: 52px 56px;
    min-width: 0;
}

.content section {
    margin-bottom: 2.4em;
}

.content section:last-child {
    margin-bottom: 0;
}

h3 {
    position: relative;
    font-size: 1.05em;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink);
    padding-left: 14px;
    margin: 0 0 1em;
}

/* 섹션 제목 옆 옐로우 세로 바 */
h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.1em;
    bottom: 0.1em;
    width: 4px;
    background: var(--accent);
    border-radius: 3px;
}

/* 하위 소제목 (Preprints / Peer-Reviewed 등) */
h4 {
    font-size: 0.92em;
    font-weight: 700;
    color: var(--accent-dark);
    letter-spacing: 0.02em;
    margin: 0 0 0.7em;
}

#about p { margin-top: 0; }

p, ul { margin-bottom: 1em; }
li { margin-bottom: 0.55em; }

ul { padding-left: 1.1em; }

/* ==================== News ==================== */
.news-list { list-style: none; padding-left: 0; }

.news-list .date {
    display: inline-block;
    min-width: 72px;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.82em;
    color: var(--accent-dark);
    margin-right: 12px;
}

/* ==================== Publications ==================== */
.pub-list { list-style: none; padding-left: 0; }

.pub {
    padding: 16px 18px;
    margin-bottom: 14px;
    background: #fff;
    border: 1px solid var(--border);
    border-left: 3px solid transparent;
    border-radius: 10px;
    transition: all 0.18s ease;
}

.pub:hover {
    border-left-color: var(--accent);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

.pub-title {
    font-weight: 700;
    color: var(--ink);
    line-height: 1.45;
}

.pub-authors { font-size: 0.95em; }

.pub-venue {
    font-style: italic;
    color: var(--muted);
    font-size: 0.92em;
}

.pub-note {
    font-size: 0.82em;
    color: var(--muted);
    font-style: normal;
}

.pub-links {
    display: inline-block;
    margin-top: 6px;
}

.pub-links a {
    display: inline-block;
    font-size: 0.78em;
    font-family: 'Roboto Mono', monospace;
    padding: 2px 9px;
    margin-right: 6px;
    color: var(--accent-dark);
    background: var(--accent-soft);
    border-radius: 6px;
    transition: all 0.16s ease;
}

.pub-links a:hover {
    background: var(--accent);
    color: #fff;
    text-decoration: none;
}

/* ==================== 일반 링크 ==================== */
a {
    color: var(--accent-dark);
    text-decoration: none;
}

a:hover { text-decoration: underline; }

strong { color: var(--ink); }

/* ==================== 모바일 ==================== */
@media (max-width: 768px) {
    .container { flex-direction: column; }

    header.sidebar {
        width: 100%;
        position: static;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .content { padding: 36px 28px; }

    .links {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .links a { flex: 0 0 auto; }
}
