@font-face {
  font-family: "LXGW WenKai Lite";
  src: url("static/fonts/lxgw-wenkai-lite-latin.woff2") format("woff2");
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+3000-303F, U+FF00-FFEF;
}

@font-face {
  font-family: "LXGW WenKai Lite";
  src: url("static/fonts/lxgw-wenkai-lite-cjk-common.woff2") format("woff2");
  font-display: swap;
  unicode-range: U+4E00-9FFF;
}

@font-face {
  font-family: "LXGW WenKai Lite";
  src: url("static/fonts/lxgw-wenkai-lite-cjk-ext.woff2") format("woff2");
  font-display: swap;
  unicode-range: U+3400-4DBF, U+20000-2A6DF;
}

@font-face {
  font-family: "Noto Serif SC";
  src: url("static/fonts/noto-serif-sc-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+3000-303F, U+FF00-FFEF;
}

@font-face {
  font-family: "Noto Serif SC";
  src: url("static/fonts/noto-serif-sc-400-cjk-common.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+4E00-9FFF;
}

@font-face {
  font-family: "Noto Serif SC";
  src: url("static/fonts/noto-serif-sc-400-cjk-ext.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+3400-4DBF, U+20000-2A6DF;
}

@font-face {
  font-family: "Noto Serif SC";
  src: url("static/fonts/noto-serif-sc-600-latin.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+3000-303F, U+FF00-FFEF;
}

@font-face {
  font-family: "Noto Serif SC";
  src: url("static/fonts/noto-serif-sc-600-cjk-common.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
  unicode-range: U+4E00-9FFF;
}

@font-face {
  font-family: "Noto Serif SC";
  src: url("static/fonts/noto-serif-sc-600-cjk-ext.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
  unicode-range: U+3400-4DBF, U+20000-2A6DF;
}

:root {
  color-scheme: light;
  --bg: #fffefc;
  --text: #292524;
  --muted: #57534e;
  --faint: #a8a29e;
  --border: #e7e5e4;
  --accent: #b91c1c;
  --toc-active: #8f6262;
  --panel: #f2f2f0;
  --code-bg: #fcfcfb;
  --sidebar: 320px;
  --content-width: 900px;
  --font-readable: "Noto Serif SC", ui-serif, Georgia, "Times New Roman", "Songti SC", serif;
  --font-copy: "LXGW WenKai Lite", "Kaiti SC", "STKaiti", serif;
  --font-mono: "Sarasa Mono SC", "Noto Sans Mono CJK SC", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1a1a1a;
  --text: #e5e5e5;
  --muted: #a3a3a3;
  --faint: #737373;
  --border: #333;
  --accent: #f87171;
  --toc-active: #cf9999;
  --panel: #2a2a2a;
  --code-bg: #222;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font: 16px/1.75 var(--font-readable);
}

img { max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.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: 8px;
  left: -999px;
  z-index: 10;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
}

.skip-link:focus { left: 8px; }

.shell {
  display: grid;
  grid-template-columns: var(--sidebar) 1px minmax(0, 1fr);
  min-height: 100vh;
  max-width: 1100px;
  margin: 0 auto;
}

.divider { margin: 50px 0; background: var(--border); opacity: .45; }

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 24px;
  height: 100vh;
  padding: 70px 24px 55px;
}

.site-title {
  position: relative;
  top: -5px;
  font-family: Georgia, var(--font-readable);
  font-size: 28px;
  line-height: 1;
  letter-spacing: .5px;
  transition: transform .2s ease;
}

.site-title:hover { transform: scale(1.05); }

.site-avatar {
  width: 52px;
  height: 52px;
  border: 1px solid var(--border);
  border-radius: 50%;
  object-fit: cover;
}

.site-quote {
  max-width: 220px;
  margin: 0;
  color: var(--muted);
  font: italic 16px/1.75 Georgia, var(--font-readable);
  text-align: right;
}

.site-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  margin-top: -12px;
}

.site-nav a {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 2px 0;
  font-size: 16px;
  transform-origin: right center;
  transition: transform .2s ease;
}

.site-nav a:hover { transform: scale(1.05); }
.site-nav a[aria-current="page"] span {
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.site-nav i { color: var(--text); font-style: normal; opacity: .55; }

.sidebar-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  width: 100%;
  margin-top: auto;
}

.search-form { width: min(100%, 220px); }

.search-form input {
  width: 100%;
  padding: 4px 2px;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  color: var(--text);
  background: transparent;
  font: 13px/1.5 var(--font-copy);
}

.search-form input:focus { border-bottom-color: var(--accent); outline: 0; }
.search-form input::placeholder { color: var(--faint); }

.sidebar-links { display: flex; align-items: center; gap: 12px; color: var(--muted); font: 13px/1.5 var(--font-copy); }
.sidebar-links a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

.icon-action {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.icon-action:hover { color: var(--text); background: var(--panel); }
.ui-icon { display: block; width: 18px; height: 18px; flex: none; }
.mobile-search-toggle { display: none; }
.theme-icon--sun { display: none; }
:root[data-theme="dark"] .theme-icon--moon { display: none; }
:root[data-theme="dark"] .theme-icon--sun { display: block; }

.content { display: flex; min-width: 0; padding: 70px 48px 56px; }
.content-inner { display: flex; flex: 1; flex-direction: column; min-width: 0; max-width: var(--content-width); }

.hero { display: block; width: 100%; height: 260px; border: 1px solid var(--border); border-radius: 6px; object-fit: cover; }

.intro {
  margin: 16px 0 28px;
  color: var(--text);
  font-family: var(--font-copy);
  white-space: normal;
}

.section-title, .page-title {
  margin: 4px 0 2px 14px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.45;
}

.section-title::after {
  display: block;
  width: 32px;
  height: 1px;
  margin-top: 6px;
  background: var(--border);
  content: "";
}

.page-header { margin-bottom: 14px; }
.page-header .page-title { margin-left: 0; font-size: 26px; }

.entry-list { margin-top: 12px; }

.list-item { margin: 0; }

.list-item-link {
  display: block;
  padding: 12px 14px;
  border-radius: 6px;
  transition: background .2s ease;
}

.list-item-link:hover { background: var(--panel); }

.list-item-title { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.55; }
.list-item-link:hover .list-item-title { color: #b88f8f; }

.list-item-excerpt {
  display: -webkit-box;
  margin: 10px 0 0;
  overflow: hidden;
  color: var(--muted);
  font: 15px/1.6 var(--font-copy);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.meta-line { margin-top: 6px; color: var(--faint); font: 12px/1.5 var(--font-copy); }
.meta-separator { margin: 0 7px; }
.entry-tags { display: inline; }
.entry-tags a { margin-right: 7px; }
.entry-tags a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

.article-header { margin-bottom: 26px; }
.entry-title { margin: 0; font-size: 26px; font-weight: 600; line-height: 1.4; }
.article-header .meta-line { margin-top: 10px; }

.post-toc { display: none; }
.toc-list, .toc-children { margin: 0; padding: 0; list-style: none; }
.toc-section + .toc-section { margin-top: 5px; }
.toc-children { margin-top: 2px; padding-left: 10px; }
.toc-children li + li { margin-top: 5px; }
.toc-toggle {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  min-height: 32px;
  padding: 4px 6px 4px 0;
  border: 0;
  border-radius: 4px;
  color: var(--muted);
  background: var(--bg);
  cursor: pointer;
  font: 12px/1.4 var(--font-readable);
}
.toc-toggle:hover { color: var(--text); background: var(--panel); }
.toc-icon { width: 18px; height: 18px; flex: none; }
.toc-icon--menu { display: none; }
.post-toc.is-collapsed .toc-icon--collapse { display: none; }
.post-toc.is-collapsed .toc-icon--menu { display: block; }
.post-toc.is-collapsed .post-toc-inner { display: none; }
.post-toc a {
  display: block;
  overflow-wrap: anywhere;
  color: var(--muted);
  font: inherit;
  line-height: inherit;
}
.post-toc a:hover { color: var(--text); }
.post-toc a[aria-current="location"] { color: var(--toc-active); }

.prose { min-width: 0; overflow-wrap: anywhere; font-size: 15px; line-height: 1.85; }
.prose > :first-child { margin-top: 0; }
.prose h1 { margin: 0 0 12px; font-size: 26px; line-height: 1.45; }
.prose h2 { margin: 42px 0 12px; font-size: 20px; line-height: 1.5; }
.prose h3 { margin: 30px 0 10px; font-size: 17px; line-height: 1.5; }
.prose h4, .prose h5, .prose h6 { margin: 24px 0 8px; font-size: 15px; }
.prose p { margin: 12px 0; }
.prose a { border-bottom: 1px dashed currentColor; }
.prose a:hover { border-bottom-style: solid; }
.prose img { display: block; max-width: 75%; margin: 24px auto; }
.prose figure { max-width: 100%; margin: 24px auto; }
.prose figcaption { color: var(--faint); font: 13px/1.5 var(--font-copy); text-align: center; }
.prose blockquote { margin: 1.2rem 0; padding: .75rem 1rem; border-left: 3px solid var(--border); color: var(--muted); background: var(--code-bg); font-family: var(--font-copy); }
.prose blockquote p { margin: 0; }
.prose pre { max-width: 100%; padding: 14px 16px; overflow: auto; border: 1px solid var(--border); border-radius: 8px; background: var(--code-bg); line-height: 1.65; }
.prose code { padding: 2px 5px; border: 1px solid var(--border); border-radius: 4px; background: var(--code-bg); font: .9em var(--font-mono); }
.prose pre code { padding: 0; border: 0; background: transparent; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose hr { margin: 28px 0; border: 0; border-top: 1px solid var(--border); }
.prose table { display: block; width: 100%; margin: 24px 0; overflow-x: auto; border: 1px solid var(--border); border-spacing: 0; border-radius: 8px; background: var(--code-bg); font-size: 13px; }
.prose th, .prose td { padding: .7rem .95rem; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.prose th { background: var(--panel); font-weight: 600; }
.prose tr:last-child td { border-bottom: 0; }
.prose th:last-child, .prose td:last-child { border-right: 0; }

.post-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 54px 0 0;
  font: 14px/1.6 var(--font-readable);
}
.post-nav > div {
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow-wrap: anywhere;
}
.post-nav > div:last-child { text-align: right; }
.post-nav span { display: block; margin-bottom: 6px; color: var(--faint); font: inherit; }
.post-nav a { display: block; font: inherit; }
.post-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }

.pagination { margin-top: 28px; color: var(--muted); font: 14px/1.5 var(--font-copy); }
.page-nav, .pagination ol, .pagination ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pagination a, .pagination .current a { display: inline-flex; min-width: 30px; min-height: 30px; align-items: center; justify-content: center; padding: 0 8px; border-radius: 4px; }
.pagination a:hover, .pagination .current a { color: var(--text); background: var(--panel); }

.empty-state { padding: 80px 0; text-align: center; }
.empty-state h1 { margin: 0; font-size: 28px; }
.empty-state p { margin: 8px 0 16px; color: var(--muted); font-family: var(--font-copy); }
.text-link { border-bottom: 1px solid currentColor; }

.archive-page .page-header { margin-bottom: 22px; }
.archive-year { margin: 28px 0 8px; font-size: 20px; line-height: 1.4; }
.archive-list { display: flex; flex-direction: column; gap: 8px; }
.archive-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: baseline; font-size: 15px; line-height: 1.55; }
.archive-title { grid-column: 2; grid-row: 1; min-width: 0; }
.archive-meta { display: contents; }
.archive-date { color: var(--faint); font-family: var(--font-copy); font-variant-numeric: tabular-nums; }
.archive-date { grid-column: 1; grid-row: 1; }
.archive-date-full { display: none; }
.archive-title:hover { text-decoration: underline; text-underline-offset: 4px; }
.archive-tags { grid-column: 3; grid-row: 1; color: var(--faint); font: 13px/1.5 var(--font-copy); text-align: right; }
.archive-tags a + a { margin-left: 6px; }
.archive-tags a::before { content: "#"; }
.archive-tags a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.empty-archive { color: var(--muted); font-family: var(--font-copy); }

.comments { margin-top: 54px; padding-top: 20px; border-top: 1px solid var(--border); }
.comments-title, .respond h2 { margin: 0 0 18px; font-size: 20px; }
.comment-list, .comment-list ol { margin: 0; padding: 0; list-style: none; }
.comment-item { margin: 0; }
.comment-body {
  --comment-avatar-size: 48px;
  position: relative;
  display: grid;
  grid-template-columns: var(--comment-avatar-size) minmax(0, 1fr);
  column-gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-readable);
  font-size: 15px;
  line-height: 1.85;
}
.comment-head { display: contents; }
.comment-head .avatar {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: var(--comment-avatar-size);
  height: var(--comment-avatar-size);
  border-radius: 0;
  object-fit: cover;
}
.comment-head > div { display: grid; grid-column: 2; grid-row: 1; grid-template-rows: repeat(2, calc(var(--comment-avatar-size) / 2)); height: var(--comment-avatar-size); }
.comment-author { display: flex; align-items: center; font-size: 15px; font-style: normal; font-weight: 600; line-height: 1; }
.comment-date { display: flex; align-items: center; color: var(--faint); font-size: 14px; line-height: 1; }
.comment-content { grid-column: 2; grid-row: 2; margin: 10px 96px 0 0; font: inherit; line-height: inherit; }
.comment-content p { margin: 0; }
.comment-reply { position: absolute; top: 14px; right: 0; font: inherit; line-height: 1.5; }
.comment-reply a { color: var(--faint); }
.comment-reply a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.comment-children { margin: 0 0 0 62px; padding: 0; }
.comment-pagination { margin-top: 12px; }
.respond { margin-top: 30px; }
.cancel-reply { margin-bottom: 10px; color: var(--muted); font: 13px var(--font-copy); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.respond p { margin: 0 0 14px; }
.respond label { display: block; margin-bottom: 4px; color: var(--muted); font: 13px var(--font-copy); }
.respond input, .respond textarea { width: 100%; padding: 8px 10px; border: 1px solid var(--border); border-radius: 4px; color: var(--text); background: transparent; font: 14px/1.6 var(--font-readable); }
.respond textarea { resize: vertical; }
.respond button { padding: 7px 13px; border: 1px solid var(--border); border-radius: 4px; color: var(--text); background: var(--panel); cursor: pointer; font: 14px var(--font-copy); }
.respond button:hover { border-color: var(--muted); }
.logged-in, .comments-closed { color: var(--muted); font-family: var(--font-copy); }

.site-footer { display: flex; justify-content: center; gap: 10px; margin-top: auto; padding: 80px 0 10px; color: var(--faint); font: 12px/1.5 var(--font-copy); text-align: center; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 900px) {
  .shell { --mobile-nav-gap: 28px; display: block; max-width: none; }
  .divider { display: none; }
  .sidebar {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "title actions"
      "nav nav";
    align-items: center;
    column-gap: 12px;
    row-gap: var(--mobile-nav-gap);
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 22px 28px 0;
    border-bottom: 0;
  }
  .site-title {
    grid-area: title;
    top: 0;
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
    font-size: 23px;
    line-height: 1.3;
    justify-self: start;
  }
  .site-avatar, .site-quote { display: none; }
  .site-nav {
    grid-area: nav;
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    justify-content: center;
    gap: 2px 8px;
    width: 100%;
    margin: 0;
  }
  .site-nav a {
    min-height: 36px;
    padding: 4px 10px;
    justify-content: center;
    gap: 0;
    transform-origin: center;
  }
  .site-nav i { display: none; }
  .sidebar-actions {
    display: contents;
  }
  .search-form {
    display: none;
    grid-column: 1 / -1;
    grid-row: 3;
    width: 100%;
    max-width: none;
  }
  .sidebar.is-search-open .search-form { display: block; }
  .sidebar-links { grid-area: actions; gap: 2px; justify-self: end; }
  .sidebar-links a { display: none; }
  .mobile-search-toggle { display: inline-flex; }
  .icon-action { width: 36px; height: 36px; }
  .ui-icon { width: 20px; height: 20px; }
  .content { min-height: calc(100vh - 116px); padding: var(--mobile-nav-gap) 28px 42px; }
  .page-title { margin-top: 0; }
  .hero { height: 220px; }
  .prose img { max-width: 92%; }
}

@media (max-width: 640px) {
  .shell { --mobile-nav-gap: 24px; }
  .sidebar { padding: 20px 18px 0; }
  .site-nav { column-gap: 4px; }
  .site-nav a { padding: 4px 8px; font-size: 15px; }
  .content { padding: var(--mobile-nav-gap) 18px 28px; }
  .hero { height: 150px; }
  .intro { margin: 12px 0 18px; font-size: 15px; }
  .section-title { margin-left: 0; }
  .list-item-link { padding: 12px 0; }
  .list-item-title { font-size: 17px; }
  .prose { font-size: 15px; }
  .prose img { max-width: 100%; }
  .post-nav { gap: 8px; }
  .post-nav > div { padding: 10px 12px; }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
  .comment-body { padding: 10px 0; }
  .comment-content { margin: 10px 0 0; }
  .comment-reply { top: 14px; }
  .comment-children { margin-left: 24px; }
  .archive-list { gap: 18px; }
  .archive-row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .archive-title { grid-column: 1; grid-row: 1; }
  .archive-meta {
    grid-column: 1;
    grid-row: 2;
    display: flex;
    align-items: baseline;
    gap: 6px;
    color: var(--faint);
    font: 12px/1.75 var(--font-copy);
  }
  .archive-date { grid-column: auto; grid-row: auto; color: inherit; font: inherit; }
  .archive-date-short { display: none; }
  .archive-date-full { display: inline; }
  .archive-tags { grid-column: auto; grid-row: auto; color: inherit; font: inherit; text-align: left; }
  .archive-tags:not(:empty)::before { content: "-"; margin-right: 6px; }
  .site-footer { flex-direction: column; gap: 2px; padding-top: 56px; }
}

@media (max-width: 360px) {
  .shell { --mobile-nav-gap: 20px; }
  .sidebar { padding: 18px 14px 0; }
  .site-title { font-size: 21px; }
  .site-nav { column-gap: 2px; }
  .site-nav a { min-height: 34px; padding: 3px 7px; font-size: 14px; }
}

/* Mine New：宽屏使用单栏横版头部，移动端规则沿用上方响应式布局。 */
@media (min-width: 901px) {
  .shell {
    --wide-header-gap: 28px;
    display: block;
    max-width: 1100px;
  }

  .divider { display: none; }

  .sidebar {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "title actions"
      "nav nav";
    align-items: center;
    column-gap: 16px;
    row-gap: var(--wide-header-gap);
    width: min(var(--content-width), calc(100% - 96px));
    height: auto;
    margin: 0 auto;
    padding: 54px 0 0;
  }

  .site-title {
    grid-area: title;
    top: 0;
    margin: 0;
    line-height: 1.2;
    justify-self: start;
  }

  .site-avatar,
  .site-quote { display: none; }

  .site-nav {
    grid-area: nav;
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    justify-content: center;
    gap: 4px 12px;
    width: 100%;
    margin: 0;
  }

  .site-nav a {
    min-height: 38px;
    padding: 4px 12px;
    justify-content: center;
    gap: 0;
    transform-origin: center;
  }

  .site-nav i { display: none; }
  .sidebar-actions { display: contents; }

  .search-form {
    display: none;
    grid-column: 1 / -1;
    grid-row: 3;
    width: 100%;
    max-width: none;
  }

  .sidebar.is-search-open .search-form { display: block; }

  .sidebar-links {
    grid-area: actions;
    gap: 2px;
    justify-self: end;
  }

  .sidebar-links a { display: none; }
  .mobile-search-toggle { display: inline-flex; }
  .icon-action { width: 36px; height: 36px; }
  .ui-icon { width: 20px; height: 20px; }

  .content {
    min-height: calc(100vh - 154px);
    padding: var(--wide-header-gap) 48px 56px;
  }

  .content-inner {
    width: 100%;
    max-width: var(--content-width);
    margin: 0 auto;
  }

  .post-layout {
    display: grid;
    grid-template-columns: minmax(0, 7.3fr) minmax(0, 1.7fr);
    grid-template-rows: auto auto auto;
    column-gap: 32px;
    width: 100%;
  }

  .post-layout > .article { display: contents; }
  .post-layout .article-header { grid-column: 1; grid-row: 1; }
  .post-layout .article > .prose { grid-column: 1; grid-row: 2; }

  .post-toc:not([hidden]) {
    display: block;
    grid-column: 2;
    grid-row: 2 / span 2;
    min-width: 0;
    font-family: var(--font-readable);
    font-size: 12px;
    line-height: 1.5;
  }

  .post-toc-sticky {
    position: sticky;
    top: 24px;
    max-height: calc(100vh - 48px);
    display: flex;
    flex-direction: column;
  }

  .post-toc-inner {
    min-height: 0;
    margin-top: 8px;
    overflow-y: auto;
    scrollbar-width: thin;
  }

  .post-followup { grid-column: 1; grid-row: 3; }
}
