.notes-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
}

.notes-list-scroll {
  max-height: 340px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 12px;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: #aeb4bb transparent;
}

.notes-list-scroll::-webkit-scrollbar {
  width: 8px;
}

.notes-list-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.notes-list-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #aeb4bb;
}

.notes-list-scroll::-webkit-scrollbar-thumb:hover {
  background: #7b8086;
}

.note-preview {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.note-preview:first-child {
  padding-top: 0;
  border-top: 0;
}

.note-date {
  display: block;
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.4;
}

.note-preview-title {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.48;
}

.note-preview-title a {
  color: var(--ink);
  font-weight: 700;
}

.notes-page .site-nav a:first-child {
  background: transparent;
  color: #3c4043;
}

.note-article {
  max-width: 860px;
}

.note-article h1 {
  margin: 0 0 10px;
  color: #252525;
  font-family: "Palatino Linotype", Palatino, Georgia, serif;
  font-size: clamp(1.85rem, 3.2vw, 2.55rem);
  font-weight: 400;
  letter-spacing: -0.018em;
  line-height: 1.16;
}

.note-subtitle {
  max-width: 760px;
  margin: 0 0 14px;
  color: #4a4d50;
  font-family: "Palatino Linotype", Palatino, Georgia, serif;
  font-size: clamp(1.18rem, 2vw, 1.55rem);
  font-weight: 400;
  letter-spacing: -0.008em;
  line-height: 1.28;
}

.note-article .note-date {
  margin-bottom: 28px;
}

.note-content {
  max-width: 760px;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.72;
}

.note-content p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.note-content p,
.note-content ul,
.note-content ol,
.note-content blockquote {
  margin: 0 0 1.15em;
}

.note-content h2,
.note-content h3 {
  margin: 1.8em 0 0.65em;
  color: #303134;
  line-height: 1.3;
}

.note-content h2 {
  font-family: "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 1.45rem;
}

.note-content h3 {
  font-size: 1.08rem;
}

.note-content blockquote {
  padding: 0.1em 0 0.1em 1.1em;
  border-left: 3px solid var(--line);
  color: #3c4043;
}

.note-content code {
  font-size: 0.92em;
}

.note-equation {
  max-width: 100%;
  margin: 1.45em 0 1.55em;
  overflow-x: auto;
  padding: 0.35em 0;
  text-align: center;
}

.note-back-link {
  display: inline-block;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  font-weight: 600;
}

@media (max-width: 680px) {
  .note-article,
  .note-content,
  .note-subtitle {
    max-width: 100%;
  }

  .note-article h1 {
    font-size: clamp(1.72rem, 8vw, 2.2rem);
  }

  .note-subtitle {
    font-size: clamp(1.12rem, 5.5vw, 1.4rem);
  }

  .note-content {
    font-size: 0.98rem;
    line-height: 1.68;
  }

  .notes-list-scroll {
    max-height: 360px;
    padding-right: 8px;
  }
}
