@font-face {
  font-family: "Portfolio Noto Sans KR";
  src: url("assets/NotoSansKR-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: light;
  --bg: #f8f7f4;
  --ink: #23202a;
  --muted: #59545e;
  --accent: #6942a4;
  --accent-dark: #4f2c7e;
  --rule: #e3dfe4;
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", "Portfolio Noto Sans KR", "Noto Sans KR", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, p, figure, dl, dd { margin: 0; }
img { display: block; width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #9463d1; outline-offset: 4px; }
:target { scroll-margin-top: 2rem; }
.wrap { width: min(100% - 7rem, 74rem); margin-inline: auto; }
.skip { position: fixed; top: .5rem; left: .5rem; transform: translateY(-160%); background: white; padding: .75rem 1rem; z-index: 2; }
.skip:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--rule); }
.nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 4.5rem; gap: 1rem; }
.nav nav { display: flex; gap: clamp(1.35rem, 4vw, 2.7rem); color: var(--muted); font-size: .9375rem; }
.nav a:hover, .footer a:hover { color: var(--accent); }
.brand { display: inline-flex; align-items: center; justify-self: start; gap: .65rem; font-weight: 780; letter-spacing: -.045em; white-space: nowrap; }
.brand-symbol { display: block; width: 1.35rem; aspect-ratio: 1; border-radius: .35rem; background: radial-gradient(circle at 35% 35%, #f0e7ff 9%, transparent 11%), radial-gradient(circle at 65% 35%, #f0e7ff 9%, transparent 11%), radial-gradient(circle at 35% 65%, #f0e7ff 9%, transparent 11%), radial-gradient(circle at 65% 65%, #f0e7ff 9%, transparent 11%), var(--accent); }
.contact { justify-self: end; padding: .37rem .85rem; border: 1px solid var(--rule); border-radius: .45rem; font-size: .875rem; white-space: nowrap; }
.hero { display: grid; grid-template-columns: 1fr 1.14fr; align-items: center; gap: clamp(2rem, 7vw, 6.4rem); padding-block: clamp(3.9rem, 7.5vw, 7rem); border-bottom: 1px solid var(--rule); }
.eyebrow { color: var(--accent); font: 700 .875rem/1.4 ui-monospace, "Courier New", monospace; letter-spacing: .14em; }
h1 { margin-top: 1.25rem; font-size: clamp(3.5rem, 7.3vw, 6.55rem); line-height: 1.06; letter-spacing: -.09em; font-weight: 820; word-break: keep-all; }
h1 span { color: var(--accent); }
.intro { max-width: 29rem; margin-top: 1.65rem; color: var(--muted); font-size: 1.075rem; line-height: 1.85; word-break: keep-all; }
.primary { display: inline-flex; min-height: 3rem; align-items: center; padding: .65rem 1.15rem; margin-top: 1.7rem; border-radius: .48rem; color: white; background: var(--accent-dark); font-weight: 700; font-size: .9375rem; }
.primary:hover { background: #653c9a; }
.hero-figure { position: relative; overflow: hidden; border-radius: .85rem; color: #e4d4fa; background: #1e142f; isolation: isolate; }
.hero-figure img { aspect-ratio: 1.25; width: 100%; object-fit: cover; }
.hero-figure::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(transparent 72%, #1e142f 100%); }
.hero-figure figcaption { position: absolute; inset: auto 6% 6%; display: flex; justify-content: space-between; gap: .75rem; z-index: 1; font: 600 .75rem/1.2 ui-monospace, "Courier New", monospace; letter-spacing: .12em; }
.reticle { position: absolute; inset: 23% 22% 24% 27%; border: 1px solid #b18cdd75; transform: rotate(-9deg); }
.reticle i { position: absolute; width: 1.25rem; height: 1.25rem; border: solid #d3b8ff; border-width: 0; }
.reticle i:nth-child(1) { left: -1px; top: -1px; border-width: 2px 0 0 2px; }
.reticle i:nth-child(2) { right: -1px; top: -1px; border-width: 2px 2px 0 0; }
.reticle i:nth-child(3) { right: -1px; bottom: -1px; border-width: 0 2px 2px 0; }
.reticle i:nth-child(4) { left: -1px; bottom: -1px; border-width: 0 0 2px 2px; }
.reticle b { position: absolute; top: 50%; left: 50%; width: 1.5rem; aspect-ratio: 1; transform: translate(-50%,-50%); border: 1px solid #e4d4fa; border-radius: 50%; }
.reticle b::before, .reticle b::after { content: ""; position: absolute; inset: 50% 20% auto; border-top: 1px solid #e4d4fa; }
.reticle b::after { transform: rotate(90deg); }
.research, .publications { padding-block: clamp(3.2rem, 6vw, 5.15rem); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem 1.5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.9rem, 3vw, 2.55rem); line-height: 1.2; letter-spacing: -.075em; }
.section-head p { font-size: .875rem; color: var(--muted); }
.project-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: 1.5rem; }
.project { overflow: hidden; border-radius: .85rem; border: 1px solid var(--rule); background: #fff; }
.project-figure { position: relative; }
.project-figure img { aspect-ratio: 2.56; object-fit: cover; }
.figure-label { position: absolute; left: .75rem; bottom: .65rem; padding: .25rem .55rem; border-radius: .3rem; background: #fffffff2; font-size: .8125rem; }
.project-body { padding: clamp(1.25rem, 3vw, 2rem); }
.project-meta { display: flex; justify-content: space-between; gap: .7rem; font-weight: 700; color: var(--accent-dark); font-size: .875rem; flex-wrap: wrap; }
.l-project .project-meta { color: #28573e; }
.project h3 { margin-top: .5rem; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.075em; line-height: 1.13; }
.subtitle { margin-top: .6rem; font-weight: 750; font-size: 1.075rem; }
.project-body > p:not(.subtitle), .detail-content { margin-top: .62rem; color: var(--muted); word-break: keep-all; line-height: 1.8; }
.figure-controls, .metrics { margin-top: 1.05rem; }
.figure-controls:not([hidden]) { display: inline-flex; flex-wrap: wrap; gap: .25rem; padding: .2rem; border-radius: .55rem; background: #f1edf7; }
.figure-controls button { border: 0; border-radius: .4rem; cursor: pointer; padding: .38rem .7rem; background: transparent; color: var(--accent-dark); font-size: .875rem; }
.figure-controls button[aria-pressed="true"] { background: var(--accent-dark); color: white; }
.metrics { display: grid; grid-template-columns: repeat(2,minmax(0, 1fr)); gap: .7rem; }
.metrics div { display: flex; flex-direction: column-reverse; color: #28573e; }
.metrics dd { font-size: 1.23rem; font-weight: 800; line-height: 1.3; }
.metrics dt { color: var(--muted); font-size: .875rem; }
details { border-top: 1px solid var(--rule); margin-top: 1.15rem; padding-top: .8rem; }
summary { cursor: pointer; font-weight: 700; font-size: .9375rem; }
summary:hover { color: var(--accent); }
.detail-content p + p { margin-top: .65rem; }
.publications { border-top: 1px solid var(--rule); }
.paper { display: flex; justify-content: space-between; align-items: center; gap: .75rem 1.5rem; padding-block: 1.2rem; border-bottom: 1px solid var(--rule); }
.paper h3 { font-size: 1.05rem; line-height: 1.5; word-break: keep-all; margin-bottom: .35rem; }
.paper p { color: var(--muted); font-size: .875rem; }
.paper-link { flex-shrink: 0; display: inline-flex; min-height: 2.75rem; align-items: center; padding: .45rem .85rem; border: 1px solid #d6c9e5; border-radius: .45rem; color: var(--accent-dark); font-size: .875rem; font-weight: 700; }
.paper-link:hover { background: #eee7f7; }
.footer { border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .9rem 1.75rem; padding-block: 1.65rem 2.3rem; color: var(--muted); font-size: .875rem; }
.footer strong { color: var(--ink); margin-right: .75rem; }
@media (max-width: 850px) {
  .wrap { width: calc(100% - 3.5rem); }
  .hero { gap: 2rem; }
}
@media (max-width: 650px) {
  .wrap { width: calc(100% - 2.5rem); }
  .nav { gap: .6rem; min-height: 4rem; }
  .nav nav { gap: 1rem; }
  .hero { grid-template-columns: 1fr; gap: 2rem; padding-block: 3rem; }
  .hero-figure img { aspect-ratio: 1.6; }
  .project-grid { grid-template-columns: 1fr; }
  .paper { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
