:root {
  --bg: #ffffff;
  --fg: #1a1a1a;
  --muted: #6b7280;
  --accent: #2563eb;
  --border: #e5e7eb;
  --code-bg: #f4f4f5;
  --max-width: 720px;

  /* 구문 강조 토큰 색상 (라이트) */
  --hl-comment: #6a737d;
  --hl-string: #032f62;
  --hl-keyword: #d73a49;
  --hl-number: #005cc5;
  --hl-literal: #005cc5;
  --hl-tag: #22863a;
  --hl-attr: #6f42c1;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  line-height: 1.7;
  color: var(--fg);
  background: var(--bg);
}

.site-header {
  border-bottom: 1px solid var(--border);
}

.site-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1.5rem;
}

.site-title {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--fg);
  text-decoration: none;
  margin-right: auto;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.nav-link:hover {
  color: var(--accent);
}

.page-title {
  margin-top: 0;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1rem;
}

a {
  color: var(--accent);
}

/* 인덱스 */
.index-title {
  font-size: 1.5rem;
}

.content-hub {
  margin: 0 0 1.5rem;
  padding: 1.25rem;
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--accent) 12%, transparent), transparent 38%),
    var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 18px;
}

.content-hub-compact {
  margin-bottom: 2rem;
}

.content-hub-copy {
  max-width: 42rem;
}

