/* VLK NOTES — 夜色书桌 (sample A) */

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #08090a;
  --ink: #f2f2ee;
  --muted: #8f8f88;
  --line: rgba(242, 242, 238, 0.13);
  --side: #0b0c0e;
  --accent: #8d99d6;
  --accent-soft: rgba(141, 153, 214, 0.1);
  --code: #0e1013;
  --serif: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", "STSong",
    "SimSun", serif;
  --sans: "PingFang SC", "Noto Sans CJK SC", "Source Han Sans SC",
    "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas,
    "Liberation Mono", monospace;
  --sidebar-width: 236px;
  --article-width: 680px;
  --toc-width: 172px;
  --head-height: 65px;
  --gutter: clamp(20px, 4.5vw, 64px);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

::selection {
  background: rgba(141, 153, 214, 0.28);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--bg);
  font-size: 13px;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- head ---------- */

.notes-head {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid transparent;
  transition: background 0.35s, border-color 0.35s, backdrop-filter 0.35s;
}

body.scrolled .notes-head {
  background: rgba(8, 9, 10, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}

.notes-head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 17px var(--gutter);
  line-height: 1.8;
}

.notes-nav {
  display: flex;
  align-items: baseline;
  gap: clamp(16px, 2.6vw, 36px);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.notes-nav a {
  position: relative;
  padding: 4px 0;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.25s;
}

.notes-nav a em {
  margin-left: 5px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 8px;
  font-style: normal;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.notes-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.notes-nav a:hover,
.notes-nav a.is-active {
  color: var(--accent);
}

.notes-nav a:hover::after,
.notes-nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.today {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--muted);
  white-space: nowrap;
}

.nav-toggle,
.notes-search-link {
  display: none;
}

/* ---------- shell ---------- */

.shell {
  display: flex;
  min-height: calc(100vh - var(--head-height));
}

.sidebar {
  position: sticky;
  top: var(--head-height);
  display: flex;
  flex-direction: column;
  width: var(--sidebar-width);
  height: calc(100vh - var(--head-height));
  flex: none;
  overflow-y: auto;
  padding: 24px 18px 30px;
  background: var(--side);
  border-right: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.05em;
  white-space: nowrap;
  color: var(--ink);
  text-decoration: none;
}

.brand-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  flex: none;
  background: var(--accent);
}

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 22px 0 24px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  transition: border-color 0.2s;
}

.search:focus-within {
  border-color: var(--accent);
}

.search input {
  flex: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 12px;
}

.search input:focus {
  outline: none;
}

.search input::placeholder {
  color: var(--muted);
}

.search kbd {
  padding: 1px 5px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
}

.tree {
  flex: 1;
  font-size: 12.5px;
  line-height: 2;
}

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

.tree-list .tree-list {
  margin-left: 10px;
  padding-left: 8px;
  border-left: 1px solid rgba(242, 242, 238, 0.07);
}

.tree-home {
  display: block;
  margin-bottom: 10px;
  padding: 4px 0 10px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
}

.tree-home:hover,
.tree-home.is-active {
  color: var(--ink);
}

.tree-folder {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  padding: 4px 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
}

.tree-folder::before {
  content: "·";
  color: var(--accent);
  font-size: 16px;
  line-height: 0;
}

.tree-folder:hover,
.tree-folder.is-open {
  color: var(--ink);
}

.tree-note {
  display: block;
  margin-left: 6px;
  padding: 3px 8px;
  overflow: hidden;
  border-left: 1px solid transparent;
  color: var(--ink);
  opacity: 0.8;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tree-note:hover {
  color: var(--accent);
  opacity: 1;
}

.tree-note.is-active {
  border-left-color: var(--accent);
  background: var(--accent-soft);
  opacity: 1;
}

.tree-empty {
  margin: 10px 0;
  color: var(--muted);
  font-size: 11px;
}

.sb-foot {
  display: flex;
  flex-direction: column;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  line-height: 2;
}

.sb-admin {
  margin: 10px 0 0;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.sb-admin a {
  color: var(--muted);
  text-decoration: none;
}

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

/* ---------- main ---------- */

.main {
  position: relative;
  flex: 1;
  min-width: 0;
  padding: 30px 46px 48px;
}

.terrain {
  position: absolute;
  top: -40px;
  right: -60px;
  width: 420px;
  height: 280px;
  opacity: 0.5;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 70% 10%, rgba(141, 153, 214, 0.18), transparent 60%),
    repeating-linear-gradient(
      0deg,
      transparent 0 17px,
      rgba(141, 153, 214, 0.16) 17px 18px
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0 17px,
      rgba(141, 153, 214, 0.08) 17px 18px
    );
  transform: perspective(240px) rotateX(52deg);
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 88%);
}

.topline {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
}

.crumb a {
  color: var(--muted);
  text-decoration: none;
}

