/* 이력서 — 정적 사이트. 외부 폰트·이미지 없음(시스템 폰트만 사용). */
:root {
  --bg: #f6f7f9;
  --card: #ffffff;
  --surface: #f0f3fa;
  --text: #1a2133;
  --muted: #5a6478;
  --line: #e2e7f1;
  --accent: #1f3a8a;          /* 포인트 색 하나: 남색 */
  --accent-soft: #e6ecfb;
  --shadow: 0 1px 2px rgba(20, 36, 107, .05), 0 8px 24px rgba(20, 36, 107, .06);
  --ink: #ffffff;             /* 포인트색 위의 글자색 */
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c111d;
    --card: #141b2b;
    --surface: #1a2338;
    --text: #e8ebf3;
    --muted: #9ca6ba;
    --line: #232d44;
    --accent: #9db4ff;
    --accent-soft: #1d2a4d;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    --ink: #0c111d;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", "Malgun Gothic", "Segoe UI", system-ui, sans-serif;
  font-size: 16px; line-height: 1.75; word-break: keep-all; overflow-wrap: break-word; line-break: strict;
}
/* 줄바꿈 품질: 마지막 줄에 한두 글자만 남지 않게, 제목은 균형 있게 */
p, li, dd { text-wrap: pretty; }
h1, h2, h3, h4, h5, .strengths p { text-wrap: balance; }
/* 한 줄 길이를 읽기 좋게(한글 기준 약 40자) 제한 */
.intro { margin-bottom: 8px; }
.intro p { margin: 0 0 6px; }
a { color: var(--accent); }
b { font-weight: 650; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, p, dl, dd { margin: 0; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; background: var(--surface); padding: 1px 6px; border-radius: 4px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Hero ---------- */
.hero { background: var(--bg); }
.hero-inner { max-width: 1040px; margin: 0 auto; padding: 96px 24px 56px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 650; color: var(--accent);
  padding: 5px 14px 5px 12px; border-radius: 999px; background: var(--accent-soft);
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
h1 { font-size: clamp(40px, 7vw, 60px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 780; margin: 18px 0 22px; }
.lead { font-size: 18px; line-height: 1.85; max-width: none; color: var(--muted); }
.lead { color: color-mix(in srgb, var(--text) 78%, var(--bg)); }
.lead p { margin: 0 0 6px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn { font: inherit; font-size: 15px; font-weight: 600; padding: 12px 22px; border-radius: 999px; cursor: pointer; text-decoration: none; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-solid { background: var(--text); color: var(--bg); border: 1px solid var(--text); }

.meta { align-self: center; color: var(--muted); font-size: 15px; }
.hero-actions { align-items: center; }
.strengths { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 52px; }
.strengths li { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px 24px; }
.strengths h2 { font-size: 17px; letter-spacing: -0.01em; color: var(--accent); margin-bottom: 6px; }
.strengths p { font-size: 15px; line-height: 1.7; color: var(--muted); }
@media (min-width: 780px) { .strengths { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-inner { max-width: 1040px; margin: 0 auto; padding: 0 16px; display: flex; gap: 4px; overflow-x: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: 14.5px; font-weight: 600; padding: 14px 14px; border-bottom: 2px solid transparent; white-space: nowrap; }
.nav a:hover { color: var(--text); }
.nav a.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------- Layout ---------- */
.page { max-width: 1040px; margin: 0 auto; padding: 24px 24px 64px; }
.sec { padding: 40px 0 8px; }
.sec h2 { display: flex; align-items: baseline; gap: 14px; font-size: 28px; letter-spacing: -0.02em; line-height: 1.3; margin-bottom: 22px; }
.num { font-size: 14px; font-weight: 750; color: var(--accent); letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 26px 28px; }
@media (max-width: 560px) { .card { padding: 20px 18px; border-radius: 16px; } .sec h2 { font-size: 24px; } }

/* 칩 */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.chips li { font-size: 13.5px; font-weight: 550; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 3px 12px; line-height: 1.6; }

/* ---------- Skills ---------- */
.cards3 { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 780px) { .cards3 { grid-template-columns: repeat(3, 1fr); } }
.skill h3 { font-size: 18px; margin-top: 12px; }
.skill .chips { margin-top: 12px; }
.ico { width: 40px; height: 40px; padding: 8px; border-radius: 12px; background: var(--accent-soft); fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Career ---------- */
.company { margin-bottom: 20px; }
.company h3 { font-size: 24px; letter-spacing: -0.02em; line-height: 1.3; }
.company p { color: var(--muted); font-size: 15px; }
.timeline { position: relative; display: grid; gap: 18px; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); border-radius: 2px; }
.timeline > .job::before { content: ""; position: absolute; left: -28px; top: 30px; width: 16px; height: 16px; border-radius: 50%; background: var(--card); border: 3px solid var(--accent); }
.job { position: relative; }
.job-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 16px; margin-bottom: 12px; }
.job-head h4 { font-size: 18px; letter-spacing: -0.01em; line-height: 1.5; }
.period { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.job > ul:not(.chips):not(.rows), .callout ul { list-style: none; }
.job li, .callout li { position: relative; padding-left: 16px; margin: 4px 0; }
.job li::before, .callout li::before { content: ""; position: absolute; left: 2px; top: calc(.85em - 2.5px); width: 0; height: 0; border: 2.5px solid var(--accent); border-radius: 50%; opacity: .75; }
.job li ul { margin-top: 2px; }
.job li li::before { border-color: var(--muted); }
.job .chips li, .job .rows li, .job-brief li, .project .points li, .project .chips li { padding-left: 0; }
.job .chips li, .project .chips li { padding: 3px 12px; }
.job .chips li::before, .job .rows li::before, .project .points li::before, .project .chips li::before { content: none; }
.job-brief .job-head h4 { font-size: 16px; color: var(--muted); }

.rows li { display: grid; grid-template-columns: 1fr; padding: 8px 0; margin: 0; border-top: 1px dashed var(--line); }
.rows li:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 640px) { .rows li { grid-template-columns: 170px 1fr; gap: 16px; } .rows .period { padding-top: 3px; } }
.card-title { font-size: 16px; color: var(--accent); margin-bottom: 12px; }
.cards2, .cards3 { min-width: 0; }
.cards2 > *, .cards3 > * { min-width: 0; }
.cards2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 860px) { .cards2 { grid-template-columns: 1.6fr 1fr; } .cards2 .rows li { grid-template-columns: 1fr; } }

/* ---------- Project ---------- */
.project { position: relative; overflow: hidden; }
.project::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--accent); }
.project .status { display: inline-block; margin: 0 0 12px; padding: 2px 12px; font-size: 13px; font-weight: 650; color: var(--accent); background: var(--accent-soft); border-radius: 999px; }
.points { margin-top: 12px; display: grid; gap: 4px; }
.points li { display: grid; grid-template-columns: 1fr; gap: 0; padding: 12px 0; border-top: 1px solid var(--line); }
.points li > b { color: var(--accent); }
@media (min-width: 720px) { .points li { grid-template-columns: 150px 1fr; gap: 16px; } }
.callout { border-left: 4px solid var(--accent); background: var(--surface); border-radius: 0 14px 14px 0; padding: 18px 22px; }
.callout h5 { font-size: 15px; color: var(--accent); margin-bottom: 6px; }


/* ---------- 프로젝트 화면 갤러리 ---------- */
.shots { margin: 28px 0 0; padding-top: 24px; border-top: 1px solid var(--line); }
.shots-title { font-size: 16px; color: var(--accent); margin-bottom: 4px; }
.shots-note { font-size: 13.5px; color: var(--muted); margin-bottom: 12px; }
.shots-stage { border: 1px solid var(--line); border-radius: 16px; background: var(--card); overflow: hidden; }
.shots-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.shots.is-enhanced .shots-track { scrollbar-width: none; }
.shots.is-enhanced .shots-track::-webkit-scrollbar { display: none; }
.shots-track:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.shots-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 12px; }
.shots-stage { position: relative; }
.shots-arrows { position: absolute; top: 0; left: 0; right: 0; aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; pointer-events: none; }
.shots-btn { pointer-events: auto; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.55); background: rgba(20, 28, 48, .55); color: #fff; font-size: 26px; line-height: 1; padding: 0 0 3px; cursor: pointer; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); box-shadow: 0 2px 10px rgba(0,0,0,.25); transition: background .15s, opacity .15s, transform .15s; }
.shots-btn:hover:not(:disabled) { background: rgba(20, 28, 48, .8); transform: scale(1.06); }
.shots-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.shots-btn:disabled { opacity: 0; pointer-events: none; }
@media (max-width: 560px) { .shots-btn { width: 38px; height: 38px; font-size: 22px; } .shots-arrows { padding: 0 8px; } }
.shots-dots { display: flex; gap: 8px; align-items: center; }
.shots-dot { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 0; background: var(--line); cursor: pointer; transition: width .2s, background .2s; }
.shots-dot[aria-current="true"] { width: 24px; border-radius: 999px; background: var(--accent); }
.shots-count { min-width: 3.2em; text-align: center; font-size: 13.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.shot { flex: 0 0 100%; margin: 0; scroll-snap-align: start; scroll-snap-stop: always; background: var(--card); }
.shot a { display: block; line-height: 0; cursor: zoom-in; }
.shot img { width: 100%; height: auto; display: block; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-bottom: 1px solid var(--line); background: var(--surface); }
.shot figcaption { padding: 14px 20px 18px; font-size: 15px; line-height: 1.7; color: var(--muted); }
.shot figcaption b { display: block; color: var(--text); font-size: 16px; margin-bottom: 2px; }
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; }
dialog.lightbox::backdrop { background: rgba(8, 12, 24, .82); }
dialog.lightbox img { display: block; max-width: 96vw; max-height: 92vh; border-radius: 10px; cursor: zoom-out; }

/* ---------- Footer ---------- */
.foot { padding: 32px 0 0; color: var(--muted); font-size: 13px; }

/* 스크롤 등장 효과는 쓰지 않는다(내용이 항상 보이도록) */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .shots-dot, .shots-btn { transition: none; } .shots-track { scroll-behavior: auto; } }

/* ---------- Print: A4, 흰 종이 ---------- */
@page { size: A4; margin: 14mm 14mm 16mm; }
@media print {
  :root { --bg: #fff; --card: #fff; --surface: #f4f5f8; --text: #111827; --muted: #4b5563; --line: #d4d8e1; --accent: #1f3a8a; --accent-soft: #e8edfa; --shadow: none; color-scheme: light; }
  html { scroll-padding-top: 0; }
  body { font-size: 10pt; line-height: 1.55; background: #fff; }
  .nav { display: none !important; }
  .hero { background: none; border-bottom: 1px solid var(--line); }
  .hero-inner { max-width: none; padding: 0 0 14pt; }
  .eyebrow { background: none; padding: 0; font-size: 10pt; }
  .eyebrow::before { display: none; }
  h1 { font-size: 30pt; margin: 4pt 0 10pt; }
  .lead { font-size: 10.5pt; line-height: 1.65; max-width: none; color: var(--text); }
  .hero-actions { margin-top: 8pt; gap: 12pt; }
  .meta { font-size: 9.5pt; }
  .strengths { grid-template-columns: repeat(3, 1fr); gap: 10pt; margin-top: 12pt; }
  .strengths li { border: 1px solid var(--line); border-radius: 6pt; padding: 7pt 9pt; }
  .strengths h2 { font-size: 9.5pt; margin-bottom: 2pt; }
  .strengths p { font-size: 8.5pt; line-height: 1.5; }
  .btn-solid { background: none; border: 0; padding: 0; color: var(--muted); font-size: 9.5pt; font-weight: 400; }
  .page { max-width: none; padding: 0; }
  .sec { padding: 14pt 0 0; }
  .sec h2 { font-size: 13pt; margin-bottom: 8pt; }
  .card { border: 0; border-radius: 0; box-shadow: none; padding: 0 0 8pt; background: none; }
  .project::before { display: none; }
  .shots { display: none; }
  .cards3 { grid-template-columns: repeat(3, 1fr); gap: 10pt; }
  .ico { display: none; }
  .skill h3 { margin-top: 0; font-size: 10.5pt; }
  .chips { margin-top: 6pt; gap: 4pt; }
  .chips li { font-size: 8.5pt; padding: 1pt 7pt; border: 1px solid var(--line); background: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .company { margin-bottom: 8pt; } .company h3 { font-size: 14pt; }
  .timeline { padding-left: 0; gap: 10pt; }
  .timeline::before, .timeline > .job::before { display: none; }
  .job-head h4 { font-size: 11pt; }
  .period { font-size: 9pt; }
  .job li { margin: 2pt 0; }
  .job li, .rows li, .callout, .points li, .strengths li { break-inside: avoid; }
  .job-head { break-after: avoid; }
  .points li { padding: 5pt 0; grid-template-columns: 110pt 1fr; }
  .callout, .project .status, code { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .cards2 { grid-template-columns: minmax(0, 1fr); gap: 6pt; }
  .cards2 .rows li, .rows li { grid-template-columns: 110pt 1fr; gap: 12pt; padding: 3pt 0; }
  .card-title { margin-bottom: 4pt; }
  a { color: inherit; text-decoration: none; }
}
