/* /link/ — directory of public routes */
.links-page .links-hero {
  margin-bottom: 2rem;
}

.links-loading,
.links-error {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.links-category {
  margin-bottom: 2.5rem;
}

.links-category h2 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin: 0 0 1rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border);
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.link-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .link-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    border-color: var(--accent);
  }
  [data-theme="dark"] .link-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  }
}

.link-card h3 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  margin: 0;
  line-height: 1.3;
}

.link-card h3 a {
  color: inherit;
  text-decoration: none;
}

.link-card h3 a:hover {
  color: var(--accent);
}

.link-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  flex: 1;
  line-height: 1.5;
}

.link-card .btn {
  align-self: flex-start;
  border-radius: 999px;
  margin-top: 0.25rem;
}

.link-card .btn--external::after {
  content: " ↗";
  font-size: 0.75em;
}

.links-footnotes {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-muted);
}

.links-footnotes p {
  margin: 0 0 0.5rem;
}
