/* 글 상세: 공책 한 장 위에 글을 얹은 느낌. 본문 폭 680px, 바탕은 깨끗한 단색 */
    .post-wrap {
      max-width: 760px;
      margin: 0 auto;
    }

    .breadcrumb {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin: 0 0 22px;
      color: var(--color-text-muted);
      font-family: var(--font-mono);
      font-size: .7rem;
      letter-spacing: .04em;
    }

    .breadcrumb a:hover { color: var(--color-accent); }

    .post-sheet {
      position: relative;
      padding: 56px 40px 48px;
      border: 1px solid var(--color-border);
      border-radius: var(--radius-lg);
      background: var(--color-surface-pure);
      box-shadow: var(--shadow-soft);
    }

    /* 종이 위쪽의 옅은 줄공책 띠와 붉은 여백선 */
    .post-sheet::before {
      position: absolute;
      top: 0;
      right: 0;
      left: 0;
      height: 30px;
      content: "";
      border-radius: var(--radius-lg) var(--radius-lg) 0 0;
      background:
        linear-gradient(90deg, transparent 0 46px, rgba(216, 169, 154, .55) 46px 47px, transparent 47px),
        repeating-linear-gradient(180deg, transparent 0 9px, rgba(201, 183, 156, .35) 9px 10px),
        linear-gradient(180deg, #f3ebdd, rgba(243, 235, 221, 0));
    }

    .post-inner {
      max-width: 680px;
      margin: 0 auto;
    }

    .post-head {
      padding-bottom: 28px;
      border-bottom: 1px dashed #d8ccb9;
    }

    .post-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin-bottom: 18px;
    }

    .post-title {
      margin: 0;
      font-family: var(--font-title);
      font-size: clamp(1.6rem, 4.2vw, 2.25rem);
      font-weight: 600;
      line-height: 1.45;
      letter-spacing: -.03em;
      word-break: keep-all;
    }

    .post-lead {
      margin: 16px 0 0;
      color: var(--color-text-sub);
      font-size: 1rem;
      line-height: 1.8;
    }

    .post-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 6px 16px;
      margin-top: 20px;
    }

    .toc {
      margin: 30px 0 34px;
      padding: 20px 24px 18px;
      border: 1px solid var(--color-border);
      border-left: 3px solid #d9b26b;
      border-radius: 0 var(--radius-md) var(--radius-md) 0;
      background: var(--color-surface);
    }

    .toc strong {
      display: block;
      margin-bottom: 8px;
      color: var(--color-text-sub);
      font-family: var(--font-mono);
      font-size: .7rem;
      font-weight: 400;
      letter-spacing: .14em;
    }

    .toc ol {
      margin: 0;
      padding-left: 1.2em;
      color: var(--color-text-sub);
      font-size: .92rem;
      line-height: 1.95;
    }

    .toc a:hover { color: var(--color-accent); }

    .post-body {
      font-size: 1.02rem;
      line-height: 1.95;
      word-break: keep-all;
    }

    .post-body h2 {
      margin: 44px 0 14px;
      font-family: var(--font-title);
      font-size: 1.32rem;
      font-weight: 600;
      line-height: 1.5;
    }

    .post-body h2::before {
      margin-right: 8px;
      color: #c9a26b;
      content: "§";
      font-weight: 400;
    }

    .post-body p { margin: 0 0 18px; }

    .post-body mark {
      padding: 0 2px;
      color: inherit;
      background: linear-gradient(transparent 58%, rgba(217, 178, 107, .38) 58%);
    }

    .post-body blockquote {
      margin: 28px 0;
      padding: 4px 0 4px 22px;
      border-left: 2px solid #c9b79c;
      color: var(--color-text-sub);
      font-family: var(--font-title);
      font-size: 1.04rem;
      line-height: 1.9;
    }

    .post-body ul {
      margin: 0 0 20px;
      padding-left: 1.3em;
    }

    .post-body li { margin-bottom: 6px; }

    .post-body code {
      padding: 1px 6px;
      border-radius: 5px;
      background: #efe7d9;
      font-family: var(--font-mono);
      font-size: .86em;
    }

    /* 코드 상자: 어두운 화면 대신 밝은 원목 톤 메모지로 분위기를 맞춤 */
    .code-box {
      margin: 24px 0 28px;
      overflow: hidden;
      border: 1px solid #ddd0bb;
      border-radius: var(--radius-md);
      background: #f4eee3;
    }

    .code-box__bar {
      display: flex;
      justify-content: space-between;
      padding: 9px 16px;
      border-bottom: 1px solid #e3d8c6;
      color: var(--color-text-muted);
      background: #ece3d4;
      font-family: var(--font-mono);
      font-size: .68rem;
    }

    .code-box pre {
      margin: 0;
      padding: 18px 20px;
      overflow-x: auto;
      color: #3d352e;
      font-family: var(--font-mono);
      font-size: .82rem;
      line-height: 1.75;
    }

    .code-box code { padding: 0; background: none; font-size: inherit; }
    .c-key { color: #a4572a; }
    .c-str { color: #5f7f5a; }
    .c-com { color: #a69e94; font-style: italic; }

    .post-figure {
      margin: 30px 0;
    }

    .post-figure__art {
      height: 220px;
      overflow: hidden;
      border: 1px solid var(--color-border);
      border-radius: var(--radius-md);
    }

    .post-figure__art svg { display: block; width: 100%; height: 100%; }

    .post-figure figcaption {
      margin-top: 10px;
      color: var(--color-text-muted);
      font-size: .82rem;
      text-align: center;
    }

    .post-end {
      display: flex;
      align-items: center;
      gap: 14px;
      margin: 40px 0 0;
      color: var(--color-text-muted);
      font-family: var(--font-mono);
      font-size: .7rem;
      letter-spacing: .14em;
    }

    .post-end::before,
    .post-end::after {
      flex: 1;
      height: 1px;
      content: "";
      background: var(--color-border);
    }

    .author-card {
      display: grid;
      grid-template-columns: 56px 1fr;
      gap: 16px;
      align-items: center;
      margin-top: 32px;
      padding: 20px 22px;
      border: 1px solid var(--color-border);
      border-radius: var(--radius-md);
      background: var(--color-surface);
    }

    .author-card__mark {
      display: grid;
      width: 56px;
      height: 56px;
      place-items: center;
      border-radius: 50%;
      color: #fffaf0;
      background: radial-gradient(circle at 35% 30%, #c4826b, #b5644f 70%);
      font-family: var(--font-title);
      font-size: 1.05rem;
    }

    .author-card p { margin: 0; color: var(--color-text-sub); font-size: .9rem; line-height: 1.7; }
    .author-card strong { display: block; margin-bottom: 2px; color: var(--color-text-main); font-family: var(--font-title); }

    .post-nav {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
      margin-top: 34px;
    }

    .post-nav a {
      display: block;
      padding: 18px 20px;
      border: 1px solid var(--color-border);
      border-radius: var(--radius-md);
      background: var(--color-surface-pure);
      transition: border-color 180ms ease;
    }

    .post-nav a:hover { border-color: #d9b26b; }
    .post-nav a:last-child { text-align: right; }

    .post-nav span {
      display: block;
      margin-bottom: 6px;
      color: var(--color-text-muted);
      font-family: var(--font-mono);
      font-size: .68rem;
    }

    .post-nav b {
      font-family: var(--font-title);
      font-size: .98rem;
      font-weight: 600;
      line-height: 1.5;
    }

    .comments {
      margin-top: 42px;
    }

    .comment-box {
      padding: 32px 24px;
      border: 1px dashed #d3c5ae;
      border-radius: var(--radius-md);
      color: var(--color-text-muted);
      background:
        repeating-linear-gradient(180deg, transparent 0 31px, rgba(201, 183, 156, .25) 31px 32px) 0 32px / 100% 32px,
        var(--color-surface-pure);
      font-size: .88rem;
      line-height: 32px;
      text-align: center;
    }

    .comment-box b { color: var(--color-text-sub); font-weight: 600; }

    @media (max-width: 760px) {
      .post-sheet {
        padding: 44px 20px 34px;
        border-radius: 16px;
      }

      .post-sheet::before { border-radius: 16px 16px 0 0; }

      .post-body { font-size: .98rem; line-height: 1.9; }

      .code-box pre { padding: 15px 14px; font-size: .76rem; }

      .post-figure__art { height: 170px; }

      .post-nav { grid-template-columns: 1fr; }
      .post-nav a:last-child { text-align: left; }
    }
