/* Pretendard v1.3.9, self-hosted under SIL OFL 1.1; see assets/fonts/Pretendard-LICENSE.txt. */
@font-face {
  font-family: 'Pretendard Variable';
  src: url('./assets/fonts/PretendardVariable-v1.3.9.woff2') format('woff2');
  font-style: normal;
  font-weight: 45 920;
  font-display: swap;
}

/* Shared theme and native controls. */
:root {
  color-scheme: light;
  --bg: #f8f9fc; --surface: #fff; --ink: #14151a; --muted: #6c6f79;
  --line: #dedfe7; --soft: #eff1f7; --accent: #356bff;
  --accent-ink: #fff; --accent-soft: #e9eeff; --link-ink: #2857d5;
  --code-bg: #f5f7fb; --code-ink: #253248; --code-line: #dfe5ef;
  --syntax-comment: #627084; --syntax-keyword: #7940a6; --syntax-string: #176b49;
  --syntax-number: #96531c; --syntax-function: #225caa; --syntax-property: #85531e;
  --font: 'Pretendard Variable', ui-sans-serif, system-ui, -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
}
:root[data-theme=dark] {
  color-scheme: dark;
  --bg: #101116; --surface: #1b1d25; --ink: #f8f9fc; --muted: #a9adba;
  --line: #363945; --soft: #252834; --accent: #9cb8ff;
  --accent-ink: #101116; --accent-soft: #273552; --link-ink: #9cb8ff;
  --code-bg: #151b26; --code-ink: #dce5f2; --code-line: #303c50;
  --syntax-comment: #9caac0; --syntax-keyword: #c7a5ef; --syntax-string: #a1d4b0;
  --syntax-number: #efbc87; --syntax-function: #94bfff; --syntax-property: #e4c691;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body:not(.editor-body) { display: flex; flex-direction: column; min-height: 100dvh; }
#main { flex: 1; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; transition: background-color .2s, color .2s; }
button, input, select, textarea { font: inherit; color: inherit; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { opacity: .5; cursor: not-allowed; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 600; letter-spacing: -.025em; overflow-wrap: anywhere; }
:root:lang(ko) :is(.prose, .hero-description, .post-excerpt, .article-toc a) { word-break: keep-all; overflow-wrap: anywhere; }
::selection { background: var(--accent); color: var(--accent-ink); }
[hidden] { display: none !important; }
.wrap { width: 90%; max-width: 860px; margin: 0 auto; }
.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; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 100; padding: 10px 18px; border-radius: 8px; background: var(--ink); color: var(--bg); }
.skip-link:focus { top: 10px; }
.icon { display: inline-block; vertical-align: middle; flex-shrink: 0; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
button, input, select, textarea { outline-offset: 3px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 12px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-size: 16px; font-weight: 500; }
.button:hover, .icon-button:hover { border-color: var(--accent); }
.button-dark { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.button-dark:hover { background: var(--accent); color: var(--accent-ink); }
.button-small { padding: 10px 14px; font-size: 13px; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; flex-shrink: 0; border: 0; border-radius: 8px; background: transparent; }
.icon-button .icon { width: 22px; height: 22px; }
.text-link { display: inline-flex; align-items: center; gap: 16px; min-height: 44px; font-size: 17px; font-weight: 500; }
.text-link:hover, .post-card h3 a:hover { color: var(--accent); }
.eyebrow { font-size: 10px; letter-spacing: 1px; }
.tiny-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.muted { color: var(--muted); }

/* Plain navigation and instant language selection. */
.site-header { position: relative; z-index: 20; display: flex; align-items: center; gap: 20px; min-height: 80px; padding: 18px 0; border-bottom: 1px solid var(--line); background: var(--bg); }
.brand-group { display: flex; align-items: center; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 24px; font-weight: 600; letter-spacing: -.035em; white-space: nowrap; }
.brand-mark { font-size: 24px; }
.site-header .brand { font-size: 20px; }
.site-header nav { display: flex; justify-content: center; gap: 32px; margin: auto; }
.site-header nav > a { position: relative; padding: 9px 0; font-size: 15px; color: var(--muted); }
.site-header nav a[aria-current=page] { color: var(--accent); }
.site-header nav a[aria-current=page]::after { content: ''; position: absolute; left: 0; right: 0; bottom: 3px; height: 2px; border-radius: 2px; background: currentColor; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.editor-avatar span { display: grid; place-items: center; width: 40px; height: 40px; font-size: 17px; }
.menu-toggle, .mobile-nav { display: none; }
.language-switch { display: flex; align-items: center; width: 88px; min-height: 44px; white-space: nowrap; }
.language-switch button { width: 44px; min-height: 44px; padding: 0; border: 0; background: transparent; font-size: 12px; font-weight: 500; color: var(--muted); }
.language-switch button[aria-pressed=true] { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; }
.nav-github .icon { width: 14px; height: 14px; margin-left: 3px; }

/* Home: content leads, surfaces have a single quiet border. */
.hero { padding: 36px 0 28px; }
.hero.has-image { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); column-gap: 24px; align-items: center; }
.hero-copy { grid-column: 1/span 8; grid-row: 1; min-width: 0; }
.hero h1 { font-size: 30px; line-height: 1.2; }
.hero h1, .hero-description { white-space: pre-line; }
.hero-description { margin-top: 12px; font-size: 17px; line-height: 1.45; color: var(--muted); }
.hero-description:empty { display: none; }
.hero-start { gap: 8px; margin-top: 4px; color: var(--link-ink); font-size: 15px; }
.hero-start:hover { color: var(--link-ink); text-decoration: underline; text-underline-offset: 4px; }
.hero-start .icon { width: 16px; height: 16px; }
.hero-art { grid-column: 10/span 3; grid-row: 1; min-width: 0; }
.hero-art img { width: 100%; max-height: 160px; object-fit: contain; aspect-ratio: 4/3; }
.search-area { margin-top: 20px; max-width: 380px; }
.search-box { display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.search-box:focus-within { border-color: var(--accent); }
.search-box > .icon { width: 18px; height: 18px; color: var(--muted); }
.search-box input { width: 100%; min-width: 0; flex: 1; height: 100%; border: 0; outline: none; background: transparent; font-size: 16px; }
.search-box input::placeholder { color: var(--muted); }
.search-count { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 16px; white-space: nowrap; }
.search-clear { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border: 0; border-radius: 50%; background: var(--soft); color: var(--muted); }
.search-clear:hover { color: var(--accent); }
.search-caption { margin: 10px 0 0 20px; font-size: 13px; line-height: 1.6; color: var(--muted); }
.browse { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 24px; margin: 12px 0 32px; }
.browse h2 { font-size: 14px; font-weight: 500; }
.topic-list { display: flex; flex-wrap: wrap; gap: 10px; }
.topic { min-height: 44px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 99px; background: transparent; font-size: 14px; }
.topic:hover, .topic.selected { border-color: var(--accent); color: var(--accent); }
.topic.selected { background: var(--accent-soft); }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 20px; }
.section-heading h2 { font-size: 16px; font-weight: 500; }
#post-count { display: none; }
/* Text-first feed: covers are optional, never placeholders. */
.post-list { border-top: 1px solid var(--line); }
.post-card { display: grid; grid-template-columns: minmax(0,1fr); align-items: center; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.post-card:has(.post-image) { grid-template-columns: minmax(0,1fr) auto; }
.post-copy { min-width: 0; }
.post-card h3 { font-size: 22px; line-height: 1.4; }
.post-card h3 a { display: block; min-height: 44px; padding: 6px 0; }
.post-excerpt { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin-top: 4px; font-size: 15px; line-height: 1.7; color: var(--muted); }
.post-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.post-feature-label { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: 99px; background: var(--accent-soft); font-size: 12px; color: var(--accent); }
.post-feature-label .icon { width: 14px; height: 14px; }
.post-image { display: block; width: 120px; height: 90px; overflow: hidden; border-radius: 8px; background: var(--soft); }
.post-image img { width: 100%; height: 100%; object-fit: cover; }
.copy-card { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; min-height: 44px; padding: 8px; border: 0; border-radius: 8px; background: transparent; font-size: 12px; color: var(--muted); }
.copy-card .icon { width: 16px; height: 16px; }
.copy-card:hover { color: var(--accent); }
.empty-feature { padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.empty-feature h3 { font-size: 15px; font-weight: 400; color: var(--muted); }
.round-arrow { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; flex-shrink: 0; border: 1px solid var(--line); border-radius: 50%; }
.round-arrow .icon { width: 23px; height: 23px; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tag { padding: 5px 12px; border-radius: 99px; background: var(--soft); font-size: 13px; color: var(--muted); }
.end-note { display: flex; justify-content: center; padding-top: 40px; }
.empty-state { padding: 40px 24px; text-align: center; border: 1px dashed var(--line); border-radius: 12px; }
.empty-state h3 { font-size: 24px; line-height: 1.5; }
.empty-state p { margin: 16px 0 24px; color: var(--muted); }
.about-strip { margin: 32px 0; }
.about-strip.has-image { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); align-items: center; gap: 32px; }
.about-strip > .about-image { grid-column: 1/span 5; }
.about-strip > .about-strip-copy { grid-column: 7/span 5; }
.about-image img { width: 100%; max-height: 400px; object-fit: contain; }
.about-strip h2 { margin-bottom: 16px; font-size: 32px; line-height: 1.3; }
.about-strip p { margin-bottom: 20px; font-size: 20px; color: var(--muted); }
#footer { margin-top: 32px; }
.footer-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 18px; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; }
.footer-nav .icon { width: 18px; height: 18px; }
.footer-nav a:hover { color: var(--accent); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 16px 0 20px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }

/* Images, reader pages and Markdown. */
.image-placeholder { position: relative; display: grid; place-items: center; width: 100%; height: 100%; min-height: 160px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); color: var(--muted); }
.placeholder-center { display: flex; flex-direction: column; align-items: center; gap: 12px; font-size: 13px; }
.placeholder-center > .icon { width: 30px; height: 30px; opacity: .6; }
.image-placeholder-hero { width: min(100%,260px); height: auto; min-height: 0; aspect-ratio: 4/3; margin: auto; }
.about-image > .image-placeholder, .about-art > .image-placeholder { max-width: 260px; height: auto; min-height: 0; aspect-ratio: 4/3; margin: auto; }
.image-placeholder:has(.site-image-actions) .placeholder-center { transform: translateY(-24px); }
.site-image-actions { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.site-image-actions button { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-size: 12px; }
.site-image-actions button:hover { border-color: var(--accent); }
.site-image-actions .icon { width: 14px; height: 14px; }
.image-frame { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.image-zoom { position: relative; display: block; width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.image-zoom img { width: 100%; }
.zoom-hint { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); }
.image-viewer { max-width: calc(100vw - 32px); max-height: calc(100dvh - 48px); padding: 0; overflow: visible; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink); }
.image-viewer::backdrop { background: #10111699; }
.image-viewer > img { max-width: calc(100vw - 48px); max-height: calc(100dvh - 80px); min-width: 120px; object-fit: contain; border-radius: 16px; }
.image-viewer-close { position: absolute; top: 12px; right: 12px; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); font-size: 27px; line-height: 1; }
.about-page { padding: 36px 0 40px; }
.about-page.has-image { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: center; gap: 32px; }
.about-page > div { min-width: 0; }
.about-page h1 { margin-bottom: 20px; font-size: 48px; line-height: 1.25; }
.about-role { font-size: 24px; color: var(--muted); }
.about-page .prose { margin-top: 24px; }
.about-page .prose:empty { display: none; }
.about-art img { width: 100%; max-height: 50vh; object-fit: contain; }
.about-edit { display: inline-block; margin: 24px 0; font-size: 16px; color: var(--muted); }
.missing-article { margin: 40px 0 80px; }
.article-page { max-width: 680px; margin: auto; padding: 24px 0 48px; }
.back-link { font-size: 16px; color: var(--muted); }
.article-header { margin: 20px 0 28px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.article-header h1 { margin: 0 0 14px; font-size: 36px; line-height: 1.3; }
.article-header > p { font-size: 17px; line-height: 1.7; color: var(--muted); }
.article-byline { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; margin-top: 14px; font-size: 13px; color: var(--muted); }
.article-byline strong { font-size: 14px; font-weight: 500; color: var(--ink); }
.article-byline .copy-card { margin-left: auto; }
.article-cover img { width: 100%; max-height: 280px; object-fit: contain; }
.article-toc { margin-bottom: 24px; padding: 0 16px; border: 1px solid var(--line); border-radius: 8px; }
.article-toc summary { min-height: 44px; padding: 10px 0; font-weight: 600; cursor: pointer; }
.article-toc summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.article-toc ul { margin: 0 0 12px; padding-left: 1.25em; }
.article-toc a { display: block; min-height: 44px; padding: 10px 0; overflow-wrap: anywhere; }
.article-toc a:hover, .article-toc a:focus-visible { color: var(--link-ink); text-decoration: underline; text-underline-offset: 4px; }
.article-body { margin: 28px 0; }
.article-body [id] { scroll-margin-top: 24px; }
.article-body > * + * { margin-top: 1.2em; }
.article-body h2 { font-size: 26px; }
.article-body h3 { font-size: 21px; }
.article-tags { margin: 24px 0; }
.article-tags .tag { padding: 0; border-radius: 0; background: none; color: var(--accent); }
.article-tags .tag::before { content: '#'; }
.prose { font-size: 18px; line-height: 1.85; overflow-wrap: anywhere; }
.prose > * + * { margin-top: 1.4em; }
.prose h2, .prose h3, .prose h4, .prose h5, .prose h6 { margin: 1.8em 0 .7em; line-height: 1.4; letter-spacing: -.025em; }
.prose h2 { font-size: 1.55em; }
.prose h3 { font-size: 1.25em; }
.prose h4, .prose h5, .prose h6 { font-size: 1.05em; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.55em; }
.prose li { padding-left: .2em; }
.prose li + li { margin-top: .4em; }
.prose li > ul, .prose li > ol { margin: .45em 0; }
.prose li::marker { color: var(--muted); }
.prose li.task-list-item { list-style: none; }
.prose .task-list-item > input[type=checkbox] { margin: 0 .55em 0 -1.25em; accent-color: var(--accent); vertical-align: middle; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.prose code { padding: .16em .38em; border-radius: 5px; background: var(--soft); font: .86em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; box-decoration-break: clone; }
.prose pre { padding: 20px; max-width: 100%; overflow: auto; border-radius: 10px; background: var(--code-bg); color: var(--code-ink); line-height: 1.75; tab-size: 4; text-align: left; }
.prose pre code { padding: 0; background: none; border: 0; border-radius: 0; white-space: pre; overflow-wrap: normal; word-break: normal; font-size: 13px; }
.prose .code-block { min-width: 0; max-width: 100%; overflow: hidden; border: 1px solid var(--code-line); border-radius: 12px; background: var(--code-bg); color: var(--code-ink); }
.prose .code-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 45px; padding: 0 10px 0 18px; border-bottom: 1px solid var(--code-line); font-size: 12px; line-height: 1.4; }
.prose .code-language { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: var(--syntax-comment); }
.prose .code-copy { flex-shrink: 0; min-width: 54px; min-height: 44px; padding: 8px; border: 0; border-radius: 6px; background: transparent; color: var(--syntax-comment); font-size: 12px; }
.prose .code-copy:hover, .prose .code-copy[data-copy-state=copied] { color: var(--accent); background: var(--accent-soft); }
.prose .code-copy:focus-visible { outline-offset: -3px; }
.prose .code-block pre { margin: 0; padding: 18px; border: 0; border-radius: 0; background: transparent; font-size: 13px; line-height: 1.75; }
.prose .code-block pre:focus-visible, .prose .markdown-table:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
.copy-label-en { display: none; }
:root:lang(en) .copy-label-ko { display: none; }
:root:lang(en) .copy-label-en { display: inline; }
.prose .code-feedback:not(.sr-only) { display: block; padding: 0 18px 14px; font-size: 13px; color: var(--syntax-comment); }
.syntax-comment { color: var(--syntax-comment); font-style: italic; }
.syntax-keyword, .syntax-tag { color: var(--syntax-keyword); }
.syntax-string { color: var(--syntax-string); }
.syntax-number { color: var(--syntax-number); }
.syntax-function { color: var(--syntax-function); }
.syntax-property { color: var(--syntax-property); }
.syntax-operator { color: var(--code-ink); }
.prose blockquote { margin-left: 0; margin-right: 0; padding: 12px 20px; border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0; background: var(--accent-soft); color: var(--ink); font-size: .95em; }
.prose blockquote > * + * { margin-top: .7em; }
.prose blockquote > :first-child { margin-top: 0; }
.prose .markdown-table { max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.prose table { width: 100%; border-collapse: collapse; font-size: .9em; line-height: 1.6; }
.prose th, .prose td { padding: 11px 16px; min-width: 100px; border-bottom: 1px solid var(--line); text-align: left; }
.prose th { background: var(--soft); font-weight: 600; }
.prose tbody tr:last-child td { border-bottom: 0; }
.prose tbody tr:hover { background: var(--soft); }
.prose .align-center { text-align: center; }
.prose .align-right { text-align: right; }
.prose hr { margin: 32px 0; border: 0; border-top: 1px solid var(--line); }
.prose figure { margin-left: 0; margin-right: 0; }
.prose figure img { max-height: 720px; object-fit: contain; border-radius: 8px; }
.article-end { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.article-end .text-link { font-size: 16px; }
.article-related { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.article-related h2 { font-size: 20px; line-height: 1.5; }
.article-related ul { margin: 12px 0 16px; padding: 0; list-style: none; }
.article-related li + li { border-top: 1px solid var(--line); }
.article-related li a { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 52px; padding: 12px 0; font-size: 16px; line-height: 1.65; overflow-wrap: anywhere; }
.article-related li a:hover { color: var(--link-ink); }
.article-related li .icon { width: 17px; height: 17px; }
.article-related > .text-link { color: var(--muted); font-size: 14px; }
.toast { position: fixed; bottom: 24px; left: 50%; z-index: 100; transform: translate(-50%,12px); max-width: calc(100% - 32px); width: max-content; padding: 12px 20px; border-radius: 12px; background: var(--ink); color: var(--bg); font-size: 14px; text-align: center; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.visible { opacity: 1; transform: translate(-50%,0); }
.loading-state { padding: 80px 0; text-align: center; color: var(--muted); }

/* A profile that connects recent work to the code and the longer notes. */
.profile-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; margin: 14px 0 4px; }
.profile-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; color: var(--muted); }
.profile-links .profile-github { color: var(--link-ink); font-weight: 600; }
.profile-links a:hover { color: var(--link-ink); text-decoration: underline; text-underline-offset: 4px; }
.profile-links .icon { width: 16px; height: 16px; }
.profile-links .profile-github > .icon:first-child { width: 19px; height: 19px; }
.profile-section { margin: 26px 0 44px; }
.profile-section-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 24px; margin-bottom: 20px; }
.profile-section-heading h2 { font-size: 22px; line-height: 1.4; }
.profile-section-heading > div > p { margin-top: 5px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.profile-updated { display: flex; flex-wrap: wrap; gap: 3px 8px; color: var(--muted); font-size: 12px; }
.profile-updated time { white-space: nowrap; font-variant-numeric: tabular-nums; }
.activity-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; padding: 0; margin: 0; list-style: none; }
.activity-list > li { min-width: 0; padding: 18px 0 0; border-top: 2px solid var(--line); }
.activity-status { display: inline-block; padding: 3px 8px; margin-bottom: 11px; border-radius: 5px; background: var(--accent-soft); color: var(--link-ink); font-size: 11px; line-height: 1.5; font-weight: 500; }
.activity-list h3 { font-size: 18px; line-height: 1.45; }
.activity-list > li > p { margin-top: 9px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.profile-entry-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 20px; margin-top: 8px; }
.profile-entry-links a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--link-ink); font-size: 13px; font-weight: 500; }
.profile-entry-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.profile-entry-links .icon { width: 14px; height: 14px; }
.project-list { border-top: 1px solid var(--line); }
.project-entry { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.7fr); gap: 28px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.project-identity, .project-detail { min-width: 0; }
.project-period { margin-bottom: 7px; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.project-entry h3 { font-size: 20px; line-height: 1.45; }
.project-role { margin-top: 8px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.project-detail > p { font-size: 15px; line-height: 1.8; }
.project-tags { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 0; margin: 12px 0 0; list-style: none; color: var(--muted); font-size: 12px; }
.profile-timeline { margin: 0; padding: 0; list-style: none; }
.profile-timeline > li { display: grid; grid-template-columns: 105px minmax(0,1fr); gap: 26px; padding: 0 0 26px; }
.profile-timeline > li:last-child { padding-bottom: 0; }
.timeline-date { padding-top: 2px; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.profile-timeline > li > div:last-child { position: relative; padding-left: 22px; }
.profile-timeline > li > div:last-child::before { content: ''; position: absolute; top: 9px; left: 0; bottom: -35px; width: 1px; background: var(--line); }
.profile-timeline > li:last-child > div:last-child::before { bottom: 4px; }
.profile-timeline > li > div:last-child::after { content: ''; position: absolute; top: 7px; left: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.profile-timeline h3 { font-size: 17px; line-height: 1.5; }
.profile-timeline p { margin-top: 6px; font-size: 14px; line-height: 1.8; color: var(--muted); }
.about-page:not(.has-image) > div:first-child { max-width: 720px; }
.about-page + .profile-section { margin-top: 0; }
.about-page .profile-links { margin-top: 18px; }
:root:lang(ko) :is(.activity-list, .project-entry, .profile-timeline) { word-break: keep-all; overflow-wrap: anywhere; }

@media (max-width: 1279px) {
  .site-header nav { gap: 24px; }
}
@media (max-width: 1023px) {
  .site-header { min-height: 72px; padding: 14px 0; }
  .site-header > nav { display: none; }
  .header-actions { margin-left: auto; }
  .menu-toggle { display: inline-flex; }
  .mobile-nav:not([hidden]) { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 10; display: flex; flex-direction: column; padding: 6px 20px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
  .mobile-nav a { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
  .hero.has-image { display: flex; flex-direction: column; gap: 20px; padding: 28px 0 24px; }
  .hero-art, .hero-copy { width: 100%; }
  .hero-art { order: 1; }
  .hero-copy { order: 0; }
  .hero-art img { max-height: 160px; }
  .image-placeholder-hero { width: 200px; }
  .browse { grid-template-columns: 1fr; gap: 8px; margin: 10px 0 28px; }
  .about-strip.has-image { grid-template-columns: 1fr; gap: 24px; }
  .about-strip > .about-image, .about-strip > .about-strip-copy { grid-column: auto; }
  .about-image { width: 100%; max-width: 260px; margin: auto; }
  .about-page { padding: 28px 0 32px; }
  .about-page.has-image { grid-template-columns: 1fr; gap: 28px; }
  .about-art { max-width: 450px; margin: auto; }
}
@media (max-width: 767px) {
  .wrap { width: calc(100% - 32px); }
  .site-header { width: calc(100% - 32px); padding: 12px 0; gap: 8px; }
  .brand-group { flex: 1; min-width: 0; gap: 0; }
  .site-header .brand { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; font-size: 18px; }
  .header-actions { margin-left: 0; gap: 6px; flex-shrink: 0; }
  .header-actions .theme-toggle, .search-count { display: none; }
  .header-actions .icon-button { width: 44px; height: 44px; }
  .header-actions .icon-button .icon { width: 21px; height: 21px; }
  .hero { gap: 18px; padding: 24px 0 20px; }
  .hero h1 { font-size: 28px; line-height: 1.18; }
  .hero-description { font-size: 17px; line-height: 1.6; }
  .search-area { margin-top: 18px; }
  .search-box { height: 48px; padding: 0 12px; gap: 10px; }
  .search-clear { margin-right: -8px; }
  .image-placeholder-hero { width: 164px; }
  .placeholder-center { font-size: 12px; }
  .browse { margin: 8px 0 26px; }
  .browse h2 { line-height: 1.6; }
  .section-heading { gap: 12px; margin-bottom: 16px; }
  .post-card { gap: 16px; padding: 18px 0; }
  .post-card h3 { font-size: 20px; }
  .post-excerpt { font-size: 14px; }
  .post-image { width: 80px; height: 80px; }
  .post-meta { gap: 4px 8px; }
  .copy-card span { display: none; }
  .about-image > .image-placeholder { max-width: 220px; }
  .about-strip h2 { font-size: 26px; margin-bottom: 14px; }
  .about-strip p { font-size: 17px; line-height: 1.65; }
  .about-strip .text-link { font-size: 16px; }
  .about-page h1 { font-size: 32px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 8px; padding: 16px 0; line-height: 1.65; }
  .footer-nav { gap: 4px 16px; }
  .article-page { padding: 24px 0 40px; }
  .article-header { margin: 16px 0 24px; }
  .article-body { margin: 24px 0; }
  .article-cover img { max-height: 200px; }
  .article-header h1 { font-size: clamp(26px,7vw,32px); line-height: 1.35; }
  .article-header > p { font-size: 17px; line-height: 1.7; }
  .article-byline { gap: 10px; }
  .prose { font-size: 17px; }
  .prose h2 { font-size: 25px; }
  .prose h3 { font-size: 21px; }
  .prose pre { padding: 16px; }
  .article-end { flex-wrap: wrap; }
  .article-related { margin-top: 36px; padding-top: 20px; }
  .article-related li a { gap: 16px; font-size: 15px; }
  .site-image-actions { left: 8px; right: 8px; gap: 6px; }
  .site-image-actions button { padding: 8px 10px; }
  .profile-section { margin: 24px 0 36px; }
  .profile-section-heading { gap: 10px; margin-bottom: 16px; }
  .profile-section-heading h2 { font-size: 21px; }
  .profile-updated { width: 100%; }
  .activity-list { grid-template-columns: 1fr; gap: 18px; }
  .activity-list > li { padding-top: 16px; border-top-width: 1px; }
  .activity-list h3 { font-size: 19px; }
  .activity-status { margin-bottom: 8px; }
  .activity-list > li > p { margin-top: 6px; font-size: 15px; }
  .project-entry { grid-template-columns: 1fr; gap: 12px; padding: 22px 0; }
  .project-role { margin-top: 6px; }
  .profile-timeline > li { grid-template-columns: 78px minmax(0,1fr); gap: 14px; }
  .profile-timeline > li > div:last-child { padding-left: 17px; }
  .profile-links { column-gap: 20px; }
  .about-role { font-size: 19px; line-height: 1.7; }
}
@media (max-width: 359px) { .site-header .brand { font-size: 17px; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
