/* ============================================================
   MechaPaint - crosslinks.css
   Page-head block for topic pages, plus the picture-card grid
   that links between pages at the bottom of every page.
   ============================================================ */

/* ---------- topic page head ---------- */

.page-head {
  padding: clamp(48px, 7vw, 88px) clamp(20px, 6vw, 90px) clamp(20px, 3vw, 36px);
  max-width: 900px;
}

.page-head h1 {
  font-size: clamp(30px, 4.4vw, 50px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.page-head p {
  color: var(--text-mid);
  font-size: clamp(15px, 1.5vw, 17.5px);
  max-width: 720px;
}

.page-head .section-kicker { display: block; margin-bottom: 14px; }

/* ---------- crumb ---------- */

.crumb {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 18px;
}

.crumb a { color: var(--text-dim); text-decoration: none; }
.crumb a:hover { color: var(--accent); }

/* ---------- crosslink picture cards ---------- */

.xlink-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(14px, 2vw, 24px);
}

.xlink-card {
  display: block;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.xlink-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.xlink-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
}

.xlink-body { padding: 18px 22px 22px; }

.xlink-title {
  display: block;
  font-size: 16.5px;
  font-weight: 700;
  margin-bottom: 6px;
}

.xlink-card:hover .xlink-title { color: var(--accent); }

.xlink-sub {
  display: block;
  color: var(--text-mid);
  font-size: 14px;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .xlink-grid { grid-template-columns: 1fr; }
}
