/* Latin-only Manrope; Korean keeps the existing system font stack. */
@font-face {
  font-family: "Manrope Latin";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/manrope-variable.ttf") format("truetype");
  unicode-range: U+0020-007E, U+00A0-00FF, U+0100-024F, U+1E00-1EFF;
}
:root {
  color-scheme: light;
  --paper: #fafafa;
  --ink: #171717;
  --muted: #676767;
  --line: #dedede;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Manrope Latin", -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif; font-size: 1rem; line-height: 1.7; word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; text-underline-offset: .3em; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 7px; border-radius: 2px; }
.skip-link { position: absolute; left: 1rem; top: -6rem; padding: .7rem 1rem; background: var(--ink); color: white; z-index: 2; }
.skip-link:focus { top: 1rem; }
.page { width: min(100% - 7rem, 62rem); margin-inline: auto; }
.site-header { min-height: 8.25rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; align-items: center; gap: .7rem; font-size: 1rem; font-weight: 600; line-height: 1; padding-block: .75rem; }
.brand-mark { display: grid; place-items: center; width: 1.8rem; height: 1.8rem; background: var(--ink); color: white; font-family: "Manrope Latin", Georgia, "Times New Roman", serif; font-size: 1.55rem; font-weight: 400; padding-bottom: .22rem; }
nav { display: flex; gap: 2rem; font-size: .9375rem; }
nav a { padding: .5rem 0; }
nav a:hover, .site-footer a:hover { text-decoration: underline; }
.intro { padding: 5rem 0 5.3rem; display: grid; grid-template-columns: minmax(0, 1fr) 15rem; align-items: center; gap: 2.5rem; }
.intro-copy { min-width: 0; }
.profile-photo { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: .25rem; }
.intro-label { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; font-size: .875rem; color: var(--muted); }
.korean-name { color: var(--ink); }
.separator { color: #b8b8b8; }
h1 { margin: 1.15rem 0 1.8rem; font-family: "Manrope Latin", Georgia, "Times New Roman", serif; font-size: clamp(3.75rem, 8vw, 6.5rem); line-height: 1.05; font-weight: 400; }
.period { color: #8b8b8b; }
.intro-description { margin: 0; font-size: clamp(1.25rem, 2.3vw, 1.65rem); line-height: 1.65; font-weight: 400; }
.section { border-top: 1px solid var(--ink); scroll-margin-top: 2rem; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.2rem; }
h2 { font-size: 1rem; line-height: 1.6; font-weight: 600; margin: 0; }
.count { font-size: .8125rem; color: var(--muted); }
.empty-state { min-height: 11.75rem; display: flex; align-items: center; gap: 3rem; }
.empty-number { color: #b8b8b8; font-family: "Manrope Latin", Georgia, "Times New Roman", serif; font-size: 3.3rem; line-height: 1; font-variant-numeric: tabular-nums; }
.empty-state p { color: var(--muted); font-size: 1rem; margin: 0; }
.about { display: grid; grid-template-columns: 9rem 1fr; gap: 2rem; padding: 1.65rem 0 4.5rem; }
.about h2 { padding-top: .2rem; }
.about-copy { max-width: 35rem; }
.about-copy p { margin: 0; line-height: 1.95; font-size: 1.0625rem; }
.disciplines { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: .55rem 1rem; color: var(--muted); font-size: .875rem; }
.disciplines li + li::before { content: "·"; margin-right: 1rem; color: #9a9a9a; }
.site-footer { border-top: 1px solid var(--line); min-height: 6.5rem; padding-block: 1.8rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; color: var(--muted); font-size: .8125rem; }
.site-footer a { padding-block: .5rem; }
@media (max-width: 640px) {
  html { scroll-padding-top: 1.25rem; }
  .page { width: calc(100% - 3rem); }
  .site-header { min-height: 6.25rem; gap: 1.5rem; }
  nav { gap: 1.5rem; }
  .wordmark { font-size: .9375rem; }
  .intro { padding: 3.7rem 0 3.8rem; grid-template-columns: 1fr; gap: 2rem; }
  .profile-photo { grid-row: 1; width: 8rem; }
  h1 { margin-top: 1.2rem; margin-bottom: 1.6rem; font-size: clamp(3.3rem, 14vw, 5rem); }
  .intro-description { font-size: 1.2rem; }
  .empty-state { min-height: 10rem; gap: 1.75rem; }
  .empty-number { font-size: 2.8rem; }
  .about { grid-template-columns: 1fr; gap: 1.3rem; padding-top: 1.25rem; padding-bottom: 3.4rem; }
  .about-copy p { font-size: 1rem; }
  .site-footer { min-height: 6rem; }
}
@media (max-width: 360px) {
  .page { width: calc(100% - 2.5rem); }
  nav { gap: 1.1rem; }
  .wordmark { gap: .55rem; }
  .intro-description { font-size: 1.125rem; }
  .empty-state { gap: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  body { background: white; }
  .page { width: 100%; }
  nav, .skip-link, .site-footer a { display: none; }
  .site-header { min-height: 4rem; }
  .intro { padding-block: 3rem; }
}

/* Profile page */
nav a[aria-current="page"] { text-decoration: underline; }
.profile-link { margin-top: 1.5rem !important; font-size: .9375rem !important; }
.profile-link a, .intro-contact { text-decoration: underline; text-decoration-color: #a6a6a6; }
.profile-link a:hover, .intro-contact:hover { text-decoration-color: var(--ink); }
.intro-contact { display: inline-block; margin-top: 1.35rem; color: var(--muted); font-size: .9375rem; overflow-wrap: anywhere; }
.profile-section { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 2rem; padding: 1.7rem 0 3.5rem; }
.profile-section > h2 { padding-top: .2rem; }
.profile-narrative { padding: 3rem 0 6rem; }
.profile-narrative > h2 { max-width: 35rem; margin: 0 auto 2rem; font-size: 1.5rem; font-weight: 500; }
.profile-narrative .profile-story { margin-inline: auto; }
.profile-story { min-width: 0; max-width: 35rem; }
.profile-story p { margin: 0; font-size: 1.0625rem; line-height: 1.95; }
.profile-story p + p { margin-top: 1.5rem; }
.profile-basics { padding-top: 2.5rem; padding-bottom: 4.5rem; }
.profile-details { min-width: 0; }
.profile-facts { margin: 0; }
.profile-facts > div { display: grid; grid-template-columns: 5rem minmax(0, 1fr); gap: 1.5rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.profile-facts > div:first-child { padding-top: 0; }
.profile-facts dt { color: var(--muted); font-size: .875rem; padding-top: .15rem; }
.profile-facts dd { margin: 0; line-height: 1.9; }
.profile-teaching { margin-top: 2.5rem; }
.profile-teaching > h3 { margin: 0 0 1.35rem; color: var(--muted); font-size: .875rem; font-weight: 400; }
.experience-list { min-width: 0; }
.experience + .experience { margin-top: 2.2rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.experience-heading { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; }
.experience h3, .experience h4 { margin: 0; font-size: 1.125rem; font-weight: 500; }
.experience-heading > span { font-size: .875rem; color: var(--muted); }
.experience p { margin: .75rem 0 0; font-size: 1rem; line-height: 1.9; color: #4e4e4e; max-width: 35rem; }
.contact-list { margin: 0; min-width: 0; }
.contact-list > div { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 1.5rem; align-items: baseline; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.contact-list > div:first-child { padding-top: 0; }
.contact-list > div:last-child { border-bottom: 0; }
.contact-list dt { font-size: .875rem; color: var(--muted); }
.contact-list dd { margin: 0; min-width: 0; font-size: 1rem; }
.contact-list a { display: inline-block; padding-block: .25rem; text-decoration: underline; text-decoration-color: #bababa; overflow-wrap: anywhere; word-break: normal; }
.contact-list a:hover { text-decoration-color: var(--ink); }
@media (max-width: 640px) {
  .profile-section { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; padding: 1.25rem 0 3rem; }
  .profile-narrative { padding: 2rem 0 4rem; }
  .profile-narrative > h2 { margin-bottom: 1.5rem; font-size: 1.25rem; }
  .profile-story p { font-size: 1rem; }
  .profile-basics { padding-top: 2rem; }
  .profile-basics > h2 { margin-bottom: .5rem; }
  .profile-facts > div { grid-template-columns: 3.5rem minmax(0, 1fr); gap: 1rem; }
  .experience + .experience { margin-top: 1.7rem; padding-top: 1.5rem; }
  .contact-list > div { grid-template-columns: 5rem minmax(0, 1fr); gap: 1rem; }
  .contact-list dd { font-size: .9375rem; }
}
@media (max-width: 360px) {
  .contact-list > div { grid-template-columns: minmax(0, 1fr); gap: .15rem; }
}
