:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #667085;
  --soft: #f5f7fa;
  --line: #dfe4ea;
  --accent: #245f9f;
  --accent-soft: #eef5fc;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  max-width: 1040px;
  min-height: 72px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  gap: 28px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .06em;
  text-decoration: none;
}

#nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

#nav a {
  color: #475467;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

#nav a:hover {
  color: var(--ink);
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

.languages {
  display: flex;
  overflow: hidden;
  border: 1px solid #cfd6de;
  border-radius: 8px;
}

.languages button,
.print {
  border: 0;
  background: transparent;
  color: #667085;
  font: inherit;
  cursor: pointer;
}

.languages button {
  min-width: 44px;
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 650;
}

.languages button + button {
  border-left: 1px solid #cfd6de;
}

.languages button.active {
  background: var(--ink);
  color: #fff;
}

.print {
  padding: 3px 0;
  border-bottom: 1px solid #98a2b3;
  font-size: 12px;
}

main,
footer {
  max-width: 980px;
  margin: 0 auto;
  padding-right: 28px;
  padding-left: 28px;
}

.intro {
  min-height: 440px;
  padding: 104px 0 86px;
  display: flex;
  align-items: flex-end;
}

.profile {
  display: flex;
  align-items: center;
  gap: 28px;
}

.avatar {
  width: 112px;
  height: 112px;
  flex: 0 0 112px;
  border-radius: 24px;
  background: #050505;
}

.section-heading > p,
.group-label {
  margin: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .13em;
}

h1 {
  margin: 5px 0 3px;
  font-size: clamp(44px, 6vw, 62px);
  line-height: 1.08;
  letter-spacing: -.055em;
}

.role {
  margin: 0 0 8px;
  color: #344054;
  font-size: 17px;
  font-weight: 550;
}

.email,
.text-link {
  color: var(--muted);
  text-underline-offset: 4px;
}

.email {
  font-size: 14px;
  text-decoration: none;
}

.email:hover,
.text-link:hover,
.group-label a:hover,
.cve-row > a:hover {
  text-decoration: underline;
}

.cv-section {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 54px;
  padding: 68px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  align-self: start;
}

.section-heading h2 {
  margin: 7px 0 3px;
  font-size: 23px;
  line-height: 1.35;
  letter-spacing: -.035em;
}

.section-heading span {
  color: var(--muted);
  font-size: 13px;
}

.section-content {
  min-width: 0;
}

.experience {
  position: relative;
  padding: 0 0 27px;
  margin: 0 0 27px;
  border-bottom: 1px solid var(--line);
}

.experience:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

.experience-head {
  display: flex;
  align-items: center;
  gap: 9px;
}

h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 700;
}

.current-label {
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 750;
}

.organization {
  margin: 3px 0 7px;
  color: #344054;
}

.experience .duty {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 14px;
}

.experience time,
.list-row time,
.speaker-row time {
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.experience.is-current {
  padding-left: 17px;
}

.experience.is-current::before {
  position: absolute;
  top: 3px;
  bottom: 30px;
  left: 0;
  width: 3px;
  border-radius: 999px;
  background: var(--accent);
  content: "";
}

.research-group + .research-group {
  margin-top: 38px;
}

.group-label {
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ink);
  color: var(--ink);
}

.group-label a {
  text-decoration: none;
}

.bounty-entry,
.cve-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.bounty-entry > strong,
.cve-row > a,
.cve-row-other strong {
  font-size: 14px;
  font-weight: 720;
}

.bounty-entry p,
.cve-row p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.bounty-reports {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 14px;
  margin-bottom: 3px;
}

.bounty-reports code {
  color: #344054;
  font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.bounty-recognition {
  color: #344054 !important;
}

.text-link {
  display: inline-block;
  margin-top: 4px;
  font-size: 13px;
}

.cve-row > a {
  text-decoration: none;
  white-space: nowrap;
}

.cve-row-other > div {
  display: grid;
  grid-template-columns: minmax(150px, .8fr) minmax(180px, 1.2fr);
  gap: 16px;
}

.cve-row-other strong {
  color: #344054;
}

.compact-list,
.speaker-list {
  border-top: 2px solid var(--ink);
}

.list-row {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) minmax(120px, auto);
  gap: 18px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.list-row p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

.award-title small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.speaker-row {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.speaker-event {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 14px;
}

.speaker-row h3 {
  font-size: 18px;
  letter-spacing: -.015em;
}

.speaker-people {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.education-row {
  grid-template-columns: 106px minmax(0, 1fr);
}

.activity-row time {
  color: var(--accent);
  font-weight: 700;
}

footer {
  margin-top: 24px;
  padding-top: 30px;
  padding-bottom: 58px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

footer span {
  float: right;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 820px) {
  .site-header {
    gap: 18px;
  }

  #nav {
    gap: 14px;
  }

  #nav a {
    font-size: 12px;
  }

  .print {
    display: none;
  }

  .intro {
    min-height: 380px;
    padding-top: 80px;
  }

  .cv-section {
    grid-template-columns: 155px minmax(0, 1fr);
    gap: 34px;
  }

  .cve-row-other > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

@media (max-width: 680px) {
  html {
    scroll-padding-top: 118px;
  }

  .site-header {
    min-height: 0;
    padding: 12px 20px 10px;
    flex-wrap: wrap;
    gap: 9px 14px;
  }

  .brand {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .header-actions {
    margin-left: auto;
  }

  #nav {
    order: 3;
    width: 100%;
    padding-top: 2px;
    gap: 18px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  #nav::-webkit-scrollbar {
    display: none;
  }

  #nav a {
    flex: 0 0 auto;
  }

  main,
  footer {
    padding-right: 20px;
    padding-left: 20px;
  }

  .intro {
    min-height: 0;
    padding: 66px 0 56px;
    display: block;
  }

  .profile {
    align-items: flex-start;
    gap: 18px;
  }

  .avatar {
    width: 82px;
    height: 82px;
    flex-basis: 82px;
    border-radius: 18px;
  }

  h1 {
    font-size: 41px;
  }

  .role {
    font-size: 15px;
  }

  .cv-section {
    display: block;
    padding: 48px 0;
  }

  .section-heading {
    margin-bottom: 27px;
  }

  .section-heading h2 {
    margin-top: 5px;
  }

  .bounty-entry,
  .cve-row {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .list-row {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
    padding: 15px 0;
  }

  .list-row p {
    grid-column: 2;
    text-align: left;
  }

  .speaker-row {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
  }

  .education-row {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  footer span {
    display: none;
  }
}

@media print {
  .site-header {
    display: none;
  }

  body {
    font-size: 12px;
  }

  main,
  footer {
    max-width: none;
    padding-right: 0;
    padding-left: 0;
  }

  .intro {
    min-height: 0;
    padding: 0 0 28px;
  }

  .avatar {
    width: 76px;
    height: 76px;
    flex-basis: 76px;
  }

  h1 {
    font-size: 36px;
  }

  .cv-section {
    grid-template-columns: 140px 1fr;
    gap: 28px;
    padding: 28px 0;
  }

  .experience,
  .bounty-entry,
  .cve-row,
  .list-row,
  .speaker-row {
    break-inside: avoid;
  }

  footer {
    padding-bottom: 0;
  }
}
