@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css");

:root {
  --bg: #fbfbf9;
  --surface: #ffffff;
  --text: #1c1f23;
  --muted: #5d6670;
  --line: #e4e6e8;
  --accent: #0f766e;
  --accent-soft: #e6f2f0;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 4px 16px rgba(16, 24, 40, 0.04);
  --radius: 14px;
  --max: 1040px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1113;
    --surface: #151a1d;
    --text: #e7eaec;
    --muted: #9aa4ad;
    --line: #242b30;
    --accent: #5eead4;
    --accent-soft: #10302c;
    --shadow: none;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}

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

/* language toggle: show only the active language */
html[data-lang="ko"] [lang="en"]:not(html) { display: none !important; }
html[data-lang="en"] [lang="ko"]:not(html) { display: none !important; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { font-weight: 800; letter-spacing: -0.02em; color: var(--text); font-size: 1.05rem; }
.brand span { color: var(--accent); }
.brand:hover { text-decoration: none; }
.nav { display: flex; align-items: center; gap: 22px; font-size: 0.93rem; }
.nav a { color: var(--muted); }
.nav a:hover, .nav a.active { color: var(--text); text-decoration: none; }
.nav a.active { font-weight: 600; }
.lang-btn {
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  border-radius: 999px; padding: 4px 12px; font-size: 0.8rem; cursor: pointer; font-family: inherit;
}
.menu-btn { display: none; background: none; border: 0; color: var(--text); font-size: 1.4rem; cursor: pointer; }

/* hero */
.hero { padding: 72px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 200px 1fr; gap: 44px; align-items: center; }
.hero img { width: 200px; height: 250px; object-fit: cover; border-radius: 18px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.eyebrow { color: var(--accent); font-weight: 600; font-size: 0.9rem; letter-spacing: 0.02em; margin-bottom: 8px; }
.hero h1 { font-size: 2.6rem; line-height: 1.2; letter-spacing: -0.03em; margin-bottom: 10px; }
.hero h1 small { font-size: 1.1rem; color: var(--muted); font-weight: 500; margin-left: 8px; letter-spacing: 0; }
.hero .role { font-size: 1.15rem; color: var(--text); margin-bottom: 6px; }
.hero .affil { color: var(--muted); font-size: 0.95rem; margin-bottom: 18px; }
.hero .bio { max-width: 640px; color: var(--text); margin-bottom: 22px; }
.links { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  padding: 7px 14px; border-radius: 999px; font-size: 0.88rem;
}
.chip:hover { border-color: var(--accent); text-decoration: none; }
.chip.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
@media (prefers-color-scheme: dark) { .chip.primary { color: #062a26; } }

/* sections */
section.block { padding: 48px 0; border-top: 1px solid var(--line); }
.block-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 22px; gap: 12px; }
.block-head h2 { font-size: 1.45rem; letter-spacing: -0.02em; }
.block-head a { font-size: 0.9rem; }
.page-title { padding: 56px 0 8px; }
.page-title h1 { font-size: 2.1rem; letter-spacing: -0.03em; }
.page-title p { color: var(--muted); margin-top: 6px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 20px 18px; box-shadow: var(--shadow);
}
.card h3 { font-size: 1.02rem; margin-bottom: 6px; letter-spacing: -0.01em; }
.card p { color: var(--muted); font-size: 0.92rem; }
.card .tag { display: inline-block; font-size: 0.74rem; color: var(--accent); background: var(--accent-soft); border-radius: 6px; padding: 2px 8px; margin-bottom: 10px; font-weight: 600; }
.card .refs { margin-top: 12px; font-size: 0.84rem; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 10px; }
.card .refs li { list-style: none; margin-top: 4px; }
a.card:hover { border-color: var(--accent); text-decoration: none; }
a.card { color: inherit; display: block; }

/* news */
.news li { list-style: none; display: grid; grid-template-columns: 96px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.news li:last-child { border-bottom: 0; }
.news time { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 0.9rem; }

/* timeline / cv */
.cv h2 { font-size: 1.2rem; margin: 36px 0 14px; letter-spacing: -0.01em; }
.cv .row { display: grid; grid-template-columns: 150px 1fr; gap: 18px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cv .row .when { color: var(--muted); font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.cv .row .what strong { display: block; }
.cv .row .what span { color: var(--muted); font-size: 0.92rem; }

/* publications */
.pubs h2 { font-size: 1.15rem; margin: 34px 0 10px; color: var(--muted); }
.pubs ol { padding-left: 0; }
.pubs li { list-style: none; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.pubs li .t { font-weight: 600; display: block; margin: 2px 0; }
.pubs li .v { color: var(--muted); font-size: 0.9rem; }
.pubs li .me { font-weight: 700; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.badge { display: inline-block; font-size: 0.72rem; border: 1px solid var(--accent); color: var(--accent); border-radius: 6px; padding: 0 6px; margin-left: 6px; vertical-align: 1px; }
.note { color: var(--muted); font-size: 0.88rem; margin-top: 8px; }

/* callout */
.callout { background: var(--accent-soft); border-radius: var(--radius); padding: 22px 24px; display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.callout h3 { font-size: 1.1rem; margin-bottom: 4px; }
.callout p { color: var(--muted); font-size: 0.93rem; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; margin-top: 40px; color: var(--muted); font-size: 0.85rem; }
footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); flex-direction: column; align-items: flex-start; padding: 12px 24px 18px; gap: 12px; }
  .nav.open { display: flex; }
  .hero { padding: 40px 0 36px; }
  .hero-grid { grid-template-columns: 1fr; gap: 22px; }
  .hero img { width: 140px; height: 175px; }
  .hero h1 { font-size: 2rem; }
  .grid, .grid.two { grid-template-columns: 1fr; }
  .cv .row { grid-template-columns: 1fr; gap: 2px; }
  .news li { grid-template-columns: 1fr; gap: 2px; }
  .callout { flex-direction: column; align-items: flex-start; }
}
