/* jinhyunpark.com: quiet, text-first layout with a single maroon accent */

:root {
  --bg: #fbfaf6;
  --text: #24221e;
  --muted: #6b675e;
  --line: #e4dfd3;
  --accent: #7a1c2b;
  --accent-soft: #e6cdd1;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-soft);
}
a:hover { border-bottom-color: var(--accent); }

p { margin: 0 0 14px; }

/* ---------- top bar ---------- */
.topbar {
  max-width: 860px;
  margin: 0 auto;
  padding: 22px 24px 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  color: var(--text);
  border-bottom: none;
  font-size: 16px;
  white-space: nowrap;
}
.brand-mark { font-size: 18px; margin-right: 4px; }
.topbar nav { display: flex; gap: 22px; font-size: 15.5px; white-space: nowrap; }
.topbar nav a { color: var(--muted); border-bottom: 1px solid transparent; padding-bottom: 2px; }
.topbar nav a:hover { color: var(--accent); }
.topbar nav a.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------- page ---------- */
.page {
  max-width: 860px;
  margin: 0 auto;
  padding: 64px 24px 72px;
}

h1 {
  font-size: 40px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--accent);
  margin: 0 0 8px;
}
.kname { font-size: 18px; color: var(--muted); margin-left: 8px; letter-spacing: 0; white-space: nowrap; }

h2 {
  font-size: 21px;
  font-weight: 400;
  color: var(--accent);
  margin: 0 0 14px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--line);
}
h3 { font-size: 17px; font-weight: 700; margin: 18px 0 8px; }

hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0 20px; }

.small { font-size: 15px; color: var(--muted); }
.footer { margin-top: 18px; text-align: right; }

/* ---------- profile ---------- */
.profile {
  display: grid;
  grid-template-columns: 1fr 250px;
  gap: 48px;
  align-items: start;
  margin-bottom: 60px;
}
.profile.no-photo { grid-template-columns: 1fr; max-width: 680px; }
.profile.no-photo .profile-photo { display: none; }
.profile-photo img { display: block; width: 100%; height: auto; border-radius: 4px; }
.role { color: var(--muted); font-size: 15.5px; margin-bottom: 26px; }
.intro { font-size: 17px; font-style: italic; color: var(--muted); margin-bottom: 18px; }
.contact { margin-top: 24px; line-height: 1.9; }
.sep { color: var(--line); margin: 0 3px; }

/* ---------- sections ---------- */
.sec { margin: 0 0 46px; }

table.news, table.cv, table.pubs { border-collapse: collapse; width: 100%; }
table.news td, table.cv td { vertical-align: top; padding: 4px 0; }
table.news td:first-child, table.cv td:first-child {
  width: 118px;
  padding-right: 14px;
  color: var(--muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
table.pubs td { vertical-align: top; padding: 0 0 13px; }
table.pubs td:first-child { width: 46px; padding-right: 10px; color: var(--accent); white-space: nowrap; }

/* ---------- mini projects ---------- */
.proj { display: flex; gap: 20px; align-items: flex-start; margin: 0 0 28px; }
.proj + .proj { border-top: 1px solid var(--line); padding-top: 28px; }
.proj:first-of-type { border-top: 1px solid var(--line); padding-top: 28px; }
.proj-thumb { flex: 0 0 200px; border-bottom: none; }
.proj-thumb img {
  display: block;
  width: 200px;
  height: 134px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: #fff;
}
.proj-body h3 { font-size: 18px; margin: 0 0 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.proj-body p { margin-bottom: 6px; }
.proj-meta { font-size: 14.5px; color: var(--muted); margin: 8px 0 0; }

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  body { font-size: 16.5px; }
  .topbar { padding: 16px 18px 0; flex-wrap: wrap; row-gap: 6px; }
  .topbar nav { gap: 16px; font-size: 15px; }
  .page { padding: 40px 18px 56px; }
  h1 { font-size: 33px; }
  .profile { grid-template-columns: 1fr; gap: 24px; margin-bottom: 48px; }
  .profile-photo { order: -1; }
  .profile-photo img { max-width: 220px; }
  table.news td:first-child, table.cv td:first-child { width: 92px; }
  .proj { flex-direction: column; gap: 10px; }
  .proj-thumb { flex-basis: auto; }
  .proj-thumb img { width: 100%; height: auto; max-height: 220px; }
  .proj-body h3 { white-space: normal; }
}
