/* ───── Blog index — paper gallery ─────
   Posts are presented as papers laid on a desk. Cards keep
   their resting tilt; alternating cards lean the other way to
   suggest a stack rather than a regimented row. */

/* Page background: warm off-white desk, so the off-white paper cards pop.
   Scoped to this page only — blog-index.css loads only here. */
body { background: var(--bg-surface); }

/* Widen the blog index to match site-wide pages (Pricing, Surfaces).
   Other narrow pages keep .page-main's 720px max.
   Also tighten the top padding since this page leads with a small gallery,
   not a long body of prose. */
.page-main-wide {
  max-width: var(--content-max);
  padding-top: var(--space-4xl);
}
.page-main-wide .page-header {
  max-width: var(--content-narrow);
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-xl);
}

.paper-gallery {
  display: grid;
  grid-template-columns: repeat(3, 168px);
  justify-content: center;
  align-items: start;
  column-gap: var(--space-3xl);
  row-gap: var(--space-3xl);
  padding: var(--space-2xl) var(--space-md) var(--space-xl);
  margin: 0;
}

/* Override the home-page paper-card auto-push so cards centre in their grid cell */
.paper-gallery .paper-card { margin-left: 0; margin-right: 0; }

/* Alternate the resting tilt so the grid feels like scattered papers,
   not a regimented row. The base .paper-card sits at +1.2deg; flip
   every other card. */
.paper-gallery .paper-card:nth-child(2n)   { transform: rotate(-1.4deg); }
.paper-gallery .paper-card:nth-child(3n)   { transform: rotate(0.6deg); }
.paper-gallery .paper-card:nth-child(4n+1) { transform: rotate(-0.8deg); }

/* Hover state still wins — re-state it after the nth-child overrides. */
.paper-gallery .paper-card:hover,
.paper-gallery .paper-card:focus-visible {
  transform: translateY(-6px) rotate(-1.6deg);
}

@media (max-width: 767px) {
  .paper-gallery {
    grid-template-columns: repeat(2, 168px);
    column-gap: var(--space-2xl);
    row-gap: var(--space-2xl);
  }
}
@media (max-width: 479px) {
  .paper-gallery {
    grid-template-columns: 168px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .paper-gallery .paper-card,
  .paper-gallery .paper-card:nth-child(2n),
  .paper-gallery .paper-card:nth-child(3n),
  .paper-gallery .paper-card:nth-child(4n+1) { transform: none; }
}

/* ───── Section: Reading between the Markets ─────
   Title + sub pattern; hosts a paper-gallery.
   Rendered as a full-bleed tinted band (canonical §2.3.1 marketing-surface
   tint license) so the desk visually separates from the lone Methodology
   card above. Negative margins push the band edge-to-edge while matching
   horizontal padding keeps the inner content centred on the page-main width. */

.rbm-section {
  background: var(--tint-ambient);
  margin: var(--space-2xl) calc(50% - 50vw);
  padding: var(--space-3xl) calc(50vw - 50%);
}
.rbm-section-title {
  font-family: var(--font-ui);
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--text-primary);
  margin: 0 0 var(--space-sm) 0;
  max-width: 36ch;
}
.rbm-section-sub {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 0 var(--space-md) 0;
  max-width: 60ch;
}
