/* assets/css/custom.css */

:root{
  --border: rgba(0,0,0,.08);
  --border-soft: rgba(0,0,0,.06);
  --bg-soft: rgba(0,0,0,.03);
  --bg-softer: rgba(0,0,0,.02);
  --shadow: 0 6px 18px rgba(0,0,0,.06);
}

a{ text-decoration: none; }
a:hover{ text-decoration: underline; }

/* Typography */
.section-title{
  margin: 0 0 .75rem 0;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}

.hero-name{
  margin: 0 0 .35rem 0;
  font-size: 2.6rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero-role{
  margin:0;
  opacity:.85;
  font-size: 1.05rem;
}

.hero-tags{
  margin: .55rem 0 1.15rem 0;
  opacity:.75;
  font-size: 1.02rem;
}

.lead{
  margin: 0;
  line-height: 1.65;
}

/* Badges & links */
.badges{
  margin-top: .9rem;
  display:flex;
  flex-wrap:wrap;
  gap:.5rem;
}

.badge{
  padding: .35rem .65rem;
  border-radius: 999px;
  background: rgba(0,0,0,.05);
  font-size: .92rem;
}

.mini-links{
  margin-top: 1rem;
  display:flex;
  align-items:center;
  gap:.5rem;
  opacity:.85;
}

.dot{ opacity:.6; }

/* Header: About left, Photo right */
.hero2{
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  align-items: stretch;     /* ← start 대신 stretch */
  margin-bottom: 1.75rem;
}

.hero2-right{
  display: flex;
  align-items: stretch;     /* ← stretch */
  justify-content: flex-end;
}

.hero2-photo{
  width: 320px;
  height: auto;          /* 고정/100% 높이 제거 */
  max-height: 398px;     /* 여기서 원하는 상한 조절 */
  border-radius: 22px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  object-fit: cover;
  display: block;
}

/* About card */
.about-card{
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

/* Vertical stack */
.stack{
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.25rem;
}

/* Panels */
.panel{
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.sub-title{
  margin: 1.25rem 0 .5rem 0;
  font-size: 1.05rem;
  opacity: .9;
}

.bullets{
  margin: .25rem 0 0 1.1rem;
  line-height: 1.8;
}

/* Timeline */
.timeline{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction:column;
  gap: .9rem;
}

.timeline-item{
  display:flex;
  gap: 1rem;
  padding: .75rem .85rem;
  border-radius: 12px;
  background: var(--bg-softer);
  border: 1px solid var(--border-soft);
}

.timeline-time{
  flex: 0 0 150px;
  font-size: .92rem;
  opacity: .75;
  white-space: nowrap;
}

.timeline-title{
  font-weight: 600;
  line-height: 1.35;
}

/* Publications placeholder */
.coming-soon{
  padding: 1rem;
  border-radius: 12px;
  background: var(--bg-softer);
  border: 1px dashed rgba(0,0,0,.18);
}

.coming-soon-title{
  font-weight: 600;
  margin-bottom: .25rem;
}

.coming-soon-desc{
  opacity: .85;
  line-height: 1.55;
}

/* Footer */
.site-footer{
  margin-top: 2.75rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
  color: rgba(0,0,0,.45);
  font-size: .92rem;
}

/* Responsive */
@media (max-width: 760px){
  .hero2{
    grid-template-columns: 1fr;
  }
  .hero2-right{
    justify-content: flex-start;
  }
  .hero2-photo{
    width: min(420px, 100%);
    height: auto;
    aspect-ratio: 4 / 5;
  }
  .timeline-time{
    flex: 0 0 auto;
    width: 100px;
  }
}

.mini-links a{
  color: #1a0dab;              /* classic link blue */
  text-decoration: underline;
}

.mini-links a:hover{
  text-decoration: underline;
}

/* Title underline (extends toward the photo) */
.title-row{
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: .35rem; /* 기존 h1 아래 간격과 비슷하게 */
}

.title-rule{
  flex: 1 1 auto;
  height: 6px;                 /* 두께 (원하면 4~8px로 조절) */
  border-radius: 999px;
  background: rgba(25, 48, 90, 0.18); /* 밝고 채도 낮은 남색 */
  transform: translateY(0px); /* 글자 baseline에 맞춰 살짝 위로 */
}
