/* ── Categories block ── numbered card grid.
   Token-only colours. Each card is its own quiet rectangle with a
   large Roman numeral set in the display serif at the gold accent.
   The cards self-frame via 1px borders (no fancy shadows) so the
   page keeps its engraved-program feel. */
.block-categories {
  padding: clamp(40px, 6vh, 72px) var(--space-section-x);
}

.block-categories .cat-header {
  max-width: 1320px;
  margin: 0 auto clamp(40px, 6vh, 72px);
  text-align: left;
}
.block-categories .cat-header .section-label { margin-bottom: 20px; }
.block-categories .cat-header .section-title {
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: var(--color-fg);
  margin-bottom: 24px;
}
.block-categories .cat-header .section-title em {
  color: var(--color-accent);
  font-style: italic;
  font-weight: 900;
}
.block-categories .cat-intro {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.7;
  color: var(--color-fg-muted);
  max-width: 640px;
  margin: 0 auto;
}

/* ── Grid ── auto-fitting card grid.
   Cards self-border (border-right + border-bottom) and the container
   carries the top + left edge, so the grid stays uniform regardless of
   item count and no "empty cell" hairlines leak through. */
.block-categories .cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--color-border);
  border-left: 1px solid var(--color-border);
  max-width: 1320px;
  margin: 0 auto;
}

.block-categories .cat-card {
  background: var(--color-bg);
  padding: clamp(24px, 2.6vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  transition: background 0.25s;
}
.block-categories .cat-card:hover { background: #fafafa; }

/* The big Roman numeral — display serif in strong black; the cards
   carry the visual weight, not the colour. */
.block-categories .cat-numeral {
  font-family: var(--font-numeral);          /* Tai Heritage Pro — the only place it appears */
  font-weight: 400;
  font-size: clamp(48px, 5vw, 72px);
  line-height: 0.9;
  color: var(--color-fg);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.block-categories .cat-name {
  font-family: var(--font-display);
  font-size: clamp(20px, 1.6vw, 26px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-fg);
  margin: 0;
}

.block-categories .cat-desc {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-fg-muted);
  margin: 0;
}

@media (max-width: 1024px) {
  .block-categories .cat-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .block-categories .cat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .block-categories .cat-grid { grid-template-columns: 1fr; }
  .block-categories { padding: 40px 16px; }
}
