/* The docs hub at docs.ianlan.dev/ — one card per product.
   Loaded after docs.css, which supplies the theme tokens and the topbar. */

.hub-main {
  display: flex;
  justify-content: center;
  padding: 72px 22px 96px;
}

.hub-inner {
  width: 100%;
  max-width: 760px;
}

.hub-inner h1 {
  margin: 0 0 10px;
  font-size: 2.1rem;
  letter-spacing: -0.02em;
}

.hub-lede {
  margin: 0 0 40px;
  color: var(--text-soft);
  font-size: 1.05rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.product-card {
  display: block;
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-soft);
  color: var(--text);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.product-card:hover {
  border-color: var(--accent-line);
  transform: translateY(-2px);
  text-decoration: none;
}

.product-card h2 {
  margin: 0 0 6px;
  font-size: 1.15rem;
}

.product-card p {
  margin: 0 0 16px;
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.6;
}

.card-go {
  color: var(--accent);
  font-size: 0.87rem;
  font-weight: 600;
}

@media (max-width: 600px) {
  .hub-main { padding: 44px 16px 64px; }
  .hub-inner h1 { font-size: 1.7rem; }
}
