
:root {color-scheme:light;--ink:#29262c;--muted:#635c64;--accent:#ae3049;--rule:#e8dfe1;--paper:#ffffff}
* {box-sizing:border-box}
body {margin:0;background:var(--paper);color:var(--ink);font:1.05rem/1.6 Inter,system-ui,sans-serif}
.wrap {width:min(72rem,90%);margin:auto}
header,footer,.links,nav {display:flex;align-items:center;flex-wrap:wrap;gap:1.3rem}
header,footer {justify-content:space-between;padding:1.25rem 0;border-bottom:1px solid var(--rule)}
a {color:var(--accent);text-underline-offset:.22em}
a:hover {text-decoration-thickness:2px}
a:focus-visible {outline:3px solid #0a7092;outline-offset:4px}
nav a,.brand {color:var(--ink);text-decoration:none}
nav a:hover,.brand:hover {text-decoration:underline}
.brand {font:1.5rem Inter,system-ui,sans-serif}
.hero {display:grid;grid-template-columns:1.55fr 1fr;gap:7%;align-items:center;padding:clamp(3rem,7vw,7rem) 0}
h1,h2,h3,blockquote {font-family:Inter,system-ui,sans-serif;font-weight:400;line-height:1.12;margin:0}
h1 {font-size:clamp(3.8rem,8vw,7.8rem);letter-spacing:-.045em}
h2 {font-size:clamp(2.15rem,4vw,3.5rem);letter-spacing:-.045em}
h3 {font-size:1.65rem;letter-spacing:-.025em}
p {max-width:65ch}
.lede {font:clamp(1.35rem,2.4vw,2rem)/1.4 Inter,system-ui,sans-serif;max-width:32ch}
.meta {color:var(--muted);font-size:.93rem}
.button {display:inline-block;padding:.6rem 1.05rem;background:var(--ink);color:white;text-decoration:none;border-radius:.25rem}
figure {margin:0;background:#fff0f1;color:var(--ink);padding:clamp(1.6rem,3.5vw,3rem);border-radius:.45rem}
.glyph {font-family:'PingFang SC','Malgun Gothic',sans-serif;font-size:clamp(4rem,8vw,7.2rem);letter-spacing:.035em;line-height:1.4;color:#c43f52;display:block;text-align:center;margin:1.5rem 0}
figcaption {border-top:1px solid #efc6ce;padding-top:1rem}
section:not(.hero) {border-top:1px solid var(--rule);padding:3.5rem 0}
.grid {display:grid;grid-template-columns:1fr 1fr;gap:3rem;margin:2rem 0 1rem}
.work {list-style:none;padding:0;margin:1.5rem 0}
.work li {padding:1.15rem 0;display:grid;grid-template-columns:10rem 1fr;gap:1rem;border-bottom:1px solid var(--rule)}
.work a {font:1.35rem/1.35 Inter,system-ui,sans-serif}
footer {border-top:1px solid var(--rule);border-bottom:0;padding:2rem 0}
.skip {position:absolute;left:-9999px}.skip:focus {left:1rem;background:white}

@media(max-width:720px) {
  .hero,.grid {
    grid-template-columns:1fr;gap:1.5rem
  }
  .hero{
    padding:2.6rem 0
  }
  figure{
    border-radius:.45rem;display:flex;align-items:center;gap:1.3rem
  }
  .glyph{
    font-size:3rem;margin:0;white-space:nowrap
  }
  figcaption{
    border:0;padding:0
  }
  .work li{
    grid-template-columns:1fr;gap:.3rem
  }
  nav{
    gap:.9rem
  }
  header{
    gap:.6rem
  }
  section:not(.hero){
    padding:2.4rem 0
  }
}
main.archive{max-width:55rem;margin:auto;padding:3rem 0}main.archive h1{font-size:clamp(3rem,7vw,5rem)}main.archive h2{font-size:2.2rem}main.archive h3{margin-top:2rem}.toc{display:flex;flex-wrap:wrap;gap:.4rem 1rem;margin:2rem 0}.archive section{padding:2rem 0}.archive p{max-width:72ch}nav [aria-current]{text-decoration:underline;text-underline-offset:.35em}
h1,h2,h3,.brand {font-weight:650}
.button {background:var(--accent)}
section h2 {color:#a72f48}
.toc a {background:#fff2f0;padding:.3rem .65rem;border-radius:.2rem;text-decoration:none}
.toc a:hover,.video-strip a:hover {text-decoration:underline}
.headshot-grid {
  margin: 1rem 0;
}
.headshot-card {
  width: fit-content;
}
.headshot-card img {
  width: 130px;   /* 크기는 여기서 숫자로 조절 (예: 90px ~ 130px) */
  height: 150px;  /* width와 같은 값으로 맞추기 */
  object-fit: cover;
  display: block;
  border-radius: 8px; /* 원형 프로필을 원하면 50%로 변경 */
}
.project-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.5rem;margin:1.5rem 0}
.project-card {border:1px solid var(--rule);border-top:3px solid #fa8368;border-radius:.35rem;overflow:hidden;min-width:0}
.project-card .copy {padding:1.25rem}
.project-card img {display:block;width:100%;aspect-ratio:4/3;object-fit:contain;background:#fff7f5}
.archive .project-card h3 {margin:0;font-size:1.45rem}
.media-credit {color:var(--muted);font-size:.9rem}
.video-strip {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,13rem),1fr));gap:1rem;margin:1.5rem 0}
.video-strip a {display:block;max-width:28rem;text-decoration:none;font-weight:600}
.video-strip img {display:block;width:100%;aspect-ratio:16/9;object-fit:cover;background:#fff2f0;border-radius:.35rem;margin-bottom:.5rem}
@media(max-width:720px){.project-grid{grid-template-columns:1fr}}

.social-links {display:flex;flex-wrap:wrap;gap:.5rem}
.social-links a {width:44px;height:44px;display:grid;place-items:center;border-radius:6px}
.social-links a:hover,.social-links a:focus-visible {background:#fff0f1}
.archive-art {margin:1rem 0;display:block;background:transparent;padding:0}
.archive-art img {display:block;
  width: 100%;
  max-width: 42rem;
  aspect-ratio: 2/1;
  object-fit: contain;
  object-position: left;
  border-radius: .35rem;}
.archive-art figcaption {border:0;color:var(--muted);font-size:.9rem;padding-top:.4rem}

.name-note {color:var(--muted);font-size:.95rem;margin:.65rem 0 1.5rem}
.news {border-top:3px solid #ef715e;background:#fff6f5;padding:1.5rem}
.news h2 {font-size:1.7rem}
.news ul,.education {list-style:none;padding:0}
.news ul {
  margin: .7rem 0 0;
  overflow-y: auto;
  scrollbar-gutter: stable;
}
.news li,.education li {display:grid;grid-template-columns:5.5rem 1fr;gap:1rem;padding:1rem 0;border-top:1px solid var(--rule)}
.news time,.education li>span,.education p {color:var(--muted);font-size:.92rem}
.education li {grid-template-columns:8rem 1fr}
.education p {margin:.35rem 0 0}
@media(max-width:520px){.education li{grid-template-columns:1fr;gap:.25rem}}

.ontology-title {
  text-wrap: balance;
}

.education li {grid-template-columns:7rem 3rem minmax(0,1fr);align-items:start}
.school-logo {display:block;align-self:start;justify-self:center;width:2.6rem;height:2.6rem;object-fit:contain}
.award-year {display:grid;grid-template-columns:5.5rem minmax(0,1fr);gap:1rem;border-top:1px solid var(--rule);padding:1.25rem 0}
#honors-and-awards>h2 {margin-bottom:1.5rem}
.archive .award-year h3 {margin:0;font:600 1.05rem/1.6 Inter,system-ui,sans-serif}
.award-year ul {list-style:none;margin:0;padding:0}
.award-year li+li {margin-top:.8rem}
.award-year li span {display:block;color:var(--muted);font-size:.95rem}
@media(max-width:720px){.education li{grid-template-columns:2.25rem minmax(0,1fr);gap:.3rem .75rem}.education li>span{grid-column:2;grid-row:1}.education li>div{grid-column:2;grid-row:2}.school-logo{grid-column:1;grid-row:2;width:2.1rem;height:2.1rem}.award-year{grid-template-columns:3rem 1fr}}
.hero-profile {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-top: 1.25rem;
}

.hero-left {
  flex-shrink: 0; /* 글씨가 길어져도 사진 영역이 찌그러지지 않게 고정 */
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* CV 버튼을 사진 가운데 맞추려면 center로 변경 */
  gap: 0.75rem;
}

/* 사진 윗선과 오른쪽 글씨 윗선을 맞추기 위해 기존 여백 초기화 */
.hero-left .headshot-grid,
.hero-left .links {
  margin: 0;
  width: 100%; text-align: center; box-sizing: border-box;
}
.hero-left .button {
width: 100%; text-align: center; box-sizing: border-box;
}

.hero-right {
  flex: 1;
  min-width: 0;
}

.hero-right .name-note {
  margin-top: 0;
  line-height: 1.1;
}

/* 모바일 등 좁은 화면에서는 글씨가 너무 좁아지지 않게 다시 세로 배치 */
@media (max-width: 600px) {
  .hero-profile {
    flex-direction: column;
  }
}
.project-pi {
  font-size: 1.05rem;      /* 현재 본문(body)과 동일한 크기 */
  font-weight: 400;        /* h3의 굵기(650) 해제 */
  letter-spacing: normal;  /* h3의 좁은 자간(-.025em) 해제 */
  white-space: nowrap;     /* (PI: Qunfang Wu)가 중간에 끊기지 않게 유지 */
}

#map iframe {
  width: 100%;
  max-width: 100%;
  height: 480px;
  border: 0;
  display: block;
  margin-top: 1.5rem;
}
@media (min-width: 601px) {
  .hero-left {
    align-self: stretch;
  }
  .hero-left .links {
    margin-top: auto;
  }
  .hero-right > p:last-child {
    margin-bottom: 0;
  }
}
#teaching .grid > article {
  display: flex;
  flex-direction: column;
}
#teaching .grid > article > a {
  margin-top: auto;
  align-self: flex-start;
}