:root {
  color-scheme: light;
  --paper: #f6f5ef;
  --ink: #20251d;
  --muted: #515a4d;
  --rule: #c9cdc1;
  --accent: #d9eea5;
  --green: #43582f;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font-family: "Noto Sans KR", "Noto Sans CJK KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  background: var(--paper);
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, dl, dd { margin: 0; }
body { line-height: 1.65; word-break: keep-all; overflow-wrap: anywhere; }
a { color: inherit; text-underline-offset: .25em; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 5px; }
.shell { width: min(100% - 80px, 1060px); margin-inline: auto; }

.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 1;
  transform: translateY(-150%);
  padding: 8px 14px;
  background: var(--ink);
  color: white;
}
.skip-link:focus { transform: none; }

.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 78px;
  border-bottom: 1px solid var(--rule);
}
.brand { width: fit-content; font-weight: 850; font-size: 1.15rem; text-decoration: none; letter-spacing: -.07em; }
.brand span, .hero h1 span { color: #628441; }
.site-header nav { display: flex; gap: 27px; font-size: .875rem; }
.site-header nav a { text-decoration: none; }
.site-header nav a:hover, .site-footer a:hover { text-decoration: underline; }
.print-button {
  justify-self: end;
  cursor: pointer;
  padding: 8px 13px;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 5px;
  font-size: .82rem;
  font-weight: 700;
}
.print-button:hover { background: var(--accent); }

.hero { padding-block: clamp(52px, 8vw, 107px) clamp(48px, 6vw, 76px); }
.eyebrow {
  color: var(--green);
  font: 700 .75rem / 1.45 var(--mono);
  letter-spacing: .13em;
}
.dot {
  display: inline-block;
  width: .58em;
  height: .58em;
  margin-right: .8em;
  vertical-align: .09em;
  background: #628441;
  border-radius: 50%;
}
.hero h1 {
  margin-top: 12px;
  font-size: clamp(4.25rem, 12vw, 9rem);
  font-weight: 900;
  line-height: 1.11;
  letter-spacing: -.105em;
}
.hero h1 span { margin-left: .08em; }
.headline {
  margin-top: 12px;
  font-size: clamp(1.45rem, 4vw, 2.65rem);
  font-weight: 750;
  line-height: 1.3;
  letter-spacing: -.055em;
}
.intro { max-width: 660px; margin-top: 22px; color: var(--muted); font-size: clamp(1rem, 2vw, 1.125rem); }

.highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(30px, 5vw, 55px);
  border-radius: 9px;
  background: var(--accent);
}
.highlights > div { display: grid; align-content: center; gap: 3px; padding: 18px clamp(14px, 3vw, 30px); }
.highlights > div + div { border-left: 1px solid #adbf8a; }
.highlights strong { font-size: clamp(1.2rem, 3vw, 1.95rem); font-weight: 800; line-height: 1.3; letter-spacing: -.055em; }
.print-contact, .print-qr { display: none; }
.highlights div > span { color: #3d482e; font-size: .84rem; }

.resume-section { padding-block: 32px 48px; border-top: 2px solid var(--ink); }
.section-heading { display: grid; gap: 3px; margin-bottom: 20px; }
.section-heading h2, .collaboration h2 { font-size: clamp(1.9rem, 5vw, 2.75rem); font-weight: 800; line-height: 1.25; letter-spacing: -.07em; }

.job {
  display: grid;
  grid-template-columns: minmax(165px, .34fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 52px);
  padding-block: 26px;
  border-top: 1px solid var(--rule);
}
.date { color: var(--green); font: 600 .77rem / 1.5 var(--mono); }
.job h3 { margin-top: 4px; font-size: 1.38rem; font-weight: 800; letter-spacing: -.06em; }
.role { color: var(--muted); font-size: .87rem; }
.job-summary { margin-bottom: 10px; font-weight: 650; }
.achievements { display: grid; gap: 11px; margin: 0; padding-left: 1.2em; }
.achievements li::marker { color: var(--green); font-size: .8em; }
.achievements strong { font-weight: 800; }
.stack { margin: 14px 0 0 1.2em; color: var(--green); font-size: .82rem; font-weight: 650; }

.skills-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.skills-grid > div { padding-block: 14px; border-top: 1px solid var(--rule); }
.skills-grid dt { font-weight: 800; }
.skills-grid dd { margin-top: 3px; color: var(--muted); }

.collaboration {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: clamp(22px, 5vw, 48px);
  border-radius: 9px;
  background: var(--ink);
  color: var(--paper);
}
.collaboration .eyebrow { color: var(--accent); }
.collaboration h2 { margin-top: 4px; }
.collaboration h2 + p { max-width: 640px; margin-top: 12px; }
.contact-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 20px; }
.profile-link, .qr-download { color: var(--paper); font-size: .88rem; font-weight: 700; }
.qr-download { flex: none; display: grid; justify-items: center; gap: 5px; }
.qr-download img { display: block; border-radius: 3px; }
.contact {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 15px;
  padding: 10px 16px;
  border-radius: 5px;
  background: var(--accent);
  color: var(--ink);
  font-size: .88rem;
  font-weight: 800;
  text-decoration: none;
}
.contact:hover { background: #edf6d7; }
.collaboration a:focus-visible { outline-color: var(--accent); }

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  padding-block: 29px 38px;
  color: var(--muted);
  font-size: .82rem;
}
.site-footer a { text-decoration: none; font-weight: 750; }

@media (max-width: 640px) {
  .shell { width: calc(100% - 36px); }
  .site-header { grid-template-columns: auto 1fr; gap: 10px 14px; min-height: auto; padding-block: 14px; }
  .site-header nav { grid-column: 1 / -1; grid-row: 2; gap: 24px; }
  .print-button { grid-column: 2; grid-row: 1; }
  .highlights { grid-template-columns: 1fr; }
  .highlights > div { grid-template-columns: minmax(104px, .8fr) 1fr; align-items: center; gap: 10px; padding: 11px 14px; }
  .highlights > div + div { border-top: 1px solid #adbf8a; border-left: 0; }
  .job { grid-template-columns: 1fr; gap: 12px; padding-block: 20px; }
  .skills-grid { grid-template-columns: 1fr; }
  .collaboration { align-items: flex-start; flex-direction: column; }
}

@page { size: A4; margin: 10mm; }
@media print {
  :root { --paper: #fff; --ink: #111; --muted: #222; --green: #333; }
  body { font-size: 9pt; line-height: 1.37; }
  .shell { width: 100%; }
  .site-header, .skip-link, .highlights, .stack, .collaboration, .site-footer { display: none; }
  .hero { position: relative; padding-block: 0 7px; padding-right: 82px; }
  .print-qr { display: block; position: absolute; inset: 0 0 auto auto; }
  .hero h1 { margin-top: 2px; font-size: 28pt; line-height: 1.2; }
  .headline { margin-top: 2px; font-size: 15pt; }
  .intro { max-width: none; margin-top: 5px; font-size: inherit; }
  .print-contact { display: block; margin-top: 3px; font-size: 8.5pt; }
  .date, .role, .eyebrow { font-size: 8pt; }
  .resume-section { padding-block: 4px; }
  .section-heading { gap: 0; margin-bottom: 5px; break-after: avoid; }
  .section-heading .eyebrow { display: none; }
  .section-heading h2 { font-size: 14pt; }
  .job { grid-template-columns: 118px minmax(0, 1fr); gap: 10px; padding-block: 3px; break-inside: avoid; }
  .job h3 { margin-top: 2px; font-size: 11pt; }
  .job-summary { margin-bottom: 3px; }
  .achievements { gap: 2px; }
  .skills-grid { display: block; break-inside: avoid; }
  .skills-grid > div { display: grid; grid-template-columns: 118px 1fr; gap: 10px; padding-block: 2px; }
  .skills-grid dd { margin: 0; }
}
