/* Minimal, clean portfolio styles (no frameworks). */

:root {
  --bg: #ffffff;
  --bg-alt: #fafafa;
  --panel: #ffffff;
  --text: #111827;
  --muted: #4b5563;
  --border: rgba(17, 24, 39, 0.14);
  --shadow: 0 10px 30px rgba(17, 24, 39, 0.06);
  --radius: 12px;

  --accent: #111827;
  --accent-2: #2563eb;

  --max: 920px;
  --pad: 22px;
  --gap: 18px;

  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

:root[data-theme="dark"] {
  --bg: #0b0c0f;
  --bg-alt: #0f1218;
  --panel: #0f1218;
  --text: #eef2ff;
  --muted: #a9b4d0;
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --accent: #eef2ff;
  --accent-2: #7aa2ff;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

a { color: inherit; }
code {
  font-family: var(--mono);
  background: rgba(122, 162, 255, 0.10);
  border: 1px solid var(--border);
  padding: 0.1em 0.35em;
  border-radius: 8px;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: -999px;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 10px 12px;
  border-radius: 10px;
  z-index: 9999;
}
.skip-link:focus { left: 12px; top: 12px; }

.site-header{
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
:root[data-theme="light"] .site-header{
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding: 14px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  color:inherit;
  font-weight:700;
  letter-spacing:-0.01em;
}
.brand-dot{display:none;}
.brand-text { font-size: 15px; }

.nav {
  display: none;
  gap: 14px;
  align-items: center;
}
.nav a {
  text-decoration: none;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 10px;
}
.nav a:hover { background: rgba(122, 162, 255, 0.10); color: var(--text); }

.btn {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 650;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: none;
  cursor: pointer;
  background: transparent;
  color: var(--text);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #061019;
}
.btn-secondary { background: rgba(122, 162, 255, 0.14); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--text); }

.hero { padding: 54px 0 34px; }
.hero-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: start;
}

.hero-copy { min-width: 0; }

/* Right side of the hero (photo + quick facts)
   Make the avatar smaller and keep the column visually compact. */
.hero-right {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-end;
}
.hero-simple .title {
  font-size: 36px;
  font-weight: 600;
}


.kicker {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  margin: 0 0 10px;
}
.title {
  margin: 0 0 10px;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.8px;
}
.title-sub {
  display: block;
  font-weight: 600;
  color: var(--muted);
  font-size: clamp(14px, 1.5vw, 18px);
  margin-top: 10px;
}
.lead {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 17px;
}

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.link-row {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
}
.link-row a {
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
}
.link-row a:hover {
  color: var(--text);
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.04);
}

.avatar {
  width: 150px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}


.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;     /* 얼굴 왜곡 방지 */
  display: block;
}

.avatar-placeholder {
  aspect-ratio: 1 / 1;
  height: auto;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.5px;
}
.avatar figcaption { padding: 10px 12px; }

