:root {
  --paper: #edf7ff;
  --paper-raised: rgba(249, 252, 255, .92);
  --rail: #f5faff;
  --accent: #5798df;
  --accent-strong: #3f83c5;
  --accent-soft: #dcedfb;
  --ink: #173555;
  --muted: #637d97;
  --line: rgba(57, 116, 168, .2);
  --grid: rgba(76, 137, 190, .07);
  --shadow: 0 18px 46px rgba(66, 135, 190, .12);
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", SimSun, serif;
  --sans: Inter, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "JetBrains Mono", "Cascadia Code", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    radial-gradient(circle at 15% 8%, rgba(151, 211, 244, .28), transparent 30rem);
  background-size: 12px 12px, 12px 12px, auto;
  background-attachment: fixed;
  font-family: var(--sans);
  line-height: 1.8;
  letter-spacing: .01em;
}

::selection { color: var(--ink); background: #b9ddf6; }
a { color: inherit; }
button { font: inherit; }
main { min-height: calc(100vh - 120px); }

/* Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(245, 250, 255, .9);
  box-shadow: 0 8px 30px rgba(52, 105, 151, .07);
  backdrop-filter: blur(14px);
}
.nav-shell {
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: 1180px;
  min-height: 62px;
  margin: auto;
  padding: 0 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  color: #fff;
  background: var(--accent-strong);
  border-radius: 10px;
  font-family: var(--sans);
  font-size: 14px;
}
.site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.site-nav a,
.nav-more summary {
  padding: 7px 10px;
  color: var(--muted);
  border-radius: 5px;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: color .2s ease, background .2s ease;
}
.site-nav a:hover,
.nav-more summary:hover { color: var(--accent-strong); background: var(--accent-soft); }
.site-nav i { width: 18px; }
.nav-more { position: relative; }
.nav-more summary { list-style: none; }
.nav-more summary::-webkit-details-marker { display: none; }
.nav-submenu {
  position: absolute;
  top: 40px;
  right: 0;
  min-width: 132px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper-raised);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}
.nav-submenu a { display: block; }
.nav-toggle { display: none; border: 0; color: var(--ink); background: none; font-size: 20px; }

/* Homepage editorial hero */
.hero { max-width: 760px; min-height: 640px; margin: 0 auto; padding-top: 30px; }
.hero-art {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--accent-soft);
  box-shadow: var(--shadow);
}
.hero-art img { display: block; width: 100%; height: auto; aspect-ratio: 80 / 29; object-fit: cover; }
.hero-inner { padding: 52px 0 42px; }
.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-strong);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
}
.hero h1,
.page-banner h1,
.article-header h1,
.section-heading h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -.035em;
}
.hero h1 { max-width: 700px; font-size: clamp(48px, 5.2vw, 66px); line-height: 1.18; }
.hero-inner > p:not(.eyebrow) {
  max-width: 600px;
  margin: 20px 0 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 16px;
}
.hero-link {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin-top: 24px;
  color: var(--accent-strong);
  font-size: 13px;
  text-decoration: none;
}
.hero-link span { transition: transform .2s ease; }
.hero-link:hover span { transform: translateY(3px); }

