/* Shared pixel navigation with a light pixel treatment for Fluid reading pages.
 * The standalone home keeps its own design.
 * DESIGN_VARIANCE: 3; MOTION_INTENSITY: 2; VISUAL_DENSITY: 3.
 * Pixel typography for navigation and accents; system typography for articles. */
@font-face {
  font-family: "Blog Pixel";
  src: url("/fonts/fusion-pixel/fusion-pixel-12px-proportional-zh_hans.otf.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

body.pixel-shell {
  --pixel-font: "Blog Pixel", "Microsoft YaHei", sans-serif;
  --reading-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  --font-family-sans-serif: var(--pixel-font);
  font-family: var(--pixel-font);
  --pixel-accent: #ae315e;
  --pixel-soft: #fbeaf0;
  --pixel-edge: #d9d5df;
  --pixel-shadow: #e3dfe8;
  --pixel-pattern: #ddd9e3;
  --pixel-nav: #1b1b28;
  --pixel-nav-text: #f7f3f8;
}

.pixel-shell :is(.markdown-body, button, input, select, textarea) {
  font-family: var(--pixel-font);
}

/* Long-form reading, article previews, and the table of contents stay clear. */
.pixel-shell :is(.index-card, .post-content, #toc),
.pixel-post .banner-text {
  --pixel-font: var(--reading-font);
  --font-family-sans-serif: var(--reading-font);
  font-family: var(--reading-font);
}
.pixel-shell .markdown-body { font-family: var(--reading-font); }

body.pixel-blog {
  --body-bg-color: #f3f1f6;
  --board-bg-color: #ffffff;
  --text-color: #33313f;
  --sec-text-color: #706a7c;
  --post-text-color: #393544;
  --post-heading-color: #292633;
  --post-link-color: var(--pixel-accent);
  --link-hover-color: var(--pixel-accent);
  --link-hover-bg-color: var(--pixel-soft);
  --line-color: #e6e1e9;
  --navbar-bg-color: var(--pixel-nav);
  --navbar-text-color: var(--pixel-nav-text);
  --button-bg-color: var(--board-bg-color);
  --button-hover-bg-color: var(--pixel-soft);
  background-image: radial-gradient(var(--pixel-pattern) 1px, transparent 1px);
  background-size: 16px 16px;
}

:root[data-user-color-scheme="dark"] body.pixel-shell {
  --pixel-accent: #ffa6c2;
  --pixel-soft: #3b293c;
  --pixel-edge: #494253;
  --pixel-shadow: #10101a;
  --pixel-pattern: #302b3c;
}

:root[data-user-color-scheme="dark"] body.pixel-blog {
  --body-bg-color: #1b1b28;
  --board-bg-color: #242330;
  --text-color: #f0eaf3;
  --sec-text-color: #b3a9bf;
  --post-text-color: #ded8e5;
  --post-heading-color: #f6f0f8;
  --line-color: #413b4d;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-user-color-scheme]) body.pixel-shell {
    --pixel-accent: #ffa6c2;
    --pixel-soft: #3b293c;
    --pixel-edge: #494253;
    --pixel-shadow: #10101a;
    --pixel-pattern: #302b3c;
  }

  :root:not([data-user-color-scheme]) body.pixel-blog {
    --body-bg-color: #1b1b28;
    --board-bg-color: #242330;
    --text-color: #f0eaf3;
    --sec-text-color: #b3a9bf;
    --post-text-color: #ded8e5;
    --post-heading-color: #f6f0f8;
    --line-color: #413b4d;
  }
}

.pixel-shell ::selection { background: var(--pixel-soft); color: var(--pixel-accent); }
.pixel-shell :is(a, button, input, [tabindex]):focus-visible {
  outline: 2px solid var(--pixel-accent);
  outline-offset: 4px;
}

/* Solid navigation echoes the homepage and keeps every label legible over photos. */
.pixel-shell #navbar {
  font-size: 1rem;
  background: var(--pixel-nav);
  border-bottom: 2px solid #494052;
  box-shadow: none;
  padding-block: 8px;
}
.pixel-shell #navbar .navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
}
.pixel-shell #navbar .navbar-brand::before {
  content: "";
  width: 28px;
  height: 28px;
  background: url("/img/favicon.svg") center / contain no-repeat;
  image-rendering: pixelated;
}
.pixel-shell #navbar .nav-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 44px;
  min-height: 44px;
  color: var(--pixel-nav-text);
  transition: color 120ms ease, background-color 120ms ease, transform 120ms steps(2, end);
}
.pixel-shell #navbar .nav-link:is(:hover, [aria-current="page"]),
.pixel-shell #navbar .is-current-section > .dropdown-toggle {
  color: #ffd2df;
  background: #342a3b;
}
.pixel-shell #navbar .nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  height: 3px;
  bottom: 0;
  left: 10px;
  right: 10px;
  background: #f45b91;
}
.pixel-shell #navbar .nav-link:active { transform: translateY(2px); }
.pixel-shell #navbar :focus-visible { outline-color: #ffd2df; }
.pixel-shell .navbar .animated-icon span { border-radius: 0; }
.pixel-shell #navbar button.nav-link { border: 0; background-color: transparent; font: inherit; cursor: pointer; }
.pixel-shell #navbar button.nav-link:is(:hover, :focus-visible),
.pixel-shell #navbar .is-current-section > button.nav-link { background: #342a3b; color: #ffd2df; }
.pixel-shell #navbar .dropdown-menu { min-width: 9rem; padding: 6px; border: 1px solid var(--line-color); border-radius: 4px; background: var(--board-bg-color); box-shadow: none; }
.pixel-shell #navbar .dropdown-item { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; color: var(--text-color); }
.pixel-shell #navbar .dropdown-item:is(:hover, :focus, [aria-current="page"]) { background: var(--pixel-soft); color: var(--pixel-accent); }

