:root{
  /* Base (light theme) */
  --bg: #ffffff;
  --card: #F7F6D3;
  --text: #111111;
  --muted: #555555;
  --line: rgba(0,0,0,.10);

  /* Accent palette */
  --accent:  #F39EB6;  /* pink */
  --accent2: #B8DB80;  /* green */
  --accent3: #FFE4EF;  /* soft pink */
  --accent4: #F7F6D3;  /* cream */
  --radius: 18px;
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }

body{
  font-family: "Montserrat", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a{ color: inherit; }

.container{
  max-width: 980px;
  margin: 0 auto;
  padding: 24px;
}

/* Top nav */
.top{
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.75);
  backdrop-filter: blur(10px);
}

.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.brand{
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo{
  height: 32px;      /* 원하는 크기로 조절 */
  width: auto;
  display: block;
}

.menu a{
  text-decoration:none;
  margin-left: 14px;
  color: var(--muted);
}
.menu a:hover{ color: var(--accent); }

/* Hero */
.hero{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
  padding: 24px 0 10px;
}

.badge{
  display:inline-block;
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 6px 10px;
  border-radius: 999px;
}

h1{
  margin: 10px 0 6px;
  font-size: 40px;
  line-height: 1.15;
}

.subtitle{
  margin: 0 0 14px;
  color: var(--muted);
  max-width: 52ch;
}

.cta{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: transparent;
  text-decoration:none;
  color: var(--text);
}

.btn:hover{
  /* border-color: rgba(0,0,0,.22); */
  color: var(--accent);
}


.btn.primary{
  background: var(--accent3);
  border: 0;
  color: #111;
  font-weight: 700;
}


/* Right side (photo) */
.hero-card{
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.avatar{
  width: 200px;          /* a bit smaller */
  max-width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--line);
  display: block;
  margin-left: auto;
}

/* Sections */
.section{
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.section:first-of-type{
  border-top: 0;
}
/* spacing between About / Interests / Works headings inside the same section */
.section h2{
  margin: 28px 0 12px;   /* 위/아래 간격: 숫자만 조절 */
  font-size: 22px;
}
.section h2:first-child{
  margin-top: 0;         /* section 맨 첫 제목은 위 여백 제거 */
}


.work-link-thumb{
  display: inline-block;
}

.paper-title-link{
  text-decoration: none;
  color: inherit;
  display: inline-block;
}

.paper-title-link:hover .paper-title{
  color: var(--accent);
}


/* plain containers (no bg/shadow) */
.card{
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.card h3{
  margin: 0 0 8px;
  font-size: 16px;
}

.muted{ color: var(--muted); }

.grid2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.grid3{
  display:grid;
  grid-template-columns: 1fr 1fr 1.2fr; /* Works를 약간 넓게 */
  gap: 16px;
  align-items: start;
}

/* Interests chips */
.chips{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
.chips span{
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text);
  background: var(--accent4);
}

/* Works (each item has its own thumbnail) */
.works{
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 10px;
}

/* Works (each item has its own thumbnail) */
.work-row{
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 20px;
}

.work-thumb{
  width: 200px;
  height: auto;
  border-radius: 12px;
  flex-shrink: 0;
}

.work-text{ min-width: 0; }

.paper-title{
  font-size: 1.1rem;   /* 기존보다 키움 (중요) */
  font-weight: 600;
}

.paper-authors{
  font-size: 0.95rem;  /* 약간 키움 */
}

.paper-accept{
  font-size: 0.9rem;   /* 약간 키움 */
  color: #F39EB6;
  font-weight: 700;
}

.me{
  color: inherit;     /* 기본 텍스트 색(검정) 따라감 */
  font-weight: 600;   /* 볼드 */
}

.paper-venue{
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

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

@media (max-width: 860px){
  .work-row{ grid-template-columns: 84px 1fr; } /* 56 -> 84 */
  .work-thumb{
    width: 84px;
    aspect-ratio: 4 / 3;
    height: auto;
  }
}




/* submitted label */
.pill{
  display: inline-block;
  margin-left: 10px;
  font-size: 12px;
  color: var(--accent);
  border: 1px solid rgba(243,158,182,.6);
  padding: 2px 8px;
  border-radius: 999px;
  vertical-align: middle;
  white-space: nowrap;
}

/* Contact */
.contact-card p{
  margin: 6px 0;
}

/* Footer */
.footer{
  border-top: 1px solid var(--line);
  margin-top: 16px;
  padding-top: 12px;
}

/* Responsive */
@media (max-width: 860px){
  .hero{ grid-template-columns: 1fr; }
  .grid2{ grid-template-columns: 1fr; }
  .grid3{ grid-template-columns: 1fr; }

  .avatar{
    margin: 0;
  }

  .work-item{
    grid-template-columns: 70px 1fr;
  }
  .work-thumb{
    width: 70px;
    height: 70px;
  }

  h1{ font-size: 34px; }
}

.edu{
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: grid;
  gap: 10px;
}

.edu li{
  display: grid;
  grid-template-columns: 200px 1fr;  /* 160 → 200으로 증가 */
  gap: 16px;
  align-items: start;
}

.edu-date{
  font-size: 1rem;
  color: #555;
}

.edu-school{
  font-size: 1.05rem;
  font-weight: 400;   /* 또는 normal */
}

.edu-desc{
  font-size: 1rem;  /* 기존 1.05 → 증가 */
  color: #F39EB6;
}

.edu-major{
  margin-top: 2px;
  font-size: 13px;
  color: var(--accent);
  line-height: 1.35;
}

@media (max-width: 860px){
  .edu li{ grid-template-columns: 1fr; }
  .edu-date{ white-space: normal; }
}
