/* :root{
  --bg: #f7f5f1;
  --card: rgba(255,255,255,0.68);
  --text: rgba(28,28,28,0.86);
  --muted: rgba(28,28,28,0.52);
  --border: rgba(120,110,100,0.14);
} */

:root{
  --bg: #f8f6f1;
  --card: rgba(255,255,255,0.70);
  --text: rgba(26,25,23,0.88);
  --muted: rgba(26,25,23,0.56);
  --border: rgba(130,120,100,0.13);
  --accent: #d6b56d;
  --accent-soft: rgba(214,181,109,0.12);
}

*{ box-sizing: border-box; }

html,body{
  margin:0;
  padding:0;
}

body{
  font-family: "Instrument Sans", "Noto Sans SC", ui-sans-serif, system-ui, -apple-system,
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background:
    radial-gradient(900px 520px at 12% 4%, rgba(255,210,120,0.16), transparent 62%),
    radial-gradient(760px 460px at 86% 8%, rgba(255,235,185,0.18), transparent 60%),
    radial-gradient(700px 500px at 50% 100%, rgba(255,220,150,0.08), transparent 65%),
    linear-gradient(180deg, #fffdf8 0%, var(--bg) 52%, #f4f0e8 100%);
  color: var(--text);
}

h1, h2, h3, .brand{
  font-family: "Instrument Sans", "Noto Sans SC", sans-serif;
  letter-spacing: -0.02em;
}

a{
  color: var(--text);
}

.container{
  max-width: 820px;
  margin: 0 auto;
  padding: 0 18px;
}

.topbar{
  position: sticky;
  top: 0;
  background: rgba(251,248,243,0.72);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(120,100,85,0.12);
  box-shadow: 0 8px 28px rgba(60,45,30,0.04);
  z-index: 10;
}

.topbar-inner{
  height: 58px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.brand{
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.2px;
  color: #000;
}

.nav a{
  margin-left: 16px;
  text-decoration: none;
  color: #000;
  font-weight: 600;
}

.nav a:hover{
  color: var(--text);
}

.hero{
  padding: 34px 0 10px;
  padding-left: 36px;
}

.hero-content{
  max-width: 760px;
}

h1{
  margin: 0 0 10px;
  font-size: 40px;
  line-height: 1.15;
  color: #000;
  font-weight: 700;
}

.subtitle{
  margin: 0 0 18px;
  color: #000;
  font-size: 18px;
  line-height: 1.45;
  max-width: none;
}

.name-cn{
  font-size: 0.7em;
  font-weight: 400;
  margin-left: 0.32em;
  white-space: nowrap;
  position: relative;
  top: 0.06em;
}

.nyu{
  color: var(--text);
  font-weight: 700;
}

.snu{
  color: #000;
  font-weight: 700;
}

.strong{
  font-weight: 700;
}

.highlight{
  color: #a855f7;
  font-weight: 700;
}

.meta{
  margin-top: 10px;
  color: var(--muted);
  display:flex;
  gap: 14px;
  flex-wrap:wrap;
}

.meta .icon{
  color: var(--text);
}

.meta a{
  text-decoration:none;
  border-bottom: 1px dashed var(--border);
}

.avatar{
  float: right;
  width: 165px;
  height: auto;
  object-fit: contain;
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,0.75);
  box-shadow:
    0 24px 60px rgba(45,55,65,0.13),
    0 0 0 8px rgba(255,255,255,0.42);
  margin-left: 28px;
  margin-bottom: 18px;
}

.section{
  padding: 26px 0;
}

.section h2{
  margin: 0 0 12px;
  font-size: 22px;
  padding-left: 36px;
  color: #000;
  font-weight: 700;
}

.personal-intro{
  max-width: 700px;
  margin: 0 0 14px;
  padding-left: 36px;
  color: #000;
  font-size: 16px;
  line-height: 1.55;
}

.card{
  width: 100%;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.80),
    rgba(255,255,255,0.58)
  );
  border: 1px solid rgba(255,255,255,0.74);
  border-radius: 24px;
  padding: 18px;
  backdrop-filter: blur(16px);
  box-shadow:
    0 18px 45px rgba(45,55,65,0.07),
    inset 0 1px 0 rgba(255,255,255,0.72);
}

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

.gallery{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.personal-gallery{
  max-width: 600px;
  margin: 0 auto;
  gap: 5px;
}

.shot{
  margin: 0;
  flex: 1;
  display: flex;
  justify-content: center;
  border: 0;
  background: transparent;
}

.shot img{
  max-width: 100%;
  max-height: 170px;
  width: auto;
  height: auto;
  display: block;
  border-radius: 14px;
}

@media (max-width: 860px){
  .gallery{
    flex-wrap: wrap;
    justify-content: center;
  }

  .shot{
    flex: 1 1 260px;
  }
}

h3{
  margin: 0 0 6px;
  font-size: 18px;
}

.muted{
  color: var(--muted);
  margin: 6px 0 10px;
}

.small{
  font-size: 13px;
}

.bullets{
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--text);
}

.bullets li{
  margin: 6px 0;
  color: var(--muted);
}

.bullets b{
  color: var(--text);
}

.news{
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.news li{
  margin: 10px 0;
}

.date{
  display:inline-block;
  min-width: 78px;
  color: var(--text);
  font-weight: 600;
}

.footer{
  padding: 22px 0 30px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  margin-top: 26px;
}

@media (max-width: 860px){
  .personal-intro{
    padding-left: 0;
  }

  .hero-content{
    max-width: 100%;
  }

  .avatar{
    float: none;
    display: block;
    width: 150px;
    height: auto;
    margin: 0 0 22px 0;
  }

  .section h2{
    padding-left: 0;
  }

  .grid{
    grid-template-columns: 1fr;
  }

  h1{
    font-size: 34px;
  }
}

/* ===== Projects: full-width rows with left thumbnail ===== */
.projects-list{
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.project-card{
  display: flex;
  gap: 14px;
  padding: 12px 14px;
  align-items: center;
}
  .project-card .project-head h3{
  font-size: 16px;
  color: #000;
}

.project-card .muted{
  font-size: 16px;
  line-height: 1.45;
}
.project-thumb{
  flex: 0 0 160px;
  height: 110px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.02);
}

.project-thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-thumb.placeholder{
  display: grid;
  place-items: center;
  color: rgba(0,0,0,0.45);
  font-size: 14px;
}

.project-body{
  flex: 1;
  min-width: 0;
}

.project-head{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.project-head h3{
  margin: 0;
}

.project-tag{
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.02);
  white-space: nowrap;
}

.bullets.compact{
  margin-top: 6px;
  margin-bottom: 0;
  padding-left: 18px;
}

.bullets.compact li{
  margin: 2px 0;
}

@media (max-width: 720px){
  .project-card{
    flex-direction: column;
  }

  .project-thumb{
    flex-basis: auto;
    width: 100%;
    height: 140px;
  }

  .project-head{
    flex-direction: column;
    align-items: flex-start;
  }


}