/* Homepage editorial layout: the top navigation stays horizontal; the profile rail is separate. */
.home-layout { max-width: 1220px; margin: 0 auto; padding: 0 24px 80px; }
.home-main { min-width: 0; }
.homepage-intro { max-width: 900px; margin: 0 auto; padding: 38px 0 54px; text-align: center; }
.homepage-mosaic { width: min(800px, 100%); margin: 0 auto; }
.homepage-mosaic img { display: block; width: 100%; aspect-ratio: 2 / 1; border: 1px solid var(--line); object-fit: cover; box-shadow: 0 10px 28px rgba(66, 135, 190, .1); }
.homepage-motto { margin: 18px 0 0; color: var(--accent-strong); font-family: var(--serif); font-size: 19px; font-style: italic; }
.homepage-rule { width: 34px; height: 1px; margin: 18px auto 14px; background: var(--accent); opacity: .65; }
.homepage-copy { max-width: 720px; margin: 0 auto; color: var(--ink); font-family: var(--serif); font-size: 15px; line-height: 1.9; }
.homepage-copy-secondary { margin-top: 2px; color: var(--muted); }
.homepage-latest { max-width: 900px; margin: 0 auto; }
.home-profile-rail { --profile-font-family: "HiraMinProN-W6", "Source Han Serif CN", "Source Han Serif SC", "Source Han Serif TC", "Noto Serif SC", "Songti SC", SimSun, serif; position: fixed; top: 88px; right: 24px; bottom: 20px; z-index: 20; width: 210px; padding: 24px 20px 18px; overflow-y: auto; background: transparent; box-shadow: none; font-family: var(--profile-font-family); text-align: center; scrollbar-width: thin; scrollbar-color: var(--accent-soft) transparent; }
.home-profile-rail.profile-font-typography { --profile-font-family: "HiraMinProN-W6", "Source Han Serif CN", "Source Han Serif SC", "Source Han Serif TC", "Noto Serif SC", "Songti SC", SimSun, serif; }
.home-profile-rail.profile-font-noto-serif { --profile-font-family: "Noto Serif SC", "Source Han Serif SC", "Noto Serif CJK SC", "Songti SC", SimSun, serif; }
.home-profile-rail.profile-font-songti { --profile-font-family: "Songti SC", STSong, SimSun, "STFangsong", serif; }
.home-profile-rail.profile-font-system-serif { --profile-font-family: Georgia, "Times New Roman", "Noto Serif SC", "Songti SC", SimSun, serif; }
.home-profile-rail.profile-font-system-sans { --profile-font-family: Inter, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif; }
.home-profile-rail::before { position: absolute; top: 26px; left: 0; width: 1px; height: 112px; background: var(--accent-strong); content: ''; opacity: .8; }
.home-profile-inner { display: flex; flex-direction: column; align-items: center; height: 100%; }
.home-profile-avatar { flex: 0 0 auto; width: 76px; height: 76px; border: 3px solid var(--paper-raised); border-radius: 50%; object-fit: cover; box-shadow: none; }
.home-profile-name { margin: 13px 0 5px; color: var(--ink); font-family: var(--profile-font-family); font-size: 25px; font-weight: 600; }
.home-profile-bio { margin: 0; color: var(--muted); font-family: var(--profile-font-family); font-size: 15px; line-height: 1.75; }
.home-profile-slogan { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 260px; margin: 22px 0 20px; padding: 24px 16px; overflow: hidden; color: #fff; background: #0b0b0b; font-family: var(--profile-font-family); font-size: 26px; letter-spacing: .12em; line-height: 1.15; }
.home-profile-slogan-column { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.home-profile-slogan-column.is-leading { transform: translate(-5px, -32px); }
.home-profile-slogan-column.is-trailing { margin-left: -2px; transform: translate(5px, 32px); }
.home-profile-slogan-char { display: block; height: 1.15em; }
.home-profile-links { display: flex; flex-direction: column; align-self: stretch; margin: 0 0 10px; text-align: left; }
.home-profile-links a { padding: 5px 0; color: var(--ink); font-family: var(--profile-font-family); font-size: 16px; text-decoration: none; }
.home-profile-links a:hover { color: var(--accent-strong); }
.home-profile-social { display: flex; justify-content: center; gap: 15px; margin-top: auto; padding-top: 12px; }
.home-profile-social a { display: grid; place-items: center; width: 30px; height: 30px; color: var(--ink); border: 1px solid var(--line); border-radius: 50%; text-decoration: none; }
.home-profile-social a:hover { color: var(--accent-strong); border-color: var(--accent); background: var(--accent-soft); }
.home-profile-meta { margin-top: 15px; color: var(--muted); font-family: var(--profile-font-family); font-size: 12px; line-height: 1.7; }
.home-profile-meta p { margin: 2px 0; }

@media (min-width: 901px) {
  .home-layout { padding-right: 250px; }
}

/* Editorial post list */
.page-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  max-width: 1180px;
  margin: auto;
  padding: 50px 24px;
}
.is-home .page-shell { display: block; max-width: 760px; padding: 0 0 80px; }
.content-column { min-width: 0; }
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-top: 36px;
  border-top: 1px solid var(--ink);
}
.section-heading h2 { font-size: 28px; }
.section-heading > a { color: var(--accent-strong); font-size: 13px; text-decoration: none; }
.post-card {
  position: relative;
  margin: 0;
  padding: 28px 48px 30px 0;
  border-top: 1px solid var(--line);
  transition: border-color .2s ease, background .2s ease;
}
.post-card:last-of-type { border-bottom: 1px solid var(--line); }
.post-card:hover {
  border-color: var(--accent);
  background: linear-gradient(90deg, rgba(87, 152, 223, .07), transparent 80%);
}
.post-card h3 { margin: 7px 0 8px; font-family: var(--serif); font-size: 21px; line-height: 1.45; }
.post-card h3 a,
.read-more { color: var(--ink); text-decoration: none; }
.post-card h3 a:hover,
.read-more:hover { color: var(--accent-strong); }
.post-card p {
  display: -webkit-box;
  max-width: 670px;
  margin: 0 0 10px;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.post-meta { display: flex; gap: 9px; color: var(--muted); font-family: var(--mono); font-size: 11px; }
.read-more { color: var(--accent-strong); font-size: 12px; }
.read-more span { display: inline-block; transition: transform .2s ease; }
.read-more:hover span { transform: translateX(4px); }

/* Shared cards, archive and pages */
.page-banner { max-width: 1180px; margin: auto; padding: 62px 24px 20px; }
.page-banner h1 { font-size: 42px; }
.page-banner p:not(.eyebrow) { color: var(--muted); }
.profile-rail-page .page-banner { max-width: 1360px; padding-right: 250px; }
.profile-rail-page .page-shell { max-width: 1360px; padding-right: 250px; }
.sidebar { display: flex; flex-direction: column; gap: 16px; }
.sidebar-card,
.article,
.toc-card,
.archive-list {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-raised);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}
.sidebar-card { padding: 22px; }
.sidebar-card h3 { margin: 0 0 12px; font-family: var(--serif); font-size: 16px; }
.profile { text-align: center; }
.profile img { width: 72px; height: 72px; border-radius: 22px; }
.profile p { margin: 8px 0 16px; color: var(--muted); font-size: 13px; }
.social-links { display: flex; justify-content: center; gap: 14px; }
.social-links a { color: var(--accent-strong); font-size: 13px; text-decoration: none; }
.side-link { display: flex; justify-content: space-between; padding: 8px 0; color: var(--muted); border-bottom: 1px solid var(--line); font-size: 14px; text-decoration: none; }
.side-link:last-child { border: 0; }
.side-link:hover { color: var(--accent-strong); }
.archive-list { padding: 8px 24px; }
.archive-row { display: grid; grid-template-columns: 120px 1fr 140px; gap: 16px; align-items: center; padding: 14px 0; color: var(--ink); border-bottom: 1px solid var(--line); text-decoration: none; }
.archive-row:last-child { border: 0; }
.archive-row time,
.archive-row small { color: var(--muted); font-size: 13px; }
.archive-row:hover span { color: var(--accent-strong); }
.archive-layout { display: grid; grid-template-columns: 170px minmax(0, 900px); gap: 46px; max-width: 1180px; margin: 0 auto; padding: 44px 24px 90px; }
.archive-index { position: sticky; top: 86px; align-self: start; padding: 8px 28px 20px 0; border-right: 1px solid var(--accent); }
.archive-index .eyebrow { margin-bottom: 22px; }
.archive-index-year { margin-top: 22px; }
.archive-index-year-link { color: var(--ink); font-family: var(--serif); font-size: 18px; font-weight: 600; text-decoration: none; }
.archive-index-year-link:hover,
.archive-index-months a:hover { color: var(--accent-strong); }
.archive-index-months { display: flex; flex-direction: column; gap: 1px; margin-top: 8px; padding-left: 10px; }
.archive-index-months a { padding: 1px 0; color: var(--muted); font-family: var(--serif); font-size: 13px; text-decoration: none; }
.archive-stream { min-width: 0; }
.archive-stream-header { margin: 0 0 42px; text-align: center; }
.archive-stream-header h1 { margin: 0; color: var(--ink); font-family: var(--serif); font-size: 34px; font-weight: 500; }
.archive-stream-header p:not(.eyebrow) { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.archive-year-group { margin-bottom: 48px; }
.archive-year-title { margin: 0 0 28px; color: var(--ink); font-family: var(--serif); font-size: 34px; font-weight: 500; text-align: center; }
.archive-month-group { position: relative; margin-bottom: 34px; padding-left: 104px; }
.archive-month-group::before { position: absolute; top: 10px; bottom: 0; left: 74px; width: 1px; background: var(--line); content: ''; }
.archive-month-title { position: absolute; top: 0; left: 0; width: 58px; margin: 0; color: var(--muted); font-family: var(--serif); font-size: 16px; font-weight: 500; text-align: right; }
.archive-entry { position: relative; display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 20px; padding: 0 0 28px; }
.archive-entry::before { position: absolute; top: 8px; left: 70px; width: 9px; height: 9px; border: 2px solid var(--paper); border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 1px var(--accent); content: ''; }
.archive-entry-date { padding-top: 1px; color: var(--muted); font-family: var(--mono); font-size: 12px; }
.archive-entry-body { min-width: 0; }
.archive-entry-body h4 { margin: 0 0 7px; font-family: var(--serif); font-size: 20px; font-weight: 500; line-height: 1.45; }
.archive-entry-body h4 a { color: var(--ink); text-decoration: none; }
.archive-entry-body h4 a:hover { color: var(--accent-strong); }
.archive-entry-meta { display: flex; flex-wrap: wrap; gap: 10px; color: var(--accent-strong); font-size: 12px; }
.archive-entry-meta span + span::before { margin-right: 10px; color: var(--muted); content: '·'; }
.archive-entry-body p { margin: 7px 0 0; color: var(--muted); font-size: 13px; line-height: 1.75; }
.compact { padding-right: 22px; padding-left: 22px; background: var(--paper-raised); }
.pagination { display: flex; justify-content: center; align-items: center; gap: 18px; margin: 34px 0; }
.pagination a { color: var(--accent-strong); text-decoration: none; }
.pagination span { color: var(--muted); font-size: 13px; }

/* Article typography */
.article-shell { align-items: start; }
.article { padding: 40px 48px; }
.article-header { margin-bottom: 30px; }
.article-header h1 { margin-bottom: 12px; font-size: clamp(30px, 4vw, 42px); line-height: 1.35; }
.article-cover { width: 100%; max-height: 340px; margin-bottom: 30px; object-fit: cover; border-radius: 9px; }
.article-content { color: var(--ink); font-size: 16px; line-height: 1.95; }
.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4 { scroll-margin-top: 78px; color: var(--ink); font-family: var(--serif); }
.article-content h2 { margin: 2em 0 .65em; padding-left: 13px; border-left: 3px solid var(--accent); line-height: 1.35; }
.article-content h3 { margin: 1.65em 0 .5em; }
.article-content a { color: var(--accent-strong); text-underline-offset: .2em; }
.article-content blockquote { margin: 1.4em 0; padding: 10px 18px; color: var(--muted); border-left: 3px solid var(--accent); background: var(--accent-soft); }
.article-content img { max-width: 100%; border-radius: 8px; }
.article-content pre { overflow: auto; padding: 18px; color: #dce8f7; background: #152235; border-radius: 9px; line-height: 1.65; }
.article-content code { font-family: var(--mono); font-size: .9em; }
.article-content p code { padding: 2px 5px; color: var(--accent-strong); background: var(--accent-soft); border-radius: 4px; }
.article-content figure.highlight {
  display: block;
  max-width: 100%;
  margin: 1.5em 0;
  overflow-x: auto;
  border-radius: 9px;
  background: #152235;
}
.article-content figure.highlight table { width: max-content; min-width: 100%; margin: 0; border-collapse: collapse; }
.article-content figure.highlight pre { margin: 0; border-radius: 0; }
.article-content figure.highlight .gutter pre { padding-right: 10px; color: #7890aa; text-align: right; }
.article-content > table { display: block; max-width: 100%; overflow-x: auto; }
.article-footer { display: flex; justify-content: space-between; margin-top: 42px; padding-top: 16px; color: var(--muted); border-top: 1px solid var(--line); font-size: 12px; }

/* Butterfly-style TOC: sticky desktop card, active branches and mobile popover. */
.article-aside { position: sticky; top: 80px; }
.toc-card { padding: 20px 24px; }
.item-headline { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; color: var(--ink); font-size: 14px; }
.item-headline i { margin-right: 5px; color: var(--accent); }
.toc-percentage { color: var(--accent); font-size: 18px; font-style: italic; }
.toc-content { width: calc(100% + 28px); max-height: calc(100vh - 150px); margin: 0 -14px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--accent-soft) transparent; }
.toc-content > * { margin: 0 10px !important; }
.toc-content ol,
.toc-content li { margin: 0; list-style: none; }
.toc-content > ol { padding: 0 !important; }
.toc-content ol { padding-left: 18px; }
.toc-content > .toc > .toc-item > .toc-child { margin-left: 10px; padding-left: 10px; border-left: 1px solid rgba(23, 53, 85, .32); }
.toc-content:not(.is-expand) .toc-child { display: none; }
.toc-content:not(.is-expand) .toc-item.active > .toc-child { display: block; }
.toc-link { display: block; margin: 4px 0; padding: 2px 8px; overflow: hidden; color: var(--muted); border-radius: 4px; font-size: 13px; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; transition: color .2s ease, background .2s ease; }
.toc-link:hover { color: var(--accent-strong); }
.toc-link.active { color: #fff; background: var(--accent); }
.mobile-toc-button { display: none; }

.site-footer { padding: 28px 24px; color: var(--muted); border-top: 1px solid var(--line); background: rgba(245, 250, 255, .84); text-align: center; font-size: 13px; }
.footer-meta { margin-top: 4px; color: #8299af; font-size: 12px; }

@media (max-width: 900px) {
  body { background-attachment: scroll; }
  .profile-rail-page .page-banner,
  .profile-rail-page .page-shell { max-width: none; padding-right: 16px; }
  .page-shell { grid-template-columns: 1fr; }
  .sidebar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-aside { position: static; }
  #card-toc {
    position: fixed;
    right: 24px;
    bottom: 84px;
    z-index: 120;
    width: min(300px, calc(100vw - 48px));
    max-height: calc(100vh - 120px);
    transform: scale(0);
    transform-origin: right bottom;
    transition: transform .3s ease-in-out;
  }
  #card-toc.open { transform: scale(1); }
  .toc-content { max-height: calc(100vh - 190px); }
  .toc-content:not(.is-expand) .toc-child { display: block; }
  .archive-layout { grid-template-columns: 1fr; gap: 26px; max-width: none; padding: 34px 18px 68px; }
  .archive-index { position: static; display: flex; align-items: flex-start; gap: 24px; padding: 0 0 18px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .archive-index .eyebrow { flex: 0 0 auto; margin: 6px 0 0; }
  .archive-index-year { flex: 0 0 auto; margin: 0; }
  .archive-index-months { display: flex; flex-direction: row; gap: 12px; padding-left: 0; }
  .archive-stream-header { margin-bottom: 32px; }
  .mobile-toc-button {
    position: fixed;
    right: 24px;
    bottom: 28px;
    z-index: 121;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: #fff;
    border: 0;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 8px 22px rgba(63, 131, 197, .3);
    cursor: pointer;
  }
}

@media (max-width: 700px) {
  .site-header { position: sticky; }
  .nav-shell { min-height: 58px; padding: 0 16px; }
  .nav-toggle { display: block; margin-left: auto; }
  .site-nav { position: absolute; top: 58px; right: 0; left: 0; display: none; flex-direction: column; align-items: stretch; padding: 10px 16px; border-bottom: 1px solid var(--line); background: rgba(248, 252, 255, .98); box-shadow: var(--shadow); }
  .site-nav.is-open { display: flex; }
  .site-nav a,
  .nav-more summary { display: block; }
  .nav-submenu { position: static; padding: 0 0 0 14px; border: 0; background: transparent; box-shadow: none; }
  .hero { min-height: 500px; padding: 20px 18px 0; }
  .hero-art img { aspect-ratio: 16 / 7; }
  .hero-inner { padding: 38px 0 32px; }
  .hero h1 { font-size: clamp(34px, 11vw, 48px); }
  .hero-inner > p:not(.eyebrow) { font-size: 15px; }
  .is-home .page-shell { padding: 0 18px 56px; }
  .page-banner { padding: 45px 18px 15px; }
  .page-shell { padding: 34px 16px; gap: 22px; }
  .post-card { padding: 23px 0 26px; }
  .post-card h3 { font-size: 19px; }
  .sidebar { display: flex; }
  .article { padding: 28px 20px; }
  .article-content { font-size: 15px; }
  .archive-list { padding: 8px 16px; }
  .archive-row { grid-template-columns: 1fr; gap: 2px; padding: 12px 0; }
  .archive-row small { display: none; }
  .archive-layout { padding: 28px 16px 56px; }
  .archive-stream-header h1,
  .archive-year-title { font-size: 29px; }
  .archive-month-group { padding-left: 0; }
  .archive-month-group::before,
  .archive-entry::before { display: none; }
  .archive-month-title { position: static; display: block; width: auto; margin-bottom: 14px; text-align: left; }
  .archive-entry { grid-template-columns: 1fr; gap: 3px; padding-bottom: 22px; }
  .archive-entry-date { font-size: 11px; }
  .archive-entry-body h4 { font-size: 18px; }
  .article-footer { display: block; }
  .article-footer span { display: block; margin-top: 5px; }
  .mobile-toc-button { right: 18px; bottom: 22px; }
  #card-toc { right: 18px; bottom: 76px; width: min(300px, calc(100vw - 36px)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
