/* Home Renovations — practical, contractor-trustworthy — reviewed 2026-10-01: hero, palette, hierarchy, hover, mobile */
:root {
  --ink: #221f1a;
  --muted: #5f5a52;
  --accent: #166534;
  --accent-dark: #0e4a25;
  --accent-soft: #eef4ee;
  --accent-2: #b45309;
  --line: #dbe3da;
  --bg: #ffffff;
  --hero-from: #0f2f1d;
  --hero-to: #1d5c33;
  --hero-ink: #f7faf7;
  --font-display: Georgia, 'Times New Roman', serif;
  --font-display-w: 700;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 880px; margin: 0 auto; padding: 0 20px; }

/* ---- header ---- */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
}
.brand {
  font-family: var(--font-display);
  font-weight: var(--font-display-w);
  font-size: 1.25rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--accent); }
.tagline { color: var(--muted); margin: 2px 0 0; font-size: .92rem; }

/* ---- hero (homepage) ---- */
main { padding: 0 0 56px; }
.hero {
  margin: 0 -20px 44px;
  padding: 76px 24px 72px;
  background: linear-gradient(135deg, var(--hero-from), var(--hero-to));
  color: var(--hero-ink);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 15%, rgba(255,255,255,.07) 0 120px, transparent 121px), radial-gradient(circle at 85% 80%, rgba(255,255,255,.05) 0 160px, transparent 161px);
  
  pointer-events: none;
}
.hero-inner { max-width: 760px; margin: 0 auto; position: relative; }
.hero-eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--hero-ink);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px;
  padding: 6px 14px;
  margin: 0 0 20px;
  background: rgba(255,255,255,.08);
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: var(--font-display-w);
  font-size: 2.75rem;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  text-wrap: balance;
}
.hero-sub { font-size: 1.15rem; line-height: 1.65; margin: 0 0 30px; opacity: .92; max-width: 640px; }
.btn {
  display: inline-block;
  background: var(--accent-2);
  color: #fff;
  font-weight: 700;
  font-size: 1.02rem;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 10px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0,0,0,.3);
  background: var(--accent);
}
.btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* ---- guide cards ---- */
.posts { padding-bottom: 12px; }
.section-title {
  font-family: var(--font-display);
  font-weight: var(--font-display-w);
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
  padding-left: 14px;
  border-left: 5px solid var(--accent);
  line-height: 1.3;
}
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
  background: var(--bg);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  position: relative;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,.10);
  border-color: var(--accent);
}
.card h3 { margin: 0 0 8px; font-size: 1.08rem; line-height: 1.4; }
.card h3 a { color: var(--ink); text-decoration: none; transition: color .15s ease; }
.card h3 a:hover { color: var(--accent); }
.card h3 a::after { content: " \2192"; opacity: 0; transition: opacity .2s ease; color: var(--accent); }
.card:hover h3 a::after { opacity: 1; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.6; }

/* ---- article pages ---- */
main.post { max-width: 740px; }
.post h1 {
  font-family: var(--font-display);
  font-weight: var(--font-display-w);
  font-size: 2.1rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 12px 0 8px;
  text-wrap: balance;
}
.post .meta {
  color: var(--muted);
  font-size: .88rem;
  margin: 0 0 26px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--accent-soft);
}
.post h2 {
  font-family: var(--font-display);
  font-weight: var(--font-display-w);
  font-size: 1.45rem;
  letter-spacing: -0.01em;
  margin: 40px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--line);
}
.post h3 { font-size: 1.15rem; margin: 28px 0 10px; color: var(--accent-dark); }
.post p { margin: 0 0 16px; }
.post ul, .post ol { margin: 0 0 18px; padding-left: 24px; }
.post li { margin-bottom: 8px; }
.post strong { color: var(--ink); }
.post blockquote {
  margin: 26px 0;
  padding: 16px 22px;
  border-left: 4px solid var(--accent-2);
  background: var(--accent-soft);
  border-radius: 0 10px 10px 0;
  font-size: 1.05rem;
  line-height: 1.65;
}
.post blockquote p { margin: 0; }
.post code {
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: .92em;
}
.post pre {
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 18px;
  overflow-x: auto;
  line-height: 1.55;
}
.post pre code { background: none; border: none; padding: 0; }
.post table { border-collapse: collapse; width: 100%; margin: 20px 0; font-size: .95rem; }
.post th, .post td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.post th { background: var(--accent-dark); color: #fff; font-weight: 600; }
.post tr:nth-child(even) td { background: var(--accent-soft); }
.back {
  display: inline-block;
  margin: 28px 0 20px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: color .15s ease;
}
.back:hover { color: var(--accent-dark); text-decoration: underline; }
/* Ad slot placeholder — style only applies once you paste real ad code */
.ad-slot {
  border: 1px dashed var(--line);
  color: var(--muted);
  text-align: center;
  padding: 12px;
  margin: 24px 0;
  font-size: 0.85rem;
  display: none; /* shown automatically once ad code is pasted */
}
.note {
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: 0 10px 10px 0;
  padding: 14px 18px;
  margin: 28px 0;
  font-size: .97rem;
  line-height: 1.65;
}
.note strong { color: var(--accent-dark); }

/* ---- footer ---- */
.site-footer {
  background: var(--hero-from);
  color: rgba(255,255,255,.78);
  padding: 32px 0 40px;
  font-size: .88rem;
  line-height: 1.6;
}
.site-footer p { margin: 8px 0; }
.site-footer a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255,255,255,.4); }
.site-footer a:hover { text-decoration-color: #fff; }
.footer-nav a { text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.35); }
.footer-nav a:hover { border-bottom-color: #fff; }
.site-footer .ai-disclosure{font-size:.85em;opacity:.85}

/* ---- responsive ---- */
@media (max-width: 768px) {
  .hero { padding: 56px 20px 52px; margin-bottom: 32px; }
  .hero h1 { font-size: 2rem; }
  .hero-sub { font-size: 1.05rem; }
  .card-grid { grid-template-columns: 1fr; }
  .post h1 { font-size: 1.7rem; }
  .post h2 { font-size: 1.3rem; }
  .post table { font-size: .85rem; }
  .post th, .post td { padding: 8px 10px; }
  .btn { display: block; text-align: center; }
}
@media (max-width: 480px) {
  .hero { margin: 0 -16px 32px; padding: 48px 20px 44px; }
  .hero h1 { font-size: 1.75rem; }
  .hero-eyebrow { font-size: .7rem; }
  .card { padding: 18px; }
  .wrap { padding: 0 16px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* Article illustration figures — wired by the image pipeline (stage 6.5).
   Constrains large generated images to fit inside the article column. */
.post-figure { margin: 1.75rem auto; max-width: 100%; }
.post-figure img { display: block; max-width: 100%; height: auto; border-radius: 8px; }
.post-figure figcaption { margin-top: 0.5rem; font-size: 0.85em; color: #666; }
