/* Pretendard is bundled locally under the SIL Open Font License. */
@font-face {
  font-family: "Pretendard Variable";
  src: url("./assets/fonts/PretendardVariable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --paper: #f3f1ee;
  --surface: #fdfcfb;
  --ink: #363231;
  --muted: #736b67;
  --accent: #8b5155;
  --accent-hover: #713e42;
  --accent-soft: #eee4e2;
  --line: #e1dbd5;
  font-family:
    "Pretendard Variable",
    Pretendard,
    -apple-system,
    BlinkMacSystemFont,
    system-ui,
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
  overflow-wrap: break-word;
}
html[lang="ko"] {
  word-break: keep-all;
}
body {
  margin: 0;
  font-size: 1rem;
  line-height: 1.75;
}
::selection {
  background: var(--accent-soft);
  color: var(--ink);
}
a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
a:hover {
  color: var(--accent-hover);
}
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
h1,
h2,
h3,
h4 {
  font-family: inherit;
}
h1 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.035em;
}
h2 {
  font-size: 1.1875rem;
  font-weight: 650;
  line-height: 1.5;
  letter-spacing: -0.02em;
}
h3,
h4 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.6;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
img {
  display: block;
  max-width: 100%;
}
main {
  min-width: 0;
}
main:focus {
  outline: none;
}
.muted {
  color: var(--muted);
}
.skip-link {
  position: fixed;
  z-index: 10;
  top: 10px;
  left: 16px;
  padding: 10px 18px;
  background: var(--surface);
  transform: translateY(-160%);
}
.skip-link:focus {
  transform: translateY(0);
}
.page-shell {
  max-width: 936px;
  margin: 36px auto;
  padding-inline: 24px;
}
.cv-sheet {
  padding: 38px 46px 0;
  background: var(--surface);
  border-top: 8px solid var(--accent);
  border-bottom: 5px solid var(--accent);
  box-shadow: 0 2px 14px #36323108;
}
.profile-header {
  padding-bottom: 7px;
}
.profile-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.language-switch {
  display: flex;
  gap: 11px;
  align-items: center;
  flex-shrink: 0;
  font-size: 0.875rem;
}
.language-switch a {
  text-decoration: none;
  color: var(--muted);
  padding: 7px 0;
}
.language-switch a[aria-current] {
  color: var(--accent);
  font-weight: 650;
  text-decoration: underline;
}
.language-switch > span {
  color: var(--line);
}
.profile-details {
  margin-top: 19px;
}
.profile-details.has-photo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px;
  align-items: start;
  gap: 32px;
}
.profile-photo {
  width: 140px;
  height: auto;
  display: block;
}
.profile-description {
  color: var(--muted);
}
.affiliation {
  margin-bottom: 5px;
}
.resource-links {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 19px;
  font-size: 0.9375rem;
}
.resource-links a {
  display: inline-block;
  padding-block: 3px;
  text-decoration: none;
}
.resource-links a:hover {
  text-decoration: underline;
}
.resource-links a span {
  margin-left: 3px;
  font-size: 0.8125rem;
}
.profile-details .resource-links {
  margin-top: 10px;
}
.introduction {
  border-top: 1px solid var(--line);
  margin-top: 25px;
  padding-top: 23px;
}
.prose p + p {
  margin-top: 11px;
}
.content-section {
  margin-top: 31px;
  scroll-margin-top: 16px;
}
.section-heading {
  border-bottom: 1px solid var(--line);
  padding-bottom: 9px;
  margin-bottom: 16px;
  position: relative;
}
.section-heading::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  height: 2px;
  width: 42px;
  background: var(--accent);
}
.section-body {
  min-width: 0;
}
.interest-list {
  list-style: disc;
  padding-left: 22px;
}
.interest-list li + li {
  margin-top: 4px;
}
.project-entry + .project-entry {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 20px;
}
.entry-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
}
.entry-period {
  color: var(--muted);
  font-size: 0.875rem;
  white-space: nowrap;
}
.project-entry > p {
  margin-top: 7px;
}
.project-role {
  color: var(--accent);
  font-size: 0.9375rem;
}
.project-contributions {
  list-style: disc;
  padding-left: 22px;
  margin-top: 8px;
}
.project-contributions li + li {
  margin-top: 6px;
}
.project-bottom {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  align-items: baseline;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.875rem;
}
.tags li + li::before {
  content: ",";
  margin-inline: 0 8px;
}
.publication-year + .publication-year {
  margin-top: 24px;
}
.year {
  color: var(--accent);
  font-size: 0.9375rem;
  font-weight: 600;
}
.publication-year > .year {
  margin-bottom: 10px;
}
.publication-list {
  list-style: decimal;
  padding-left: 23px;
}
.publication-list > li {
  padding-left: 3px;
}
.publication-list > li::marker {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.publication-list li + li {
  margin-top: 20px;
}
.publication-list h4 {
  overflow-wrap: anywhere;
}
.authors {
  margin-top: 3px;
  color: var(--muted);
}
.authors strong {
  font-weight: 600;
  color: var(--ink);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.venue {
  font-size: 0.9375rem;
  margin-top: 2px;
}
.publication-list .resource-links {
  margin-top: 4px;
}
.timeline li {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr);
  gap: 24px;
}
.timeline li + li {
  margin-top: 20px;
}
.timeline-meta {
  display: flex;
  flex-direction: column;
  font-size: 0.875rem;
  color: var(--muted);
}
.timeline-meta span:first-child {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.timeline p {
  margin-top: 3px;
}
.patent-list li + li {
  margin-top: 20px;
}
.patent-meta {
  margin-top: 4px;
  font-size: 0.9375rem;
  color: var(--muted);
}
.skill-list {
  margin: 0;
}
.skill-list > div {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr);
  gap: 24px;
}
.skill-list > div + div {
  margin-top: 10px;
}
.skill-list dt {
  font-weight: 600;
  font-size: 0.9375rem;
}
.skill-list dd {
  margin: 0;
}
.site-footer {
  margin-top: 35px;
  padding: 18px 0 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  color: var(--muted);
  font-size: 0.8125rem;
}
.site-footer a {
  text-decoration: none;
  white-space: nowrap;
  padding: 5px 0;
}
.site-footer a span {
  margin-left: 6px;
}
@media (max-width: 640px) {
  .page-shell {
    padding-inline: 12px;
    margin-block: 12px;
  }
  .cv-sheet {
    padding: 27px 23px 0;
    border-top-width: 6px;
  }
  .profile-topline {
    flex-wrap: wrap;
    gap: 8px 18px;
  }
  h1 {
    font-size: 1.75rem;
  }
  .profile-details.has-photo {
    grid-template-columns: minmax(0, 1fr) 96px;
    gap: 16px;
  }
  .profile-photo {
    width: 96px;
    height: auto;
  }
  .content-section {
    margin-top: 27px;
  }
  .entry-heading {
    flex-wrap: wrap;
    gap: 2px 12px;
  }
  .timeline li {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .timeline-meta {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
  }
  .skill-list > div {
    grid-template-columns: 1fr;
    gap: 3px;
  }
  .site-footer {
    flex-wrap: wrap;
    gap: 2px 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
@media print {
  @page {
    size: A4;
    margin: 16mm;
  }
  :root {
    --paper: white;
    --surface: white;
    --ink: black;
    --muted: #444;
  }
  body {
    font-size: 10.5pt;
  }
  .language-switch,
  .skip-link,
  .site-footer a {
    display: none;
  }
  .page-shell {
    max-width: none;
    margin: 0;
    padding: 0;
  }
  .cv-sheet {
    padding: 18px 0 0;
    box-shadow: none;
    border-bottom: 0;
  }
  .content-section {
    margin-top: 22px;
  }
  .section-heading {
    break-after: avoid;
  }
  h3,
  h4 {
    break-after: avoid;
  }
  .project-entry,
  .publication-list article,
  .patent-list article,
  .timeline li {
    break-inside: avoid;
  }
  .site-footer {
    padding-bottom: 0;
  }
}
