/* =============================================================================
   Journal index. The heading block reuses page-work.css (.work-page__head);
   this file is only the list of notes. One row per note, hairline rules like
   the Core Team roster; the whole row is the link. The posts themselves use
   the .post-* template from page-lab.css.
   ============================================================================= */

.notes {
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--grey-100);
}

.notes__row {
  border-top: 1px solid var(--grey-100);
}

.notes__link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto;
  gap: 1.5rem;
  align-items: start;
  padding-block: 2rem;
  color: inherit;
  text-decoration: none;
}

.notes__meta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.notes__date {
  font-size: 0.875rem;
  color: var(--grey-400);
}

.notes__body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.notes__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 500;
  line-height: 1.15;
  transition: color 0.2s ease;
}

.notes__desc {
  max-width: 36rem;
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--grey-400);
}

.notes__read {
  font-size: 0.875rem;
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-color: var(--grey-200);
  text-underline-offset: 0.25em;
  transition: text-decoration-color 0.2s ease;
}

.notes__link:hover .notes__title,
.notes__link:focus-visible .notes__title {
  color: var(--accent);
}

.notes__link:hover .notes__read,
.notes__link:focus-visible .notes__read {
  text-decoration-color: var(--accent);
}

@media (max-width: 767px) {
  .notes__link {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
    padding-block: 1.5rem;
  }

  .notes__meta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .notes__title {
    font-size: 1.375rem;
  }
}
