:root {
  color-scheme: light;
  --canvas: #f5f7fa;
  --paper: #fff;
  --ink: #10243e;
  --muted: #43566e;
  --accent: #155e68;
  --rule: #cfd9e3;
  --sans: "Avenir Next", Inter, system-ui, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 1rem/1.6 var(--sans); }
a { color: var(--accent); text-underline-offset: 0.25em; }
:focus-visible { outline: 3px solid #147783; outline-offset: 4px; }
.wrap { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
header { border-bottom: 1px solid var(--rule); background: var(--paper); }
.nav { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; }
.brand { font-size: 1rem; font-weight: 750; color: var(--ink); white-space: nowrap; text-decoration: none; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 26px; }
nav a { font-size: .9rem; font-weight: 650; color: var(--muted); text-decoration: none; padding-block: 8px; }
nav a:hover, .brand:hover { text-decoration: underline; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 245px; gap: clamp(32px, 7vw, 106px); align-items: center; padding-block: clamp(56px, 8vw, 108px) clamp(48px, 7vw, 84px); }
.eyebrow, .meta { font-size: .875rem; color: var(--muted); font-weight: 650; }
.eyebrow { letter-spacing: .09em; text-transform: uppercase; color: var(--accent); }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 650; letter-spacing: -.035em; line-height: 1.04; }
h1 { font-size: clamp(2.85rem, 6.4vw, 5.45rem); margin-block: 12px 10px; }
.role { color: var(--ink); font-size: clamp(1.23rem, 2.25vw, 1.69rem); font-weight: 700; line-height: 1.25; }
.focus-line { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; margin-block: 14px 16px; }
.focus-label { font-size: .875rem; font-weight: 700; color: var(--muted); }
.focus { display: grid; color: var(--accent); font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: clamp(.94rem, 1.65vw, 1.12rem); font-weight: 650; min-width: 0; }
.focus span { grid-area: 1 / 1; transition: opacity .23s ease, transform .23s ease; }
.focus span:not(.active) { opacity: 0; transform: translateY(4px); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.motion { padding: 4px 9px; min-height: 31px; border: 1px solid var(--rule); border-radius: 5px; background: transparent; color: var(--muted); cursor: pointer; font: 650 .875rem var(--sans); }
.intro { color: var(--muted); font-size: 1.05rem; max-width: 57ch; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 26px; }
.button { display: inline-block; padding: 10px 17px; border: 1px solid var(--ink); border-radius: 6px; font-weight: 700; text-decoration: none; }
.primary { background: var(--ink); color: white; }
.primary:hover { background: #244764; }
.secondary { color: var(--ink); border-color: #9cabbc; }
.secondary:hover { background: #e8eef4; }
.portrait { margin: 0; padding: 10px; border: 1px solid var(--rule); border-radius: 14px; background: white; }
.portrait img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 42%; display: block; border-radius: 8px; }
.portrait figcaption { padding: 10px 4px 1px; font-weight: 650; font-size: .875rem; color: var(--muted); }
.summary { background: var(--ink); color: white; }
.summary .wrap { display: grid; grid-template-columns: repeat(3, 1fr); }
.summary dl { margin: 0; padding: 18px 24px; }
.summary dl:first-child { padding-left: 0; }
.summary dl + dl { border-left: 1px solid #51647c; }
.summary dt { color: #c1d4e7; font-weight: 600; font-size: .875rem; }
.summary dd { margin: 1px 0 0; font-size: 1rem; font-weight: 650; }
.section { padding-block: clamp(42px, 7vw, 86px); }
h2 { font-size: clamp(2rem, 4vw, 3.35rem); margin-bottom: 24px; }
h3 { font-size: 1.2rem; line-height: 1.25; margin-block: 4px 6px; }
.work { border-top: 1px solid var(--rule); }
.work article { display: grid; grid-template-columns: minmax(185px, .95fr) minmax(0, 2.25fr); gap: 12px 32px; align-items: start; padding: 25px 0; border-bottom: 1px solid var(--rule); }
.work article p { color: var(--muted); max-width: 68ch; }
.work .detail { display: inline-block; margin-top: 10px; font-weight: 700; }
.work .skills { display: flex; gap: 5px 18px; flex-wrap: wrap; padding: 0; margin: 8px 0 0; list-style: none; color: var(--accent); font-size: .875rem; font-weight: 650; }
footer { border-top: 1px solid var(--rule); background: var(--paper); }
footer .wrap { padding-block: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; align-items: baseline; }
footer a { margin-right: 16px; font-weight: 650; }
@media (max-width: 740px) {
  .wrap { width: calc(100% - 36px); }
  .nav { padding-block: 10px; min-height: auto; gap: 4px 16px; }
  nav { gap: 5px 18px; }
  .hero { grid-template-columns: 1fr; gap: 28px; }
  .portrait { width: min(150px, 100%); }
  .summary .wrap { grid-template-columns: 1fr; }
  .summary dl { padding: 10px 0; }
  .summary dl + dl { border-left: 0; border-top: 1px solid #51647c; }
  .work article { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .focus span { transition: none; } }
html[lang="ko"] {
  --sans: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --serif: var(--sans);
}
html[lang="ko"] h1, html[lang="ko"] h2 { letter-spacing: -.055em; }
html[lang="ko"] .focus { font-family: var(--sans); }
html[lang="ko"] .intro, html[lang="ko"] .work { word-break: keep-all; overflow-wrap: anywhere; }
.role { text-wrap: balance; }
.work .skills { padding-top: 4px; }
.cv { max-width: 850px; margin-inline: auto; padding-block: 46px 70px; }
.cv h1 { font: 700 clamp(2rem, 6vw, 3.3rem)/1.14 var(--sans); }
.cv h2 { font: 700 1.18rem/1.25 var(--sans); margin: 25px 0 9px; border-bottom: 1px solid var(--rule); padding-bottom: 5px; }
.cv h3 { font-size: 1rem; margin-block: 12px 2px; }
.cv ul { padding-left: 1.2em; margin: 5px 0 10px; }
.cv .meta { margin-block: 4px; }
.cv .summary-copy { margin-block: 13px; }
.cv .button { cursor: pointer; font: inherit; font-weight: 700; }
@page { margin: 15mm; }
@media print {
  header, footer, .cv .actions { display: none; }
  .cv { --sans: Arial, Helvetica, sans-serif; width: 100%; max-width: none; padding: 0; }
  html[lang="ko"] .cv { --sans: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; }
  body { background: white; color: #171717; }
  .cv h1 { font-size: 20pt; }
  .cv h2 { font-size: 12pt; margin-top: 15px; }
  .cv h3 { font-size: 11pt; }
  .cv, .cv .meta { font-size: 10.5pt; line-height: 1.45; }
  .cv h2, .cv h3 { break-after: avoid; }
}

.work-copy p + p { margin-top: 8px; }
