/* NOTES: 가운데 좁은 단(읽기 좋은 폭)에 글 목록 → 글 읽기. 공통 모양은 /lib/site.css. 글은 명조, 날짜는 고딕 */
.notes-main { max-width: 820px; }

.note-list { padding: 18px 0 80px; }
.note-cell { min-width: 0; }
.note-row {
  display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 4px 28px; align-items: start;
  padding: 26px 4px; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none;
}
.note-row.has-pic { grid-template-columns: 92px minmax(0, 1fr) 104px; }
.note-cell:first-child .note-row { border-top: 1px solid var(--line); }
.note-meta { display: grid; gap: 6px; font: 500 11.5px var(--sans); letter-spacing: .08em; color: var(--faint); font-variant-numeric: tabular-nums; padding-top: 4px; }
.note-text { display: grid; gap: 8px; min-width: 0; }
.note-title { font: 700 18px/1.45 var(--serif); color: var(--ink); word-break: keep-all; text-wrap: pretty; }
.note-excerpt {
  font: 400 14px/1.75 var(--serif); color: var(--muted); word-break: keep-all; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.note-pic { display: block; width: 104px; aspect-ratio: 1; border-radius: 3px; overflow: hidden; background: rgba(0, 0, 0, .04); }
.note-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (hover: hover) {
  .note-row:hover .note-title { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
}

/* 글 읽기 */
.note-read { padding: 28px 0 96px; }
.note-article { max-width: 680px; margin: 0 auto; }
.note-back { display: inline-block; margin-bottom: 34px; font: 500 12px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.note-back:hover { color: var(--ink); }
.note-article header { padding-bottom: 26px; margin-bottom: 30px; border-bottom: 1px solid var(--line); }
.note-article .note-meta { display: flex; gap: 14px; padding: 0; }
.note-h { margin: 12px 0 0; font: 700 28px/1.4 var(--serif); word-break: keep-all; text-wrap: balance; }
.note-body { font: 400 16.5px/1.95 var(--serif); color: var(--ink); word-break: keep-all; overflow-wrap: anywhere; }
.note-body > :first-child { margin-top: 0; }
.note-body p { margin: 0 0 1.2em; }
.note-body h2 { margin: 2em 0 .7em; font-size: 20px; line-height: 1.5; }
.note-body h3 { margin: 1.8em 0 .6em; font-size: 17px; }
.note-body a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.note-body img { display: block; max-width: 100%; height: auto; margin: 1.6em auto; border-radius: 3px; }
.note-body p > img:only-child { margin: 0 auto; }
.note-body iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; margin: 1.6em 0; }
.note-body blockquote { margin: 1.6em 0; padding: 2px 0 2px 20px; border-left: 2px solid color-mix(in srgb, var(--ink) 25%, transparent); color: var(--muted); }
.note-body hr { border: 0; height: 1px; background: var(--line); margin: 2.4em 0; }
.note-body ul, .note-body ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.note-body figure { margin: 1.6em 0; }
.note-body figcaption { font: 400 12.5px var(--sans); color: var(--faint); text-align: center; margin-top: 8px; }

@media (max-width: 640px) {
  .note-row, .note-row.has-pic { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 20px 2px; }
  .note-row.has-pic { grid-template-columns: minmax(0, 1fr) 76px; }
  .note-row .note-meta { grid-column: 1 / -1; display: flex; gap: 12px; padding: 0; }
  .note-pic { width: 76px; }
  .note-title { font-size: 16.5px; }
  .note-excerpt { font-size: 13.5px; }
  .note-read { padding-top: 18px; }
  .note-back { margin-bottom: 24px; }
  .note-h { font-size: 23px; }
  .note-body { font-size: 15.5px; line-height: 1.9; }
}