.pixel-shell .about-info > .about-contact-links { display: flex; justify-content: center; flex-wrap: nowrap; gap: 20px; width: max-content; max-width: 100%; margin: 24px auto 0; font-family: var(--reading-font); }
.pixel-shell .about-contact-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; width: 76px; min-height: 80px; padding: 8px 6px; border: 0; border-radius: 6px; background: transparent; color: var(--text-color); text-align: center; text-decoration: none; cursor: pointer; transition: color 160ms ease; }
.pixel-shell .about-contact-item > i { flex: none; width: 32px; height: 32px; font-size: 30px; line-height: 32px; text-align: center; }
.pixel-shell .about-contact-text { display: block; }
.pixel-shell .about-contact-label { color: inherit; font-size: 13px; font-weight: 500; line-height: 1.4; letter-spacing: .01em; }
.pixel-shell .about-contact-item:is(:hover, :focus-visible), .pixel-shell .about-contact-wechat[open] > summary { color: var(--pixel-accent); text-decoration: none; }
.pixel-shell .about-contact-item:focus-visible { outline: 2px solid var(--pixel-accent); outline-offset: 3px; }
.pixel-shell .about-contact-wechat { position: relative; flex: none; width: 76px; }
.pixel-shell .about-contact-wechat > summary { list-style: none; }
.pixel-shell .about-contact-wechat > summary::-webkit-details-marker { display: none; }
.pixel-shell .about-contact-image { position: absolute; z-index: 10; top: calc(100% + 10px); right: 0; width: 192px; max-width: calc(100vw - 48px); padding: 8px; border: 1px solid var(--line-color); border-radius: 6px; background: var(--board-bg-color); }
.pixel-shell .about-contact-image img { display: block; width: 100%; height: auto; border-radius: 2px; }

