:root {
  color-scheme: light;
  --paper: #f6f6f3;
  --ink: #20211f;
  --muted: #777970;
  --line: #d9dbd4;
  --line-dark: #b6b9b0;
  --soft: #eceee8;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Noto Sans KR", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--paper); font-size: 15px; line-height: 1.65; }
a { color: inherit; text-decoration: none; }
a:focus-visible, input:focus-visible, button:focus-visible { outline: 2px solid #343630; outline-offset: 3px; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; padding: 0 clamp(20px, 5.2vw, 76px); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: baseline; gap: 11px; flex: 0 0 auto; color: var(--ink); }
.brand-main { font-size: 23px; font-weight: 750; letter-spacing: -.075em; }
.brand-divider { color: #a1a39b; font: 14px/1 ui-monospace, SFMono-Regular, Consolas, monospace; }
.brand-section { font: 13px/1 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .015em; color: #62645d; }
.site-nav { display: flex; align-items: center; justify-content: flex-end; gap: clamp(14px, 2.3vw, 32px); font-size: 12px; color: #60625b; }
.site-nav a:hover, .post-card h2 a:hover, .site-footer a:hover { color: #85877f; }
.page-layout { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: clamp(36px, 7vw, 100px); width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 76px 0 100px; }
.main-column { min-width: 0; }
.page-kicker { margin-bottom: 16px; color: #777970; font: 10px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .15em; }
.title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.title-row h1 { margin: 0; font-size: clamp(32px, 4vw, 43px); font-weight: 680; line-height: 1.2; letter-spacing: -.055em; overflow-wrap: anywhere; }
.page-subtitle { margin: 10px 0 0; color: var(--muted); font-size: 13px; }
.total-count { padding-bottom: 3px; color: #85877f; font: 12px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; }
.search-form { display: flex; align-items: center; gap: 10px; height: 49px; margin-bottom: 19px; padding: 0 12px; border: 1px solid var(--line-dark); background: #fbfbf8; }
.search-form svg { width: 17px; height: 17px; flex: 0 0 auto; fill: none; stroke: #767970; stroke-width: 1.5; }
.search-form input { flex: 1; width: 0; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: 13px; }
.search-form input::placeholder { color: #92948c; }
.search-form button { flex: 0 0 auto; border: 0; background: transparent; color: var(--ink); font-size: 12px; cursor: pointer; }
.search-form button:hover { color: #777970; }
.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-bottom: 3px; }
.filter-chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 9px; border: 1px solid var(--line-dark); color: #55574f; font-size: 11px; }
.filter-chip span { color: #8f9189; font-size: 14px; }
.clear-filters { padding: 4px 6px; color: #7f8179; font-size: 11px; text-decoration: underline; text-underline-offset: 3px; }
.post-list { border-top: 1px solid var(--line-dark); margin-top: 25px; }
.post-card { padding: 27px 0 29px; border-bottom: 1px solid var(--line); }
.post-card-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; color: #777970; font: 10px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; }
.post-card-meta time { color: #898b83; }
.post-card h2 { margin: 0; font-size: clamp(20px, 2.25vw, 26px); font-weight: 650; line-height: 1.42; letter-spacing: -.035em; overflow-wrap: anywhere; }
.post-excerpt { max-width: 760px; margin: 11px 0 13px; color: #686a63; font-size: 13px; line-height: 1.85; overflow-wrap: anywhere; }
.post-card-tags { display: flex; flex-wrap: wrap; gap: 6px 11px; }
.post-tag { color: #777970; font: 10px/1.7 ui-monospace, SFMono-Regular, Consolas, monospace; }
.post-tag:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.sidebar { min-width: 0; padding-top: 10px; }
.side-section { margin-bottom: 39px; scroll-margin-top: 24px; }
.side-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 13px; padding-bottom: 11px; border-bottom: 1px solid var(--line-dark); }
.side-heading h2 { margin: 0; font-size: 13px; font-weight: 680; }
.side-heading span { color: #999b93; font: 9px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; }
.side-link-list { display: grid; }
.side-link { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 7px 0; color: #62645d; font-size: 12px; }
.side-link:hover { color: var(--ink); }
.side-count, .tag-chip span { color: #999b93; font: 9px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; }
.tag-cloud { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 7px; }
.tag-chip { display: inline-flex; align-items: baseline; gap: 7px; max-width: 100%; padding: 5px 8px; border: 1px solid var(--line); color: #65675f; font: 10px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; }
.tag-chip:hover { border-color: var(--line-dark); color: var(--ink); }
.side-placeholder { color: #92948c; font-size: 11px; }
.side-note { display: flex; gap: 10px; margin-top: 54px; padding-top: 14px; border-top: 1px solid var(--line); color: #888a82; }
.side-note-mark { display: grid; place-items: center; width: 23px; height: 23px; flex: 0 0 auto; border: 1px solid var(--line-dark); color: #55574f; font: 11px/1 ui-monospace, SFMono-Regular, Consolas, monospace; }
.side-note p { margin: 1px 0 0; font-size: 11px; line-height: 1.7; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 22px; color: #777970; font: 11px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; }
.pagination[hidden] { display: none; }
.pagination button { border: 1px solid var(--line-dark); padding: 8px 12px; color: var(--ink); background: transparent; font: inherit; cursor: pointer; }
.pagination button:disabled { opacity: .35; cursor: default; }
.empty-state, .error-state { padding: 46px 12px; text-align: center; color: #777970; }
.empty-state[hidden] { display: none; }
.empty-mark { display: block; margin-bottom: 9px; color: #969890; font: 24px/1 ui-monospace, SFMono-Regular, Consolas, monospace; }
.empty-state h2 { margin: 0 0 8px; color: var(--ink); font-size: 19px; font-weight: 600; }
.empty-state p, .error-state p { margin: 0 0 18px; font-size: 12px; }
.empty-state a { border-bottom: 1px solid var(--line-dark); padding-bottom: 3px; font-size: 12px; }
.loading-state { margin: 0; padding: 24px 0; color: #777970; font-size: 13px; }
.site-footer { display: flex; justify-content: space-between; gap: 20px; padding: 20px clamp(20px, 5.2vw, 76px); border-top: 1px solid var(--line); color: #888a82; font: 10px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; }
.site-footer a { color: #55574f; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

/* Article reader shell */
.article-body { background: var(--paper) !important; }
.article-layout { width: min(1040px, calc(100% - 48px)); margin: 0 auto; min-height: calc(100vh - 130px); }
.article-layout .public-shell { min-height: auto !important; padding: 58px 0 95px !important; background: var(--paper) !important; }
.article-layout .public-header { background: var(--paper) !important; border-bottom-color: var(--line); }
.article-layout .public-header h1 { font-size: clamp(35px, 5vw, 54px) !important; font-weight: 700 !important; letter-spacing: -.045em !important; }
.article-layout .public-meta { gap: 8px; font-family: system-ui, sans-serif; }
.article-layout .public-content { color: var(--ink); }
.article-layout .public-content figure { max-width: 100%; }
.article-layout .public-tags { flex-wrap: wrap; white-space: normal; overflow: visible; }
.article-layout .public-tag { text-decoration: none; border-bottom: 1px solid transparent; }
.article-layout .public-tag:hover { border-bottom-color: #9a9c94; color: #20211f; }
.article-layout .loading-state { padding: 20px 0; font-size: 13px; }
@media (max-width: 850px) {
  .page-layout { grid-template-columns: minmax(0, 1fr) 205px; gap: 35px; width: min(100% - 40px, 760px); padding-top: 51px; }
  .site-header { padding: 0 22px; }
  .site-nav { gap: 16px; }
  .side-note { margin-top: 32px; }
}
@media (max-width: 620px) {
  .site-header { min-height: 62px; padding: 0 18px; }
  .brand-main { font-size: 21px; }
  .site-nav { gap: 13px; font-size: 11px; }
  .site-nav a:nth-child(2), .site-nav a:nth-child(3) { display: none; }
  .page-layout { display: flex; flex-direction: column; gap: 36px; width: calc(100% - 36px); padding: 42px 0 64px; }
  .title-row { margin-bottom: 24px; }
  .title-row h1 { font-size: 34px; }
  .page-subtitle { font-size: 12px; }
  .post-card { padding: 22px 0 24px; }
  .post-card h2 { font-size: 21px; }
  .post-excerpt { font-size: 12px; }
  .sidebar { display: grid; grid-template-columns: 1fr; gap: 4px; padding-top: 0; }
  .side-section { margin-bottom: 24px; }
  .side-note { margin-top: 0; }
  .site-footer { flex-direction: column; gap: 4px; padding: 17px 18px; }
  .article-layout { width: calc(100% - 36px); }
  .article-layout .public-shell { padding: 34px 0 58px !important; }
  .article-layout .public-header { margin-bottom: 28px; padding-bottom: 18px; }
  .article-layout .public-header h1 { font-size: 33px !important; }
  .article-layout .public-content { font-size: 18px !important; line-height: 1.9 !important; }
}
