/* HouseHackers — guide article */

.article-hero { max-width: 800px; margin: 0 auto; padding: 72px 40px 0; text-align: center; }
.article-hero .kicker { margin-bottom: 20px; }
.article-hero h1 {
  font: 400 56px/1.08 var(--serif);
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
}
.article-hero .lede {
  font: 400 19px/1.6 var(--sans);
  color: var(--muted);
  margin: 22px auto 0;
  max-width: 56ch;
}
.byline { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 30px; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--forest); color: var(--cream-50);
  display: flex; align-items: center; justify-content: center;
  font: 600 14px/1 var(--sans); flex: none;
}
.byline__meta { text-align: left; }
.byline__name { font: 600 14px/1.2 var(--sans); color: var(--ink); }
.byline__date { font: 400 12.5px/1.2 var(--sans); color: var(--faint); }

.article-figure { padding: 48px var(--page-x) 0; }
.article-figure__frame {
  width: 100%; aspect-ratio: 3 / 1; border-radius: 18px; overflow: hidden; background: var(--cream-100);
}
.article-figure__frame img { width: 100%; height: 100%; object-fit: cover; }
.article-figure figcaption {
  font: italic 400 14px/1.4 var(--serif); color: var(--faint);
  margin-top: 12px; text-align: center;
}

.prose { max-width: 680px; margin: 0 auto; padding: 56px 40px 0; }
.prose p { font: 400 17.5px/1.75 var(--sans); color: var(--ink); margin: 24px 0 0; }
.prose > p:first-child { margin-top: 0; }
.prose p.intro { font-size: 19px; }
.prose p.intro::first-letter {
  float: left;
  font: 400 76px/0.72 var(--serif);
  color: var(--forest);
  padding: 8px 12px 0 0;
}
.prose h3 { font: 400 28px/1.25 var(--serif); color: var(--ink); margin: 44px 0 14px; }
.prose em { font-style: italic; }
.prose strong { font-weight: 600; }

/* comparison / data tables inside articles */
.prose .table-wrap { overflow-x: auto; margin: 28px 0 0; }
.prose table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 520px; }
.prose table th {
  text-align: left; font: 600 11px/1.3 var(--sans); letter-spacing: .07em; text-transform: uppercase;
  color: var(--faint); padding: 0 14px 10px 0; border-bottom: 1px solid var(--line-18);
}
.prose table td { font: 400 14.5px/1.5 var(--sans); color: var(--ink); padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line-10); vertical-align: top; }
.prose table td:first-child { font-weight: 600; }
.prose .table-note { font: 400 12.5px/1.5 var(--sans); color: var(--faint); margin: 10px 0 0; }

/* callout box (checklists, key facts) */
.callout {
  background: rgba(33, 64, 44, .06); border: 1px solid rgba(33, 64, 44, .16);
  border-radius: 14px; padding: 22px 26px; margin: 28px 0 0;
}
.callout h4 { font: 600 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--forest); margin: 0 0 12px; }
.callout ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; }
.callout li { position: relative; padding-left: 24px; font: 400 15px/1.55 var(--sans); color: var(--ink); }
.callout li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--terracotta); font-weight: 700; }

.pull {
  border-top: 1px solid rgba(188, 95, 56, .4);
  border-bottom: 1px solid rgba(188, 95, 56, .4);
  margin: 44px 0;
  padding: 32px 8px;
  text-align: center;
}
.pull div { font: italic 400 30px/1.35 var(--serif); color: var(--ink); }

.ol-loans { margin: 20px 0 0; display: flex; flex-direction: column; gap: 14px; }
.ol-loans .li { display: flex; gap: 14px; }
.ol-loans .n { font: 400 17px/1.65 var(--serif); color: var(--terracotta); min-width: 24px; }
.ol-loans p { font: 400 16.5px/1.65 var(--sans); color: var(--ink); margin: 0; }

.inline-cta {
  background: rgba(33, 64, 44, .07);
  border: 1px solid rgba(33, 64, 44, .16);
  border-radius: 14px;
  padding: 24px 28px;
  margin: 44px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.inline-cta__h { font: 400 21px/1.2 var(--serif); color: var(--ink); }
.inline-cta__p { font: 400 14px/1.4 var(--sans); color: var(--muted); margin-top: 4px; }

/* newsletter placement — the .nl card itself lives in site.css */
.nl-wrap { max-width: 800px; margin: 64px auto 0; padding: 0 40px; }

/* keep reading */
.keep-reading { padding: 72px var(--page-x) 88px; }
.keep-reading__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 28px; gap: 24px; }
.keep-reading__head h2 { font: 400 30px/1.1 var(--serif); color: var(--ink); }
.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.related {
  display: flex; gap: 20px; align-items: center;
  background: var(--cream-25); border: 1px solid var(--line-12); border-radius: var(--r-card);
  padding: 18px; color: inherit;
  transition: box-shadow .2s ease, translate .2s ease;
}
.related:hover { box-shadow: 0 12px 30px rgba(42, 36, 26, .1); translate: 0 -2px; color: inherit; }
.related__img { width: 120px; height: 96px; border-radius: 10px; overflow: hidden; background: var(--card-edge); flex: none; }
.related__img img { width: 100%; height: 100%; object-fit: cover; }
.related__kicker { font-size: 10.5px; letter-spacing: .13em; margin-bottom: 7px; }
.related__title { font: 400 21px/1.25 var(--serif); color: var(--ink); }

/* slim footer for article */
.footer--slim { padding: 36px var(--page-x); display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.footer--slim .brand { color: var(--cream-50); font-size: 20px; }
.footer--slim .brand .dot { color: var(--sand-warm); }
.footer--slim .legal { font: 400 12px/1.6 var(--sans); color: var(--on-forest-50); max-width: 60ch; text-align: right; }

/* — Responsive — */
@media (max-width: 1024px) {
  .article-hero h1 { font-size: 44px; }
  .article-figure__frame { aspect-ratio: 5 / 2; }
}
@media (max-width: 640px) {
  .article-hero { padding: 40px var(--page-x) 0; }
  .article-hero h1 { font-size: 34px; }
  .article-hero .lede { font-size: 16.5px; }
  .article-figure { padding: 24px var(--page-x) 0; }
  .article-figure__frame { aspect-ratio: 3 / 2; }
  .prose { padding: 28px 20px 0; }
  .prose p { font-size: 17px; line-height: 1.72; }
  .pull div { font-size: 23px; }
  .inline-cta { flex-direction: column; align-items: stretch; text-align: center; }
  .inline-cta .btn { width: 100%; }
  .nl-wrap { padding: 0 20px; }
  .related-grid { grid-template-columns: 1fr; }
  .footer--slim .legal { text-align: left; }
}
