/* HomeScout guides — shared styles */
:root {
  --bg: #F8F7F5;
  --surface: #FFFFFF;
  --ink: #17171A;
  --body: #4B4D52;
  --muted: #6A6D72;
  --faint: #85858A;
  --border: #E7E3DC;
  --accent: #5271FF;
  --accent-hover: #3A56CC;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  line-height: 1.6;
}

a { color: inherit; }

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: clamp(20px, 5vw, 72px);
  padding-right: clamp(20px, 5vw, 72px);
}

/* header */
header.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
header.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px clamp(20px, 5vw, 72px);
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Newsreader', Georgia, serif;
  font-size: 21px;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
}
.logo .dot { width: 20px; height: 20px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 14.5px; color: var(--body); }
.nav-links a { text-decoration: none; color: var(--body); }
.nav-cta {
  background: var(--accent) !important;
  color: #FFFFFF !important;
  padding: 0 18px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  font-weight: 500;
  border-radius: 999px;
  font-size: 14px;
  text-decoration: none !important;
}

/* eyebrow / labels */
.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

/* guides index */
.guides-hero { padding: clamp(48px, 7vw, 84px) 0 clamp(16px, 3vw, 32px); }
.guides-hero h1 {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 400;
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  text-wrap: pretty;
}
.guides-hero p { font-size: 17px; color: var(--body); max-width: 56ch; }

.pillar-wrap { padding-bottom: clamp(32px, 4vw, 44px); }
.pillar-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 40px);
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: clamp(20px, 2.5vw, 28px);
}
.pillar-card img {
  width: 100%;
  aspect-ratio: 800 / 360;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}
.pillar-card h3 {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 400;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.2;
  margin: 12px 0 12px;
}
.pillar-card p { font-size: 16px; color: var(--body); }
@media (max-width: 720px) {
  .pillar-card { grid-template-columns: 1fr; }
}

.start-here { padding: 18px 0 0; }
.start-here a {
  display: inline-block;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.start-here a:hover { border-bottom-color: var(--accent); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: clamp(24px, 3vw, 34px);
  padding-bottom: clamp(56px, 7vw, 92px);
}
.card {
  display: block;
  text-decoration: none;
  color: inherit;
}
.card img {
  width: 100%;
  aspect-ratio: 360 / 220;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  background: #EFECE6;
}
.card .eyebrow { margin: 18px 0 10px; display: block; }
.card h3 {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 400;
  font-size: 23px;
  line-height: 1.24;
  margin-bottom: 10px;
  text-wrap: pretty;
}
.card p { font-size: 15.5px; color: var(--body); }

/* article page */
article.post { padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 8vw, 100px); }
.post-header { max-width: 72ch; margin-bottom: clamp(28px, 4vw, 36px); }
.post-hero { margin-bottom: clamp(28px, 4vw, 44px); }
.post-hero img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 14px;
  display: block;
  background: #EFECE6;
}
.post-header .eyebrow { margin-bottom: 16px; display: block; }
.post-header h1 {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 400;
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  text-wrap: pretty;
}
.post-header .dek { font-size: 18px; color: var(--body); }
.post-header .byline { font-size: 13.5px; color: var(--faint); margin-top: 14px; }

.post-body { max-width: 72ch; font-size: 17px; color: var(--body); }
.post-body h2 {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 400;
  color: var(--ink);
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.28;
  margin: 40px 0 14px;
  text-wrap: pretty;
}
.post-body p { margin-bottom: 16px; }
.post-body ul, .post-body ol { margin: 0 0 16px 22px; }
.post-body li { margin-bottom: 8px; }
.post-body strong { color: var(--ink); }
.post-body a { color: var(--accent); text-decoration: underline; }

.related { max-width: 100%; margin-top: clamp(40px, 5vw, 64px); padding-top: clamp(32px, 4vw, 44px); border-top: 1px solid var(--border); }
.related h2 {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 400;
  font-size: clamp(22px, 2.6vw, 28px);
  margin-bottom: clamp(20px, 3vw, 28px);
}
.related-grid { padding-bottom: 0; }
.related-grid .card h3 { font-size: 19px; }

.faq h2 { margin-top: 48px; }
.faq-item { border-top: 1px solid var(--border); padding: 20px 0; }
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-item .q {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 19px;
  color: var(--ink);
  margin-bottom: 8px;
}
.faq-item .a { font-size: 16px; color: var(--body); margin-bottom: 0; }

/* CTA band */
.cta-band {
  border-top: 1px solid var(--border);
  background: var(--ink);
  color: #F8F7F5;
}
.cta-band .inner {
  padding: clamp(48px, 6vw, 76px) 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
}
.cta-band h2 {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 400;
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  text-wrap: pretty;
}
.cta-band p { color: #B7B6B3; font-size: 16px; }
.cta-band .btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 13px 22px;
  border-radius: 8px;
  font-size: 15px;
  white-space: nowrap;
}

/* footer */
footer.site-footer {
  background: var(--ink);
  color: var(--faint);
  font-size: 14px;
}
footer.site-footer .inner {
  padding: 28px clamp(20px, 5vw, 72px);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
}
footer.site-footer a { color: var(--faint); text-decoration: none; }

@media (max-width: 640px) {
  * { min-width: 0; }
  html, body { max-width: 100%; overflow-x: hidden; }
  .nav-links a:not(.nav-cta) { display: none; }
  header.site-header .bar { flex-wrap: wrap; row-gap: 12px; }
}

/* Comparison tables */
.table-wrap { overflow-x: auto; margin: 0 0 20px; -webkit-overflow-scrolling: touch; }
.post-body table {
  border-collapse: collapse;
  width: 100%;
  min-width: 460px;
  font-size: 15px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.post-body thead th {
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
  padding: 12px 14px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.post-body tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--body);
  vertical-align: top;
}
.post-body tbody tr:last-child td { border-bottom: 0; }
.post-body tbody td:first-child { color: var(--ink); font-weight: 500; }
