/* Note list. Cards come from articles.js. */

.notes {
  width: min(820px, calc(100% - 60px));
  margin: 0 auto;
  padding: 4.2rem 0 5rem;
}

.notes .kicker {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  color: var(--kicker);
}

.notes h1 {
  margin: 0 0 0.7rem;
  color: var(--ink-strong);
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  font-weight: 400;
  letter-spacing: -0.03em;
}

.notes .lead {
  margin: 0 0 2rem;
  color: var(--muted);
  font-weight: 300;
}

.note-list {
  display: grid;
}

.note-card {
  display: block;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  transition: transform 0.25s var(--ease);
}

.note-card:hover {
  transform: translateX(6px);
}

.note-card span,
.note-card time {
  color: var(--kicker);
  letter-spacing: 0.08em;
  font-size: 0.82rem;
}

.note-card h2 {
  margin: 0.35rem 0;
  color: var(--ink-strong);
  font-size: 1.45rem;
  font-weight: 400;
}

.note-card p {
  margin: 0;
  color: var(--muted);
}

html.motion .note-card {
  opacity: 0;
  transform: translateY(12px);
  animation: note-in 0.55s var(--ease) forwards;
}

html.motion .note-card:nth-child(2) { animation-delay: 70ms; }
html.motion .note-card:nth-child(3) { animation-delay: 140ms; }
html.motion .note-card:nth-child(4) { animation-delay: 210ms; }

@keyframes note-in {
  to { opacity: 1; transform: none; }
}

@media (max-width: 860px) {
  .notes { width: min(820px, calc(100% - 32px)); }
}

@media (prefers-reduced-motion: reduce) {
  .note-card,
  html.motion .note-card {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
