/* ───────────────────────────────────────────────────────────────────────────
   AVJ Real Estate — Blog post stylesheet
   Shared by all blog templates. Don't edit unless updating site-wide post style.
   ─────────────────────────────────────────────────────────────────────────── */

:root {
  --bg: #0A0D14;
  --bg-soft: #14171F;
  --text: #EAEAEC;
  --text-soft: #A8AAB3;
  --text-dim: #6E7079;
  --gold: #D4B582;
  --gold-bright: #E5C896;
  --green: #7DA08B;
  --stroke: rgba(255,255,255,0.08);
  --stroke-bright: rgba(255,255,255,0.14);
  --serif: 'Fraunces', serif;
  --sans: 'Inter Tight', sans-serif;
  --mono: 'JetBrains Mono', monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 2rem; }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(7,9,15,0.82);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--stroke);
  padding: 1.05rem 0;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
}
.brand-mark {
  font-family: var(--serif);
  font-size: 1.18rem;
  text-decoration: none;
  letter-spacing: -0.01em;
  font-weight: 380;
}
.brand-mark .avj { font-style: italic; color: var(--gold); }
.brand-mark .re { color: var(--text); }
.back-link {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-soft);
  text-decoration: none;
  transition: color 0.2s;
}
.back-link:hover { color: var(--gold); }

/* ── Article hero ── */
.article-hero { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(1.5rem, 3vw, 2.5rem); }
.article-hero .wrap { max-width: 760px; }
.article-eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.4rem;
  display: inline-block;
}
.article-title {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  font-weight: 380;
  line-height: 1.05;
  margin: 0 0 1.4rem;
  letter-spacing: -0.02em;
}
.article-title em { font-style: italic; color: var(--gold); }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.2rem;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--stroke);
}
.article-meta .dot { color: var(--gold); }

/* ── Cover image ── */
.article-cover {
  max-width: 1180px;
  margin: 0 auto clamp(3rem, 6vw, 4.5rem);
  padding: 0 2rem;
}
.article-cover .frame {
  aspect-ratio: 16 / 9;
  background: var(--bg-soft);
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--stroke);
}
.article-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Body ── */
.article-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 2rem;
  font-size: 1.13rem;
  line-height: 1.75;
  color: var(--text-soft);
}
.article-body > *:first-child { margin-top: 0; }
.article-body p { margin: 0 0 1.6rem; }
.article-body p:first-of-type::first-letter {
  font-family: var(--serif);
  font-size: 4.4rem;
  line-height: 0.85;
  float: left;
  padding: 0.4rem 0.65rem 0 0;
  font-weight: 380;
  color: var(--gold);
}
.article-body h2 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  font-weight: 400;
  color: var(--text);
  margin: clamp(2.5rem, 5vw, 3.8rem) 0 1.2rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.article-body h2 em { font-style: italic; color: var(--gold); }
.article-body h3 {
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  margin: 2rem 0 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.article-body a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(212,181,130,0.3);
  transition: border-color 0.2s;
}
.article-body a:hover { border-color: var(--gold); }
.article-body strong { color: var(--text); font-weight: 500; }
.article-body em { color: var(--text); }
.article-body blockquote {
  margin: 2rem 0;
  padding: 0.6rem 0 0.6rem 1.6rem;
  border-left: 3px solid var(--gold);
  font-family: var(--serif);
  font-size: 1.32rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.4;
}
.article-body ul, .article-body ol {
  padding-left: 1.4rem;
  margin: 0 0 1.6rem;
}
.article-body li { margin-bottom: 0.5rem; }
.article-body figure { margin: 2.5rem 0; }
.article-body img {
  width: 100%;
  border-radius: 0.8rem;
  display: block;
  border: 1px solid var(--stroke);
}
.article-body figcaption {
  margin-top: 0.8rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-soft);
  text-align: center;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── Stat grid (Market Brief template) ── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.9rem;
  margin: 2rem 0 2.5rem;
}
.stat-card {
  padding: 1.4rem 1.3rem;
  background: rgba(212,181,130,0.04);
  border: 1px solid rgba(212,181,130,0.18);
  border-radius: 0.9rem;
}
.stat-card .label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}
.stat-card .value {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 380;
  color: var(--text);
  line-height: 1.05;
  margin-bottom: 0.4rem;
}
.stat-card .delta {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-soft);
}
.stat-card .delta.up { color: var(--green); }
.stat-card .delta.down { color: #d97070; }

/* ── Fact strip (Neighborhood template) ── */
.fact-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.7rem 1.2rem;
  margin: 2rem 0 2.5rem;
  padding: 1.5rem 1.6rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--stroke);
  border-radius: 0.9rem;
}
.fact-strip .item .label {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.3rem;
}
.fact-strip .item .value {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--text);
  font-weight: 400;
}

