/* ══════════════════════════════════════════════════════════════
   Minimal CV — single column, print-friendly.
   One accent color, hairline rules, right-aligned dates.
══════════════════════════════════════════════════════════════ */
:root {
  --ink:        #1a1a1a;   /* headings, primary text */
  --ink-soft:   #3f3f46;   /* body text */
  --muted:      #71717a;   /* dates, orgs, secondary text */
  --faint:      #a1a1aa;   /* section labels */
  --hairline:   #e4e4e7;
  --accent:     #1d4ed8;   /* links only */
  --paper:      #ffffff;

  --font-sans:  -apple-system, BlinkMacSystemFont, "Segoe UI",
                "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR",
                "Helvetica Neue", Arial, sans-serif;

  --page-width: 44rem;     /* ~704px — comfortable single column */
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--paper);
  word-break: keep-all;    /* natural Korean line breaks */
}

img { display: block; max-width: 100%; }
ul, ol { list-style: none; }

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

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


/* ── Page frame ─────────────────────────────────────────────── */
.cv {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 72px 24px 48px;
}


/* ── Header ─────────────────────────────────────────────────── */
.cv-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 32px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--hairline);
}

.cv-name {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 4px;
}

.cv-role {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 16px;
}

.cv-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 0;
  font-size: 14px;
  color: var(--muted);
}

.cv-contact li { display: flex; align-items: center; }

/* dot separator between contact items */
.cv-contact li + li::before {
  content: "·";
  margin: 0 10px;
  color: var(--faint);
}

.cv-photo {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 1px solid var(--hairline);
  flex-shrink: 0;
}


/* ── Sections ───────────────────────────────────────────────── */
.cv-section { margin-bottom: 44px; }
.cv-section:last-of-type { margin-bottom: 0; }

.cv-section-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--faint);
  padding-bottom: 8px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--hairline);
}

.cv-summary {
  max-width: 38rem;
}


/* ── Entries (education / experience / projects / awards) ───── */
.cv-entries {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cv-entry-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.cv-entry-title {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.45;
}

.cv-entry-date {
  font-size: 13.5px;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.cv-entry-org {
  font-size: 14px;
  color: var(--muted);
  margin-top: 1px;
}

.cv-entry-body {
  margin-top: 6px;
  font-size: 14.5px;
}

.cv-entry-body ul {
  list-style: none;
}

.cv-entry-body li {
  position: relative;
  padding-left: 14px;
}

.cv-entry-body li + li { margin-top: 2px; }

.cv-entry-body li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--faint);
}

/* external link after a project title */
.cv-entry-link {
  font-size: 13.5px;
  font-weight: 400;
  margin-left: 8px;
  white-space: nowrap;
}

/* publications: one hanging-indent paragraph per paper */
.cv-pub {
  padding-left: 1.25em;
  text-indent: -1.25em;
  font-size: 14.5px;
}

.cv-pub .cv-pub-title { color: var(--ink); font-weight: 600; }
.cv-pub .cv-pub-venue { font-style: italic; }
.cv-pub .cv-pub-pdf   { white-space: nowrap; font-weight: 500; }


/* ── Facts list (skills / interests) ────────────────────────── */
.cv-facts {
  display: grid;
  grid-template-columns: 9rem 1fr;
  row-gap: 8px;
  column-gap: 16px;
}

.cv-facts dt {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.cv-facts dd {
  font-size: 14.5px;
}


/* ── Footer ─────────────────────────────────────────────────── */
.cv-footer {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 24px 24px 56px;
  font-size: 12.5px;
  color: var(--faint);
}


/* ── Mobile ─────────────────────────────────────────────────── */
@media (max-width: 560px) {
  .cv { padding-top: 48px; }

  .cv-header {
    flex-direction: column-reverse;
    gap: 20px;
  }

  .cv-photo { width: 72px; height: 72px; }

  .cv-entry-head {
    flex-direction: column;
    gap: 0;
  }

  .cv-facts { grid-template-columns: 1fr; row-gap: 2px; }
  .cv-facts dd { margin-bottom: 8px; }
}


/* ── Print ──────────────────────────────────────────────────── */
@media print {
  body { font-size: 12px; color: #000; }
  .cv { padding: 0; max-width: none; }
  .cv-footer { display: none; }
  a { color: inherit; text-decoration: none; }
  .cv-section { break-inside: avoid-page; margin-bottom: 28px; }
  .cv-photo { display: none; }
}
