/* 김도영 웹 이력서의 화면, 반응형 레이아웃과 인쇄 스타일. */
:root {
  color-scheme: light;
  --bg:#f7f8fa; --card:#fff; --fg:#111; --muted:#6b6b6b;
  --accent:#5b7fff; --link:#2f56e0; --rule:#e3e8f5; --mark:rgb(255 176 32 / .38);
  --sans:"Pretendard Variable",Pretendard,-apple-system,"Apple SD Gothic Neo",BlinkMacSystemFont,system-ui,"Segoe UI Variable Text","Segoe UI","Malgun Gothic","맑은 고딕","Noto Sans KR","Nanum Gothic",Roboto,Helvetica,Arial,sans-serif;
  --heading:"Gmarket Sans","Pretendard Variable",Pretendard,-apple-system,"Apple SD Gothic Neo",BlinkMacSystemFont,system-ui,"Segoe UI Variable Display","Segoe UI","Malgun Gothic","맑은 고딕","Noto Sans KR",sans-serif;
}
* {box-sizing:border-box;margin:0;padding:0}
html {scroll-behavior:smooth}
body {background:var(--bg);color:var(--fg);font-family:var(--sans);font-size:16px;line-height:1.7;word-break:keep-all;overflow-wrap:break-word;padding:clamp(2rem,6vw,4.5rem) 1.5rem;display:flex;justify-content:center}
a {color:inherit;text-underline-offset:.23em}
button,input {font:inherit}
button {cursor:pointer}
button:disabled {opacity:.45;cursor:not-allowed}
:focus-visible {outline:2px solid var(--link);outline-offset:4px}
[hidden] {display:none!important}
.page {width:100%;max-width:58rem}
.hero-top {display:flex;align-items:center;justify-content:space-between;gap:1.8rem;flex-wrap:wrap}
.name {font-family:var(--heading);font-size:clamp(2.8rem,9vw,5rem);font-weight:700;letter-spacing:-.03em;line-height:1.05;color:var(--accent);margin-left:-.035em}
.job-title {font-size:.95rem;color:var(--muted);letter-spacing:.04em;margin-top:.85rem}
.links {display:flex;gap:.4rem}
.links a {display:grid;place-items:center;width:2.6rem;height:2.6rem;border:1px solid var(--rule);border-radius:50%;background:var(--card);color:var(--link);text-decoration:none}
.links a:hover {border-color:var(--link)}
.links svg {width:1.1rem;height:1.1rem;fill:currentColor}
.links span {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.lede {font-size:1.125rem;line-height:1.7;letter-spacing:-.01em;color:var(--muted);margin-top:2.8rem}
.lede p+p {margin-top:.85rem}
.lede strong {color:var(--fg);font-weight:600}
.card {background:var(--card);border:1px solid rgb(16 24 40 / .06);border-radius:1rem;box-shadow:0 1px 2px rgb(16 24 40 / .04),0 16px 32px -16px rgb(16 24 40 / .1)}
.stats {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:1.8rem 1.4rem;margin-top:2.8rem}
.stats>div {padding:0 .8rem;text-align:center}
.stats>div+div {border-left:1px solid var(--rule)}
.stat-number {color:var(--accent);font-size:clamp(1.8rem,4vw,2.75rem);line-height:1.05;letter-spacing:-.03em;font-weight:600;font-variant-numeric:tabular-nums}
.stat-number span {font-size:.5em;margin-left:.1em;letter-spacing:0}
.stats p {font-size:.875rem;color:var(--muted);margin-top:.8rem;text-wrap:balance}
section {scroll-margin-top:2rem}
main>section {margin-top:3.5rem}
.section-heading {display:flex;align-items:baseline;gap:.7rem;margin-bottom:1.8rem;flex-wrap:wrap}
h2 {font-family:var(--heading);font-size:clamp(1.4rem,3vw,1.9rem);font-weight:600;letter-spacing:-.03em;color:var(--accent)}
.section-heading>span {font-size:.875rem;color:var(--muted)}
.entry {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:2.8rem;padding-bottom:2.8rem}
.entry:last-child {padding-bottom:0}
h3 {font-family:var(--heading);font-size:1.2rem;font-weight:500;line-height:1.5}
.date {font-size:.875rem;color:var(--muted);font-variant-numeric:tabular-nums;margin-top:.35rem}
.role {display:inline-block;color:var(--link);background:rgb(91 127 255 / .14);border-radius:999px;padding:.1rem .6rem;font-size:.875rem;line-height:1.5;margin-top:.6rem}
.source-link {font-size:.875rem;color:var(--link);text-decoration:none;display:table;margin-top:.7rem}
.source-link:hover {text-decoration:underline}
.status {display:block;font-size:.8rem;color:var(--muted);margin-top:.7rem}
h4 {font-size:1rem;font-weight:600;line-height:1.7}
.description {color:var(--muted);margin-top:.35rem;font-size:.95rem}
.tasks {list-style:none;margin-top:.55rem}
.tasks li {color:var(--muted);position:relative;padding-left:.85rem;line-height:1.8;margin-top:.25rem}
.tasks li:before {content:"";position:absolute;left:.1rem;top:.75em;width:.22rem;height:.22rem;border-radius:50%;background:var(--accent)}
mark {background:var(--mark);color:var(--fg);border-radius:3px;padding:.1em .16em;box-decoration-break:clone;-webkit-box-decoration-break:clone}
.achievement {font-size:.875rem;color:var(--link);margin-top:.8rem}
.achievement span {display:block;color:var(--muted);font-size:.8rem}
.note {font-size:.8rem;color:var(--muted);margin-top:.65rem;line-height:1.6}
.stack {display:flex;flex-wrap:wrap;gap:.3rem;margin-top:.7rem}
.stack span {font-size:.75rem;color:var(--link);border:1px solid rgb(91 127 255 / .3);border-radius:999px;padding:.05rem .55rem;line-height:1.6}
.skill-list>div {display:grid;grid-template-columns:1fr 2fr;gap:2.8rem;padding:.8rem 0;border-bottom:1px solid var(--rule)}
.skill-list>div:last-child {border:0}
dt {font-size:.9rem;color:var(--muted)}
dd {font-size:1rem}
.education-row {display:flex;justify-content:space-between;gap:1rem;padding-bottom:1.5rem}
.education-row:last-child {padding-bottom:0}
.education-row p:not(.date) {color:var(--muted);font-size:.95rem;margin-top:.25rem}
.award-row {display:grid;grid-template-columns:6rem 1fr;gap:1.2rem}
.award-row h3 {font-size:1.05rem}
.award-row strong {font-weight:550}
footer {display:flex;justify-content:space-between;flex-wrap:wrap;gap:.5rem;margin-top:3.5rem;padding-top:1.2rem;border-top:1px solid var(--rule);font-size:.75rem;color:var(--muted)}
.toc {display:flex;flex-direction:column;gap:.15rem}
.toc a {color:var(--muted);font-size:.875rem;text-decoration:none;padding:.25rem .6rem;border-radius:999px;white-space:nowrap}
.toc a:hover,.toc a[aria-current] {color:var(--link);background:#fff}
.menu-toggle {display:none}
.pdf-tools {position:fixed;top:1rem;left:1rem;z-index:30}
.pdf-toggle {border:0;border-radius:999px;padding:.65rem 1rem;color:var(--link);background:#e5ebff;font-size:.875rem;box-shadow:0 2px 10px -4px rgb(16 24 40 / .1)}
.pdf-toggle span {margin-left:.3rem}
.pdf-panel {margin-top:.7rem;width:290px;max-width:calc(100vw - 2rem);background:#fff;border:1px solid var(--rule);border-radius:1rem;padding:1.2rem;box-shadow:0 16px 40px rgb(16 24 40 / .14)}
.panel-heading {display:flex;align-items:center;justify-content:space-between;margin-bottom:.8rem}
.panel-heading h2 {font:600 1rem var(--sans);color:var(--fg);letter-spacing:0}
.close-panel {border:0;background:none;color:var(--muted);font-size:1.5rem;width:2rem;height:2rem;line-height:1}
.pdf-options {display:grid;grid-template-columns:1fr 1fr;gap:.6rem .5rem;font-size:.875rem}
.pdf-options label {display:flex;align-items:center;gap:.4rem;cursor:pointer}
input[type=checkbox] {width:1rem;height:1rem;accent-color:var(--link)}
.selection-count {font-size:.75rem;color:var(--muted);margin:1rem 0 .6rem}
.print-button {width:100%;border:0;background:var(--link);color:#fff;border-radius:.5rem;padding:.6rem;font-size:.9rem}
.print-help {font-size:.75rem;color:var(--muted);margin-top:.7rem;line-height:1.6}
.back-top {position:fixed;right:1.1rem;bottom:1.1rem;display:grid;place-items:center;width:2.6rem;height:2.6rem;border-radius:.75rem;background:#e5ebff;color:var(--link);text-decoration:none}
.skip-link {position:fixed;left:1rem;top:-5rem;background:white;padding:1rem;z-index:50}
.skip-link:focus {top:1rem}
.noscript {position:fixed;bottom:0;left:0;background:white;font-size:.8rem;padding:.5rem}
@media(min-width:64rem) {
  .page {max-width:77.2rem;display:grid;grid-template-columns:9.25rem minmax(0,1fr) 9.25rem;column-gap:1.8rem}
  .page>* {grid-column:2}
  .toc-rail {grid-column:3;grid-row:1 / span 5;position:sticky;top:6rem;align-self:start;margin-top:1.5rem}
}
@media(max-width:63.999rem) {
  body {padding-top:5rem}
  .menu-toggle {display:flex;flex-direction:column;justify-content:center;gap:4px;position:fixed;right:1rem;top:1rem;width:2.6rem;height:2.6rem;padding:.65rem;border:0;border-radius:.75rem;background:#e5ebff;z-index:25}
  .menu-toggle span {height:2px;width:100%;background:var(--link);border-radius:2px}
  .toc {display:none}
  .toc.open {display:flex;position:fixed;right:1rem;top:4.2rem;z-index:24;background:#fff;border:1px solid var(--rule);padding:.6rem;border-radius:.9rem;box-shadow:0 10px 30px rgb(16 24 40 / .12)}
  .toc a {padding:.5rem .9rem}
}
@media(max-width:46rem) {
  body {padding-inline:1.25rem}
  .hero-top {gap:1rem}
  .links a {width:2.35rem;height:2.35rem}
  .lede {font-size:1rem;margin-top:2rem}
  .stats {padding:1.4rem .4rem;margin-top:2rem}
  .stats>div {padding:0 .35rem}
  .stat-number {font-size:clamp(1.2rem,5.7vw,1.9rem)}
  .stats p {font-size:.7rem}
  .entry {grid-template-columns:1fr;gap:.9rem;padding-bottom:2.3rem}
  .entry-meta {border-left:2px solid var(--accent);padding-left:.8rem}
  .entry-meta .source-link,.entry-meta .status {display:inline-block;margin-left:.6rem;margin-top:.4rem}
  main>section {margin-top:2.8rem}
  .section-heading {margin-bottom:1.3rem}
  .skill-list>div {grid-template-columns:1fr;gap:.2rem}
  .education-row {flex-direction:column;gap:.15rem}
  .award-row {grid-template-columns:1fr;gap:.4rem}
}
@media(prefers-reduced-motion:reduce) {html {scroll-behavior:auto}}
@media print {
  @page {size:A4;margin:14mm 13mm}
  html {scroll-behavior:auto}
  body {display:block;padding:0;background:#fff;font-size:9.5pt;line-height:1.6;-webkit-print-color-adjust:exact;print-color-adjust:exact}
  .page {display:block;max-width:none}
  .toc-rail,.pdf-tools,.back-top,.skip-link,.noscript,footer {display:none!important}
  .print-excluded {display:none!important}
  .name {font-size:34pt}
  .job-title {font-size:10pt;margin-top:.4rem}
  .hero-top {gap:.8rem;align-items:center}
  .links {gap:.2rem .8rem;flex-wrap:wrap;max-width:64%;justify-content:flex-end}
  .links a {width:auto;height:auto;border:0;background:none;font-size:8pt;color:var(--muted)}
  .links svg {display:none}
  .links a:after {content:attr(data-print)}
  .lede {font-size:10pt;margin-top:1.2rem;line-height:1.65}
  .lede p+p {margin-top:.5rem}
  .stats {margin-top:1.2rem;padding:.9rem;break-inside:avoid;box-shadow:none}
  .stat-number {font-size:23pt}
  .stats p {font-size:8pt;margin-top:.4rem}
  main>section {margin-top:1.5rem}
  .section-heading {margin-bottom:.8rem;break-after:avoid}
  h2 {font-size:17pt}
  .section-heading>span {font-size:8pt}
  .entry {grid-template-columns:1fr 2fr;gap:1.2rem;padding-bottom:1.2rem;break-inside:avoid}
  .entry-meta {border:0;padding:0}
  h3 {font-size:12pt}
  h4 {font-size:10pt;break-after:avoid}
  .description,.tasks li,dd {font-size:9.5pt;line-height:1.65}
  .date,.role,.achievement,.source-link,dt {font-size:8pt}
  .entry-meta .source-link,.entry-meta .status {display:table;margin-left:0}
  .note,.achievement span,.stack span {font-size:7.5pt}
  .skill-list>div {grid-template-columns:1fr 2fr;gap:1.2rem;padding:.4rem 0;break-inside:avoid}
  .education-row {flex-direction:row;gap:1rem;break-inside:avoid;padding-bottom:.8rem}
  .education-row p:not(.date) {font-size:9pt}
  .award-row {grid-template-columns:4.5rem 1fr;break-inside:avoid}
  .award-row h3 {font-size:10pt}
}