.crumb a:hover {
  color: var(--ink);
}

.crumb b {
  color: var(--ink);
  font-weight: 400;
}

.sep {
  margin: 0 2px;
  opacity: 0.6;
}

.eyebrow {
  position: relative;
  z-index: 1;
  margin: 44px 0 0;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero {
  position: relative;
  z-index: 1;
  margin: 12px 0 10px;
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.35;
}

.hero em {
  color: var(--accent);
  font-style: normal;
}

.lede {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.page-title {
  position: relative;
  z-index: 1;
  margin: 12px 0 24px;
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 500;
  line-height: 1.4;
}

.empty-state {
  margin: 0;
  padding: 26px 2px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.error-actions {
  margin-top: 26px;
}

.text-link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(141, 153, 214, 0.35);
}

.text-link:hover {
  border-bottom-color: var(--accent);
}

/* ---------- note lists ---------- */

.note-list {
  position: relative;
  z-index: 1;
  margin-top: 38px;
  border-top: 1px solid var(--line);
}

.note-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 24px;
  padding: 19px 2px 17px;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.note-row:hover .t {
  color: var(--accent);
}

.note-row .t {
  grid-column: 1;
  grid-row: 1;
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.45;
  transition: color 0.2s;
}

.note-row .f {
  grid-column: 1;
  grid-row: 2;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.note-row .d {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
}

.note-row .x {
  grid-column: 1;
  grid-row: 3;
  max-width: 640px;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

/* ---------- folder page ---------- */

.folder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}

.folder-card {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--code);
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

.folder-card:hover {
  border-color: rgba(141, 153, 214, 0.5);
  background: var(--accent-soft);
}

.folder-mark {
  color: var(--accent);
}

.folder-name {
  font-family: var(--serif);
  font-size: 17px;
}

.folder-kind {
  margin-left: auto;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.16em;
}

/* ---------- article ---------- */

.article-layout {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin-top: 24px;
}

.article {
  flex: 1;
  min-width: 0;
  max-width: var(--article-width);
}

.article .meta {
  margin: 0;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.article-title {
  margin: 14px 0 26px;
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.4;
}

.prose {
  color: var(--ink);
  font-size: 15px;
  line-height: 2;
}

.prose > :first-child {
  margin-top: 0;
}

.prose p {
  margin: 12px 0;
  opacity: 0.88;
}

.prose strong {
  font-weight: 600;
  opacity: 1;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.5;
}

.prose h1 {
  margin: 36px 0 14px;
  font-size: 30px;
}

.prose h2 {
  margin: 34px 0 12px;
  font-size: 23px;
}

.prose h3 {
  margin: 24px 0 8px;
  font-size: 18px;
}

.prose h4,
.prose h5,
.prose h6 {
  margin: 20px 0 8px;
  font-size: 16px;
}

.prose a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(141, 153, 214, 0.35);
}

.prose a:hover {
  border-bottom-color: var(--accent);
}

.prose ul,
.prose ol {
  margin: 12px 0;
  padding-left: 1.6em;
}

.prose li {
  margin: 4px 0;
  opacity: 0.9;
}

.prose li::marker {
  color: var(--accent);
}

.prose code {
  padding: 1px 5px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--code);
  font-family: var(--mono);
  font-size: 12.5px;
}

.prose pre {
  margin: 16px 0;
  padding: 18px 20px;
  overflow: auto;
  border: 1px solid var(--line);
  background: var(--code);
  line-height: 1.9;
}

.prose pre code {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12.5px;
  opacity: 0.9;
}

.prose pre code.highlight {
  background: transparent;
}

.prose blockquote {
  margin: 22px 0;
  padding: 2px 0 2px 18px;
  border-left: 2px solid var(--accent);
  color: var(--muted);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.9;
}

.prose blockquote p {
  margin: 6px 0;
}

.prose img {
  display: block;
  height: auto;
  max-width: 100%;
  margin: 20px 0;
  border: 1px solid var(--line);
}

.prose hr {
  margin: 28px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.prose table {
  width: 100%;
  margin: 18px 0;
  border-collapse: collapse;
  font-size: 13px;
}

.prose th,
.prose td {
  padding: 7px 10px;
  border: 1px solid var(--line);
  text-align: left;
}

.prose thead th {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.prose del {
  color: var(--muted);
}

.prose .task-list-item {
  margin-left: -1.2em;
  list-style: none;
}

.prose input[type="checkbox"] {
  margin-right: 0.5em;
  accent-color: var(--accent);
}

.prose .footnotes {
  margin-top: 30px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.toc {
  position: sticky;
  top: 30px;
  width: var(--toc-width);
  flex: none;
  margin-top: 10px;
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.toc-label {
  margin: 0 0 12px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.toc-link {
  display: block;
  margin-left: -21px;
  padding: 5px 0 5px 20px;
  border-left: 1px solid transparent;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  text-decoration: none;
}

.toc-link:hover {
  color: var(--accent);
  border-left-color: var(--accent);
}

.toc-sub {
  padding-left: 32px;
  font-size: 11px;
}

/* ---------- attachments ---------- */

.attachments {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.section-title {
  margin: 0 0 14px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.attachment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}

.attachment-card {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: var(--code);
  text-decoration: none;
  transition: border-color 0.2s;
}

.attachment-card:hover {
  border-color: rgba(141, 153, 214, 0.5);
}

.attachment-card.is-image {
  display: block;
  padding: 8px;
}

.attachment-card.is-image img {
  display: block;
  width: 100%;
  height: 110px;
  margin: 0 0 8px;
  border: 0;
  object-fit: cover;
}

.attachment-name {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-size {
  margin-left: auto;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
}

.attachment-icon {
  color: var(--accent);
  font-family: var(--mono);
}

/* ---------- search ---------- */

.page-search {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 10px;
  max-width: 680px;
  margin: 24px 0 8px;
}

.page-search input {
  flex: 1;
  min-width: 0;
  padding: 11px 14px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
}

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

.page-search button {
  padding: 0 20px;
  border: 0;
  background: var(--accent);
  color: #0b0c0e;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

.page-search button:hover {
  background: #a6b0e2;
}

.result-list {
  margin-top: 30px;
  border-top: 1px solid var(--line);
}

.result-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 24px;
  padding: 17px 2px;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.result-row:hover .t {
  color: var(--accent);
}

.result-row .t {
  grid-column: 1;
  grid-row: 1;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.45;
  transition: color 0.2s;
}

.result-row .f {
  grid-column: 1;
  grid-row: 2;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.result-row .d {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
}

.result-row .x {
  grid-column: 1 / 3;
  grid-row: 3;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.8;
}

mark {
  padding: 0 2px;
  border-radius: 2px;
  background: rgba(141, 153, 214, 0.26);
  color: var(--ink);
}

/* ---------- footer ---------- */

.site-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 70px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-brand {
  color: var(--ink);
}

.footer-motto {
  font-family: var(--sans);
  letter-spacing: 0.06em;
  text-transform: none;
}

.footer-admin {
  margin-left: auto;
  color: var(--muted);
  text-decoration: none;
}

.footer-admin:hover {
  color: var(--accent);
}

/* ---------- mobile ---------- */

.nav-backdrop {
  display: none;
}

@media (max-width: 920px) {
  .notes-head-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    padding: 14px var(--gutter);
  }

  .notes-nav {
    order: 4;
    flex-basis: 100%;
    margin-left: 0;
    justify-content: space-between;
    gap: 8px;
    padding: 2px 0;
    overflow-x: auto;
    font-size: 12px;
    letter-spacing: 0.04em;
    scrollbar-width: none;
  }

  .notes-nav a {
    padding: 6px 0;
  }

  .notes-nav::-webkit-scrollbar {
    display: none;
  }

  .notes-nav a em {
    display: none;
  }

  .today {
    display: none;
  }

  .notes-search-link {
    display: block;
    margin-left: auto;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.14em;
    text-decoration: none;
    text-transform: uppercase;
  }

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

  .nav-toggle {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 12px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--ink);
    font-family: var(--sans);
    font-size: 12px;
    cursor: pointer;
  }

  .nav-toggle-icon {
    position: relative;
    display: inline-block;
    width: 14px;
    height: 10px;
    border-top: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
  }

  .nav-toggle-icon::after {
    content: "";
    position: absolute;
    top: 4px;
    right: 0;
    left: 0;
    border-top: 1px solid currentColor;
  }

  .sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 80;
    display: flex;
    width: min(86vw, 300px);
    height: 100vh;
    visibility: hidden;
    transform: translateX(-100%);
    transition: transform 0.22s ease;
  }

  body.nav-open .sidebar {
    visibility: visible;
    transform: translateX(0);
  }

  body.nav-open {
    overflow: hidden;
  }

  .nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: block;
    opacity: 0;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.55);
    transition: opacity 0.22s;
  }

  body.nav-open .nav-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .main {
    padding: 24px 22px 36px;
  }

  .terrain {
    top: -60px;
    right: -120px;
    opacity: 0.35;
  }

  .eyebrow {
    margin-top: 28px;
  }

  .hero {
    font-size: 32px;
  }

  .page-title {
    font-size: 29px;
  }

  .topline {
    flex-wrap: wrap;
  }

  .article-layout {
    display: block;
    margin-top: 18px;
  }

  .article {
    max-width: none;
  }

  .article-title {
    font-size: 31px;
  }

  .toc {
    display: none;
  }

  .note-row .x {
    display: none;
  }

  .attachment-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }

  .site-footer {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
