:root {
  --text: #1f2328;
  --muted: #5b6168;
  --bg: #ffffff;
  --rule: #e3e5e8;
  --accent: #8b0029; /* Korea University crimson */
  --badge-bg: #f6eef0;
  --code-bg: #f6f8fa;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --text: #e6e6e6;
    --muted: #a0a6ad;
    --bg: #16181b;
    --rule: #2e3237;
    --accent: #e8798f;
    --badge-bg: #2a1d21;
    --code-bg: #1f2226;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 820px; margin: 0 auto; padding-inline: 20px; }

/* header */
.site-header { border-bottom: 1px solid var(--rule); padding-block: 28px 0; }
.site-title {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
}
.site-title:hover { text-decoration: none; }
.site-affiliation { color: var(--muted); margin-top: 2px; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-top: 18px; }
.site-header nav a {
  color: var(--muted);
  padding-bottom: 10px;
  border-bottom: 2px solid transparent;
}
.site-header nav a:hover { color: var(--text); text-decoration: none; }
.site-header nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }

/* content */
main { padding-block: 32px 56px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.3; }
h1 { font-size: 2rem; margin: 0 0 20px; }
h2 { font-size: 1.4rem; margin: 40px 0 12px; padding-bottom: 6px; border-bottom: 1px solid var(--rule); }
h3 { font-size: 1.15rem; margin: 28px 0 8px; }
ul { padding-left: 1.3em; }

/* publications */
ol.publications { list-style: none; padding: 0; margin: 0; }
ol.publications > li { margin: 0 0 22px; }
.pub { display: flex; gap: 14px; align-items: flex-start; }
.venue-badge {
  flex: 0 0 78px;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
  background: var(--badge-bg);
  border-radius: 4px;
  padding: 3px 4px;
  margin-top: 3px;
}
.pub-body { min-width: 0; flex: 1; }
.pub-title { font-weight: 600; }
.pub-authors, .pub-venue { font-size: 0.94rem; }
.pub-venue { color: var(--muted); font-style: italic; }
.pub-links { font-size: 0.85rem; margin-top: 2px; }
.pub-links a, .pub-links summary { margin-right: 12px; }
.pub-links a::before, .pub-links summary::before { content: "["; color: var(--muted); }
.pub-links a::after, .pub-links summary::after { content: "]"; color: var(--muted); }
.pub-links details { display: inline; }
.pub-links summary { display: inline; cursor: pointer; color: var(--accent); list-style: none; }
.pub-links summary::-webkit-details-marker { display: none; }
.pub-links pre {
  display: block;
  background: var(--code-bg);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 10px 12px;
  font-size: 0.8rem;
  line-height: 1.45;
  overflow-x: auto;
  white-space: pre;
}
@media (max-width: 520px) {
  .pub { flex-direction: column; gap: 4px; }
  .venue-badge { flex: none; margin-top: 0; }
}

/* people */
.members { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px 28px; }
@media (max-width: 420px) { .members { grid-template-columns: 1fr; } }
.member { display: flex; gap: 16px; align-items: flex-start; }
.member img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 6px;
  flex: none;
  background: var(--rule);
}
.member-name { font-weight: 600; font-size: 1.05rem; }
.member-title { color: var(--muted); font-size: 0.94rem; }
.member-interests { font-size: 0.9rem; margin-top: 4px; }
.lab-photo { margin: 40px 0 0; }
.lab-photo img { border-radius: 6px; display: block; }

/* footer */
.site-footer {
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.88rem;
  padding-block: 20px 28px;
}
