/* ============================================================
   MELA FIELD NOTES — INDEX/ARCHIVE PAGE STYLES
   Extends design-system.css. For /notes/index.html
   ============================================================ */

.notes-index {
  padding-top: 96px;
  padding-bottom: var(--space-16);
}

.notes-index main {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

/* ─── Index masthead ───────────────────────────────────────── */

.notes-masthead {
  padding: var(--space-12) 0 var(--space-10);
  margin-bottom: var(--space-12);
  text-align: center;
}

.notes-masthead .label-mono {
  display: block;
  margin-bottom: var(--space-5);
}

.notes-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-variation-settings: 'opsz' 144;
  font-weight: 320;
  color: var(--deep-bark);
  margin: 0 0 var(--space-6) 0;
}

.notes-title em {
  font-style: italic;
  color: var(--gold);
  font-weight: 320;
}

.notes-intro {
  font-family: var(--font-display);
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  font-style: italic;
  font-variation-settings: 'opsz' 96;
  font-weight: 360;
  line-height: 1.55;
  color: var(--bark-soft);
  max-width: 54ch;
  margin: 0 auto;
}

.notes-intro em {
  font-style: normal;
  color: var(--gold);
}

.notes-rule {
  width: 64px;
  height: 1px;
  background: var(--bark-quiet);
  opacity: 0.4;
  margin: var(--space-8) auto 0;
}

/* ─── Primer cross-link — the front door to the methodology ── */

.notes-primer {
  display: block;
  text-decoration: none;
  color: inherit;
  margin-bottom: var(--space-10);
  padding: var(--space-5);
  background: var(--parchment-light);
  border: 1px solid var(--parchment-dark);
  border-left: 2px solid var(--gold);
  border-radius: 4px;
  transition: background-color 400ms var(--ease-deliberate), border-left-color 400ms var(--ease-deliberate);
}

.notes-primer:hover {
  background: var(--parchment-deep);
  border-left-color: var(--gold-soft);
}

.notes-primer .primer-label {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-xxs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: var(--space-2);
}

.notes-primer .primer-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-variation-settings: 'opsz' 96;
  font-weight: 340;
  color: var(--deep-bark);
  margin: 0 0 var(--space-2) 0;
}

.notes-primer .primer-title em { font-style: italic; color: var(--gold-ink); }

.notes-primer .primer-dek {
  font-family: var(--font-display);
  font-style: italic;
  font-variation-settings: 'opsz' 72;
  font-size: var(--text-lg);
  line-height: 1.5;
  color: var(--bark-soft);
  font-weight: 360;
  margin: 0;
  max-width: 64ch;
}

.notes-primer .primer-arrow { font-style: normal; color: var(--gold-ink); }

/* ─── Issue list ───────────────────────────────────────────── */

.notes-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.notes-list-item {
  border-top: 1px solid var(--parchment-dark);
  padding: var(--space-8) 0;
  transition: background-color 400ms var(--ease-deliberate);
}

.notes-list-item:last-child {
  border-bottom: 1px solid var(--parchment-dark);
}

.notes-list-item a {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--space-5);
  align-items: center;
  text-decoration: none;
  color: inherit;
  padding: var(--space-3);
  margin: 0 calc(-1 * var(--space-3));
  border-radius: 8px;
  transition: background-color 400ms var(--ease-deliberate);
}

.notes-list-item a:hover {
  background-color: var(--parchment-light);
}

/* A note with no figure renders without a thumb — fall back to full-width text. */
.notes-list-item a.no-thumb {
  display: block;
}

/* Lead instrument figure as a quiet thumbnail motif — flat (no shadow:
   shadow discipline reserves the float for one object per page). */
.notes-list-item .item-thumb {
  width: 200px;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center top; /* keep the chart body, not the figure's bottom caption */
  border-radius: var(--r-chip, 12px);
  border: 1px solid var(--hairline);
  background: var(--parchment-deep);
  transition: transform 150ms var(--ease-micro, ease);
}

.notes-list-item a:hover .item-thumb {
  transform: scale(1.015);
}

.notes-list-item .item-body {
  min-width: 0; /* let prose wrap inside the grid track */
}

.notes-list-item .item-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.notes-list-item .issue-num {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: 0.15em;
  color: var(--gold);
  font-weight: 500;
}

.notes-list-item .item-divider {
  width: 24px;
  height: 1px;
  background: var(--bark-whisper);
}

.notes-list-item .item-lane {
  font-family: var(--font-mono);
  font-size: var(--text-xxs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bark-quiet);
}

.notes-list-item .item-date {
  font-family: var(--font-mono);
  font-size: var(--text-xxs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bark-whisper);
  margin-left: auto;
}

.notes-list-item h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-variation-settings: 'opsz' 144;
  font-weight: 340;
  color: var(--deep-bark);
  margin: 0 0 var(--space-3) 0;
  transition: color 400ms var(--ease-deliberate);
}

.notes-list-item h2 em {
  font-style: italic;
  color: var(--gold);
  font-weight: 340;
}

.notes-list-item a:hover h2 {
  /* Keep h2 color stable on hover for editorial register */
}

.notes-list-item .item-dek {
  font-family: var(--font-display);
  font-style: italic;
  font-variation-settings: 'opsz' 72;
  font-size: var(--text-lg);
  line-height: 1.5;
  color: var(--bark-soft);
  font-weight: 360;
  margin: 0 0 var(--space-4) 0;
  max-width: 64ch;
}

.notes-list-item .item-stats {
  display: flex;
  gap: var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--text-xxs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bark-whisper);
}

.notes-list-item .item-stats > span::before {
  content: '·';
  margin-right: var(--space-4);
  color: var(--bark-whisper);
}

.notes-list-item .item-stats > span:first-child::before {
  display: none;
}

/* ─── Index footer / about block ───────────────────────────── */

.notes-index-footer {
  margin-top: var(--space-16);
  padding-top: var(--space-8);
  border-top: 1px solid var(--parchment-dark);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--bark-soft);
  max-width: 56ch;
  margin-left: auto;
  margin-right: auto;
}

.notes-index-footer h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.01em;
  color: var(--deep-bark);
  margin: 0 0 var(--space-3) 0;
}

.notes-index-footer p {
  margin: 0 0 var(--space-3) 0;
}

.notes-index-footer a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--gold-glow);
}

.notes-index-footer a:hover {
  color: var(--gold-soft);
}

@media (max-width: 640px) {
  .notes-index { padding-top: 72px; }
  .notes-masthead { padding: var(--space-6) 0 var(--space-6); margin-bottom: var(--space-6); }
  .notes-list-item { padding: var(--space-5) 0; }
  .notes-list-item a {
    grid-template-columns: 1fr;
    gap: var(--space-4);
    align-items: start;
  }
  .notes-list-item .item-thumb { width: 100%; aspect-ratio: 16 / 9; }
  .notes-list-item .item-meta { flex-wrap: wrap; }
  .notes-list-item .item-date { margin-left: 0; width: 100%; margin-top: var(--space-1); }
}
