/* blog.css: the public blog (/blog and /blog/<slug>). Dark like the home and
   For agents pages; the article is one readable column. (owner, 2026-12-03) */
:root { --bl-bg: #100e09; --bl-text: #f1ead9; --bl-muted: #cdbf9f; --bl-gold: #E3C083; --bl-border: rgba(227, 192, 131, 0.22); }
* { box-sizing: border-box; }
body.blog-body { margin: 0; font-family: 'Inter', system-ui, -apple-system, sans-serif; color: var(--bl-text); background: var(--bl-bg);
  line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; overflow-x: clip; }

.blog-head { display: flex; align-items: center; gap: 20px; padding: 10px 28px; background: #0e0c08; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.blog-logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-size: 19px; font-family: 'Sora', 'Inter', sans-serif; font-weight: 700; }
.blog-logo span { white-space: nowrap; }
.blog-logo sup { font-size: 0.55em; font-weight: 700; color: #ff6b6b; margin-left: 0.22em; font-family: 'Inter', system-ui, sans-serif; }
.blog-nav { display: flex; gap: 4px; margin-left: auto; }
.blog-nav a { padding: 8px 12px; border-radius: 99px; color: rgba(255, 255, 255, 0.86); text-decoration: none; font-size: 15px; font-weight: 600; }
.blog-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
.blog-nav a[aria-current="page"] { color: var(--bl-gold); }
.blog-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 26px; font: inherit; font-size: 16px; font-weight: 700;
  text-decoration: none; color: #1a1408; border-radius: 999px; background: linear-gradient(135deg, #f0d395, #C6A15B); box-shadow: 0 8px 24px rgba(198, 161, 91, 0.28);
  transition: filter 0.15s, transform 0.15s; }
.blog-btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.blog-btn-sm { min-height: 42px; padding: 9px 20px; font-size: 15px; flex-shrink: 0; }
.blog-btn:focus-visible, .blog-nav a:focus-visible, .blog-card:focus-visible, .blog-back:focus-visible, .blog-prose a:focus-visible { outline: 3px solid var(--bl-gold); outline-offset: 3px; }

/* The descriptor line, set as on the home page: the logo typeface, wide capitals, gold */
.blog-descriptor { margin: 0 0 16px; font-family: 'Sora', 'Inter', sans-serif; font-size: 13px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--bl-gold); }
.blog-descriptor em { font-style: normal; color: #fff; }

/* Page ground: warm dark with a soft gold glow, never flat black (owner, 2026-12-03) */
body.blog-body { background:
  radial-gradient(1100px 520px at 12% 0%, rgba(227, 192, 131, 0.10), rgba(227, 192, 131, 0) 70%),
  radial-gradient(900px 600px at 100% 38%, rgba(198, 161, 91, 0.08), rgba(198, 161, 91, 0) 70%),
  linear-gradient(180deg, #17130d 0%, #1d1810 46%, #14110b 100%); }
html { background: #14110b; }

/* Index hero: the sunrise photo from the home page, darkened so the words read */
.blog-hero { padding: 104px 24px 150px; text-align: center;
  background:
    linear-gradient(180deg, rgba(16, 14, 9, 0.5) 0%, rgba(16, 14, 9, 0.38) 45%, rgba(23, 19, 13, 0.86) 86%, #17130d 100%),
    url("/static/img/home/bg-areas.webp?v=1") center 58% / cover no-repeat #16130d; }
.blog-hero h1 { margin: 0 0 16px; font-size: clamp(38px, 5.6vw, 66px); line-height: 1.04; letter-spacing: -0.03em; font-weight: 800; color: #fff; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.5); }
.blog-lede { margin: 0 auto; max-width: 680px; font-size: 19.5px; color: rgba(255, 255, 255, 0.92); text-shadow: 0 1px 16px rgba(0, 0, 0, 0.55); }

.blog-wrap { position: relative; max-width: 1120px; margin: -92px auto 0; padding: 0 24px 84px; }
.blog-more { max-width: 1120px; margin: 0 auto; padding: 8px 24px 84px; }
.blog-more h2 { margin: 0 0 20px; font-size: 26px; letter-spacing: -0.02em; color: #fff; }
.blog-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.blog-card { display: flex; flex-direction: column; height: 100%; border-radius: 24px; overflow: hidden; text-decoration: none; color: #1c1a16;
  background: #fffdf8; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); transition: transform 0.18s, box-shadow 0.18s; }
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 32px 72px rgba(0, 0, 0, 0.55), 0 0 0 2px var(--bl-gold); }
.blog-card-photo { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #2a241a; }
.blog-card-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.blog-card:hover .blog-card-photo img { transform: scale(1.04); }
.blog-card-text { display: flex; flex-direction: column; gap: 9px; padding: 24px 26px 26px; flex: 1; }
.blog-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0; font-size: 14px; font-weight: 600; color: #6b6252; }
.blog-card-place { padding: 3px 11px; border-radius: 99px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #1a1408; background: linear-gradient(135deg, #f0d395, #C6A15B); }
.blog-card-title { font-size: 24px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 800; color: #17130e; text-wrap: balance; }
.blog-card-desc { font-size: 16.5px; color: #4a4437; }
.blog-card-more { margin-top: auto; padding-top: 6px; font-size: 16px; font-weight: 700; color: #8b6914; }
/* The newest post leads: full width, photo beside the words */
.blog-wrap .blog-list > li:first-child { grid-column: 1 / -1; }
.blog-wrap .blog-list > li:first-child .blog-card { flex-direction: row; }
.blog-wrap .blog-list > li:first-child .blog-card-photo { flex: 0 0 52%; aspect-ratio: auto; min-height: 340px; }
.blog-wrap .blog-list > li:first-child .blog-card-text { justify-content: center; padding: 36px 40px; gap: 12px; }
.blog-wrap .blog-list > li:first-child .blog-card-title { font-size: clamp(26px, 2.8vw, 34px); }
.blog-wrap .blog-list > li:first-child .blog-card-desc { font-size: 18px; }
.blog-wrap .blog-list > li:first-child .blog-card-more { margin-top: 6px; }
.blog-empty { grid-column: 1 / -1; padding: 40px 28px; border-radius: 24px; background: #fffdf8; color: #4a4437; text-align: center; font-size: 18px; }

/* A post: its photo behind the title, then the article on a sheet of warm paper */
.blog-article-head { padding: 56px 24px 150px;
  background:
    linear-gradient(180deg, rgba(16, 14, 9, 0.62) 0%, rgba(16, 14, 9, 0.5) 50%, rgba(23, 19, 13, 0.9) 88%, #17130d 100%),
    var(--blog-photo) center 55% / cover no-repeat #16130d; }
.blog-article-head-in { max-width: 820px; margin: 0 auto; }
.blog-article-head .blog-card-meta { color: rgba(255, 255, 255, 0.88); }
.blog-back { display: inline-block; margin-bottom: 30px; padding: 7px 14px; border-radius: 99px; font-size: 15px; font-weight: 700; color: #fff; text-decoration: none;
  background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.28); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.blog-back:hover { border-color: var(--bl-gold); color: var(--bl-gold); }
.blog-article-head h1 { margin: 14px 0 16px; font-size: clamp(32px, 4.8vw, 54px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 800; color: #fff; text-wrap: balance; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.55); }
.blog-article-head .blog-lede { margin: 0; max-width: 720px; }
.blog-paper { position: relative; max-width: 868px; margin: -96px auto 72px; padding: 52px 60px 44px; border-radius: 28px; background: #fffdf8; color: #2a251c;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
.blog-paper::before { content: ""; position: absolute; left: 60px; top: 0; width: 72px; height: 4px; border-radius: 0 0 4px 4px; background: linear-gradient(90deg, #f0d395, #C6A15B); }
.blog-prose { font-size: 18.5px; line-height: 1.68; }
.blog-prose > p:first-child { font-size: 21px; line-height: 1.55; color: #17130e; }
.blog-prose h2 { margin: 46px 0 12px; font-size: 28px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 800; color: #17130e; }
.blog-prose h3 { margin: 30px 0 8px; font-size: 21px; font-weight: 700; color: #17130e; }
.blog-prose p { margin: 0 0 18px; }
.blog-prose ul, .blog-prose ol { margin: 0 0 20px; padding-left: 24px; }
.blog-prose li { margin-bottom: 10px; }
.blog-prose li::marker { color: #b8862e; font-weight: 700; }
.blog-prose strong { color: #17130e; }
.blog-prose a { color: #8b6914; font-weight: 600; text-underline-offset: 3px; }
/* A chat shown in a post: the person's message on the right in gold, Pilot Door's reply on the left */
.blog-chat { display: flex; flex-direction: column; gap: 12px; margin: 26px 0 30px; padding: 24px; border-radius: 22px; background: #17130e; }
.blog-chat p { margin: 0; max-width: 86%; padding: 13px 17px; font-size: 17.5px; line-height: 1.45; }
.blog-chat .you { align-self: flex-end; border-radius: 20px 20px 6px 20px; font-weight: 600; color: #1b150c; background: linear-gradient(135deg, #f0d395, #c79a45); }
.blog-chat .pd { align-self: flex-start; border-radius: 20px 20px 20px 6px; color: #1c1a16; background: #fbf8f1; }
.blog-chat .who { max-width: none; padding: 0; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #e3c078; background: none; }
.blog-chat .who.right { align-self: flex-end; }
/* Photos inside a post. They are stock pictures that set the scene, never a listing's own photo. */
.blog-figure { margin: 30px -28px 32px; }
.blog-figure img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 20px; box-shadow: 0 16px 40px rgba(42, 37, 28, 0.22); }
.blog-figure figcaption { margin-top: 10px; padding: 0 28px; font-size: 15px; color: #6b6252; }
.blog-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 30px -28px 32px; }
.blog-pair img { display: block; width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; box-shadow: 0 14px 34px rgba(42, 37, 28, 0.2); }
/* A listing summarised in our own words (no address, no MLS® number, no photo) */
.blog-facts { margin: 26px 0 30px; padding: 22px 24px; border-radius: 20px; background: #f6efe0; border: 1px solid #e6dcc7; }
.blog-facts h3 { margin: 0 0 10px; }
.blog-facts ul { margin: 0; }
.blog-note { margin: 26px 0; padding: 16px 20px; border-left: 4px solid #C6A15B; border-radius: 0 14px 14px 0; background: #f6efe0; font-size: 17px; color: #4a4437; }
.blog-fineprint { margin: 40px 0 0; padding-top: 22px; border-top: 1px solid #e6dcc7; font-size: 15px; line-height: 1.55; color: #6b6252; }

.blog-band { padding: 96px 24px 104px; text-align: center;
  background:
    linear-gradient(180deg, #14110b 0%, rgba(16, 14, 9, 0.5) 34%, rgba(16, 14, 9, 0.62) 100%),
    url("/static/img/home/final.webp?v=1") center 60% / cover no-repeat #16130d; }
.blog-band h2 { margin: 0 auto 14px; max-width: 760px; font-size: clamp(28px, 4vw, 42px); line-height: 1.12; letter-spacing: -0.03em; font-weight: 800; color: #fff; text-wrap: balance; }
.blog-band h2 span { color: var(--bl-gold); }
.blog-band p:not(.blog-descriptor) { margin: 0 auto 26px; max-width: 600px; font-size: 18px; color: rgba(255, 255, 255, 0.92); text-shadow: 0 1px 14px rgba(0, 0, 0, 0.6); }
.blog-band h2 { text-shadow: 0 2px 26px rgba(0, 0, 0, 0.55); }

@media (max-width: 860px) {
  .blog-list { grid-template-columns: 1fr; }
  .blog-wrap .blog-list > li:first-child .blog-card { flex-direction: column; }
  .blog-wrap .blog-list > li:first-child .blog-card-photo { flex: none; aspect-ratio: 16 / 9; min-height: 0; }
  .blog-wrap .blog-list > li:first-child .blog-card-text { padding: 24px 26px 26px; }
  .blog-paper { margin-left: 16px; margin-right: 16px; padding: 40px 32px 34px; }
  .blog-paper::before { left: 32px; }
}
@media (max-width: 640px) {
  .blog-head { padding: 10px 16px; gap: 10px; }
  .blog-logo { font-size: 17px; }
  .blog-logo img { width: 34px; height: 34px; }
  .blog-nav a { padding: 8px 9px; }
  .blog-nav a[href="/for-agents"] { display: none; }
  .blog-head .blog-btn-sm { display: none; }   /* the page has its own chat buttons; the bar keeps Areas and Blog */
  .blog-hero { padding: 64px 16px 120px; }
  .blog-lede { font-size: 18px; }
  .blog-wrap { margin-top: -80px; padding: 0 16px 60px; }
  .blog-more { padding: 0 16px 60px; }
  .blog-card-text, .blog-wrap .blog-list > li:first-child .blog-card-text { padding: 20px 20px 22px; }
  .blog-card-title { font-size: 22px; }
  .blog-article-head { padding: 36px 16px 120px; }
  .blog-paper { margin: -84px 10px 52px; padding: 32px 20px 28px; border-radius: 22px; }
  .blog-paper::before { left: 20px; }
  .blog-prose { font-size: 17.5px; }
  .blog-figure, .blog-pair { margin-left: 0; margin-right: 0; }
  .blog-figure figcaption { padding: 0; }
  .blog-pair { gap: 10px; }
  .blog-figure img, .blog-pair img { border-radius: 14px; }
  .blog-prose > p:first-child { font-size: 19px; }
  .blog-prose h2 { font-size: 24px; margin-top: 38px; }
  .blog-chat { padding: 16px; }
  .blog-chat p { max-width: 94%; font-size: 16.5px; }
  .blog-descriptor { font-size: 11.5px; letter-spacing: 0.2em; }
  .blog-band { padding: 72px 16px 80px; }
}
@media (max-width: 380px) { .blog-btn-sm { padding: 9px 14px; font-size: 14px; } }
@media (prefers-reduced-motion: reduce) { .blog-btn, .blog-card, .blog-card-photo img { transition: none; } .blog-card:hover .blog-card-photo img { transform: none; } .blog-btn:hover, .blog-card:hover { transform: none; } }

/* A matched listing's own photo: the same credit the site lays over every listing photo. */
.blog-photo { position: relative; display: block; }
.blog-card-photo, .blog-article-head { position: relative; }
.blog-photo-tag { position: absolute; right: 12px; bottom: 12px; z-index: 2; padding: 3px 9px; border-radius: 6px; background: rgba(14, 12, 8, 0.72); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: 0.02em; line-height: 1.4; pointer-events: none; }
.blog-article-head > .blog-photo-tag { top: 12px; bottom: auto; }

/* The matches as listing cards, the way the chat shows them (owner, 2026-12-03:
   "always have the final answer (listing cards) shown"). No address, no MLS number. */
.blog-matches { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 24px -28px 20px; }
.blog-match { display: flex; flex-direction: column; overflow: hidden; border: 1px solid #e4dccb; border-radius: 18px; background: #fff; box-shadow: 0 12px 30px rgba(42, 37, 28, 0.14); }
.blog-match .blog-photo img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.blog-match-in { padding: 16px 18px 18px; }
.blog-match-price { margin: 0; font-family: "Sora", "Inter", sans-serif; font-size: 24px; font-weight: 700; color: #1c1810; }
.blog-match-specs { margin: 2px 0 10px; font-size: 15px; font-weight: 600; color: #6b6252; }
.blog-match h3 { margin: 0 0 8px; font-size: 18px; line-height: 1.3; }
.blog-match ul { margin: 0 0 12px; padding-left: 20px; font-size: 16px; line-height: 1.5; }
.blog-match li { margin: 3px 0; }
.blog-match-why { margin: 0; padding-top: 12px; border-top: 1px solid #ece5d6; font-size: 16px; line-height: 1.5; }
@media (max-width: 760px) { .blog-matches { grid-template-columns: 1fr; margin-left: 0; margin-right: 0; } }
