:root {
  color-scheme: light;
  --paper: #fff;
  --ink: #000;
  --secondary: var(--ink);
  --quiet: var(--ink);
  --rule: var(--ink);
  --accent: var(--ink);
  --accent-dark: var(--ink);
  --wrap: 1120px;
  font-family: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  font-size: 100%;
  -webkit-font-smoothing: antialiased;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.65; letter-spacing: .015em; }
a { color: inherit; text-underline-offset: .25em; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; border-radius: 3px; }
a:hover { color: var(--accent-dark); }
p, h1, h2, h3 { margin: 0; }
h1, h2, h3 { line-height: 1.28; word-break: keep-all; overflow-wrap: anywhere; }
img { display: block; max-width: 100%; height: auto; }
p, li, dd { overflow-wrap: anywhere; word-break: keep-all; }
.wrap { max-width: var(--wrap); width: calc(100% - 64px); margin-inline: auto; }
.skip-link { position: absolute; left: 1rem; top: 1rem; transform: translateY(-180%); z-index: 2; padding: 10px; background: white; }
.skip-link:focus { transform: none; }
.site-nav { border-bottom: 1px solid var(--rule); }
.nav-inner { min-height: 75px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.nav-inner a { text-decoration: none; }
.brand { justify-self: start; display: inline-flex; align-items: center; gap: 9px; font: 700 1.15rem/1.05 system-ui, sans-serif; letter-spacing: -.04em; }
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 7px; background: var(--accent); color: white; font-size: 1rem; }
.nav-inner nav { display: flex; align-items: center; gap: clamp(18px, 4vw, 43px); }
.nav-inner nav a { padding-block: 18px; color: var(--secondary); font-size: .9375rem; font-weight: 650; white-space: nowrap; }
.nav-inner nav a:hover, .nav-inner nav [aria-current] { color: var(--accent-dark); }
.nav-inner nav [aria-current] { text-decoration: underline; text-decoration-thickness: 2px; }
.github-link { justify-self: end; font: 650 .9rem/1.5 system-ui, sans-serif; }
.hero { padding: clamp(2.6rem, 6vw, 4.25rem) 0 clamp(2.8rem, 5vw, 3.75rem); }
.hero-specialty { color: var(--accent-dark); font-weight: 750; font-size: clamp(1rem, 2vw, 1.2rem); letter-spacing: 0; margin-bottom: .8rem; }
.hero h1 { font-size: clamp(3.6rem, 8vw, 6.25rem); letter-spacing: -.06em; line-height: 1.12; font-weight: 800; }
.hero-roman { font: italic 1.74rem/1.32 Georgia, "Times New Roman", serif; color: var(--quiet); margin-top: .65rem; }
.hero-intro { max-width: 48ch; color: var(--secondary); font-size: 1.12rem; margin-top: 1.3rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: 1.5rem; }
.action { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: .46rem .95rem; border: 1px solid var(--rule); background: white; color: var(--ink); font-size: .9rem; font-weight: 700; text-decoration: none; }
.action:hover { text-decoration: underline; }
.action-primary { background: var(--accent); border-color: var(--accent); color: white; }
.action-primary:hover { color: white; background: var(--accent-dark); }
.index-section { padding-bottom: 3.2rem; }
.index-heading { display: flex; align-items: baseline; gap: 1rem; justify-content: space-between; border-top: 2px solid var(--ink); padding: 1.1rem 0 .85rem; }
.index-heading h2 { font-size: clamp(1.65rem, 4vw, 2.17rem); letter-spacing: -.03em; }
.work-summary { border-top: 1px solid var(--rule); padding-top: 1.6rem; margin-top: 1rem; }
.work-summary h2 { font-size: .95rem; font-weight: 750; }
.work-summary dl { display: grid; gap: 2rem; margin: 1.4rem 0 0; font-size: .9rem; }
.work-summary dl > div { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: .6rem 1.2rem; }
.work-summary dt { font-weight: 700; }
.work-summary dd { margin: 0; }
#projects { border-top: 1px solid #00000040; padding-top: 1.6rem; }
#projects dd span { white-space: nowrap; }
.research-areas { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.research-areas li { display: grid; grid-template-columns: 10.5rem minmax(0, 1fr) auto; gap: .4rem 1.6rem; align-items: baseline; padding: 1.15rem 0; border-bottom: 1px solid #0000001f; }
.research-areas li:first-child { padding-top: 0; }
.research-areas li:last-child { border-bottom: 0; padding-bottom: 0; }
.research-areas strong { font-weight: 700; }
.research-areas strong .text-link { padding: 0; font-size: inherit; text-decoration: underline; text-underline-offset: .2em; }
.research-area-detail { line-height: 1.8; word-break: keep-all; }
.research-area-source { font-size: .78rem; white-space: nowrap; text-align: right; }
@media (max-width: 760px) {
  .tech-summary, .tech-body { grid-template-columns: minmax(0, 1fr); gap: .2rem; }
  .tech-summary dd, .tech-body dd { margin-bottom: .55rem; }
  .work-summary dl > div { grid-template-columns: minmax(0, 1fr); }
  .research-areas li { grid-template-columns: minmax(0, 1fr); }
  .research-area-source { text-align: left; white-space: normal; }
}
.text-link { color: var(--accent-dark); font-weight: 700; font-size: .9rem; }
.entry-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.entry { display: grid; grid-template-columns: 160px minmax(0, 1fr) 178px; column-gap: clamp(16px, 3.6vw, 44px); align-items: start; padding: 1.08rem 0 1.14rem; border-bottom: 1px solid var(--rule); }
.entry-meta, .entry-side { display: grid; gap: .22rem; align-content: start; padding-top: .12rem; }
.entry-meta { font-size: .91rem; font-weight: 730; }
.entry-meta span + span, .evidence-label { color: var(--quiet); font-size: .875rem; font-weight: 500; }
.entry-title { font-size: clamp(1.14rem, 2.3vw, 1.4rem); letter-spacing: -.015em; }
.entry-title[lang="en"] { letter-spacing: -.005em; }
.entry-title a { text-decoration-thickness: 1px; }
.entry-title a:hover { text-decoration-thickness: 2px; }
.entry-copy p { margin-top: .38rem; color: var(--secondary); font-size: .97rem; }
.entry-copy .entry-location { font-size: .875rem; }
.entry-preview { max-width: 30rem; margin: .85rem 0 0; }
.entry-preview a { display: inline-block; max-width: 100%; vertical-align: top; }
.entry-preview img { width: auto; max-height: 15rem; border: 1px solid var(--rule); }
.entry-preview figcaption { margin-top: .32rem; font-size: .8125rem; }
.research-proof { margin: 1rem 0 0; border: 1px solid var(--rule); }
.research-proof figcaption { padding: .56rem .82rem; color: var(--paper); background: var(--ink); font-size: .8125rem; font-weight: 700; }
.research-proof-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.research-proof-panel { display: flex; flex-direction: column; min-width: 0; padding: .78rem .82rem; }
.research-proof-panel + .research-proof-panel { border-left: 1px solid var(--rule); }
.research-proof h3 { font-size: .98rem; }
.research-proof .research-proof-panel p { margin: .45rem 0 .32rem; font-size: .875rem; }
.research-proof code { white-space: nowrap; }
.research-proof .text-link { font-size: .8125rem; }
.research-proof-panel > .text-link { align-self: start; margin-top: auto; }
.research-proof-feedback { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .28rem .85rem; padding: .6rem .82rem; border-top: 1px solid var(--rule); font-size: .875rem; }
.entry-date { font-variant-numeric: tabular-nums; }
.status { color: var(--accent-dark); font-size: .9rem; font-weight: 750; }
.entry-evidence { font-size: 1rem; font-weight: 780; color: var(--accent-dark); }
.page-heading { margin: 3.7rem 0 2.75rem; }
.page-heading h1, .document h1 { font-size: clamp(2.65rem, 7vw, 4.6rem); letter-spacing: -.055em; }
.page-heading p { margin-top: .7rem; color: var(--secondary); font-size: 1.1rem; }
.page-heading + .entry-list { margin-bottom: 4rem; }
.report { padding: 2.7rem 0 4.8rem; }
.report-head { max-width: 840px; padding-bottom: 2.2rem; }
.report-meta { margin: 1.55rem 0 .55rem; color: var(--accent-dark); font-size: .95rem; font-weight: 730; }
.report-head h1 { font-size: clamp(2.1rem, 5.5vw, 4rem); letter-spacing: -.04em; line-height: 1.2; }
.report-head h1[lang="en"] { letter-spacing: -.025em; }
.report-lead { color: var(--secondary); max-width: 56ch; margin-top: 1rem; font-size: 1.16rem; }
.report-grid { border-top: 1px solid var(--rule); display: grid; grid-template-columns: 150px minmax(0, 760px); gap: clamp(25px, 5vw, 64px); }
.report-nav { display: grid; gap: .68rem; align-content: start; position: sticky; top: 22px; align-self: start; padding-top: 1.75rem; font-size: .9rem; }
.report-nav p { font-weight: 750; color: var(--quiet); }
.report-nav a { color: var(--accent-dark); width: fit-content; }
.report-section { padding: 1.65rem 0; border-bottom: 1px solid var(--rule); scroll-margin-top: 20px; }
.report-section h2 { font-size: 1.38rem; letter-spacing: -.015em; margin-bottom: .65rem; }
.report-section p + p { margin-top: .65rem; }
.report-section blockquote { margin: 0; padding: .5rem 1rem; border-left: 3px solid var(--ink); }
.report-section .scope { border-left: 2px solid var(--ink); padding-left: .82rem; }
.project-stack { font-size: .875rem; }
.project-related { margin-top: 1.6rem; padding-top: 1.15rem; border-top: 1px solid var(--rule); scroll-margin-top: 20px; }
.project-related > h3 { font-size: 1.12rem; margin-bottom: .5rem; }
.metadata-list { display: grid; grid-template-columns: max-content 1fr; gap: .55rem 1.15rem; margin: 0 0 .65rem; }
.metadata-list dt { color: var(--quiet); }
.metadata-list dd { margin: 0; }
.evidence-grid { display: flex; flex-wrap: wrap; gap: .65rem; margin: .85rem 0 1.15rem; }
.evidence-grid:has(> :nth-child(3)) { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12.5rem), 1fr)); }
.evidence-grid > div { display: grid; gap: .18rem; border: 1px solid var(--rule); padding: .58rem .85rem; }
.evidence-grid strong { color: var(--accent-dark); font-size: 1.1rem; }
.evidence-grid span { color: var(--secondary); font-size: .875rem; }
.flow { display: grid; grid-template-columns: repeat(var(--steps, 3), minmax(0, 1fr)); gap: .6rem; list-style: none; padding: 0; margin: 1.2rem 0 0; }
.flow strong { display: flex; align-items: baseline; gap: .45rem; }
.flow .flow-number { font-size: .8rem; font-weight: 700; color: var(--quiet); }
.flow + .entry-preview, .flow + .research-proof { margin-top: 1.4rem; }
.flow li { display: grid; align-content: start; gap: .25rem; border: 1px solid var(--rule); border-top-width: 2px; padding: .7rem .82rem; }
.flow span { color: var(--quiet); font-size: .9rem; }
.document { max-width: 760px; margin: 3rem auto 4rem; }
.document-head { border-top: 3px solid var(--ink); border-bottom: 1px solid var(--rule); padding: 1.5rem 0 1.35rem; margin-bottom: 1.2rem; }
.document-label { font-weight: 750; color: var(--accent-dark); margin-bottom: .45rem; }
.document h1 span { display: inline-block; margin-left: .2em; font: italic .43em/1.25 Georgia, serif; letter-spacing: 0; color: var(--quiet); }
.document-subtitle { color: var(--secondary); margin-top: .45rem; }
.document-records { list-style: none; padding: 0; margin: 0; }
.document-records li { display: grid; grid-template-columns: minmax(8rem, .31fr) minmax(0, 1fr); gap: .75rem; padding: .48rem 0; break-inside: avoid; }
.record-date { font-variant-numeric: tabular-nums; font-size: .9em; }
.document-records li p { margin-top: .12rem; font-size: .91em; }
.record-evidence { display: inline-block; margin-top: .25rem; }
.award-evidence { max-width: 28rem; margin: 0; }
.award-evidence a { display: block; }
.award-evidence img { width: 100%; border: 1px solid var(--rule); }
.award-evidence figcaption { margin-top: .55rem; font-size: .875rem; }
.tech-profile .report-section { padding: 2.2rem 0; }
.resume .report-section { padding: 2rem 0; }
.resume .report-section h2 { margin-bottom: .9rem; }
.resume .document-records li { gap: 1.2rem; padding: .7rem 0; }
.resume .document-records li p { margin-top: .3rem; line-height: 1.7; }
.resume .record-evidence { display: inline-block; margin-top: .35rem; }
.tech-profile .report-section h2 { margin-bottom: .85rem; }
.tech-profile .scope { margin-top: 1.15rem; }
.tech-summary { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 1rem 1.6rem; margin: .4rem 0 0; }
.tech-summary dt { font-weight: 750; }
.tech-summary dd { margin: 0; line-height: 1.8; }
.tech-meta { font-size: .875rem; font-weight: 650; margin: -.15rem 0 1.25rem; }
.tech-body { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); gap: 1.15rem 1.2rem; margin: 0; }
.tech-body dt { font-weight: 750; font-size: .9rem; padding-top: .1rem; }
.tech-body dd { margin: 0; }
.tech-body ul { margin: 0; padding-left: 1.05rem; display: grid; gap: .5rem; line-height: 1.75; }
.tech-body p { line-height: 1.8; }
.tech-stack { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1rem; font-size: .82rem; margin-top: 1.4rem; padding-top: .8rem; border-top: 1px solid #0000001f; }
.tech-stack a { font-weight: 700; text-decoration: underline; text-underline-offset: .2em; white-space: nowrap; }
.document-footer { display: flex; flex-wrap: wrap; gap: 1rem; font-size: .9rem; margin-top: 1.05rem; color: var(--accent-dark); }
.site-footer { border-top: 1px solid var(--rule); padding: 1.15rem 0 1.35rem; color: var(--quiet); font-size: .875rem; }
.footer-inner, .footer-inner > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .55rem 1.15rem; }
.footer-inner span[lang="en"] { margin-left: .18rem; }

