/* Offset anchor targets so the sticky nav doesn't cover them */
html {
  scroll-padding-top: var(--nav-height);
}

/* Site-level layout */
body {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100svh;
  padding: 0 var(--site-padding);
}

main {
  width: min(100%, var(--content-width));
  min-width: 0;
  margin-inline: auto;
  padding-top: var(--space-48);
  padding-bottom: var(--space-2xl);
}

/* Notes index */
.notes-list {
  display: grid;
  gap: 0;
}

.notes-list-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding: var(--space-m) 0;
}

.notes-list-item a {
  font-weight: 500;
}

.notes-list-item time {
  font-size: var(--text-sm);
  color: var(--color-muted);
}

/* Note header */
.note-header {
  margin-bottom: var(--space-2xl);
}

.note-back {
  display: inline-block;
  margin-bottom: var(--space-l);
}

.note-header h1 {
  margin-bottom: var(--space-s);
}

/* Links page */
.links-category {
  margin-top: var(--space-xl);
}

.links-category + .links-category {
  margin-top: var(--space-2xl);
}

.links-category h2 {
  border-top: 0.25rem solid var(--color-text);
  padding-top: var(--space-12);
  margin-bottom: var(--space-m);
}

.links-subcategory {
  margin-top: var(--space-l);
}

.links-subcategory h3 {
  margin-bottom: var(--space-s);
}

.links-list {
  display: grid;
  gap: var(--space-m);
}

.links-item {
  display: grid;
  gap: var(--space-xs);
}

.links-item a {
  font-weight: 500;
}

.links-description {
  font-size: var(--text-sm);
  color: var(--color-muted);
}
