@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=Noto+Sans+KR:wght@400;450;500;550;600;650;700&display=swap');

:root {
  --bg: #191b1d;
  --panel: #202326;
  --text: #e7e8e9;
  --body: #bfc2c5;
  --muted: #9b9fa5;
  --subtle: #82878e;
  --line: #303438;
  --accent: #c1d5ab;
  --sans: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 34px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.8 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.55; font-weight: 600; letter-spacing: -.04em; word-break: keep-all; overflow-wrap: anywhere; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button, a { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button, input { border-radius: 3px; }
[hidden] { display: none !important; }
::selection { background: #526744; color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.shell { width: min(1080px, calc(100% - 96px)); margin-inline: auto; }
.mono { font-family: var(--mono); letter-spacing: 0; }
.skip { position: fixed; top: -70px; left: 20px; z-index: 100; background: var(--accent); color: var(--bg); padding: 10px 18px; }
.skip:focus { top: 12px; }
.header { height: 115px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { font: 500 20px var(--mono); letter-spacing: -.8px; white-space: nowrap; }
.brand > span { color: var(--accent); }
.header-right { display: flex; align-items: center; gap: 38px; }
.header nav { display: flex; align-items: center; gap: 30px; }
.header nav a { color: var(--muted); font-size: 13px; padding: 12px 0; position: relative; }
.header nav a:hover, .header nav a[aria-current] { color: var(--text); }
.header nav a[aria-current]::after { content: ''; position: absolute; width: 3px; height: 3px; background: var(--accent); border-radius: 50%; bottom: 3px; left: calc(50% - 1px); }
.header-search { display: flex; padding: 10px 0 10px 18px; color: var(--muted); border-left: 1px solid var(--line); }
.header-search:hover { color: var(--accent); }
.menu-toggle { display: none; }
.site-grid { display: grid; grid-template-columns: 186px minmax(0, 1fr); gap: 100px; align-items: start; padding-top: 66px; }
.home-grid { padding-top: 40px; }
.main-content { width: 100%; min-width: 0; max-width: 744px; outline: none; }
.main-content:focus-visible { outline: 2px solid var(--accent); outline-offset: 10px; }
.rail { min-width: 0; align-self: stretch; }
.rail-inner { position: sticky; top: 38px; }
.profile-mark { font: 400 38px/1.1 var(--mono); letter-spacing: -4px; color: #dedfd9; height: 57px; margin: 0 0 16px -2px; }
.profile-mark span { color: var(--accent); }
.rail-name { font-size: 14px; font-weight: 550; margin-bottom: 10px; }
.rail-description { font-size: 12px; line-height: 1.95; color: var(--muted); word-break: keep-all; }
.quiet-link { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.quiet-link:hover { color: var(--accent); }
.rail .quiet-link { font-size: 11px; margin-top: 22px; }
.arrow { color: var(--subtle); font-size: .85em; font-weight: 400; transition: color .15s; }
a:hover .arrow { color: var(--accent); }
.rail-section { margin-top: 50px; }
.rail-label { font-size: 11px; color: var(--subtle); margin-bottom: 14px; }
.rail-section > a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 0; font-size: 12px; color: var(--muted); }
.rail-section > a:hover { color: var(--text); }
.rail-section > a span { font: 10px var(--mono); color: var(--subtle); }
.rail-footnote { margin-top: 38px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 10px; color: var(--subtle); line-height: 1.95; }
.page-head { margin-bottom: 52px; }
.page-label { font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.page-head h1 { font-size: 34px; letter-spacing: -1.6px; font-weight: 550; }
.lead { margin-top: 18px; color: var(--muted); font-size: 14px; line-height: 1.95; word-break: keep-all; overflow-wrap: anywhere; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.section-head :is(h1, h2) { font-size: 15px; font-weight: 500; letter-spacing: -.3px; }
.count { margin-left: 7px; font: 11px var(--mono); color: var(--subtle); }
.post-row { padding: 29px 0 27px; border-bottom: 1px solid var(--line); }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: var(--subtle); font-size: 10px; line-height: 1.8; }
.post-meta time { font-size: 10px; }
.post-meta .category { color: var(--muted); font-size: 10px; }
.post-meta .category::before { content: ''; width: 2px; height: 2px; display: inline-block; background: var(--subtle); margin: 0 10px 3px 0; border-radius: 50%; }
.detail-head .post-meta .category::before { display: none; }
.example-label { font-size: 9px; color: var(--muted); line-height: 1.5; border: 1px solid #42484d; border-radius: 3px; padding: 1px 5px; }
.post-row h3 { margin: 10px 0 12px; font-size: 21px; font-weight: 550; letter-spacing: -.7px; }
.post-row h3 a { display: block; }
.post-row h3 .arrow { margin-left: 5px; opacity: 0; }
.post-row h3 a:hover, .project-row h3 a:hover { color: var(--accent); }
.post-row h3 a:hover .arrow, .post-row h3 a:focus-visible .arrow { opacity: 1; }
.post-row > p { max-width: 650px; color: var(--muted); font-size: 13px; line-height: 1.95; word-break: keep-all; overflow-wrap: anywhere; }
.post-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 20px; color: var(--subtle); font-size: 10px; }
.read-time { font-family: var(--mono); white-space: nowrap; }
.home-projects { margin-top: 58px; }
.section-note { font-size: 12px; color: var(--subtle); margin: 18px 0 6px; word-break: keep-all; }
.project-row { display: grid; grid-template-columns: 94px minmax(0, 1fr); gap: 20px; padding: 27px 0; border-bottom: 1px solid var(--line); }
.project-meta { display: flex; flex-wrap: wrap; gap: 7px 10px; align-content: flex-start; align-items: center; font-size: 11px; color: var(--muted); padding-top: 3px; }
.project-meta .mono { color: var(--subtle); font-size: 10px; }
.project-meta .example-label { flex-basis: auto; margin-top: 5px; }
.project-row h3 { font-size: 17px; font-weight: 500; }
.project-row h3 .arrow { margin-left: 6px; }
.project-row p { margin-top: 9px; color: var(--muted); font-size: 12px; line-height: 1.9; word-break: keep-all; }
.tags { display: flex; flex-wrap: wrap; gap: 8px 12px; margin-top: 15px; }
.tags > span { font: 10px/1.8 var(--mono); color: var(--subtle); }
.home-colophon { padding-top: 35px; margin-top: 42px; display: flex; align-items: flex-start; gap: 18px; }
.colophon-mark { font: 16px var(--mono); color: var(--accent); padding-top: 3px; }
.home-colophon p { font-size: 12px; line-height: 1.95; color: var(--subtle); flex: 1; }
.home-colophon a { align-self: center; font-size: 11px; }
.footer { border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 24px; font-size: 10px; color: var(--subtle); padding: 22px 0 32px; margin-top: 100px; }
.footer > a { margin-left: auto; color: var(--muted); }
.journal-tools { display: flex; flex-direction: column; gap: 24px; }
.search { display: flex; align-items: center; gap: 12px; padding: 12px 15px; border: 1px solid #3a3f45; border-radius: 4px; color: var(--muted); background: transparent; }
.search input { min-width: 0; width: 100%; font-size: 13px; border: 0; outline: none; background: transparent; line-height: 1.7; }
.search input::placeholder { color: var(--subtle); }
.search:focus-within { border-color: var(--accent); }
.search kbd { font: 11px var(--mono); border: 1px solid var(--line); border-radius: 3px; padding: 0 5px; }
.filters { display: flex; gap: 23px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.filter { position: relative; padding: 0 0 15px; min-height: 38px; background: transparent; border: 0; color: var(--muted); font-size: 12px; border-radius: 0; }
.filter:hover { color: var(--text); }
.filter.active { color: var(--accent); }
.filter.active::after { content: ''; position: absolute; bottom: -1px; height: 1px; background: var(--accent); left: 0; right: 0; }
.result-line { display: flex; gap: 16px; align-items: center; justify-content: space-between; margin: 19px 0 0; font-size: 10px; color: var(--subtle); }
.blog-list .post-row:first-child { padding-top: 24px; }
.empty-state { padding: 64px 0; border-bottom: 1px solid var(--line); text-align: center; }
.empty-state h2 { font-size: 20px; margin-bottom: 12px; }
.empty-state p { color: var(--muted); font-size: 13px; margin-bottom: 24px; }
.button { border: 1px solid #4a5259; background: transparent; color: var(--body); padding: 10px 18px; font-size: 12px; }
.button:hover { border-color: var(--accent); color: var(--accent); }
.writing-note { border-bottom: 1px solid var(--line); margin-top: 40px; padding-bottom: 16px; font-size: 12px; color: var(--muted); }
.writing-note summary { cursor: pointer; display: flex; justify-content: space-between; align-items: center; list-style: none; padding: 12px 0; }
summary::-webkit-details-marker { display: none; }
.writing-note p { font-size: 12px; line-height: 2; color: var(--subtle); padding: 10px 0; }
.collection-note { color: var(--muted); font-size: 12px; border-left: 2px solid #6f7a67; padding-left: 15px; margin-bottom: 25px; word-break: keep-all; }
.projects-page { border-top: 1px solid var(--line); }
.projects-page .project-row { padding-block: 32px; }
.about-copy > section { padding-bottom: 36px; margin-bottom: 36px; border-bottom: 1px solid var(--line); }
.about-copy h2 { font-size: 21px; margin-bottom: 22px; font-weight: 500; }
.about-copy p { color: var(--body); font-size: 14px; line-height: 2; word-break: keep-all; }
.about-copy p + p { margin-top: 18px; }
.about-copy p.muted { color: var(--muted); font-size: 12px; }
.about-copy .page-label { font-size: 11px; color: var(--subtle); margin-bottom: 14px; }
.inline-note { font-size: 10px; font-weight: 400; color: var(--subtle); vertical-align: middle; margin-left: 7px; letter-spacing: 0; }
.focus-list > div { display: grid; grid-template-columns: 170px 1fr; gap: 20px; margin: 22px 0; }
.focus-list dt { font: 400 12px/1.9 var(--mono); color: var(--body); }
.focus-list dd { font-size: 13px; line-height: 1.95; color: var(--muted); word-break: keep-all; }
.process-list { padding-left: 22px; margin: 0; }
.process-list li { padding-left: 8px; margin: 24px 0; }
.process-list li::marker { font: 10px var(--mono); color: var(--subtle); }
.process-list strong { font-size: 14px; font-weight: 500; }
.process-list p { color: var(--muted); font-size: 13px; margin-top: 6px; }
.contact-link { display: inline-flex; align-items: center; gap: 16px; color: var(--accent); text-decoration: underline; text-underline-offset: 5px; font-size: 14px; }
.about-copy p.setup-note { font-size: 11px; color: var(--subtle); margin-top: 22px; }
.rail-back { display: block; font-size: 12px; color: var(--muted); margin-bottom: 40px; padding-top: 3px; }
.rail-back:hover { color: var(--accent); }
.toc nav { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }
.toc a { font-size: 11px; line-height: 1.8; color: var(--muted); word-break: keep-all; }
.toc a.current, .toc a:hover { color: var(--accent); }
.toc-mobile { display: none; }
.detail-head { padding-bottom: 34px; border-bottom: 1px solid var(--line); margin-bottom: 30px; }
.back-link { display: none; }
.detail-head .post-meta { margin: 0 0 20px; }
.detail-head h1 { font-size: 34px; letter-spacing: -1.3px; font-weight: 550; line-height: 1.6; }
.detail-head .lead { font-size: 14px; max-width: 690px; }
.case-summary { padding: 0 0 24px; border-bottom: 1px solid var(--line); margin-bottom: 30px; }
.case-summary > div { display: grid; grid-template-columns: 80px 1fr; gap: 20px; margin: 10px 0; font-size: 12px; }
.case-summary dt { color: var(--subtle); }
.case-summary dd { color: var(--body); word-break: keep-all; }
.prose { min-width: 0; max-width: 710px; }
.example-note { margin: 0 0 34px; padding: 15px 18px; border-left: 2px solid #6f7a67; background: #202421; }
.example-note strong { color: #c5cdbf; font-size: 11px; font-weight: 500; }
.example-note p { color: var(--muted); font-size: 11px; line-height: 1.9; margin-top: 5px; word-break: keep-all; }
.prose > section { margin-bottom: 44px; }
.prose section h2 { font-size: 23px; font-weight: 550; margin: 40px 0 21px; letter-spacing: -.7px; }
.prose section p, .prose ul { font-size: 15px; line-height: 2; color: var(--body); word-break: keep-all; overflow-wrap: anywhere; }
.prose section p + p { margin-top: 22px; }
.prose ul { padding-left: 21px; margin-top: 22px; }
.prose li { margin: 12px 0; padding-left: 4px; }
.prose li::marker { color: var(--subtle); }
code { font: .85em var(--mono); color: #cbd7c2; overflow-wrap: anywhere; }
.code-block { border: 1px solid #353c42; border-radius: 4px; background: #16191b; overflow: hidden; margin: 26px 0; }
.code-heading { display: flex; align-items: center; justify-content: space-between; padding: 8px 14px; color: var(--subtle); border-bottom: 1px solid var(--line); font-size: 9px; }
.copy-button, .copy-link { border: 0; background: transparent; color: var(--muted); font-size: 11px; padding: 8px 2px; }
.copy-button:hover, .copy-link:hover { color: var(--accent); }
pre { margin: 0; overflow-x: auto; padding: 20px; font: 12px/2.1 var(--mono); tab-size: 2; }
pre code { font: inherit; white-space: pre; overflow-wrap: normal; color: #cbd7c2; }
#references { padding-top: 10px; border-top: 1px solid var(--line); }
.prose #references h2 { font-size: 17px; }
.prose #references a { font-size: 12px; color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.prose p.source-date { font-size: 10px; color: var(--subtle); margin-top: 20px; }
.article-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 42px; padding-top: 18px; border-top: 1px solid var(--line); }
.related-post { margin-top: 35px; padding-top: 25px; border-top: 1px solid var(--line); }
.related-post .page-label { font-size: 10px; margin-bottom: 10px; }
.related-post > a { display: flex; gap: 20px; justify-content: space-between; color: var(--body); font-size: 15px; }
.related-post > a:hover { color: var(--accent); }
.toast { position: fixed; z-index: 100; bottom: 28px; left: 50%; transform: translate(-50%, 8px); background: #30392c; border: 1px solid #67775a; border-radius: 4px; padding: 12px 20px; color: var(--text); font-size: 12px; opacity: 0; pointer-events: none; max-width: calc(100% - 32px); transition: opacity .15s, transform .15s; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
.not-found { min-height: 50vh; padding-top: 36px; }
.not-found h1 { font-size: 28px; margin: 20px 0; }
.not-found > p:not(.page-label) { color: var(--muted); font-size: 14px; }
.not-found > a { margin-top: 30px; }

@media (max-width: 1060px) {
  .shell { width: calc(100% - 64px); }
  .site-grid { grid-template-columns: 160px minmax(0, 1fr); gap: 60px; }
  .focus-list > div { grid-template-columns: 140px 1fr; gap: 18px; }
  .detail-head h1 { font-size: 30px; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 24px; }
  .shell { width: calc(100% - 40px); }
  .header { height: 83px; position: relative; }
  .brand { font-size: 19px; }
  .header-right { gap: 15px; }
  .menu-toggle { display: flex; align-items: center; gap: 12px; padding: 9px 0 9px 9px; border: 0; background: transparent; color: var(--muted); font-size: 12px; }
  .menu-toggle > span { font-size: 17px; }
  .menu-toggle[aria-expanded=true] > span { transform: rotate(45deg); }
  .header-search { padding-left: 14px; }
  .header nav { display: none; position: absolute; top: 82px; left: -20px; right: -20px; background: #202326; padding: 12px 20px; border-bottom: 1px solid #434a50; z-index: 20; }
  .header nav.open { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .header nav a { padding: 13px 10px; min-height: 48px; }
  .header nav a[aria-current]::after { left: 0; top: 23px; bottom: auto; }
  .site-grid { display: block; padding-top: 35px; }
  .home-grid { padding-top: 24px; }
  .rail { display: none; }
  .main-content { max-width: 100%; }
  .page-head { margin-bottom: 36px; }
  .page-head h1 { font-size: 28px; letter-spacing: -1.2px; }
  .page-label { font-size: 11px; margin-bottom: 12px; }
  .lead { font-size: 13px; margin-top: 16px; }
  .section-head { padding-bottom: 15px; }
  .section-head :is(h1, h2) { font-size: 14px; }
  .quiet-link { font-size: 11px; }
  .post-row { padding: 25px 0; }
  .post-meta { gap: 8px 10px; font-size: 9px; }
  .post-meta time, .post-meta .category { font-size: 9px; }
  .post-meta .category::before { margin-right: 8px; }
  .post-row h3 { font-size: 20px; line-height: 1.7; margin-top: 11px; margin-bottom: 11px; letter-spacing: -.65px; }
  .post-row h3 .arrow { display: none; }
  .post-row > p { font-size: 13px; line-height: 1.9; }
  .post-bottom { margin-top: 17px; font-size: 9px; gap: 12px; }
  .home-projects { margin-top: 42px; }
  .section-note { font-size: 11px; line-height: 1.9; }
  .project-row { grid-template-columns: 1fr; gap: 12px; padding: 24px 0; }
  .project-meta { align-items: center; padding: 0; gap: 10px; }
  .project-meta .example-label { margin: 0; }
  .project-row h3 { font-size: 18px; }
  .project-row p { font-size: 12px; }
  .project-row .tags > span { font-size: 9px; }
  .home-colophon { padding-top: 22px; margin-top: 28px; gap: 12px; flex-wrap: wrap; }
  .home-colophon p { font-size: 11px; }
  .home-colophon a { margin-left: 24px; flex-basis: 100%; font-size: 11px; }
  .footer { margin-top: 60px; padding-block: 20px 28px; font-size: 9px; gap: 8px 16px; }
  .footer > span:nth-child(2) { order: 3; flex-basis: 100%; }
  .journal-tools { gap: 23px; }
  .search { padding: 12px; gap: 9px; }
  .search input { font-size: 13px; }
  .search kbd { display: none; }
  .filters { gap: 10px 19px; }
  .filter { font-size: 11px; padding-bottom: 12px; min-height: 36px; }
  .result-line { font-size: 9px; margin-top: 16px; }
  .writing-note { margin-top: 30px; font-size: 11px; }
  .writing-note p { font-size: 11px; }
  .collection-note { font-size: 11px; line-height: 1.95; padding-left: 12px; }
  .projects-page .project-row { padding-block: 26px; }
  .about-copy > section { padding-bottom: 28px; margin-bottom: 28px; }
  .about-copy h2 { font-size: 20px; margin-bottom: 18px; }
  .about-copy p { font-size: 14px; }
  .focus-list > div { grid-template-columns: 1fr; gap: 7px; margin: 24px 0; }
  .focus-list dt { font-size: 12px; }
  .focus-list dd { font-size: 13px; }
  .process-list { padding-left: 18px; }
  .process-list li { padding-left: 5px; }
  .process-list p { font-size: 13px; }
  .back-link { display: inline-block; font-size: 11px; color: var(--muted); margin-bottom: 28px; }
  .detail-head { padding-bottom: 25px; margin-bottom: 22px; }
  .detail-head .post-meta { margin-bottom: 13px; }
  .detail-head h1 { font-size: 27px; line-height: 1.65; letter-spacing: -1.05px; }
  .detail-head .lead { font-size: 13px; }
  .toc-mobile { display: block; border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 25px; }
  .toc-mobile summary { display: flex; align-items: center; justify-content: space-between; padding: 5px 0 9px; cursor: pointer; list-style: none; color: var(--muted); font-size: 12px; }
  .toc-mobile summary > span { font-size: 15px; }
  .toc-mobile[open] summary > span { transform: rotate(45deg); }
  .toc-mobile nav { margin: 10px 0; gap: 11px; padding-left: 13px; border-left: 1px solid #4d5746; }
  .toc-mobile nav a { font-size: 12px; }
  .case-summary { padding-bottom: 18px; margin-bottom: 22px; }
  .case-summary > div { grid-template-columns: 57px 1fr; gap: 12px; font-size: 11px; margin: 12px 0; }
  .example-note { padding: 13px 15px; margin-bottom: 28px; }
  .example-note strong, .example-note p { font-size: 10px; }
  .prose section h2 { font-size: 21px; margin: 32px 0 18px; }
  .prose section p, .prose ul { font-size: 15px; line-height: 1.95; }
  .prose section p + p { margin-top: 20px; }
  .prose > section { margin-bottom: 34px; }
  .prose li { padding-left: 1px; margin: 10px 0; }
  pre { font-size: 11px; padding: 18px 14px; }
  .code-heading { padding-inline: 12px; font-size: 8px; }
  .prose #references a { font-size: 11px; }
  .prose p.source-date { font-size: 9px; }
  .article-actions { margin-top: 30px; }
  .related-post { margin-top: 27px; }
  .related-post > a { font-size: 14px; }
  .not-found h1 { font-size: 25px; }
  .toast { font-size: 11px; padding: 10px 16px; bottom: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
