:root {
  --bg: #f7fafc;
  --surface: #ffffff;
  --text: #17324d;
  --muted: #52677c;
  --faint: #72869a;
  --line: #dce6ef;
  --accent: #2166a5;
  --accent-soft: #e8f2fb;
  --green: #3f755f;
  --shadow: 0 10px 24px rgba(23, 50, 77, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "Google Sans", "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15.5px;
  line-height: 1.65;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
  overflow-wrap: break-word;
}

a:hover {
  color: #154c80;
}

.page {
  width: calc(100% - 36px);
  max-width: 1080px;
  margin: 0 auto;
}

.site-header {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding: 30px 0 18px;
  border-bottom: 1px solid var(--line);
}

.brand {
  color: var(--text);
  font-size: 1.28rem;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 17px;
  padding-top: 3px;
  font-size: 0.94rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
}

.nav a:hover {
  color: var(--accent);
}

main {
  padding-bottom: 18px;
}

.profile {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  max-width: 980px;
  padding: 42px 0 32px;
}

.profile-aside {
  display: grid;
  gap: 12px;
}

.profile-photo {
  display: block;
  width: 220px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 24%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.profile-info {
  width: 220px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
  text-align: center;
}

.profile-info p {
  margin: 0 0 4px;
  overflow-wrap: anywhere;
}

.profile-info strong {
  color: var(--text);
  font-size: 1.28rem;
  font-weight: 800;
}

.profile-copy {
  padding-top: 28px;
  min-width: 0;
}

.profile-copy h1,
.page-title h1 {
  margin: 0 0 14px;
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  line-height: 1.18;
  font-weight: 760;
  letter-spacing: 0;
}

.profile-copy p,
.page-title p,
.story-card p,
.news-list span {
  color: var(--muted);
}

.profile-copy p {
  max-width: 780px;
  margin: 0 0 12px;
  font-size: 0.98rem;
  line-height: 1.72;
}

.research-chips {
  display: grid;
  gap: 8px;
  margin-top: 6px;
}

.research-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.research-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  color: var(--green);
  background: #f2f8f4;
  border: 1px solid #c9dfd1;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: auto;
  padding-top: 22px;
}

.links a,
.paper-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 5px 14px;
  color: var(--green);
  background: var(--surface);
  border: 1px solid #b8d7c7;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.links a:hover,
.paper-links a:hover {
  color: #0c5f3d;
  background: #f2fbf6;
  border-color: #82b99e;
}

.section {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 34px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.section-title h2 {
  position: sticky;
  top: 18px;
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.25;
  font-weight: 760;
}

.page-title {
  max-width: 820px;
  padding: 40px 0 24px;
}

.page-title p {
  max-width: 760px;
  margin: 0 0 10px;
}

.publication-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: 780px;
  margin-top: 18px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 7px 18px rgba(23, 50, 77, 0.05);
}

.publication-stats div {
  display: grid;
  gap: 4px;
  padding: 16px 14px;
  text-align: center;
  border-right: 1px solid var(--line);
}

.publication-stats div:last-child {
  border-right: 0;
}

.publication-stats strong {
  color: var(--text);
  font-size: 1.8rem;
  line-height: 1;
  font-weight: 800;
}

.publication-stats span {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.25;
  font-weight: 650;
}

.publication-group {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.publication-group h2 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 1.18rem;
  line-height: 1.25;
  font-weight: 760;
}

.kicker,
.venue,
.meta,
time {
  color: var(--faint);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.news-list,
.card-list,
.compact-list,
.timeline-list {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
}

.news-list {
  gap: 10px;
  list-style: none;
}

.news-note {
  display: block;
  margin-top: 2px;
  color: var(--faint);
  font-size: 0.78rem;
  line-height: 1.45;
}

.news-list li,
.compact-list article {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 14px;
}

.story-card {
  display: block;
  min-width: 0;
  padding: 18px 19px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 7px 18px rgba(23, 50, 77, 0.06);
  text-decoration: none;
}

a.story-card:hover {
  color: var(--text);
  border-color: #aec4d6;
  background: linear-gradient(180deg, #ffffff 0%, #f0f8ff 100%);
  transform: translateY(-1px);
}

.story-card.has-thumb {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 20px 22px;
}

.card-thumb {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: contain;
  object-position: center;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.paper-page-thumb {
  height: 180px;
  object-fit: cover;
  object-position: top center;
}

.card-main {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.story-card h3 {
  margin: 0;
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.38;
  font-weight: 760;
}

.story-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.story-card .publication-note {
  color: var(--faint);
  font-size: 0.78rem;
  line-height: 1.45;
}

.venue,
.meta {
  display: inline-flex;
  justify-self: start;
  min-height: 22px;
  padding: 2px 10px;
  color: #145bd7;
  background: #e2efff;
  border-radius: 999px;
  font-size: 0.78rem;
  line-height: 1.2;
  text-transform: none;
}

.paper-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.compact-list article {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.compact-list span {
  color: var(--accent);
  font-weight: 800;
}

.compact-list h3 {
  margin: 0;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.45;
  font-weight: 700;
}

.compact-list p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.timeline-list {
  gap: 0;
}

.timeline-list article {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-list h3 {
  margin: 0 0 3px;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.35;
}

.timeline-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0 42px;
  color: var(--faint);
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 780px) {
  .page {
    width: calc(100% - 28px);
  }

  .site-header {
    flex-direction: column;
    gap: 10px;
  }

  .nav {
    justify-content: flex-start;
  }

  .profile {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-top: 30px;
  }

  .profile-aside {
    justify-items: center;
  }

  .profile-photo,
  .profile-info {
    width: min(220px, 100%);
  }

  .profile-copy {
    min-height: 0;
    padding-top: 0;
  }

  .section {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .section-title h2 {
    position: static;
  }

  .story-card.has-thumb {
    grid-template-columns: 1fr;
  }

  .card-thumb {
    height: auto;
    max-height: 230px;
  }

  .paper-page-thumb {
    height: 230px;
    object-fit: cover;
    object-position: top center;
  }

  .publication-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .publication-stats div:nth-child(2) {
    border-right: 0;
  }

  .publication-stats div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .news-list li,
  .compact-list article,
  .timeline-list article {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .site-footer {
    flex-direction: column;
    gap: 6px;
  }
}
