@font-face {
  font-family: "Pretendard Variable";
  font-style: normal;
  font-weight: 45 920;
  font-display: swap;
  src: url("./PretendardVariable.woff2") format("woff2");
}
/* Typography skill: petekp/agent-skills, skills/typography/SKILL.md.
   Phi is a design scale, not a guarantee of readability: measure and CJK
   line spacing take precedence. Keep every paragraph available at all widths. */
:root {
  color-scheme: light;
  --phi: 1.618;
  --text-base: clamp(1rem, .975rem + .1vw, 1.0625rem);
  --text-small: .875rem;
  --text-section: calc(1rem * var(--phi));
  --text-display: calc(1rem * var(--phi) * var(--phi));
  --rhythm: calc(1rem * var(--phi));
  --space-xs: .5rem;
  --space-sm: 1rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-section: 3rem;
  --measure: 78ch;
  --body-leading: 1.55;
  --ink: #37433c;
  --heading: #25342b;
  --muted: #606c64;
  --accent: #32734f;
  --display-accent: #3b805d;
  --line: #dce4de;
  --soft: #f1f6f2;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; text-size-adjust: 100%; }
html:lang(ko) { --measure: 48ic; --body-leading: 1.6; }
body {
  margin: 0;
  padding: var(--space-lg) 24px;
  background: #f5f7f5;
  color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, system-ui, -apple-system, "Segoe UI", "Malgun Gothic", "Apple SD Gothic Neo", Arial, sans-serif;
  font-size: var(--text-base);
  line-height: var(--body-leading);
  font-weight: 400;
  font-kerning: normal;
  font-optical-sizing: auto;
  overflow-wrap: break-word;
}
body:lang(ko) { word-break: keep-all; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #214f36; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 3px; }
p, ul, ol { margin: 0; }
p, li { text-wrap: pretty; }
strong { color: var(--heading); font-weight: 650; }
h1, h2, h3 { margin: 0; line-height: 1.25; text-wrap: balance; }
button, a { -webkit-tap-highlight-color: transparent; }
.resume { max-width: 75rem; margin: 0 auto; padding: var(--space-lg) var(--space-lg) var(--space-md); background: #fff; box-shadow: 0 12px 48px #263c2e0c; }
.skip-link { position: fixed; top: -100px; left: 24px; z-index: 2; padding: 10px 18px; background: white; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.header { display: grid; grid-template-columns: minmax(0,1fr) 18rem; align-items: center; gap: var(--space-md); padding-bottom: var(--space-md); border-bottom: 1px solid var(--line); }
.identity { min-width: 0; }
.language-switch { display: inline-flex; gap: .5rem; margin-bottom: 1rem; }
.language-switch a { display: inline-flex; gap: 6px; align-items: center; justify-content: center; min-height: 44px; padding: 8px 12px; border: 1px solid #8fa196; border-radius: 4px; color: var(--heading); text-decoration: none; font-size: .8125rem; line-height: 1.25; font-weight: 600; }
.language-switch a[aria-current] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: #eaf3ed; }
h1 { color: var(--display-accent); font-size: clamp(2.125rem, 1.5rem + 1.5vw, var(--text-display)); font-weight: 850; letter-spacing: .075em; text-transform: uppercase; line-height: 1.15; }
html:lang(ko) h1 { letter-spacing: .025em; }
.alternate-name { color: var(--muted); font-size: var(--text-small); margin-top: var(--space-xs); letter-spacing: .01em; }
.role { font-size: 1.25rem; font-weight: 400; margin-top: var(--space-xs); line-height: 1.4; }
address { border-left: 1px solid var(--line); padding-left: 20px; font-size: var(--text-small); line-height: 1.6; font-style: normal; }
address a, address .location { display: flex; align-items: center; gap: 10px; padding-block: 4px; }
.contact-icon { width: 16px; height: 16px; flex: 0 0 16px; fill: currentColor; }
address a { color: var(--muted); }
address a span { text-decoration: underline; text-underline-offset: 3px; }
.intro { display: grid; grid-template-columns: 128px minmax(0,1fr); align-items: center; gap: var(--space-lg); padding: var(--space-lg) 0; border-bottom: 1px solid var(--line); }
.intro p { max-inline-size: var(--measure); }
.portrait { display: block; width: 128px; max-width: 100%; height: auto; aspect-ratio: 3/4; margin: 0 auto; border-radius: 2px; }
.intro strong { font-weight: 650; }
.section-nav { display: flex; flex-wrap: wrap; gap: 0 20px; padding-block: var(--space-xs); margin-bottom: var(--space-md); font-size: var(--text-small); font-weight: 550; }
.section-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; }
.section-nav a:hover { color: var(--accent); }
/* Give prose the available width; keep supporting facts in a compact sidebar. */
.cv-grid { display: grid; grid-template-columns: minmax(0,1fr) 15rem; gap: var(--space-lg); }
main { min-width: 0; }
.sidebar { min-width: 0; border-left: 1px solid var(--line); padding-left: 24px; }
.section { margin-bottom: var(--space-section); }
h2 { color: var(--display-accent); border-left: 4px solid #6da283; padding-left: 14px; font-size: var(--text-section); font-weight: 700; letter-spacing: .055em; text-transform: uppercase; margin-bottom: var(--space-md); }
html:lang(ko) h2 { letter-spacing: .015em; }
h3 { color: var(--heading); font-size: 1.1875rem; font-weight: 700; }
.entry { margin-bottom: var(--space-lg); }
.entry:last-child { margin-bottom: 0; }
/* Experience timeline: the rail spans the spacing between entries. */
#experience .entry { position: relative; margin: 0 0 0 8px; padding: 0 0 var(--space-lg) 28px; border-left: 2px solid var(--line); }
#experience .entry:last-child { padding-bottom: 0; }
#experience .entry::before { position: absolute; top: .4rem; left: -8px; width: 14px; height: 14px; border-radius: 50%; background: var(--display-accent); content: ""; }
.entry-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--space-xs) 1rem; }
.entry-heading h3 { display: block; font-size: 1.1875rem; letter-spacing: 0; min-width: 0; flex: 1 1 20rem; }
.date { color: var(--muted); font-size: var(--text-small); font-variant-numeric: tabular-nums; }
.entry-heading .date { white-space: nowrap; flex-shrink: 0; }
.entry-subtitle { color: var(--muted); font-size: var(--text-small); margin: .375rem 0 .625rem; line-height: 1.5; }
.entry-summary { font-size: var(--text-base); max-inline-size: var(--measure); margin-bottom: .625rem; line-height: var(--body-leading); }
.entry-bullets { max-inline-size: var(--measure); padding-left: 22px; font-size: var(--text-base); line-height: var(--body-leading); }
.teaching-list { list-style: none; padding: 0; font-size: var(--text-small); font-weight: 400; line-height: 1.6; }
.teaching-list li { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .25rem 1.25rem; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.teaching-list li:last-child { border-bottom: 0; }
.teaching-list li > span:first-child { flex: 1 1 24rem; }
.teaching-list .date { font-weight: 400; }

.entry-bullets li { padding-left: 2px; margin: .375rem 0; }
.entry-bullets li::marker { color: #6f8275; font-size: .75em; }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin-top: var(--space-sm); }
.tags li { background: #f2f5f2; padding: 3px 8px; border-radius: 3px; color: #536358; font-size: .75rem; line-height: 1.5; }
.entry-links { display: flex; gap: 14px; margin-top: var(--space-sm); font-size: var(--text-small); }
.entry-links a { display: inline-flex; align-items: center; min-height: 36px; }
.project-results { display: flex; flex-wrap: wrap; gap: var(--space-sm) var(--space-md); padding: 12px 16px; margin: 1rem 0; background: var(--soft); border-left: 3px solid #7da68b; }
.project-results > div { display: flex; flex-direction: column; }
.project-results strong { color: var(--accent); font-size: 1.375rem; font-weight: 700; line-height: 1.25; font-variant-numeric: tabular-nums; }
.project-results span { color: #536358; font-size: var(--text-small); margin-top: var(--space-xs); }
.publication-list { list-style: none; padding: 0; }
.publication { margin-bottom: var(--space-lg); }
.publication:last-child { margin-bottom: 0; }
.publication-venue { display: inline-block; max-width: 100%; padding: .25rem .55rem; border-radius: .45rem; background: var(--soft); color: var(--accent); font-size: .75rem; font-weight: 700; line-height: 1.35; }
.publication h3 { margin-top: .65rem; font-size: 1.125rem; line-height: 1.4; letter-spacing: -.015em; text-wrap: wrap; }
.publication-authors { margin-top: .45rem; color: var(--muted); font-size: .9375rem; line-height: 1.5; }
.publication-authors strong { color: var(--heading); }
.review-status { display: inline-block; margin-left: .45rem; padding: .08rem .42rem; border-radius: .25rem; background: #edf0ed; color: #5f6962; font-size: .75rem; font-weight: 550; line-height: 1.45; vertical-align: baseline; }
.paper-link { display: inline-block; margin-top: .55rem; font-size: .9375rem; font-weight: 650; text-decoration: none; }
.paper-link:hover { text-decoration: underline; }
.sidebar h2 { font-size: 1.25rem; margin-bottom: var(--space-md); letter-spacing: .04em; }
html:lang(ko) .sidebar h2 { letter-spacing: 0; }
.sidebar h3 { font-size: 1rem; margin-bottom: var(--space-xs); }
.sidebar p { font-size: .9375rem; line-height: var(--body-leading); }
.sidebar p.date { font-size: var(--text-small); margin: var(--space-xs) 0 .75rem; }
.school { margin-bottom: var(--space-md); }
.school:last-child { margin-bottom: 0; }
.skill { margin-bottom: var(--space-md); }
.interest-list { padding: 0; list-style: none; font-size: .9375rem; line-height: 1.6; }
.award-result { color: var(--accent); font-weight: 650; margin-top: var(--space-sm); }
.award-note { color: var(--muted); font-size: var(--text-small); margin-top: var(--space-xs); }
footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding-top: var(--space-sm); font-size: .75rem; color: var(--muted); }
footer a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.print-button { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; border: 1px solid #a3b2a8; padding: 8px 12px; border-radius: 4px; background: #fff; color: var(--muted); font-family: inherit; font-size: .8125rem; font-weight: 500; line-height: 1.25; cursor: pointer; }
.print-button[hidden] { display: none; }
.print-button:hover { border-color: var(--accent); color: var(--accent); }
@media (min-width: 62rem) { #projects .entry + .entry, #research .entry + .entry { border-top: 1px solid var(--line); padding-top: var(--space-lg); } }
@media (max-width: 62rem) {
  body { padding: 24px 16px; }
  .resume { padding: 32px; }
  .header { grid-template-columns: minmax(0,1fr) 17rem; gap: var(--space-sm); }
  address { padding-left: 16px; }
  .intro { grid-template-columns: 112px minmax(0,1fr); gap: var(--space-md); }
  .portrait { width: 112px; }
  .cv-grid { grid-template-columns: minmax(0,1fr) 14rem; gap: var(--space-md); }
  .sidebar { padding-left: 20px; }
  .entry-heading { flex-direction: column; align-items: flex-start; }
  .entry-heading h3 { flex-basis: auto; }
  .entry-heading .date { padding-left: 0; }
  .sidebar h2 { font-size: 1.125rem; letter-spacing: .025em; }
}
@media (max-width: 60rem) {
  .header { grid-template-columns: minmax(0,1fr) 17rem; }
  .cv-grid { display: block; }
  .entry-heading { flex-direction: row; align-items: baseline; }
  .entry-heading h3 { flex: 1 1 20rem; }
  .entry-heading .date { padding-left: 0; }
  .sidebar { border-left: 0; border-top: 1px solid var(--line); padding: var(--space-lg) 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--space-md); }
  .sidebar .section { margin-bottom: var(--space-lg); }
}
@media (max-width: 42rem) {
  body { padding: 0; background: #fff; }
  .resume { box-shadow: none; padding: 24px 20px; }
  .header { display: block; }
  h1 { font-size: 2.125rem; letter-spacing: .05em; }
  html:lang(ko) h1 { font-size: 2.4rem; letter-spacing: .01em; }
  .role { font-size: 1.125rem; }
  address { border-left: 0; padding: 0; margin-top: var(--space-md); }
  .intro { display: block; padding: var(--space-md) 0; }
  .portrait { float: left; width: 96px; margin: 4px 24px 12px 0; }
  .intro::after { display: block; clear: both; content: ""; }
  .section-nav { gap: 0 16px; margin-bottom: var(--space-sm); }
  h2 { font-size: 1.5rem; }
  .entry-heading { display: block; }
  #experience .entry { padding-left: 20px; }
  .entry-heading h3 { font-size: 1.125rem; }
  .entry-heading .date { padding-left: 0; margin-top: var(--space-xs); }
  .entry-subtitle { margin-top: .375rem; }
  .section { margin-bottom: var(--space-lg); }
  .sidebar { gap: 0 24px; }
  .sidebar h2 { font-size: 1.25rem; }
}
@media (max-width: 30rem) {
  .sidebar { display: block; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@page { size: A4; margin: 13mm 13mm 15mm; }
@media print {
  body { background: #fff; padding: 0; font-size: 10pt; line-height: 1.55; color: #222; }
  .resume { max-width: none; box-shadow: none; padding: 0; margin: 0; }
  .language-switch, .section-nav, footer, .skip-link { display: none; }
  .header { display: grid; grid-template-columns: 1fr auto; gap: 20px; padding-bottom: 15px; }
  h1, html:lang(ko) h1 { font-size: 26pt; letter-spacing: .12rem; }
  .alternate-name { font-size: 9pt; }
  .role { font-size: 12pt; }
  address { border-left: 1px solid #ddd; padding-left: 18px; font-size: 8pt; line-height: 1.8; margin: 0; }
  .intro { display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding: 16px 0; font-size: 9pt; line-height: 1.6; margin-bottom: 20px; }
  .portrait { float: none; width: 64px; margin: 0; }
  .intro::after { display: none; }
  .project-results { display: none; }
  .cv-grid { display: block; }
  .section { margin-bottom: 23px; }
  h2 { font-size: 12pt; margin-bottom: 14px; break-after: avoid; }
  .entry { margin-bottom: 20px; }
  #experience .entry { margin: 0 0 20px; padding: 0; border: 0; }
  #experience .entry::before { display: none; }
  .entry + .entry { border: 0; padding-top: 0; }
  .entry-heading { display: flex; flex-direction: row; align-items: center; }
  .entry-heading h3 { font-size: 10pt; }
  .entry-heading .date { padding-left: 0; }
  .entry-subtitle { font-size: 8pt; margin: 4px 0 7px; }
  .entry-summary, .entry-bullets { font-size: 9pt; }
  .entry-bullets li { margin: 4px 0; }
  .entry-heading, .entry-subtitle { break-after: avoid; }
  .entry-summary, .entry-bullets li, .publication, .school, .skill { break-inside: avoid; }
  p, li { orphans: 3; widows: 3; }
  .date { font-size: 8pt; }
  .tags { margin-top: 8px; gap: 4px; }
  .tags li { font-size: 7pt; padding: 1px 5px; background: none; border: 1px solid #ddd; }
  .entry-links { font-size: 8pt; }
  a { color: inherit; text-decoration: none; }
  .publication { margin-bottom: 14px; }
  .publication-venue { padding: 1px 5px; border: 1px solid #ddd; background: none; font-size: 7pt; }
  .publication h3 { font-size: 9pt; }
  .publication-authors, .paper-link { font-size: 8pt; margin-top: 3px; }
  .review-status { font-size: 7pt; }
  .sidebar { border-left: 0; border-top: 1px solid #ddd; padding: 18px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 30px; }
  .sidebar .section { break-inside: avoid; }
  .sidebar h2 { font-size: 11pt; margin-bottom: 14px; }
  .sidebar h3 { font-size: 9pt; }
  .sidebar p, .interest-list, .sidebar p.date, .award-note { font-size: 8pt; }
}
