:root{
  --max-width: 1080px;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --bg: #ffffff;
  --accent: #7c2d12; /* dark orange-red */
}

*{ box-sizing:border-box; }

body{
  margin:0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color:var(--text);
  background:var(--bg);
}

a{
  text-decoration:none;
  color:inherit;
}

.container{
  max-width:var(--max-width);
  margin:0 auto;
  padding:0 20px;
}

/* ================= HEADER ================= */

.site-header{
  border-bottom:1px solid var(--border);
  background:#fff;
}

.navbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:64px;
  gap:20px;
}

.brand-text{
  display:flex;
  flex-direction:column;
}

.brand-text .name{
  font-weight:700;
  font-size:1.1rem;
}

.brand-text .subtitle{
  font-size:0.9rem;
  color:var(--muted);
}

/* ===== NAV ===== */

.nav-links{
  display:flex;
  gap:20px;
}

.nav-links a{
  padding:6px 12px;
  border-radius:10px;
  font-weight:500;
}

.nav-links a[aria-current="page"]{
  border:1px solid var(--border);
  background:#f8fafc;
  font-weight:600;
}

.nav-links a:hover{
  font-weight:600;
}

/* ===== RIGHT CONTROLS ===== */

.header-controls{
  display:flex;
  align-items:center;
  gap:12px;
}

.email-icon,
.lang-switch{
  font-size:0.95rem;
  color:var(--muted);
}

.email-icon:hover,
.lang-switch:hover{
  color:var(--text);
  font-weight:600;
}

/* ===== MOBILE MENU ===== */

.menu-btn{
  display:none;
  background:none;
  border:1px solid var(--border);
  border-radius:10px;
  padding:6px 10px;
  font-weight:600;
}

@media (max-width:720px){
  .navbar{
    flex-wrap:wrap;
  }

  .nav-links{
    display:none;
    width:100%;
    flex-direction:column;
    gap:8px;
    padding:12px 0;
  }

  .nav-links.open{
    display:flex;
  }

  .menu-btn{
    display:inline-block;
  }
}

/* ================= MAIN ================= */

main{
  padding:40px 0;
}

/* ===== HERO ===== */

.hero{
  display:flex;
  gap:40px;
  align-items:center;
  flex-wrap:wrap;
}

.hero img{
  width:140px;
  height:140px;
  border-radius:50%;
  object-fit:cover;
}

.hero h1{
  font-size:2.4rem;
  margin:0;
}

.hero .degrees{
  color:var(--muted);
  margin:8px 0;
}

.badges{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin:12px 0;
}

.badge{
  border:1px solid var(--border);
  padding:6px 12px;
  border-radius:999px;
  font-size:0.85rem;
}

.cv-btn{
  display:inline-block;
  margin-top:16px;
  padding:12px 24px;
  border-radius:14px;
  background:#020617;
  color:#fff;
  font-weight:600;
}

/* ===== SECTIONS ===== */

.section{
  margin-top:48px;
  border:1px solid var(--border);
  border-radius:18px;
  padding:24px;
}

.section h2{
  margin-top:0;
}

/* ===== LISTS ===== */

.pub{
  margin-bottom:22px;
}

.pub strong{
  display:block;
  font-size:1rem;
}

.pub .meta{
  color:var(--muted);
  font-style:italic;
  margin:4px 0;
}

.pub a{
  color:var(--accent);
  font-weight:500;
}

/* ===== FOOTER ===== */

footer{
  margin:60px 0 20px;
  text-align:center;
  color:var(--muted);
  font-size:0.85rem;
}

/* ===== Research/Teaching older boxed look ===== */
.page-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 900px) {
  .page-grid.two-col { grid-template-columns: 1fr 1fr; }
}

.card{
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 14px;
  padding: 18px 18px 16px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.card h2{
  margin: 0 0 12px;
  font-size: 1.15rem;
  line-height: 1.2;
}

/* Publication cards */
.pub-list { display: grid; gap: 10px; }

.pub-card{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.10);
}

.pub-title{ font-weight: 650; margin: 0 0 4px; }
.pub-meta{ color: rgba(0,0,0,0.65); font-size: 0.92rem; }

.pub-link{
  white-space: nowrap;
  text-decoration: none;
}

.pub-card:hover .pub-title { font-weight: 750; } /* hover는 boldface만 */