/* ── Numbered step list (Guide template) ── */
.guide-steps { counter-reset: gstep; margin: 1.8rem 0 2.4rem; padding: 0; list-style: none; }
.guide-steps li {
  position: relative;
  padding: 1.2rem 1.4rem 1.2rem 3.6rem;
  border: 1px solid var(--stroke);
  border-radius: 0.75rem;
  margin: 0 0 0.8rem;
  background: rgba(255,255,255,0.02);
}
.guide-steps li::before {
  counter-increment: gstep;
  content: counter(gstep);
  position: absolute;
  left: 1rem; top: 1.15rem;
  width: 1.9rem; height: 1.9rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--gold);
  color: var(--bg);
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.85rem;
  border-radius: 50%;
}
.guide-steps li strong {
  display: block;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.3rem;
}

/* ── Pros/Cons grid ── */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.6rem 0 2.2rem;
}
@media (max-width: 640px) { .pros-cons { grid-template-columns: 1fr; } }
.pros-cons .pc {
  padding: 1.2rem 1.4rem;
  border-radius: 0.75rem;
  border: 1px solid var(--stroke);
}
.pros-cons .pros { background: rgba(125,160,139,0.06); border-color: rgba(125,160,139,0.28); }
.pros-cons .cons { background: rgba(255,80,80,0.04); border-color: rgba(255,80,80,0.18); }
.pros-cons .lbl {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}
.pros-cons .pros .lbl { color: var(--green); }
.pros-cons .cons .lbl { color: #d97070; }
.pros-cons ul { padding-left: 1.1rem; margin: 0; font-size: 0.95rem; }
.pros-cons li { margin-bottom: 0.35rem; }

/* ── Author bio ── */
.author-box-wrap { padding: 0 2rem; }
.author-box {
  max-width: 720px;
  margin: clamp(3rem, 6vw, 4.5rem) auto;
  padding: 1.8rem 2rem;
  border: 1px solid var(--stroke);
  border-radius: 1rem;
  background: rgba(255,255,255,0.02);
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1.5rem;
  align-items: center;
}
@media (max-width: 600px) {
  .author-box { grid-template-columns: 1fr; text-align: center; gap: 1rem; }
  .author-box img { margin: 0 auto; }
}
.author-box img {
  width: 80px; height: 80px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 1px solid var(--stroke-bright);
}
.author-box .name {
  font-family: var(--serif);
  font-size: 1.18rem;
  color: var(--text);
}
.author-box .title {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0.3rem 0 0.7rem;
}
.author-box p {
  color: var(--text-soft);
  font-size: 0.93rem;
  margin: 0;
  line-height: 1.55;
}

/* ── CTA ── */
.article-cta-wrap { padding: 0 2rem; }
.article-cta {
  max-width: 720px;
  margin: 0 auto clamp(4rem, 8vw, 7rem);
  padding: clamp(2.4rem, 5vw, 3.4rem);
  background: rgba(212,181,130,0.04);
  border: 1px solid rgba(212,181,130,0.18);
  border-radius: 1.2rem;
  text-align: center;
}
.article-cta h3 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 1.95rem);
  font-weight: 380;
  color: var(--text);
  margin: 0 0 0.9rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.article-cta h3 em { color: var(--gold); font-style: italic; }
.article-cta p {
  color: var(--text-soft);
  margin: 0 0 1.7rem;
  font-size: 1rem;
}
.btn {
  display: inline-block;
  background: var(--gold);
  color: var(--bg);
  padding: 0.92rem 1.7rem;
  border-radius: 999px;
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  transition: background 0.2s, transform 0.2s;
}
.btn:hover { background: var(--gold-bright); transform: translateY(-1px); }

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--stroke);
  padding: 2.4rem 0;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-soft);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.site-footer a {
  color: var(--gold);
  text-decoration: none;
  margin-left: 0.5rem;
}
.site-footer a:hover { color: var(--gold-bright); }