.quickfacts {
  margin-top: 16px;
  width: 100%;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.fact {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
}
.fact-k { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.9px; }
.fact-v { font-weight: 650; margin-top: 4px; }

.section { padding: 56px 0; }

.prose { max-width: 70ch; }

.section.alt { background: rgba(255, 255, 255, 0.03); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
h2 {
  font-size: 26px;
  margin: 0 0 16px;
  letter-spacing: -0.3px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.section-actions { display: flex; gap: 10px; align-items: center; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.panel-title { margin: 0 0 10px; font-size: 16px; }

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.card.project .card-links { margin-top: 10px; display: flex; gap: 12px; flex-wrap: wrap; }
.card-links a {
  text-decoration: none;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 6px 10px;
  border-radius: 999px;
}
.card-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }

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

.pubs { margin: 0; padding-left: 0; list-style: none; display: grid; }
.pub { padding: 0; }
.pub-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
}
.pub-row:first-child { border-top: none; }
.pub-left { min-width: 0; }
.pub-title { font-weight: 780; line-height: 1.25; letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}
.pub-authors { margin-top: 6px; color: var(--muted); }
.pub-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.pub-right { text-align: right; white-space: nowrap; }
.pub-venue { font-weight: 760; }
.pub-note { margin-top: 4px; font-size: 0.92rem; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
}
.chip:hover { color: var(--text); border-color: rgba(17, 24, 39, 0.25); }


.muted { color: var(--muted); }
.small { font-size: 13px; }

.linklike {
  border: none;
  background: transparent;
  padding: 0;
  font: inherit;
  color: var(--text);
  text-decoration: underline;
  cursor: pointer;
}
.contact-line {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px;
  align-items: baseline;
  margin: 10px 0;
}



.tags { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.tag {
  border: 1px solid var(--border);
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--muted);
}

.text-link {
  color: #5b5fc7;   /* muted indigo */
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.text-link:hover {
   border-bottom: 1px solid #5b5fc7;
}
.site-footer {
  border-top: 1px solid var(--border);
  padding: 22px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}


/* Responsive */
@media (min-width: 820px) {
  .nav { display: flex; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .cards { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .avatar { margin-inline: auto; }
  .cta-row { justify-content: center; }
  .link-row { justify-content: center; }
  .quickfacts { grid-template-columns: 1fr; }
}


/* Print-friendly CV-ish page */


/* Work item helpers */
.work-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.3px;
}

/* Publications: collapsible remainder */
.pubs-more {
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
}
.pubs-more summary {
  cursor: pointer;
  user-select: none;
}
.pubs-more summary:hover { color: var(--text); }
.pubs-more[open] summary { margin-bottom: 10px; }
/* Hero callout + news (Dasom-inspired) */
.callout {
  margin-top: 14px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
}

.callout strong {
  color: var(--text);
}

.callout .callout-muted {
  color: var(--muted);
  margin-left: 6px;
}


.news { margin-top: 18px; }
.subhead {
  margin: 0 0 10px;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.news-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.news-list li { display: grid; grid-template-columns: 64px 1fr; gap: 10px; }
.news-date { color: var(--muted); font-variant-numeric: tabular-nums; }
.news-text a { color: var(--accent-2); text-decoration: none; }
.news-text a:hover { text-decoration: underline; }

@media (max-width: 720px) {
  .pub-row { grid-template-columns: 1fr; gap: 10px; }
  .pub-right { text-align: left; white-space: normal; }
  .news-list li { grid-template-columns: 1fr; }
}

@media print {
  .site-header, .btn, .cta-row, .link-row { display: none !important; }
  body { background: white; color: black; }
  .section.alt { background: transparent; border: none; }
  .panel, .card, .avatar { box-shadow: none; }
}


/* Dasom-style inspired layout: calm, centered, readable. */
.hero-simple{
  padding: 34px 0 18px;
}
.hero-simple-inner{
  display:flex;
  align-items:flex-start;
  gap: 22px;
}
.title-tight{
  margin: 0;
  font-size: clamp(34px, 4.2vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.subtitle{
  margin: 10px 0 14px;
  color: var(--muted);
  max-width: 64ch;
}
.lede{
  margin: 14px 0 0;
  max-width: 70ch;
}
.link-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
}
.link-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel);
  color: inherit;
  text-decoration:none;
  font-size: 14px;
}
.link-pill:hover{
  border-color: color-mix(in srgb, var(--accent-2) 45%, var(--border));
}

.avatar-inline{
  width: clamp(92px, 10vw, 120px);
  margin: 0;
  flex: 0 0 auto;
}
.avatar-inline .avatar-img,
.avatar-inline .avatar-placeholder{
  border-radius: 999px;
}
.avatar-inline figcaption{
  display:none;
}

@media (max-width: 760px){
  .hero-simple-inner{ flex-direction: column; align-items: center; text-align: center; }
  .subtitle, .lede{ margin-left:auto; margin-right:auto; }
  .link-row{ justify-content:center; }
}

/* Section headings: small, clear, like a publication list. */
.section{
  padding: 28px 0;
}
.section h2{
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

/* Cards more subtle */
.card{
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}



/* =========================================================
   v6 — Dasom-inspired polish (projects image-first + nav + pub filters)
   ========================================================= */

.brand {
  font-weight: 650;
}
.brand-mark {
  width: 28px;
  height: 28px;
  display: block;
}

.nav a {
  color: var(--muted);
  font-weight: 520;
  font-size: 14px;
  padding: 6px 8px;
  border-radius: 10px;
}
.nav a:hover {
  background: transparent;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}

.icon-btn{
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  border-radius: 12px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.icon-btn:hover{
  border-color: color-mix(in srgb, var(--accent-2) 45%, var(--border));
}

/* Big section headings like the reference site */
.section h2{
  font-size: clamp(30px, 3.8vw, 44px);
  letter-spacing: -0.03em;
  text-transform: none;
  margin: 0 0 18px;
  padding-bottom: 0;
  border-bottom: none;
}

/* Icon links under the hero (Scholar / LinkedIn / Email) */
.icon-row{
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 8px;
}
.icon-link{
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  position: relative;
}
.icon-link:hover{
  border-color: color-mix(in srgb, var(--accent-2) 45%, var(--border));
}
.icon{ width: 20px; height: 20px; display: block; }

/* Copy hint for icon-only buttons */
.icon-link.is-copied::after{
  content: "Copied";
  position: absolute;
  top: -34px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 9px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--muted);
  font-size: 12px;
  box-shadow: var(--shadow);
  white-space: nowrap;
}


/* Project image lightbox */
.project-thumb {
  border: 0;
  padding: 0;
  background: none;
  cursor: zoom-in;
  display: block;
  width: 100%;
  text-align: inherit;
}

.lightbox[hidden] { display: none; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.72);
}

.lightbox-figure {
  position: relative;
  margin: 0;
  width: min(1100px, calc(100% - 32px));
  height: min(85vh, 820px);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  overflow: hidden;
}

.lightbox-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: rgba(0,0,0,0.25);
}

.lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(0,0,0,0.4);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  cursor: pointer;
}



/* Projects: image-first grid */
.project-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 10px;
}
.project-card{
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.project-thumb{
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-alt);
}
.project-thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.thumb-placeholder{
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 12px;
  background: linear-gradient(135deg, rgba(37,99,235,0.08), rgba(0,0,0,0));
}
.project-title{
  margin: 4px 0 0;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.project-desc{
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.project-link{
  color: var(--accent-2);
  text-decoration: none;
  font-weight: 650;
  width: fit-content;
}
.project-link:hover{ text-decoration: underline; text-underline-offset: 4px; }

.tag-row{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.tag{
  border: 1px solid var(--border);
  padding: 6px 10px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 12px;
}

/* Publications: filter tabs */
.pub-filters{
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  margin: 10px 0 18px;
}
.filter-btn{
  border: none;
  background: transparent;
  padding: 10px 12px;
  border-radius: 10px;
  font: inherit;
  color: var(--muted);
  cursor: pointer;
}
.filter-btn:hover{ color: var(--text); }
.filter-btn.is-active{
  background: rgba(37, 99, 235, 0.12);
  color: var(--accent-2);
  font-weight: 700;
}

.highlight {
  font-weight: 600;
  color: #2563eb;  /* subtle professional blue */
}
.project-links {
  margin-top: 8px;
}

.chip {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid #d1d5db;
  color: #374151;
  background: #f9fafb;
}

.chip-blue {
  background: #e8f1ff;
  border: 1px solid #c7dbff;
  color: #1d4ed8;
}

.chip:hover {
  transform: translateY(-1px);
  transition: 0.15s ease;
}

.chip-demo {
  background: #ede9fe;
  border: 1px solid #c4b5fd;
  color: #5b21b6;
}



/* Publication action chips: more subtle */
.chip{
  background: transparent;
}

/* Responsive: 3 columns like the reference site */
@media (min-width: 820px) {
  .project-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Make the header a bit lighter */
.header-inner{
  padding: 12px 0;
}