/* Pixelarticons 2.4.2, MIT. Local masks retain the theme's existing icon hooks. */
.pixel-shell .icon-home-fill { --pixel-icon: url("/lib/pixelarticons/home.svg"); }
.pixel-shell .icon-articles { --pixel-icon: url("/lib/pixelarticons/article.svg"); }
.pixel-shell .icon-archive-fill { --pixel-icon: url("/lib/pixelarticons/archive.svg"); }
.pixel-shell :is(.icon-category-fill, .icon-category) { --pixel-icon: url("/lib/pixelarticons/folder.svg"); }
.pixel-shell :is(.icon-tags-fill, .icon-tags) { --pixel-icon: url("/lib/pixelarticons/label.svg"); }
.pixel-shell .icon-images { --pixel-icon: url("/lib/pixelarticons/image.svg"); }
.pixel-shell .icon-user-fill { --pixel-icon: url("/lib/pixelarticons/user.svg"); }
.pixel-shell .icon-link-fill { --pixel-icon: url("/lib/pixelarticons/link.svg"); }
.pixel-shell .icon-search { --pixel-icon: url("/lib/pixelarticons/search.svg"); }
.pixel-shell .icon-dark { --pixel-icon: url("/lib/pixelarticons/moon.svg"); }
.pixel-shell .icon-light { --pixel-icon: url("/lib/pixelarticons/sun.svg"); }
.pixel-shell .icon-date { --pixel-icon: url("/lib/pixelarticons/calendar.svg"); }
.pixel-shell .icon-arrowup { --pixel-icon: url("/lib/pixelarticons/arrow-up.svg"); }
.pixel-shell .icon-arrowleft { --pixel-icon: url("/lib/pixelarticons/arrow-left.svg"); }
.pixel-shell .icon-arrowright { --pixel-icon: url("/lib/pixelarticons/arrow-right.svg"); }
.pixel-shell .iconfont:is(.icon-home-fill, .icon-articles, .icon-archive-fill, .icon-category-fill, .icon-category, .icon-tags-fill, .icon-tags, .icon-images, .icon-user-fill, .icon-link-fill, .icon-search, .icon-dark, .icon-light, .icon-date, .icon-arrowup, .icon-arrowleft, .icon-arrowright) {
  display: inline-block;
  flex-shrink: 0;
  width: 1em;
  height: 1em;
  background: currentColor;
  -webkit-mask: var(--pixel-icon) center / contain no-repeat;
  mask: var(--pixel-icon) center / contain no-repeat;
  vertical-align: -0.12em;
}
.pixel-shell .iconfont:is(.icon-home-fill, .icon-articles, .icon-archive-fill, .icon-category-fill, .icon-category, .icon-tags-fill, .icon-tags, .icon-images, .icon-user-fill, .icon-link-fill, .icon-search, .icon-dark, .icon-light, .icon-date, .icon-arrowup, .icon-arrowleft, .icon-arrowright)::before { content: none; }

/* Preserve banner imagery; stepped corners connect it to the reading panel. */
.pixel-blog .banner {
  background-color: var(--pixel-nav) !important;
}
.pixel-noise::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.06;
  background: url("/img/home/noise/noise-w.png") center / 960px 540px repeat;
}
.pixel-noise .full-bg-img { position: relative; z-index: 1; height: 100%; }
.pixel-shell .banner-text { font-family: var(--reading-font); }
.pixel-blog .banner-text { text-shadow: 0 2px 14px rgb(15 18 32 / 35%); }
.pixel-blog .banner-text .h2 { line-height: 1.5; font-weight: 600; }
.pixel-heading .banner-text .h2 {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  margin-bottom: 0;
  padding: 0.2em 0.15em 0.65em;
  font-family: "Blog Pixel", var(--reading-font);
  font-size: 36px;
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #f7f3f8;
  text-shadow: 0 2px 0 #101321;
}
.pixel-heading #subtitle { position: relative; display: inline-block; }
.pixel-heading .welcome-letter { display: inline-block; white-space: pre; }
.pixel-welcome #subtitle { white-space: nowrap; }
.pixel-welcome .welcome-mark {
  display: inline-block;
  width: 1.2em;
  height: 1.2em;
  margin-inline: 0.2em;
  vertical-align: -0.2em;
  letter-spacing: 0;
}
.pixel-welcome .welcome-mark img {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}
.pixel-blog .fade-in-up, .pixel-heading .fade-in-up { animation: none; }
.pixel-blog .scroll-down-bar i, .pixel-blog #scroll-top-button i { animation: none !important; }
.pixel-blog .banner-text > .h2::after {
  content: "";
  display: block;
  width: 32px;
  height: 4px;
  margin: 18px auto 0;
  background: #ffd2df;
  box-shadow: -8px 4px 0 #f45b91, 8px 4px 0 #f45b91;
}
.pixel-heading .banner-text > .h2::after {
  content: "";
  display: block;
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 36px;
  height: 2px;
  margin: 0;
  background: #ffd2df;
  box-shadow: none;
  opacity: 0.75;
  transform: translateX(-50%);
}
.pixel-blog #board {
  scroll-margin-top: 88px;
  border: 2px solid var(--pixel-edge);
  border-radius: 0;
  box-shadow: 6px 6px 0 var(--pixel-shadow);
}
.pixel-blog #board::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  width: 24px;
  height: 4px;
  background: var(--pixel-accent);
  box-shadow: 0 4px 0 var(--pixel-accent), 4px 8px 0 var(--board-bg-color);
  pointer-events: none;
}
.pixel-blog #board::after {
  content: "";
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 12px;
  height: 4px;
  background: var(--pixel-accent);
  box-shadow: 8px -4px 0 var(--pixel-accent);
  pointer-events: none;
}