@media (max-width: 850px) {
  .entry { grid-template-columns: 125px minmax(0, 1fr) 136px; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 36px); }
  .nav-inner { min-height: 64px; gap: 12px 16px; grid-template-columns: 1fr auto; }
  .nav-inner nav { gap: clamp(12px, 4vw, 24px); justify-self: end; }
  .nav-inner .github-link { display: none; }
  .hero-intro { font-size: 1.04rem; margin-top: 1rem; }
  .hero-roman { font-size: 1.48rem; }
  .entry { grid-template-columns: minmax(0, 1fr); gap: .36rem; padding: .92rem 0; }
  .entry-meta, .entry-side { display: flex; flex-wrap: wrap; gap: .2rem .65rem; align-items: baseline; padding: 0; }
  .entry-meta:has(.entry-date) { display: grid; gap: .1rem; }
  .entry-copy p { font-size: .95rem; }
  .research-proof-grid { grid-template-columns: 1fr; }
  .research-proof-panel + .research-proof-panel { border-top: 1px solid var(--rule); border-left: 0; }
  .index-section { padding-bottom: 2.5rem; }
  .report { padding: 1.75rem 0 3rem; }
  .report-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .report-nav { display: flex; flex-wrap: wrap; gap: .35rem 1rem; position: static; padding: .9rem 0; border-bottom: 1px solid var(--rule); }
  .report-nav p { flex-basis: 100%; }
  .flow { grid-template-columns: minmax(0, 1fr); }
  .flow li { border-top: 0; border-left: 2px solid var(--accent); }
  .document-records li { grid-template-columns: minmax(0, 1fr); gap: .08rem; }
  .page-heading { margin: 2.6rem 0 1.9rem; }
}

