/* ============================================================
   Soon-Chan Kim — Academic Homepage
   Minimal academic style. Serif body, sans nav.
   ============================================================ */

:root {
  --text: #1a1a1a;
  --muted: #5a5a5a;
  --faint: #888;
  --border: #e5e5e5;
  --bg: #ffffff;
  --accent: #1a3a5c;
  --accent-hover: #2c5a8c;
  --highlight: #fff8d8;
  --content-width: 760px;
}

* { box-sizing: border-box; }

html { font-size: 17px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Source Serif 4", "Source Serif Pro", "Georgia", serif;
  font-weight: 400;
  line-height: 1.65;
  font-feature-settings: "kern", "liga";
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
a:hover { color: var(--accent-hover); border-bottom-color: var(--accent-hover); }

/* ---------- Header / Nav ---------- */
.site-header {
  border-bottom: 1px solid var(--border);
  padding: 1.4rem 1.5rem;
  margin-bottom: 2.5rem;
}
.site-header-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.site-title {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
  border: none;
}
.site-title:hover { color: var(--accent); border: none; }

.site-nav {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 0.92rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}
.site-nav a {
  color: var(--muted);
  border-bottom: none;
}
.site-nav a:hover { color: var(--accent); border-bottom: 1px solid var(--accent); }
.site-nav a.active { color: var(--text); border-bottom: 1px solid var(--text); }

/* ---------- Main ---------- */
main {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

h1, h2, h3, h4 {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
  margin-top: 2.2rem;
  margin-bottom: 0.7rem;
}
h1 { font-size: 1.65rem; margin-top: 0; }
h2 { font-size: 1.2rem; margin-top: 2.4rem; padding-bottom: 0.3rem; border-bottom: 1px solid var(--border); }
h3 { font-size: 1.02rem; color: var(--accent); }

p { margin: 0.8rem 0; }

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

/* ---------- Home: hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 2.5rem;
}
.hero-photo {
  width: 160px;
  height: 200px;
  background: #f1f1ee;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--faint);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.8rem;
  overflow: hidden;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-name {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1.7rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
}
.hero-affil {
  color: var(--muted);
  font-size: 1rem;
  margin: 0.15rem 0;
}
.hero-links {
  margin-top: 0.9rem;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

@media (max-width: 600px) {
  .hero { grid-template-columns: 1fr; }
  .hero-photo { width: 130px; height: 165px; }
}

/* ---------- Publications ---------- */
.year-heading {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 2.2rem;
  margin-bottom: 0.6rem;
}
.pub-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: pub;
}
.pub-list li {
  position: relative;
  padding: 0.7rem 0 0.7rem 2.4rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.97rem;
  line-height: 1.55;
}
.pub-list li:last-child { border-bottom: none; }
.pub-list li::before {
  counter-increment: pub;
  content: counter(pub) ".";
  position: absolute;
  left: 0;
  top: 0.7rem;
  color: var(--faint);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.85rem;
  width: 2rem;
  text-align: right;
}
.pub-list .me { font-weight: 700; color: var(--text); background: var(--highlight); padding: 0 2px; border-radius: 2px; }
.pub-list .venue { font-style: italic; color: var(--muted); }
.pub-list .marker { color: var(--accent); font-weight: 600; }

.pub-footnote {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0.5rem 0 1.8rem;
}

/* ---------- CV ---------- */
.cv-entry {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 1.2rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}
.cv-entry:last-child { border-bottom: none; }
.cv-date {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.85rem;
  color: var(--muted);
  padding-top: 0.18rem;
}
.cv-body { font-size: 0.97rem; }
.cv-body strong { font-weight: 600; }
.cv-body .sub { color: var(--muted); font-size: 0.9rem; display: block; margin-top: 0.1rem; }

@media (max-width: 600px) {
  .cv-entry { grid-template-columns: 1fr; gap: 0.2rem; }
}

/* ---------- Research themes ---------- */
.theme {
  margin: 1.5rem 0 2.2rem;
  padding-left: 1rem;
  border-left: 3px solid var(--accent);
}
.theme h3 { margin-top: 0; }

/* ---------- Contact ---------- */
.contact-item {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.95rem;
  margin: 0.6rem 0;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1rem;
}
.contact-item .label { color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer {
  max-width: var(--content-width);
  margin: 3rem auto 2rem;
  padding: 1.5rem;
  border-top: 1px solid var(--border);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.82rem;
  color: var(--faint);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
