#main.notes-index {
  --note-link: #295276;
  --note-muted: #58656c;
  --note-mat: #f2f4f3;
  max-width: 58rem;
  margin: clamp(1.5rem, 4vw, 3rem) auto 3rem;
  padding: 0 clamp(1rem, 3vw, 2rem);
}

html[data-theme="dark"] #main.notes-index {
  --note-link: #a3d0ee;
  --note-muted: #d0dbdf;
  --note-mat: #323a3d;
}

.notes-heading h1 { margin: 0 0 .3rem; line-height: 1.1; }
.notes-heading p { margin: 0 0 1.25rem; color: var(--note-muted); }

.note-entry {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.8fr);
  align-items: center;
  gap: clamp(1.25rem, 4vw, 2.7rem);
  padding: clamp(1.25rem, 3vw, 2rem) 0;
  border-top: 1px solid var(--global-border-color);
}

.note-cover {
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(10rem, 17vw, 13rem);
  padding: .7rem;
  background: var(--note-mat);
}

.note-cover img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  box-shadow: 0 2px 8px rgba(20, 34, 41, .2);
}

.note-details h2 {
  margin: 0;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  line-height: 1.35;
}

.note-details a { color: var(--note-link); text-underline-offset: .18em; }
.note-details h2 a { text-decoration: none; }
.note-details h2 a:hover, .note-details h2 a:focus-visible { text-decoration: underline; }
.note-entry a:focus-visible { outline: 2px solid var(--note-link); outline-offset: 3px; }
.note-meta { display: flex; align-items: baseline; gap: .55em; margin: .35rem 0 .65rem; color: var(--note-muted); font-size: .83rem; }
.note-summary { margin: 0; font-size: .95rem; line-height: 1.75; }
.note-source { margin: .65rem 0 0; padding-left: .75rem; border-left: 2px solid var(--global-border-color); font-size: .86rem; line-height: 1.7; }
.note-source strong { margin-right: .35em; }
.note-downloads { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem 1.2rem; margin-top: .7rem; font-size: .9rem; }
.note-downloads a { display: inline-flex; align-items: center; gap: .35em; padding: .12em 0; font-weight: 600; }
.note-companion { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: .15rem .5rem; }
.note-companion small { color: var(--note-muted); font-size: .85em; }

@media (max-width: 40em) {
  .note-entry { grid-template-columns: minmax(0, 1fr); gap: .9rem; }
  .note-cover { height: 10.5rem; }
}
