/* Front Porch Report — site styles
   Palette: navy (#13213a / #1d3157) + warm grey (#f4f1ec / #e7e2d9) + brick accent (#b1512f) */

@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:opsz,wght@8..60,500;8..60,600;8..60,700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --navy: #142238;
  --navy-deep: #0c1626;
  --navy-mid: #24375c;
  --grey-warm: #f3efe8;
  --grey-paper: #faf8f4;
  --grey-line: #ddd6c8;
  --brick: #a8502f;
  --brick-dark: #8a3f24;
  --ink: #1d2430;
  --ink-soft: #52596a;
  --gold: #c7a24a;
  --radius: 4px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--grey-paper);
  color: var(--ink);
  font-family: 'Inter', -apple-system, Segoe UI, sans-serif;
  line-height: 1.6;
  font-size: 17px;
}

h1, h2, h3 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

a { color: var(--navy-mid); text-decoration: none; }
a:hover { color: var(--brick); text-decoration: underline; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

img { max-width: 100%; display: block; }

ul, ol { padding-left: 1.3em; }

/* ---------- Header ---------- */
.site-header { background: var(--navy); border-bottom: 3px solid var(--gold); }
.site-header__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 22px 24px 10px;
  flex-wrap: wrap;
  gap: 8px;
}
.site-logo {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}
.site-logo span { color: var(--gold); }
.site-tagline {
  color: #c7cde0;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}
.site-nav { background: var(--navy-deep); }
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0 0;
}
.site-nav a {
  display: block;
  color: #d8dced;
  padding: 12px 16px;
  font-size: 0.92rem;
  font-weight: 600;
}
.site-nav a:hover { background: var(--navy-mid); color: #fff; text-decoration: none; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  padding: 14px 24px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.breadcrumbs a { color: var(--ink-soft); }
.breadcrumbs span { color: var(--navy); font-weight: 600; }

/* ---------- Ad slots ---------- */
.ad-slot {
  background: #eee9df;
  border: 1px dashed #c9c0ab;
  border-radius: var(--radius);
  color: #938a73;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  margin: 28px 0;
}
.ad-slot::before { content: "Advertisement"; }
#ad-rail { min-height: 250px; }

/* ---------- Home: hero ---------- */
.home-hero {
  position: relative;
  color: #fff;
  background: var(--navy-deep);
}
.home-hero img { width: 100%; height: 360px; object-fit: cover; opacity: 0.55; }
.home-hero__copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 24px;
  max-width: 1120px;
  margin: 0 auto;
}
.home-hero__copy h1 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3rem);
  max-width: 700px;
  margin: 0 0 10px;
}
.home-hero__copy p {
  color: #d8dced;
  max-width: 560px;
  font-size: 1.1rem;
}

/* ---------- Home: listing ---------- */
.post-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  margin: 32px 0;
}
.post-card {
  background: #fff;
  border: 1px solid var(--grey-line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.post-card img { height: 190px; object-fit: cover; }
.post-card__body { padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; }
.post-card__kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brick);
  margin-bottom: 8px;
}
.post-card h2 { font-size: 1.25rem; margin: 0 0 8px; }
.post-card h2 a { color: var(--navy); }
.post-card p.excerpt { color: var(--ink-soft); font-size: 0.95rem; flex: 1; }
.post-card .meta { font-size: 0.8rem; color: #918a77; margin-top: 10px; }

.section-heading {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 48px 0 6px;
  border-bottom: 2px solid var(--navy);
  padding-bottom: 8px;
}
.section-heading h2 { margin: 0; font-size: 1.4rem; }
.section-heading span { color: var(--ink-soft); font-size: 0.9rem; }

/* ---------- Article layout ---------- */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: start;
}
@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }
}

article.guide { padding: 28px 0 60px; }
.article-header { max-width: 760px; margin-bottom: 20px; }
.article-header h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin: 0 0 12px; }
.article-dek { font-size: 1.15rem; color: var(--ink-soft); margin: 0 0 16px; }
.byline {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--grey-line);
  border-bottom: 1px solid var(--grey-line);
  padding: 10px 0;
}
.byline strong { color: var(--navy); }

.article-hero { margin: 0 0 28px; }
.article-hero img { width: 100%; height: auto; border-radius: var(--radius); }
.article-hero figcaption, .inline-figure figcaption {
  font-size: 0.8rem;
  color: #918a77;
  padding-top: 6px;
}
.inline-figure { margin: 28px 0; }
.inline-figure img { border-radius: var(--radius); }

.article-body h2 { font-size: 1.5rem; margin: 36px 0 12px; }
.article-body h3 { font-size: 1.15rem; margin: 22px 0 8px; color: var(--navy-mid); }
.article-body p { margin: 0 0 16px; }
.article-body ul, .article-body ol { margin: 0 0 16px; }
.article-body li { margin-bottom: 6px; }

.key-takeaways {
  background: var(--grey-warm);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 0 0 28px;
}
.key-takeaways h2 { margin: 0 0 10px; font-size: 1.1rem; }
.key-takeaways ul { margin: 0; padding-left: 1.2em; }

