/* 碎碎念：沿用个人站纸色、森林绿和宋体标题，正文直接存在静态页面。 */
.notes-page [hidden] { display: none !important; }
.notes-page .site-nav { gap: clamp(.85rem, 1.5vw, 1.6rem); }
.notes-shell { max-width: 1080px; padding-top: clamp(2.8rem, 5vw, 4.5rem); }
.notes-intro { max-width: 680px; padding-bottom: 2.5rem; }
.notes-intro h1 { color: var(--forest-dark); font-size: clamp(3rem, 5vw, 4.3rem); line-height: 1.2; letter-spacing: -.04em; margin-bottom: 1.1rem; }
.notes-intro > p { color: var(--muted); font-size: 1rem; line-height: 1.85; margin-bottom: .6rem; }
.notes-intro > .notes-lead { color: var(--ink); font-size: 1.15rem; margin-bottom: .7rem; }
.notes-filter-bar { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 0 0 1rem; border-bottom: 1px solid var(--line); }
.notes-filters { display: flex; flex-wrap: wrap; gap: .45rem; }
.notes-filters button { min-height: 42px; padding: .55rem .9rem; border: 0; border-radius: 3px; background: transparent; color: var(--forest-ui); font: inherit; font-size: .875rem; cursor: pointer; }
.notes-filters button:hover { background: var(--sage-light); }
.notes-filters button[aria-pressed="true"] { background: var(--forest-dark); color: var(--paper-bright); }
.notes-result { color: var(--muted); margin: 0; font-size: .8125rem; white-space: nowrap; }
.note-entry { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 2rem; padding: 2.7rem 0 3rem; border-bottom: 1px solid var(--line); }
.note-margin { color: var(--muted); font-size: .8125rem; line-height: 1.8; padding-top: .45rem; }
.note-margin time, .note-margin > span { display: block; }
.note-margin > span { margin-top: .35rem; color: var(--forest-ui); }
.note-main { max-width: 760px; min-width: 0; }
.note-main > h2 { font-size: clamp(1.65rem, 2.35vw, 2rem); line-height: 1.45; letter-spacing: -.02em; margin-bottom: 1.25rem; }
.note-main > h2 a:hover { color: var(--forest); }
.note-body { color: var(--ink); font-size: 1.0625rem; line-height: 1.95; overflow-wrap: anywhere; }
.note-body p { font-size: inherit; line-height: inherit; margin: 0 0 1.2em; }
.note-body > :last-child { margin-bottom: 0; }
.note-body h2, .note-body h3, .note-body h4, .note-body h5 { font-size: 1.35rem; line-height: 1.5; margin: 1.8rem 0 .8rem; letter-spacing: 0; }
.note-body a { color: var(--forest); text-decoration: underline; text-underline-offset: .2em; }
.note-body ul, .note-body ol { padding-left: 1.45em; }
.note-body li { padding-left: .2em; margin-bottom: .5em; }
.note-body blockquote { border-left: 2px solid #b5c5aa; margin: 1.5rem 0; padding: .1rem 0 .1rem 1.25rem; color: var(--muted); }
.note-body blockquote p { margin: 0; }
.note-body code { font-size: .88em; background: var(--sage-light); padding: .1em .3em; border-radius: 3px; }
.note-media { margin: 1.75rem 0; }
.note-media img, .note-media picture, .note-inline-image { max-width: 100%; height: auto; }
.note-media img, .note-media video { display: block; width: 100%; height: auto; }
.note-media figcaption { color: var(--muted); font-size: .8125rem; line-height: 1.75; margin-top: .65rem; }
.note-video video { max-height: 76dvh; background: #edf0e7; object-fit: contain; }
.note-source { color: var(--muted); font-size: .8125rem; line-height: 1.75; margin: 1.4rem 0 0; overflow-wrap: anywhere; }
.note-source a { color: var(--forest-ui); text-decoration: underline; text-underline-offset: 3px; }
.note-actions { display: flex; flex-wrap: wrap; align-items: center; column-gap: 1.4rem; row-gap: .35rem; margin-top: 1.1rem; }
.note-permalink, .note-copy { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; color: var(--forest); font-size: .875rem; }
.note-permalink:hover, .note-copy:hover { text-decoration: underline; text-underline-offset: 4px; }
.note-copy { border: 0; background: transparent; padding: .5rem 0; cursor: pointer; font-family: var(--sans); }
.note-copy:disabled { cursor: progress; opacity: .65; }
.note-copy-status { flex-basis: 100%; color: var(--muted); font-size: .8125rem; line-height: 1.75; overflow-wrap: anywhere; }
.note-copy-status:empty { display: none; }
.note-copy-fallback { display: block; color: var(--forest); user-select: all; text-decoration: underline; }
.notes-afterword { padding: 2rem 0 3.5rem; color: var(--muted); }
.notes-afterword p { margin: 0; font-size: .875rem; line-height: 1.8; }
.notes-afterword a, .notes-empty a { color: var(--forest); text-decoration: underline; text-underline-offset: 4px; }
.notes-empty { padding: 2.5rem 0; }
.note-detail-shell { max-width: 780px; padding-top: clamp(2rem, 4vw, 3rem); padding-bottom: 3.5rem; }
.notes-back { display: inline-flex; align-items: center; gap: .5rem; color: var(--forest-ui); font-size: .875rem; min-height: 44px; }
.notes-back:hover { text-decoration: underline; text-underline-offset: 4px; }
.note-detail-header { margin-top: 2rem; margin-bottom: 2rem; }
.note-meta { display: flex; flex-wrap: wrap; gap: .5rem 1rem; color: var(--muted); font-size: .875rem; margin-bottom: .85rem; }
.note-detail-header h1 { font-size: clamp(2rem, 4.3vw, 3.05rem); line-height: 1.4; letter-spacing: -.025em; margin: 0; }
.note-author { margin-top: 2.2rem; padding: 1.35rem 0; border-top: 1px solid var(--line); }
.note-author > a { font-family: var(--serif); color: var(--forest-dark); font-size: 1.125rem; }
.note-author > a:hover { text-decoration: underline; text-underline-offset: 4px; }
.note-author p { margin: .45rem 0 0; color: var(--muted); font-size: .875rem; line-height: 1.8; }
.notes-neighbours { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 2.5rem; border-top: 1px solid var(--line); padding: 1.5rem 0; }
.notes-neighbours a { display: flex; flex-direction: column; gap: .4rem; }
.notes-neighbours span { color: var(--muted); font-size: .8125rem; }
.notes-neighbours strong { color: var(--forest-dark); font-family: var(--serif); font-size: 1.05rem; font-weight: 500; line-height: 1.7; }
.notes-neighbours a:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.notes-back-bottom { margin-top: .3rem; }
@media (max-width: 720px) {
  .notes-shell { padding-top: 2.4rem; }
  .notes-intro { padding-bottom: 1.8rem; }
  .notes-intro h1 { font-size: 3rem; }
  .notes-intro > p { font-size: .9375rem; }
  .notes-intro > .notes-lead { font-size: 1.0625rem; }
  .notes-filter-bar { flex-direction: column; align-items: flex-start; gap: .7rem; }
  .notes-filters { gap: .25rem; }
  .notes-filters button { font-size: .8125rem; padding-inline: .7rem; }
  .notes-result { font-size: .75rem; }
  .note-entry { grid-template-columns: minmax(0, 1fr); gap: .85rem; padding: 1.9rem 0 2.2rem; }
  .note-margin { display: flex; align-items: baseline; gap: 1rem; font-size: .75rem; padding-top: 0; }
  .note-margin > span { margin-top: 0; }
  .note-main > h2 { font-size: 1.65rem; margin-bottom: 1.05rem; }
  .note-body { font-size: 1rem; line-height: 1.95; }
  .note-detail-header { margin-top: 1.5rem; margin-bottom: 1.6rem; }
  .note-detail-header h1 { font-size: 2rem; }
  .note-meta { font-size: .8125rem; }
  .notes-afterword { padding-bottom: 2.6rem; }
  .notes-neighbours { gap: 1.15rem; }
}
@media (prefers-reduced-motion: reduce) {
  .notes-page { scroll-behavior: auto; }
}
