@font-face { font-family: Inter; src: url('../assets/fonts/Inter-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
:root { color-scheme: light; --paper: #fff; --ink: #111; --muted: #646464; --line: #e8e8e8; }
* { box-sizing: border-box; }
html { background: var(--paper); scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 400 16px/1.6 Inter, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
::selection { background: var(--ink); color: var(--paper); }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 5px; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }
h1, h2, h3, p { margin: 0; overflow-wrap: anywhere; }
h1, h2, h3 { font-weight: 400; }
img { display: block; max-width: 100%; height: auto; }
main:focus { outline: none; }
.skip-link { position: fixed; z-index: 10; left: 16px; top: -100px; padding: 12px 20px; background: var(--ink); color: #fff; }
.skip-link:focus { top: 16px; }
.blog-header, main, .blog-footer { width: min(100% - 48px, 760px); margin-inline: auto; }
.blog-header { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.identity { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-size: 14px; }
.identity img { width: 32px; height: 32px; }
.back-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; }
.blog-intro { padding-block: 76px 72px; }
.eyebrow { color: var(--muted); font-size: 13px; line-height: 1.5; }
.blog-intro h1 { margin-top: 16px; font-size: clamp(48px, 5vw, 64px); line-height: 1.08; }
.intro-copy { max-width: 460px; margin-top: 24px; font-size: 18px; line-height: 1.6; color: var(--muted); }
.year-group { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 24px; }
.year-group + .year-group { margin-top: 56px; }
.year-label { font-size: 13px; line-height: 1.5; padding-top: 28px; color: var(--muted); }
.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li { border-top: 1px solid var(--line); }
.post-list li:last-child { border-bottom: 1px solid var(--line); }
.post-link { display: block; padding-block: 26px 28px; }
.post-link:hover { text-decoration: none; }
.post-link h3 { position: relative; padding-right: 28px; font-size: 23px; line-height: 1.35; }
.post-link:hover h3 { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.post-arrow { position: absolute; right: 0; top: 0; font-size: 18px; transition: transform 260ms ease; }
.post-link:hover .post-arrow { transform: translate(3px, -3px); }
.post-link p { margin-top: 12px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.post-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.blog-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; margin-top: 100px; padding-block: 24px 32px; font-size: 13px; color: var(--muted); }
.blog-footer nav { display: flex; gap: 24px; }
.blog-footer a { display: inline-flex; min-height: 44px; align-items: center; gap: 8px; }
.post-heading { padding-block: 64px 48px; border-bottom: 1px solid var(--line); }
.post-heading h1 { margin-top: 20px; font-size: clamp(32px, 4vw, 48px); line-height: 1.15; }
.post-deck { margin-top: 24px; color: var(--muted); font-size: 19px; line-height: 1.6; }
.prose { max-width: 68ch; padding-top: 48px; font-size: 18px; line-height: 1.8; }
.prose p + p { margin-top: 1.4em; }
.source-note { margin-top: 48px; font-size: 13px; color: var(--muted); }
.post-navigation { display: flex; justify-content: space-between; gap: 32px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.post-navigation a { display: block; max-width: 50%; min-height: 44px; font-size: 15px; }
.post-navigation .eyebrow { display: block; margin-bottom: 8px; }
.empty-state { padding-block: 32px; border-top: 1px solid var(--line); color: var(--muted); }
@media (max-width: 600px) {
  .blog-header, main, .blog-footer { width: calc(100% - 40px); }
  .blog-header { min-height: 76px; gap: 12px; }
  .identity { font-size: 12px; gap: 8px; }
  .back-link { font-size: 13px; gap: 6px; }
  .blog-intro { padding-block: 44px 48px; }
  .year-group { display: block; }
  .year-label { padding-top: 0; margin-bottom: 20px; }
  .post-link h3 { font-size: 21px; }
  .post-link { padding-block: 24px; }
  .post-heading { padding-block: 44px 32px; }
  .post-deck { font-size: 17px; }
  .prose { font-size: 17px; padding-top: 32px; }
  .post-navigation { flex-direction: column; }
  .post-navigation a { max-width: 100%; }
  .blog-footer { margin-top: 64px; }
}
@media (prefers-reduced-motion: no-preference) {
  .blog-intro, .post-heading { animation: appear 650ms cubic-bezier(.22,1,.36,1) both; }
  @keyframes appear { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .blog-header, .blog-footer, .post-navigation, .skip-link { display: none; }
  main { width: 100%; }
  .post-heading { padding-top: 0; }
}

/* Same compact, native language control as the portfolio. */
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.header-actions { display: flex; align-items: center; gap: 24px; }
.language { position: relative; display: flex; align-items: center; }
.language select { appearance: none; -webkit-appearance: none; border: 0; border-radius: 0; background: transparent; color: var(--ink); min-height: 44px; width: 7rem; padding: 0.5rem 1rem 0.5rem 0; font: inherit; font-size: 13px; }
.language select:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.language > span { position: absolute; right: 0; pointer-events: none; font-size: 13px; }
html:lang(ko) .prose { word-break: keep-all; }
@media (max-width: 600px) {
  .blog-header { flex-wrap: wrap; padding-block: 16px; gap: 4px; }
  .header-actions { width: 100%; justify-content: space-between; gap: 16px; }
}

/* Long-form articles retain the white reading column. Wide data scrolls locally. */
.prose > * + * { margin-top: 1.4em; }
.prose > h2 { margin-top: 3rem; font-size: clamp(25px, 3vw, 32px); line-height: 1.25; letter-spacing: -0.02em; scroll-margin-top: 24px; }
.prose > h3 { margin-top: 2.4rem; font-size: 22px; line-height: 1.35; scroll-margin-top: 24px; }
.prose > :first-child { margin-top: 0; }
.prose a { text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: 0.8em; }
.prose blockquote { margin-inline: 0; padding-left: 1.2em; border-left: 2px solid var(--ink); }
.prose pre, .table-scroll { max-width: 100%; overflow-x: auto; border-block: 1px solid var(--line); }
.prose pre { padding: 24px 0; font: 13px/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; tab-size: 4; }
.prose pre code { font: inherit; }
.prose pre:focus-visible, .table-scroll:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.prose table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; line-height: 1.6; }
.prose th, .prose td { min-width: 8rem; padding: 16px 16px 16px 0; vertical-align: top; }
.prose th { color: var(--muted); font-weight: 400; }
.prose tr + tr, .prose tbody { border-top: 1px solid var(--line); }
.prose th:last-child, .prose td:last-child { padding-right: 0; }
@media print {
  .prose pre { white-space: pre-wrap; font-size: 9px; }
  .table-scroll { overflow: visible; }
  .prose th, .prose td { min-width: 0; font-size: 10px; }
}

/* Inline code, IEEE citations, the reference list and the table of contents. */
.prose :not(pre) > code { padding: 0.1em 0.3em; border-radius: 4px; background: #f3f3f3; font: 0.86em/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; }
.prose a.cite { color: var(--muted); font-size: 0.88em; text-decoration: none; white-space: nowrap; }
.prose a.cite:hover, .prose a.cite:focus-visible { color: var(--ink); text-decoration: underline; }
.prose .references { padding: 0; list-style: none; font-size: 15px; line-height: 1.6; }
.prose .references > li { display: grid; grid-template-columns: 3.4em minmax(0, 1fr); scroll-margin-top: 24px; }
.prose .references > li + li { margin-top: 0.75em; }
.prose .references > li:target { background: #f6f6f6; }
.prose .ref-number { color: var(--muted); font-variant-numeric: tabular-nums; }
.prose .ref-text { overflow-wrap: anywhere; }
.prose .ref-back { margin-left: 0.3em; color: var(--muted); text-decoration: none; }
.prose .ref-notes { grid-column: 2; margin: 0.4em 0 0; padding-left: 1.1em; list-style: disc; color: var(--muted); font-size: 14px; line-height: 1.55; }
.prose .ref-notes li + li { margin-top: 0.3em; }
.prose .toc { padding-bottom: 24px; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.6; }
.prose .toc-title { color: var(--muted); font-size: 13px; }
.prose .toc ol { margin: 12px 0 0; padding: 0; list-style: none; }
.prose .toc ol ol { margin: 6px 0 4px; padding-left: 1.2em; }
.prose .toc li + li { margin-top: 0.4em; }
.prose .toc a { text-decoration: none; }
.prose .toc a:hover, .prose .toc a:focus-visible { text-decoration: underline; }
@media (max-width: 600px) {
  .prose .references { font-size: 14px; }
  .prose .references > li { grid-template-columns: 3em minmax(0, 1fr); }
}
@media print {
  .prose .toc { display: none; }
  .prose .ref-back { display: none; }
}
