/* HouseHackers — the library (guides & insights index) */

.lib-head { padding: 56px var(--page-x) 40px; }
.lib-head h1 {
  font: 400 48px/1.1 var(--serif);
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}
.lib-head .kicker { margin-bottom: 14px; }
.lib-head p { font: 400 16.5px/1.6 var(--sans); color: var(--muted); margin: 14px 0 0; max-width: 62ch; }

/* featured guide — a wide split card */
.featured {
  margin: 0 var(--page-x);
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  background: var(--cream-25);
  border: 1px solid var(--line-12);
  border-radius: var(--r-card);
  overflow: hidden;
  color: inherit;
  transition: box-shadow .2s ease, translate .2s ease;
}
.featured:hover { box-shadow: 0 14px 36px rgba(42, 36, 26, .12); translate: 0 -2px; color: inherit; }
.featured__img { min-height: 340px; background: var(--card-edge); }
.featured__img img { width: 100%; height: 100%; object-fit: cover; }
.featured__body { padding: 40px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.featured__title { font: 400 34px/1.2 var(--serif); color: var(--ink); }
.featured:hover .featured__title { color: var(--forest-700); }
.featured__excerpt { font: 400 15.5px/1.65 var(--sans); color: var(--muted); margin-top: 12px; max-width: 52ch; }
.featured__meta { font: 400 13px/1 var(--sans); color: var(--faint); margin-top: 16px; }
.featured__read { margin-top: 18px; }

.lib-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding: 28px var(--page-x) 0;
}

/* report lead-magnet band */
.lib-report {
  margin: 0 var(--page-x) 28px; padding: 32px 40px;
  background: var(--forest); color: var(--cream-50);
  border-radius: var(--r-card);
  display: grid; grid-template-columns: 1fr auto; gap: 16px 40px; align-items: center;
  transition: box-shadow .2s ease, translate .2s ease;
}
.lib-report:hover { box-shadow: 0 16px 40px rgba(22, 48, 30, .35); translate: 0 -2px; color: var(--cream-50); }
.lib-report__tag { font: 600 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--sand-warm); margin-bottom: 10px; }
.lib-report__title { font: 400 28px/1.15 var(--serif); color: var(--cream-50); }
.lib-report__sub { font: 400 14.5px/1.6 var(--sans); color: var(--on-forest-70); margin: 8px 0 0; max-width: 60ch; }
.lib-report .btn { white-space: nowrap; }

@media (max-width: 640px) {
  .lib-report { grid-template-columns: 1fr; padding: 26px; }
  .lib-report__title { font-size: 23px; }
  .lib-report .btn { width: 100%; }
}

.lib-nl { max-width: 880px; margin: 0 auto; padding: 64px 40px var(--page-y); }

@media (max-width: 1024px) {
  .lib-head h1 { font-size: 40px; }
  .featured { grid-template-columns: 1fr; }
  .featured__img { min-height: 0; height: 280px; }
  .lib-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .lib-head { padding: 40px var(--page-x) 24px; }
  .lib-head h1 { font-size: 34px; }
  .featured__body { padding: 24px; }
  .featured__title { font-size: 26px; }
  .lib-grid { grid-template-columns: 1fr; gap: 16px; }
  .lib-nl { padding: 44px 20px var(--page-y); }
}
