/* Personal academic site, with typography informed by the SIA Lab website. */
@font-face {
  font-family: "Pretendard Variable";
  src: url("fonts/PretendardVariable.woff2") format("woff2");
  font-weight: 45 920;
  font-style: normal;
  font-display: swap;
}
:root {
  --text: #25292e;
  --muted: #626870;
  --accent: #344f6b;
  --line: #e2e5e8;
  --paper: #fff;
  --label-width: 240px;
  --column-gap: 36px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: "Pretendard Variable", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; line-height: 1.4; font-weight: 700; letter-spacing: -.015em; }
p { margin: 0; }
a { color: var(--accent); text-decoration: underline; text-decoration-color: #b6c0ca; text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: #1f354b; text-decoration-color: currentColor; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
img { max-width: 100%; display: block; }
button { font: inherit; }
::selection { background: #dbe8ed; }
.wrap { width: min(1072px, calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: fixed; top: 10px; left: 20px; transform: translateY(-180%); z-index: 200; padding: 8px 16px; color: white; background: var(--text); }
.skip-link:focus { transform: translateY(0); }

/* Simple, static masthead. */
.navbar { position: relative; z-index: 100; border-bottom: 1px solid var(--line); background: white; }
.nav-inner { min-height: 68px; display: flex; justify-content: space-between; align-items: center; gap: 28px; }
.brand { font-size: 18px; font-weight: 600; color: var(--text); letter-spacing: -.02em; text-decoration: none; white-space: nowrap; }
.nav-links { display: flex; gap: 24px; padding: 0; margin: 0; list-style: none; }
.nav-links a { display: block; padding-block: 20px; font-size: 14.5px; font-weight: 450; letter-spacing: 0; color: var(--muted); text-decoration: none; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-actions { display: none; }
.icon-btn { padding: 10px 0 10px 14px; min-height: 44px; border: 0; border-radius: 0; background: none; color: var(--text); font-size: 16px; font-weight: 600; cursor: pointer; }

/* Portrait and biographical introduction. */
.hero { padding: 36px 0; }
.hero-grid { display: grid; grid-template-columns: var(--label-width) minmax(0, 1fr); gap: var(--column-gap); align-items: start; }
.hero-photo { grid-column: 1; grid-row: 1; }
.hero-text { grid-column: 2; grid-row: 1; min-width: 0; }
.hero-photo .frame { overflow: hidden; }
.hero-photo img { width: 100%; height: auto; }
.hero-name { font-size: clamp(34px, 3.2vw, 46px); font-weight: 650; line-height: 1.15; letter-spacing: -.035em; margin: 0 0 16px; color: #243b53; }
.hero-position { font-size: 18px; font-weight: 550; margin-bottom: 5px; color: var(--text); }
.hero-affil { color: var(--muted); line-height: 1.65; }
.hero-role { color: var(--text); font-size: 17px; font-weight: 500; line-height: 1.65; margin-top: 14px; }
.hero-lead { color: var(--muted); font-size: 17px; line-height: 1.75; margin-top: 12px; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 16px; }
.btn { display: inline-flex; align-items: center; min-height: 34px; font-size: 17px; font-weight: 500; }
.btn svg { display: none; }
.hero-social { display: flex; flex-wrap: wrap; column-gap: 20px; margin-top: 8px; }
.hero-social a { font-size: 15px; padding-block: 4px; color: var(--muted); text-decoration: none; }
.hero-social a:hover { color: var(--accent); text-decoration: underline; }

/* CV sections: a heading column and plain prose, divided by rules. */
.section > .wrap { display: grid; grid-template-columns: var(--label-width) minmax(0, 1fr); gap: var(--column-gap); padding-block: 26px; border-top: 1px solid var(--line); }
#about > .wrap { border-top: 1px solid #aab6c3; }
.section-title { font-size: 21px; font-weight: 600; letter-spacing: -.015em; color: var(--text); }
.section-head .kicker { display: none; }
.about-lead p + p { margin-top: 12px; }
.about-lead strong { font-weight: 600; }
.interests { padding-left: 20px; margin: 12px 0 0; }
.interests li { margin-top: 3px; }
.interests strong { font-weight: 600; }
.interests li::marker, .bullets li::marker, .pub-list li::marker { color: var(--accent); }

/* Manuscripts are citations, without cards or status badges. */
.current-list { display: grid; gap: 20px; }
.current-item h3 { font-size: 17.5px; font-weight: 600; line-height: 1.65; letter-spacing: 0; }
.current-status { color: var(--accent); font-size: 15.5px; font-style: italic; margin-top: 6px; }
.me { font-weight: 600; color: var(--text); }

/* Research experience and education. */
.timeline { display: grid; gap: 22px; }
.t-top { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 20px; }
.t-title { font-size: 18px; font-weight: 650; letter-spacing: 0; }
.t-date { font-size: 15.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.t-sub { margin-top: 2px; color: var(--muted); }
.experience-detail { margin-top: 10px; line-height: 1.7; }
.t-label { font-size: 16px; font-weight: 600; margin-top: 14px; }
.research-areas { color: var(--muted); font-size: 16px; margin-top: 3px; }
.bullets { margin: 8px 0 0; padding-left: 19px; }
.bullets li { padding-left: 2px; margin-top: 5px; line-height: 1.7; }

/* Publication and award lists. */
.ach-grid { display: grid; gap: 22px; }
.card-head { margin-bottom: 7px; }
.card-head h3 { font-size: 18px; font-weight: 650; letter-spacing: 0; }
.card-head .ic { display: none; }
.pub-region { color: var(--muted); font-size: 15px; margin-bottom: 9px; }
.pub-list { margin: 0; padding-left: 20px; }
.pub-list li { margin-bottom: 13px; padding-left: 3px; line-height: 1.7; }
.pub-list li:last-child { margin-bottom: 0; }
.pub-list strong { font-weight: 600; }

/* Contact follows the same document layout. */
.contact-copy > p { max-width: 43em; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 13px; }
.references { margin-top: 13px; color: var(--muted); font-size: 15px; }
.footer { margin-top: 12px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-block: 16px; }
.footer .brand { font-size: 16px; }
.footer-meta { color: var(--muted); font-size: 14px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { display: grid; place-items: center; width: 32px; height: 32px; color: var(--muted); }
.footer-social svg { width: 16px; height: 16px; }

@media (max-width: 960px) {
  :root { --label-width: 210px; --column-gap: 32px; }
  .nav-links { gap: 15px; }
}
@media (max-width: 860px) {
  .nav-inner { min-height: 64px; }
  .nav-actions { display: block; }
  .nav-links { display: none; position: absolute; top: 100%; right: 24px; width: min(270px, calc(100vw - 48px)); background: white; border: 1px solid var(--line); }
  .nav-links.open { display: block; }
  .nav-links a { padding: 11px 17px; text-transform: none; font-size: 16px; border-bottom: 1px solid var(--line); }
  .nav-links li:last-child a { border-bottom: 0; }
  .hero { padding-block: 28px; }
  .hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .hero-photo { grid-column: 1; grid-row: 1; width: 200px; }
  .hero-text { grid-column: 1; grid-row: 2; }
  .section > .wrap { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 620px) {
  .wrap { width: calc(100% - 36px); }
  .hero-grid { display: flex; flex-direction: column; gap: 20px; }
  .hero-photo { order: -1; width: 200px; }
  .hero-name { font-size: 32px; margin-top: 0; margin-bottom: 15px; }
  .hero-position { font-size: 18px; }
  .hero-role { margin-top: 15px; }
  .section > .wrap { padding-block: 24px; }
  .section-title { font-size: 22px; }
  .t-top { flex-direction: column; gap: 3px; }
  .contact-actions { align-items: flex-start; flex-direction: column; }
  .btn { overflow-wrap: anywhere; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Detail-page navigation preview. */
.detail-page .current-item h2 { font-size: 17.5px; font-weight: 600; line-height: 1.65; letter-spacing: 0; }
.detail-page .card-head h2 { font-size: 18px; font-weight: 650; letter-spacing: 0; }
.detail-back { padding-block: 26px 18px; }
.detail-back a { font-size: 14px; text-decoration: none; color: var(--muted); }
.detail-back a:hover { color: var(--accent); }
.detail-page { min-height: calc(100vh - 165px); }
.detail-page .section-title { font-size: 28px; letter-spacing: -.025em; }
.nav-links a[aria-current="page"] { box-shadow: inset 0 -2px var(--accent); font-weight: 600; }