/* ---------- CTA bar ---------- */
.cta-bar {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.cta-bar__text strong { display: block; font-size: 1.05rem; color: #fff; }
.cta-bar__text span { color: #bfc6dc; font-size: 0.88rem; }
.cta-bar .cta-button {
  background: var(--brick);
  color: #fff;
  font-weight: 700;
  padding: 11px 22px;
  border-radius: var(--radius);
  white-space: nowrap;
  font-size: 0.92rem;
}
.cta-bar .cta-button:hover { background: var(--brick-dark); text-decoration: none; }
.cta-bar.cta-bar--gold { background: var(--grey-warm); border: 1px solid var(--grey-line); }
.cta-bar.cta-bar--gold .cta-bar__text strong { color: var(--navy); }
.cta-bar.cta-bar--gold .cta-bar__text span { color: var(--ink-soft); }

/* ---------- Calculator placeholder ---------- */
.calculator {
  background: #fff;
  border: 1px solid var(--grey-line);
  border-radius: var(--radius);
  padding: 24px;
  margin: 28px 0;
}
.calculator h3 { margin: 0 0 4px; }
.calculator .calculator__sub { color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 18px; }
.calculator__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}
.calculator__field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.calculator__field input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--grey-line);
  border-radius: var(--radius);
  font-size: 1rem;
  background: var(--grey-paper);
  color: var(--ink);
}
.calculator__result {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--grey-line);
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.calculator__result div strong { display: block; font-size: 1.3rem; color: var(--navy); }
.calculator__result div span { font-size: 0.8rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.04em; }

/* ---------- Rate table ---------- */
table.rates {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0 28px;
  font-size: 0.95rem;
}
table.rates caption { text-align: left; font-size: 0.82rem; color: var(--ink-soft); margin-bottom: 8px; }
table.rates th, table.rates td { padding: 11px 14px; border-bottom: 1px solid var(--grey-line); text-align: left; }
table.rates thead th { background: var(--navy); color: #fff; font-weight: 600; font-size: 0.85rem; }
table.rates tbody tr:nth-child(even) { background: var(--grey-warm); }
table.rates td.num, table.rates th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Neighbourhood stat boxes ---------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin: 20px 0 28px;
}
.stat-box {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}
.stat-box strong { display: block; font-size: 1.5rem; font-family: 'Source Serif 4', serif; color: var(--gold); }
.stat-box span { display: block; font-size: 0.78rem; color: #c7cde0; text-transform: uppercase; letter-spacing: 0.03em; margin-top: 4px; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; padding: 0; margin: 20px 0 28px; }
.timeline li {
  position: relative;
  padding: 2px 0 20px 32px;
  border-left: 2px solid var(--grey-line);
  margin-left: 10px;
}
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brick);
  border: 2px solid var(--grey-paper);
}
.timeline strong { display: block; color: var(--navy); font-size: 1rem; }
.timeline p { margin: 4px 0 0; color: var(--ink-soft); font-size: 0.94rem; }

/* ---------- Sources / disclaimer ---------- */
.sources { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--grey-line); }
.sources h2 { font-size: 1.05rem; margin: 0 0 8px; }
.sources ol { font-size: 0.88rem; color: var(--ink-soft); }
.disclaimer {
  font-size: 0.82rem;
  color: var(--ink-soft);
  background: var(--grey-warm);
  padding: 12px 16px;
  border-radius: var(--radius);
  margin: 26px 0;
}

/* ---------- Rail / sidebar ---------- */
.rail { display: flex; flex-direction: column; gap: 22px; }
.rail-box {
  background: #fff;
  border: 1px solid var(--grey-line);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.rail-box h2 { font-size: 1rem; margin: 0 0 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--navy); }
.rail-box.toc ol { margin: 0; padding-left: 1.1em; font-size: 0.9rem; }
.rail-box.toc li { margin-bottom: 8px; }

.agent-card { text-align: center; }
.agent-card .agent-card__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--navy-mid);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  font-family: 'Source Serif 4', serif;
  font-size: 1.4rem;
}
.agent-card h3 { font-size: 1.05rem; margin: 0 0 4px; }
.agent-card p { font-size: 0.86rem; color: var(--ink-soft); margin: 0 0 14px; }
.agent-card .cta-button {
  display: inline-block;
  background: var(--brick);
  color: #fff;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-size: 0.88rem;
}
.agent-card .cta-button:hover { background: var(--brick-dark); text-decoration: none; }

/* ---------- Related / footer ---------- */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 16px 0 10px;
}
.related-grid a {
  display: block;
  background: var(--navy-mid);
  color: #fff;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 600;
}
.related-grid a:hover { background: var(--navy-deep); text-decoration: none; }

.site-footer { background: var(--navy-deep); color: #c7cde0; margin-top: 50px; }
.site-footer .wrap { padding: 36px 24px; }
.site-footer h2 { color: #fff; font-size: 1.1rem; }
.legal { margin-top: 24px; padding-top: 18px; border-top: 1px solid #27354f; font-size: 0.82rem; }
.legal a { color: #9fb0d6; }
.legal p { margin: 0 0 8px; }

/* ---------- About page ---------- */
.about-page { padding: 40px 0 60px; max-width: 760px; }
.about-page h1 { font-size: 2.1rem; margin-bottom: 16px; }
.about-page h2 { font-size: 1.3rem; margin: 30px 0 10px; }
