:root {
  --bg: #f4f4f3;
  --surface: #fbfbfa;
  --text: #2c2c2c;
  --text-soft: #5f5f5f;
  --text-faint: #8a8a8a;
  --line: #e0e0dd;
  --accent: #2d6d66;
  --accent-soft: #e2eeec;
  --badge-bg: #e9e9e6;
  --content-width: 1240px;
  --sidebar-width: 260px;
  --topbar-height: 54px;
}

* { box-sizing: border-box; }

::selection { background: var(--accent-soft); color: var(--accent); }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Pretendard", -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Segoe UI", "Noto Sans KR", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15.5px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.005em;
}

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

.layout {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 56px 32px 96px;
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  gap: 64px;
  align-items: start;
}

/* ---------- sidebar ---------- */

.sidebar {
  position: sticky;
  top: calc(var(--topbar-height) + 40px);
  text-align: center;
}

.avatar {
  width: 190px;
  aspect-ratio: 328 / 425;
  height: auto;
  margin: 0 auto 22px;
  border-radius: 6px;
  object-fit: cover;
  display: block;
  background: var(--badge-bg);
  border: 1px solid var(--line);
}

.name {
  margin: 0 0 2px;
  font-size: 1.45rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.name-sub {
  margin: 0 0 16px;
  font-size: 0.9rem;
  color: var(--text-faint);
}

.status {
  margin: 0 0 6px;
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.6;
}

.status strong { font-weight: 600; color: var(--accent); }

.location {
  margin: 0 0 22px;
  font-size: 0.85rem;
  color: var(--text-faint);
}

.social {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.social a {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--accent);
  border: 1px solid #c3dbd7;
  background: var(--surface);
  transition: color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.social a:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-1px);
}
.social svg { width: 17px; height: 17px; fill: currentColor; }

/* ---------- top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(249, 249, 248, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 32px;
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 26px;
}

.nav a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-faint);
  white-space: nowrap;
  border-bottom: none;
  position: relative;
  transition: color 0.15s ease;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.nav a:hover { color: var(--accent); }
.nav a.active { color: var(--accent); font-weight: 600; }
.nav a.active::after { opacity: 1; }

/* ---------- sections ---------- */

section { margin-bottom: 52px; scroll-margin-top: calc(var(--topbar-height) + 24px); }
section:last-of-type { margin-bottom: 0; }

h2 {
  margin: 0 0 20px;
  font-size: 1.2rem;
  color: var(--accent);
  font-weight: 650;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 44px;
  height: 2px;
  background: var(--accent);
}

h3.subhead {
  margin: 34px 0 16px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

p { margin: 0 0 14px; }
p:last-child { margin-bottom: 0; }

.about p + p { margin-top: 0; }

/* ---------- entries ---------- */

.entry {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.entry:last-child { border-bottom: none; }

.entry::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.15s ease;
}
.entry:hover::before { opacity: 1; }

.entry-meta {
  font-size: 0.78rem;
  color: var(--accent);
  padding-top: 3px;
  line-height: 1.5;
}

.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 4px;
  padding: 2px 8px;
}

.entry-title {
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 3px;
  transition: color 0.15s ease;
}
.entry:hover .entry-title { color: var(--accent); }

.authors {
  font-size: 0.88rem;
  color: var(--text-soft);
  margin-bottom: 4px;
}
.authors .me { font-weight: 650; color: var(--accent); }

.venue {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text-soft);
}

.detail {
  font-size: 0.9rem;
  color: var(--text-soft);
  margin-top: 4px;
}

.links {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.links a {
  font-size: 0.74rem;
  font-weight: 500;
  padding: 1px 9px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-soft);
}
.links a:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}

.note {
  font-size: 0.85rem;
  color: var(--text-faint);
  font-style: italic;
}

ul.plain {
  margin: 7px 0 0;
  padding-left: 17px;
  font-size: 0.9rem;
  color: var(--text-soft);
}
ul.plain li { margin-bottom: 4px; }
ul.plain li:last-child { margin-bottom: 0; }

footer {
  margin-top: 64px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--text-faint);
}

/* ---------- responsive ---------- */

@media (max-width: 880px) {
  .layout {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 36px 22px 72px;
  }
  .sidebar { position: static; }
  .avatar { width: 150px; }
  .nav {
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 18px;
    height: auto;
    padding: 12px 20px;
  }
  .entry {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .entry-meta { padding-top: 0; }
}