/* Keep the article list clearly separated from the wallpaper. */
.blog-list-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line-color); }
.blog-list-heading h2 { margin: 0; color: var(--text-color); font: 400 20px/1.6 var(--pixel-font); }
.blog-list-heading > span { color: var(--sec-text-color); font: 400 14px/1.6 var(--pixel-font); }
.blog-article-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 24px; padding-bottom: 12px; border-bottom: 1px solid var(--line-color); }
.blog-list-heading .blog-article-filters { margin: 0; padding: 0; border: 0; }
.blog-article-filters > a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 12px; border: 1px solid transparent; border-radius: 4px; color: var(--sec-text-color); font: 400 14px/1.5 var(--reading-font); }
.blog-article-filters > a:is(:hover, [aria-current="true"]) { color: var(--pixel-accent); background: var(--pixel-soft); border-color: var(--line-color); text-decoration: none; }
@media (max-width: 767px) {
  .blog-list-heading { margin-bottom: 1.5rem; }
}

.pixel-blog .index-card { margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--line-color); }
.pixel-blog .index-card:last-of-type { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.pixel-blog .index-img img {
  border: 1px solid var(--pixel-edge);
  border-radius: 0;
  box-shadow: 4px 4px 0 var(--pixel-shadow);
}
.pixel-blog .index-header { white-space: normal; font-size: 1.4rem; line-height: 1.5; }
.pixel-blog .index-header a { text-wrap: pretty; }
.pixel-blog .index-excerpt { height: calc(1.65rem * 3); }
.pixel-blog .index-excerpt__noimg { height: auto; max-height: calc(1.65rem * 3); }
.pixel-blog .index-excerpt > div { line-height: 1.65; }
.pixel-blog .post-meta time { font: 400 0.85rem/1.7 var(--pixel-font); }
.pixel-blog .post-meta { line-height: 1.8; }
.pixel-blog .index-btm a:hover { color: var(--pixel-accent); }

/* Square controls carry the pixel treatment without changing content typography. */
.pixel-blog :is(.pagination .page-number, .pagination .extend, .markdown-body .btn, #scroll-top-button) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--pixel-edge);
  border-radius: 0;
  background: var(--board-bg-color);
  color: var(--text-color);
  box-shadow: 3px 3px 0 var(--pixel-shadow);
  transition: color 120ms ease, background-color 120ms ease, transform 120ms steps(2, end), box-shadow 120ms ease;
}
.pixel-blog .pagination { gap: 8px; flex-wrap: wrap; }
.pixel-blog .pagination .page-number { margin: 0; font-family: "Blog Pixel", monospace; }
.pixel-blog :is(.pagination .page-number, .pagination .extend, .markdown-body .btn, #scroll-top-button):hover {
  background: var(--pixel-soft);
  color: var(--pixel-accent);
  border-color: var(--pixel-accent);
}
.pixel-blog :is(.pagination .page-number, .pagination .extend, .markdown-body .btn, #scroll-top-button):active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--pixel-shadow);
}
.pixel-blog .pagination .current {
  color: var(--pixel-accent);
  background: var(--pixel-soft);
  border-color: var(--pixel-accent);
}
.pixel-blog #scroll-top-button { width: 44px; height: 44px; padding: 0; }
.pixel-blog .tagcloud { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.pixel-blog .tagcloud a {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 6px 14px;
  border: 1px solid var(--pixel-edge);
  color: var(--text-color) !important; /* Fluid emits inline tag colors. */
  background: var(--board-bg-color);
  box-shadow: 3px 3px 0 var(--pixel-shadow);
  line-height: 1.5;
  overflow-wrap: anywhere;
  transition: background-color 120ms ease, transform 120ms steps(2, end);
}
.pixel-blog .tagcloud a:is(:hover, :focus-visible) { color: var(--pixel-accent) !important; background: var(--pixel-soft); border-color: var(--pixel-accent); }
.pixel-blog .tagcloud a:active { transform: translate(2px, 2px); }
.pixel-blog .category > .category-item { border-left: 3px solid var(--pixel-accent); background: var(--pixel-soft); }
.pixel-blog .category-count { justify-content: center; color: var(--pixel-accent); }
.pixel-blog .list-group-item { border-radius: 0; min-height: 44px; }
.pixel-blog .list-group-item time { color: var(--sec-text-color); font-family: "Blog Pixel", monospace; }
.pixel-blog .list-group-item-action.active { color: var(--pixel-accent); background: var(--pixel-soft); }

.pixel-blog .markdown-body { line-height: 1.85; }
.pixel-blog .markdown-body :is(h1, h2, h3, h4, h5, h6) { line-height: 1.5; }
.pixel-blog .markdown-body h2 { padding-bottom: 0.5em; border-bottom-width: 2px; }
.pixel-blog .markdown-body a:not(.btn) { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.pixel-blog .markdown-body blockquote { border-left: 3px solid var(--pixel-accent); background: var(--pixel-soft); padding: 0.75rem 1.25rem; }
.pixel-blog .markdown-body blockquote > :last-child { margin-bottom: 0; }
.pixel-blog :is(.markdown-body pre, .markdown-body figure.highlight, .markdown-body details, .license-box, .note, .fold, .label) { border-radius: 0; }
.pixel-blog .license-box { background: var(--pixel-soft); border: 1px solid var(--pixel-edge); }
.pixel-blog .note-info { border-color: var(--pixel-accent); background: var(--pixel-soft); }
.pixel-blog .post-prevnext a { min-height: 44px; }
.pixel-blog .post-prevnext a:hover i { animation: none; }
.pixel-blog .toc-header { padding-left: 10px; border-left: 3px solid var(--pixel-accent); }
.pixel-blog .tocbot-active-link { color: var(--pixel-accent); }
.pixel-blog .toc-list-item::before { border-radius: 0; background: var(--pixel-accent); }

.pixel-shell #modalSearch .modal-content {
  border: 2px solid var(--pixel-edge);
  border-radius: 0;
  box-shadow: 6px 6px 0 var(--pixel-shadow);
}
.pixel-shell #modalSearch .modal-header { border-bottom: 2px solid var(--line-color); }
.pixel-shell #local-search-close { opacity: 1; min-width: 44px; min-height: 44px; text-shadow: none; }
.pixel-shell #local-search-input { color: var(--post-text-color); border-bottom: 2px solid var(--pixel-edge); }
.pixel-shell #local-search-input:focus { border-color: var(--pixel-accent); box-shadow: none; }
.pixel-shell #modalSearch #local-search-input.valid,
.pixel-shell #modalSearch #local-search-input:focus { border-bottom-color: var(--pixel-accent); box-shadow: none; }
.pixel-shell #modalSearch .md-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pixel-shell #modalSearch .md-form label {
  position: static;
  display: block;
  margin: 0;
  color: var(--sec-text-color);
  line-height: 1.5;
}
.pixel-shell #modalSearch #local-search-input {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
}
.pixel-shell #local-search-result .search-list-title { border-color: var(--pixel-accent); }
.pixel-shell #local-search-result .search-word { color: var(--pixel-accent); }
.pixel-shell #mobile-grid-menu { background: var(--pixel-nav); }
.pixel-shell #mobile-grid-menu:not(.show) { visibility: hidden; }
.pixel-shell #mobile-grid-menu .mobile-grid-cell { flex: 0 0 50%; max-width: 50%; }
.pixel-shell .mobile-menu-primary[hidden], .pixel-shell .mobile-menu-secondary[hidden] { display: none !important; }
.pixel-shell .mobile-more-button { width: 100%; color: var(--pixel-nav-text); font: inherit; }
.pixel-shell .mobile-more-icon { width: 26px; height: 26px; margin-bottom: 6px; color: var(--pixel-nav-text); }
.pixel-shell .mobile-menu-secondary-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 8px -7px 12px; padding: 4px 8px 12px; border-bottom: 1px solid #494052; color: var(--pixel-nav-text); }
.pixel-shell .mobile-menu-secondary-header h2 { margin: 0; color: inherit; font: 400 18px/1.4 var(--pixel-font); }
.pixel-shell .mobile-menu-back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 0; border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.pixel-shell .mobile-menu-secondary .mobile-grid-cell { animation: none !important; }
.pixel-shell .mobile-menu-utilities { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 16px -7px 0; padding: 12px 8px 0; border-top: 1px solid #494052; color: var(--pixel-nav-text); font-size: 14px; }
.pixel-shell .mobile-menu-utilities > span { opacity: .75; }
.pixel-shell .mobile-theme-switch { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 8px; color: var(--pixel-nav-text); }
.pixel-shell .mobile-theme-switch:hover, .pixel-shell .mobile-menu-back:hover { color: #ffd2df; }
.pixel-shell #mobile-grid-menu .mobile-grid-item {
  border: 1px solid #665069;
  border-radius: 0;
  background: #292434;
  box-shadow: 3px 3px 0 #11111b;
}
.pixel-shell #mobile-grid-menu .mobile-grid-item:is(:hover, :active),
.pixel-shell #mobile-grid-menu [aria-current="page"] .mobile-grid-item,
.pixel-shell #mobile-grid-menu .mobile-more-button.is-current-section { background: #443044; border-color: #ffa6c2; transform: translate(1px, 1px); }
.pixel-shell #mobile-grid-menu :focus-visible { outline-color: #ffd2df; }
.pixel-blog footer { padding-top: 2.5rem; color: var(--sec-text-color); }
.pixel-blog footer .icon-love { color: var(--pixel-accent); }

@media (max-width: 767px) {
  .pixel-heading .banner-text .h2 { font-size: 24px; line-height: 1.6; letter-spacing: 0.04em; }
  .pixel-heading #subtitle { font-size: inherit; }
  .pixel-blog #board { margin-inline: 10px; box-shadow: 4px 4px 0 var(--pixel-shadow); padding-block: 2rem; }
  .pixel-blog .index-card { margin-bottom: 1.5rem; padding-bottom: 1.5rem; }
  .pixel-blog .index-header { font-size: 1.2rem; }
  .pixel-blog .index-excerpt { height: auto; max-height: calc(1.65rem * 3); }
  .pixel-blog .post-content { padding-inline: 1.1rem; }
  .pixel-blog .tagcloud { gap: 10px; }
  .pixel-blog .tagcloud a { padding-inline: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .pixel-heading .banner-text > .h2:hover #subtitle { animation: none; }
  .pixel-blog *, .pixel-blog *::before, .pixel-blog *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  :root body.pixel-blog,
  :root[data-user-color-scheme] body.pixel-blog {
    --board-bg-color: white;
    --text-color: #222;
    --post-text-color: #222;
    --post-heading-color: #222;
    --sec-text-color: #555;
    --pixel-accent: #ae315e;
    --pixel-soft: #fbeaf0;
    --line-color: #ddd;
    background: white;
    color: #222;
  }
  .pixel-blog *, .pixel-blog *::before, .pixel-blog *::after { transition: none !important; }
  .pixel-blog #board { border: 0; box-shadow: none; }
  .pixel-blog #board::before, .pixel-blog #board::after { display: none; }
}

.pixel-shell #navbar .navbar-brand.has-brand-logo::before { content: none; }
.pixel-shell #navbar .navbar-brand-logo { display: block; width: 144px; height: 48px; object-fit: contain; }