@page { size: A4; margin: 17mm 17mm 15mm; }
@media print {
  .document .resume .report-section { padding: 3.2mm 0; }
  .document .report-section h2 { break-after: avoid; page-break-after: avoid; }
  .document .report-section h2 + * { break-before: avoid; }
  .document .resume .report-section h2 { margin-bottom: 2.5mm; }
  .resume .compact-records li { padding: .9mm 0; gap: 4mm; }
  .resume #certifications .document-records { display: grid; grid-template-columns: 1fr 1fr; column-gap: 8mm; }
  .resume #certifications .compact-records li { padding: .6mm 0; grid-template-columns: 22mm minmax(0, 1fr); }
  .resume #skills { break-inside: avoid; }
  .resume .document-records li p { margin-top: .8mm; line-height: 1.55; }
  .resume .report-section { break-inside: auto; }
  .document .tech-profile .scope { margin-top: 2mm; }
  .tech-summary { grid-template-columns: 46mm minmax(0, 1fr); gap: 2.6mm 5mm; }
  .tech-body { grid-template-columns: 12mm minmax(0, 1fr); gap: 2.4mm 4mm; }
  .tech-body ul { gap: 1.1mm; }
  .tech-meta { margin: -.5mm 0 3.5mm; }
  .document .tech-profile .report-section { padding: 4.6mm 0; }
  .document .tech-profile .report-section h2 { margin-bottom: 2.5mm; }
  .document .report-section.tech-case, .document #sketchsense, .document #image-generation, .document #chesslens, .document #shared-brain, .document #reading-assistant { break-inside: avoid; }
  .tech-stack { margin-top: 4mm; padding-top: 2.2mm; }
  body.printable { background: white; color: black; font-size: 10.5pt; line-height: 1.5; }
  .printable .site-nav, .printable .site-footer, .printable .skip-link, .printable .actions, .printable .record-evidence { display: none; }
  .printable .wrap { max-width: none; width: auto; margin: 0; }
  .document { max-width: none; margin: 0; }
  .document-head { padding: 9mm 0 5mm; margin-bottom: 5mm; }
  .document h1 { font-size: 29pt; }
  .document .report-section { padding: 2.8mm 0; }
  .document .report-section h2 { font-size: 13pt; margin-bottom: 2mm; }
  .document .report-section p + p { margin-top: 1.5mm; }
  .compact-records li { grid-template-columns: 34mm minmax(0, 1fr); gap: 3mm; padding: .75mm 0; }
  .document-continuation { break-before: page; }
  .document-footer { font-size: 9pt; margin-top: 3mm; }
}
