@font-face {
  font-family: "Geist";
  src: url("../assets/fonts/geist/Geist-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist";
  src: url("../assets/fonts/geist/Geist-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist";
  src: url("../assets/fonts/geist/Geist-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist";
  src: url("../assets/fonts/geist/Geist-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --panel: #ffffff;
  --text: #111827;
  --muted: #5b6472;
  --muted-strong: #374151;
  --border: #e5e7eb;
  --accent: #6366f1;
  --accent-soft: rgba(99, 102, 241, 0.08);
  --shadow: rgba(17, 24, 39, 0.04);
  --nav-height: 52px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  zoom: 0.9;
}

body {
  margin: 0;
  padding-top: var(--nav-height);
  background: var(--bg);
  color: var(--text);
  font-family: Geist, "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  line-height: 1.6;
}

.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.top-nav-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-right: max(24px, calc((100% - 1200px) / 2));
}

.top-nav-link {
  border: none;
  background: none;
  padding: 0.4rem 0;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted-strong);
  cursor: pointer;
  transition: color 0.2s ease;
}

.top-nav-link:hover,
.top-nav-link:focus-visible {
  color: var(--accent);
  outline: none;
}


img {
  max-width: 100%;
  display: block;
}

p {
  margin: 0 0 1rem;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  --gutter: max(24px, calc((100% - 1200px) / 2));
  width: calc(100% - var(--gutter));
  margin: 0 0 0 var(--gutter);
  background: var(--panel);
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  /* html has zoom: 0.9, so inflate by 1/0.9 here to still fill exactly
     100% of the real viewport (minus the fixed top nav) after the zoom
     shrinks it back down. */
  min-height: calc(100vh / 0.9 - var(--nav-height));
  max-height: calc(100vh / 0.9 - var(--nav-height));
  overflow: hidden;
}

.right-column,
.news-list {
  overflow-y: scroll;
  scrollbar-width: thin;
  scrollbar-color: rgba(17, 24, 39, 0.28) rgba(17, 24, 39, 0.05);
}

.right-column::-webkit-scrollbar,
.news-list::-webkit-scrollbar {
  width: 10px;
}

.right-column::-webkit-scrollbar-track,
.news-list::-webkit-scrollbar-track {
  background: rgba(17, 24, 39, 0.05);
  border-radius: 999px;
}

.right-column::-webkit-scrollbar-thumb,
.news-list::-webkit-scrollbar-thumb {
  background: rgba(17, 24, 39, 0.28);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.left-column {
  padding: 32px 30px 28px;
  border-right: 1px solid var(--border);
  background: #ffffff;
  overflow: hidden;
  min-height: 0;
}

.right-column {
  padding: 36px 38px 26px;
  min-height: 0;
}

.profile-card {
  padding-bottom: 10px;
}

.profile-photo {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  border: 1px solid var(--border);
  overflow: hidden;
  margin: 0 auto 1.25rem;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-card h1 {
  margin: 0;
  font-size: clamp(2rem, 2vw, 2.3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.04em;
  text-align: center;
}

.role,
.affiliation {
  margin: 0;
  text-align: center;
}

.role {
  margin-top: 0.65rem;
  font-weight: 600;
  color: var(--text);
}

.affiliation {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.55;
  margin-top: 0.15rem;
}

.email-link {
  margin: 10px 0 0;
  text-align: center;
  font-size: 0.92rem;
}

.email-link a {
  color: var(--muted-strong);
  transition: color 0.2s ease;
}

.email-link a:hover,
.email-link a:focus-visible {
  color: var(--accent);
  outline: none;
}

.social-icons {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.icon-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.15rem;
}

.icon-link {
  display: inline-flex;
  width: 2.2rem;
  height: 2.2rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.icon-link:hover,
.icon-link:focus-visible {
  opacity: 1;
  transform: translateY(-1px);
  outline: none;
}

.icon-link img {
  width: 100%;
  height: 100%;
  display: block;
}

.news-panel {
  margin-top: 10px;
  padding-top: 12px;
  padding-bottom: 2rem;
  border-top: 1px solid var(--border);
  text-align: left;
}

.news-panel h2,
.content-section h2 {
  margin: 0 0 0.8rem;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  scroll-margin-top: calc(var(--nav-height) + 16px);
}

#about-heading {
  font-size: 1.6rem;
}

.news-list {
  list-style: none;
  padding: 0;
  padding-right: 6px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-height: 25rem;
}

.news-list li {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 0.7rem;
  align-items: flex-start;
  color: var(--muted-strong);
  font-size: 0.96rem;
}

.news-list time {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding-top: 0.15rem;
}

.news-list span {
  line-height: 1.5;
}

.content-section {
  max-width: 784px;
  padding-bottom: 2rem;
}

.content-section + .content-section {
  padding-top: 0.5rem;
}

.about-text {
  font-size: 1.04rem;
  color: var(--muted-strong);
}

.about-text p {
  margin-bottom: 1.15rem;
}

.about-text a {
  font-weight: 600;
  color: var(--accent);
  transition: color 0.2s ease;
}

.about-text a:hover,
.about-text a:focus-visible {
  text-decoration: underline;
  outline: none;
}

.publications-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.publication {
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  padding: 1rem 1rem 0.9rem;
  background: #ffffff;
}

.publication.highlighted {
  background: var(--accent-soft);
  border-color: rgba(99, 102, 241, 0.18);
}

.venue-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  color: var(--muted-strong);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.publication h3 {
  margin: 0 0 0.3rem;
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.45;
}

.publication h3 a {
  color: inherit;
  transition: color 0.2s ease;
}

.publication h3 a:hover,
.publication h3 a:focus-visible {
  color: var(--accent);
  outline: none;
}

.publication .authors,
.publication .award {
  margin: 0 0 0.25rem;
  color: var(--muted-strong);
}

.publication .authors {
  font-size: 0.96rem;
}

.publication .authors strong {
  font-weight: 600;
}

.publication .award {
  color: var(--muted-strong);
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: 0.4rem;
}

.publication-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.7rem;
}

.publication-links a,
.publication-link-pending {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted-strong);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font-size: 0.74rem;
  font-weight: 600;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.publication-link-pending {
  border-style: dashed;
  background: transparent;
  color: var(--muted);
  cursor: default;
}

.publication-links a:hover,
.publication-links a:focus-visible {
  border-color: rgba(99, 102, 241, 0.4);
  background: rgba(99, 102, 241, 0.04);
  color: var(--accent);
  outline: none;
}

.research-list {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.research-entry {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--border);
}

.research-entry:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.research-logo {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
}

.research-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1px;
}

.research-institution {
  margin: 0;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--text);
}

.research-role {
  margin: 0.2rem 0 0;
  font-size: 0.9rem;
  color: var(--muted-strong);
}

.research-description {
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
  color: var(--muted-strong);
  line-height: 1.5;
}

.research-meta {
  margin: 0.45rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

@media (max-width: 900px) {
  .page-shell {
    width: min(100%, calc(100% - 24px));
    margin: 20px auto;
    grid-template-columns: 1fr;
    min-height: unset;
    max-height: none;
  }

  .left-column,
  .right-column {
    overflow: visible;
    max-height: none;
  }

  .left-column {
    border-right: 0;
    border-bottom: 1px solid var(--border);
    padding: 26px 20px 18px;
  }

  .right-column {
    padding: 24px 20px 18px;
  }

  /* On mobile, News gets reordered in between About/Publications/Research
     (see the placeNewsForViewport script). Give every section the same
     divider treatment News already had, so the spacing reads consistently
     regardless of which two sections end up adjacent. */
  .right-column > .content-section:not(:first-child),
  .right-column > .news-panel {
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  a,
  .icon-link,
  .publication-links a {
    transition: none;
  }
}