.section-kicker {
  margin: 0 0 0.2rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-lead {
  margin: 0.45rem 0 0;
  color: var(--muted);
}

.content-switcher {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.15rem;
}

.content-switcher-card {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-height: 7rem;
  padding: 0.95rem;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.content-switcher-card strong {
  font-size: 1.05rem;
}

.content-switcher-card span:last-child {
  color: var(--muted);
  font-size: 0.86rem;
}

.content-switcher-kicker {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.content-switcher-card:hover,
.content-switcher-card.is-active {
  border-color: color-mix(in srgb, var(--accent) 60%, var(--border));
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.12);
  transform: translateY(-1px);
}

.content-switcher-card.is-active {
  outline: 2px solid color-mix(in srgb, var(--accent) 18%, transparent);
}

@media (max-width: 720px) {
  .content-switcher {
    grid-template-columns: 1fr;
  }

  .content-switcher-card {
    min-height: auto;
  }
}

/* 태그 페이지 2쪽 이상에서 제목 옆 페이지 번호 */
.index-page-no {
  color: var(--muted);
  font-size: 0.85em;
  font-weight: 400;
}

/* 검색 */
.search {
  margin: 1rem 0 1.5rem;
}

.search input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.6rem 0.8rem;
  font-size: 1rem;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.search input:focus {
  outline: none;
  border-color: var(--accent);
}

.post-list {
  list-style: none;
  padding: 0;
}

.page-list,
.series-index-list {
  list-style: none;
  padding: 0;
}

.post-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.page-item,
.series-index-item {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg);
}

.page-list,
.series-index-list {
  display: grid;
  gap: 0.85rem;
}

.post-link {
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
}

.page-link,
.series-index-link {
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
}

.page-excerpt,
.series-index-meta {
  color: var(--muted);
  margin: 0.35rem 0 0;
}

.series-index-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.series-index-count {
  flex: none;
  padding: 0.15rem 0.55rem;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--border));
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.series-index-preview {
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.series-index-preview li + li {
  margin-top: 0.25rem;
}

.series-index-preview a {
  text-decoration: none;
}

.series-index-preview a:hover {
  text-decoration: underline;
}

.post-item time {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

/* 글 페이지 */
.post-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.post-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.tags {
  display: inline-flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag {
  color: var(--accent);
  font-size: 0.85rem;
  text-decoration: none;
}

.tag:hover {
  text-decoration: underline;
}

/* 목록/글 메타 줄을 한 줄로 정렬 */
.post-item .post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
}

.post-item .post-meta time {
  display: inline;
  margin: 0;
}

.reading-time {
  color: var(--muted);
  font-size: 0.85rem;
}

.post-excerpt {
  color: var(--muted);
  margin: 0.5rem 0 0;
}

.tags-link {
  font-size: 0.9rem;
}

.tags-link a {
  text-decoration: none;
}

/* 태그 인덱스 */
.tag-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tag-count {
  color: var(--muted);
  font-size: 0.8rem;
}

.empty {
  color: var(--muted);
}

/* 404 페이지 */
.notfound {
  text-align: center;
  padding: 3rem 0;
}

.notfound-title {
  font-size: 4rem;
  margin: 0;
  color: var(--accent);
}

.notfound-message {
  color: var(--muted);
  margin: 0.5rem 0 1.5rem;
}

.post-content h1,
.post-content h2,
.post-content h3 {
  margin-top: 2rem;
}

/* 제목 딥링크 앵커: 평소엔 숨기고 제목에 호버할 때만 보인다. */
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6,
.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4,
.page-content h5,
.page-content h6 {
  scroll-margin-top: 1rem;
}

.heading-anchor {
  margin-left: 0.4rem;
  color: var(--muted);
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.15s ease-in-out;
}

.heading-anchor:hover {
  text-decoration: underline;
}

:is(h1, h2, h3, h4, h5, h6):hover > .heading-anchor,
.heading-anchor:focus {
  opacity: 1;
}

.post-content img {
  max-width: 100%;
}

.mermaid-figure {
  margin: 1.25rem 0 1.75rem;
  padding: 1rem;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #ffffff;
}

.mermaid {
  min-width: min-content;
  text-align: center;
}

.mermaid-static {
  display: block;
  width: 100%;
  max-width: 760px;
  height: auto;
  margin: 0 auto;
}

.mermaid-static-edge {
  fill: none;
  stroke: #64748b;
  stroke-width: 2;
}

.mermaid-static marker path {
  fill: #64748b;
}

.mermaid-static-node rect {
  fill: #f8fafc;
  stroke: #94a3b8;
  stroke-width: 1.5;
}

.mermaid-static-node text {
  fill: #1f2937;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 650;
}

pre {
  background: var(--code-bg);
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
}

code {
  background: var(--code-bg);
  padding: 0.15em 0.35em;
  border-radius: 4px;
  font-size: 0.9em;
}

pre code {
  background: none;
  padding: 0;
}

/* 구문 강조 토큰 */
.hl-comment {
  color: var(--hl-comment);
  font-style: italic;
}
.hl-string {
  color: var(--hl-string);
}
.hl-keyword {
  color: var(--hl-keyword);
}
.hl-number {
  color: var(--hl-number);
}
.hl-literal {
  color: var(--hl-literal);
}
.hl-tag {
  color: var(--hl-tag);
}
.hl-attr {
  color: var(--hl-attr);
}

blockquote {
  margin: 1rem 0;
  padding: 0.25rem 1rem;
  border-left: 4px solid var(--border);
  color: var(--muted);
}

table {
  width: 100%;
  margin: 1.5rem 0;
  border-collapse: collapse;
  font-size: 0.95rem;
  display: block;
  overflow-x: auto;
}

th,
td {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  text-align: left;
}

thead th {
  background: var(--code-bg);
  font-weight: 600;
}

tbody tr:nth-child(even) {
  background: var(--code-bg);
}

/* 본문 목차(TOC) */
.toc {
  margin: 1.5rem 0 2rem;
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--code-bg);
  font-size: 0.95rem;
}

.toc-title {
  margin: 0.25rem 0 0.5rem;
  font-weight: 600;
  color: var(--muted);
}

.toc-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc-item {
  margin: 0.2rem 0;
  /* 제목 깊이만큼 들여쓰기(--toc-depth 는 toc.ts 가 항목마다 설정). */
  padding-inline-start: calc(var(--toc-depth, 0) * 1rem);
}

.toc-link {
  color: var(--muted);
  text-decoration: none;
}

.toc-link:hover,
.toc-link:focus {
  color: var(--accent);
  text-decoration: underline;
}

/* 스크롤 추적(scrollspy): 현재 읽는 섹션의 목차 링크 강조 */
.toc-link.active {
  color: var(--accent);
  font-weight: 600;
}

/* 넓은 화면: 본문 옆에 고정(sticky)되는 목차 사이드바.
   좁은 화면에서는 목차가 본문 위 박스로 그대로 흐른다(기본 동작 유지). */
@media (min-width: 1080px) {
  body.has-toc .container {
    max-width: calc(var(--max-width) + 18rem);
  }

  body.has-toc .post {
    display: grid;
    grid-template-columns: minmax(0, var(--max-width)) 15rem;
    grid-template-areas:
      "title   title"
      "meta    meta"
      "series  series"
      "content toc"
      "nav     nav"
      "back    back";
    column-gap: 2.5rem;
    align-items: start;
  }

  body.has-toc .post > .post-title {
    grid-area: title;
  }
  body.has-toc .post > .post-meta {
    grid-area: meta;
  }
  body.has-toc .post > .series-box {
    grid-area: series;
  }
  body.has-toc .post > .post-content {
    grid-area: content;
    min-width: 0;
  }
  body.has-toc .post > .post-nav {
    grid-area: nav;
  }
  body.has-toc .post > .back {
    grid-area: back;
  }

  /* 정적 페이지(About 등)도 동일하게 목차 사이드바를 둔다. */
  body.has-toc .page {
    display: grid;
    grid-template-columns: minmax(0, var(--max-width)) 15rem;
    grid-template-areas:
      "title   title"
      "content toc";
    column-gap: 2.5rem;
    align-items: start;
  }

  body.has-toc .page > .page-title {
    grid-area: title;
  }
  body.has-toc .page > .page-content {
    grid-area: content;
    min-width: 0;
  }

  body.has-toc .post > .toc,
  body.has-toc .page > .toc {
    grid-area: toc;
    position: sticky;
    top: 1.5rem;
    margin: 0;
    max-height: calc(100vh - 3rem);
    overflow-y: auto;
  }
}

@media (min-width: 1240px) {
  body.has-toc.has-series .container {
    max-width: calc(var(--max-width) + 32rem);
  }

  body.has-toc.has-series .post {
    grid-template-columns: 12rem minmax(0, var(--max-width)) 14rem;
    grid-template-areas:
      "title   title   title"
      "meta    meta    meta"
      "series  content toc"
      "nav     nav     nav"
      "back    back    back";
    column-gap: 2rem;
  }

  body.has-toc.has-series .post > .series-box {
    position: sticky;
    top: 1.5rem;
    max-height: calc(100vh - 3rem);
    overflow-y: auto;
  }
}

/* 연재(시리즈) 안내 상자 */
.series-box {
  margin: 1.5rem 0 0;
  padding: 1rem 1.25rem;
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
}

.series-box-head {
  margin: 0 0 0.75rem;
  color: var(--muted);
}

.series-kicker {
  margin: 0 0 0.15rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.series-name {
  color: var(--fg);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
}

a.series-name:hover {
  color: var(--accent);
  text-decoration: underline;
}

.series-progress {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.series-neighbors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
}

.series-neighbors a {
  padding: 0.25rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.8rem;
  text-decoration: none;
}

.series-neighbors a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.series-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.series-item {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
  padding: 0.2rem 0;
}

.series-item-no {
  flex: none;
  min-width: 1.5rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.series-item.is-current .series-item-title {
  font-weight: 600;
  color: var(--fg);
}

.series-item-link {
  color: var(--accent);
}

/* 이전/다음 글 내비게이션 */
.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.post-nav a {
  display: flex;
  flex-direction: column;
  max-width: 100%;
  text-decoration: none;
}

.post-nav a:first-child:not(:last-child),
.post-nav a:first-child:not(:last-child) ~ a {
  max-width: 48%;
}

.post-nav-next {
  text-align: right;
  margin-left: auto;
}

.post-nav-label {
  color: var(--muted);
  font-size: 0.8rem;
}

.post-nav-title {
  font-weight: 600;
}

.post-nav a:hover .post-nav-title {
  text-decoration: underline;
}

.back {
  margin-top: 2rem;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  font-size: 0.95rem;
}

.pagination a {
  text-decoration: none;
  font-weight: 600;
}

.pagination a:hover {
  text-decoration: underline;
}

.pagination .is-disabled {
  color: var(--muted);
  visibility: hidden;
}

.pagination-pages {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pagination-page {
  display: inline-block;
  min-width: 1.75rem;
  padding: 0.25rem 0.5rem;
  text-align: center;
  border-radius: 6px;
  text-decoration: none;
}

a.pagination-page:hover {
  background: var(--code-bg);
  text-decoration: none;
}

.pagination-page.is-current {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}

.pagination-ellipsis {
  color: var(--muted);
  padding: 0.25rem 0.25rem;
}

.site-footer {
  max-width: var(--max-width);
  margin: 2rem auto;
  padding: 1rem;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}

/* GFM 작업 목록 체크박스 */
.task-list-item {
  list-style: none;
  margin-left: -1.25rem;
}

.task-list-item input[type="checkbox"] {
  margin-right: 0.4rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --fg: #e5e7eb;
    --muted: #9ca3af;
    --accent: #60a5fa;
    --border: #1f2430;
    --code-bg: #1a1f29;

    /* 구문 강조 토큰 색상 (다크) */
    --hl-comment: #8b949e;
    --hl-string: #a5d6ff;
    --hl-keyword: #ff7b72;
    --hl-number: #79c0ff;
    --hl-literal: #79c0ff;
    --hl-tag: #7ee787;
    --hl-attr: #d2a8ff;
  }
}

/* 각주: 본문 위첨자 참조 + 문서 끝 각주 목록 */
.footnote-ref {
  font-size: 0.75em;
  line-height: 0;
}

.footnotes {
  margin-top: 3rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.footnotes ol {
  padding-left: 1.25rem;
}

.footnotes li {
  margin: 0.35rem 0;
}

.footnote-backref {
  text-decoration: none;
  margin-left: 0.25rem;
}

/* Quiet, after-hours notes. */
:root {
  --bg: #e9e5db;
  --fg: #171715;
  --muted: #65645e;
  --accent: #5b21b6;
  --signal-green: #28c840;
  --border: #c7c1b5;
  --code-bg: #dcd6ca;
  --max-width: 780px;
}

body {
  font-family: "SF Pro Text", system-ui, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  background-color: var(--bg);
  background-image: radial-gradient(rgba(23, 23, 21, 0.075) 0.55px, transparent 0.55px);
  background-size: 5px 5px;
  letter-spacing: -0.012em;
}

.site-header { color: #f4f0e7; background: #171715; border-bottom: 3px solid var(--accent); }
.site-header-inner { min-height: 4.6rem; padding: 0.9rem 1.25rem; align-items: center; }
.site-title { display: inline-flex; align-items: baseline; gap: 0.35rem; color: inherit; font-size: 1rem; font-weight: 700; letter-spacing: -0.045em; }
.site-mark { display: inline-grid; width: 1.7rem; height: 1.7rem; place-items: center; color: #fff; background: var(--accent); border-radius: 2px; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 0.92rem; letter-spacing: -0.12em; }
.site-wordmark { font-weight: 780; }
.site-section { color: #aaa59a; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 0.8rem; letter-spacing: -0.04em; }
.site-nav { gap: 1.15rem; }
.nav-link { color: #bcb7ad; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 0.74rem; letter-spacing: 0.04em; text-transform: uppercase; }
.nav-link:hover, .nav-link:focus-visible { color: #fff; }

.container { min-height: calc(100vh - 11rem); padding: 4rem 1.25rem 5rem; }
.backroom-intro { position: relative; margin: 0 0 3.2rem; padding: 0 10rem 2rem 0; border-bottom: 1px dashed #9e988d; }
.terminal-line, .backroom-status { margin: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 0.72rem; letter-spacing: 0.02em; }
.terminal-line { color: var(--accent); font-weight: 700; }
.terminal-line span { color: var(--fg); }
.index-title { max-width: 11ch; margin: 0.8rem 0 0; font-size: clamp(2.7rem, 8vw, 5.4rem); line-height: 0.96; letter-spacing: -0.075em; }
.section-lead { max-width: 35rem; margin: 1.2rem 0 0; color: #45443f; font-size: 1.08rem; line-height: 1.65; }
.backroom-status { display: flex; align-items: center; gap: 0.45rem; margin-top: 1.4rem; color: var(--muted); }
.status-light { width: 0.5rem; height: 0.5rem; background: var(--signal-green); border-radius: 999px; box-shadow: 0 0 0 3px rgba(40, 200, 64, 0.16); }
.intro-mascot { position: absolute; right: -0.35rem; bottom: -0.05rem; width: 8.6rem; height: auto; pointer-events: none; transform: rotate(2deg); }

.post-list { margin: 0; }
.post-item { position: relative; padding: 1.8rem 0 1.95rem 1.4rem; border-bottom: 1px solid var(--border); }
.post-item::before { position: absolute; top: 2.25rem; left: 0; width: 0.45rem; height: 0.45rem; border: 1px solid var(--fg); content: ""; }
.post-item:hover::before { background: var(--accent); border-color: var(--accent); }
.post-link { color: var(--fg); font-size: clamp(1.35rem, 3vw, 1.85rem); font-weight: 720; line-height: 1.25; letter-spacing: -0.052em; }
.post-link:hover { color: var(--accent); text-decoration: none; }
.post-item .post-meta { gap: 0.6rem; margin-top: 0.7rem; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 0.7rem; letter-spacing: 0.02em; }
.tag { color: #4c4b45; font-size: inherit; text-decoration: none; }
.tag:hover { color: var(--accent); text-decoration: none; }
.post-excerpt { max-width: 42rem; margin-top: 0.75rem; color: #585751; font-size: 0.96rem; line-height: 1.65; }
.tags-link { margin: 0 0 1.5rem; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 0.75rem; }
.tags-link a { color: var(--fg); text-decoration: none; border-bottom: 1px solid currentColor; }

.post-title { max-width: 15ch; margin: 0; font-size: clamp(2.35rem, 6.3vw, 4.5rem); line-height: 0.98; letter-spacing: -0.072em; }
.post > .post-meta { margin: 1.35rem 0 3.1rem; padding-bottom: 1rem; border-bottom: 1px dashed #aaa398; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 0.72rem; letter-spacing: 0.02em; }
.post-content { font-size: 1.08rem; line-height: 1.85; }
.post-content h2 { margin-top: 4rem; font-size: clamp(1.65rem, 4vw, 2.35rem); line-height: 1.18; letter-spacing: -0.052em; }
.post-content h3 { font-size: 1.2rem; }
.post-content strong { color: var(--accent); }
.post-content blockquote { padding: 0.3rem 1.25rem; border-left: 3px solid var(--accent); color: #47443f; }
.post-content code, pre { background: #24231f; color: #e9e5db; }
.post-content code { padding: 0.14em 0.35em; border-radius: 2px; font-size: 0.84em; }
pre { padding: 1.25rem; border: 1px solid #393731; border-radius: 2px; }
.toc { padding: 1rem 1.1rem; background: rgba(91, 33, 182, 0.07); border: 1px solid rgba(91, 33, 182, 0.27); border-radius: 2px; }
.toc-title, .toc a { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }

.site-footer { max-width: none; margin: 0; padding: 0; color: #c7c1b5; background: #171715; border-top: 1px solid #37342e; }
.site-footer p { max-width: var(--max-width); margin: 0 auto; padding: 1.6rem 1.25rem; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 0.72rem; }
.site-footer a { color: #eee8dd; text-decoration: none; border-bottom: 1px solid #777168; }

@media (max-width: 640px) {
  .backroom-intro { padding-right: 5.75rem; }
  .intro-mascot { right: -0.4rem; width: 5.7rem; }
  .site-header-inner { min-height: 4rem; }
  .site-nav { gap: 0.75rem; }
  .nav-link { font-size: 0.68rem; }
  .container { padding-top: 2.9rem; }
  .backroom-intro { margin-bottom: 2.35rem; }
  .post-item { padding-left: 1.05rem; }
  .post-item::before { top: 2.05rem; }
  .post-content { font-size: 1rem; }
}
