/* Blog design system for jakobloterbauer.com.
   Same locked palette and type as the landing page. No new colors. */

:root {
  --pine: #102A43;
  --pine-deep: #071A2D;
  --bone: #FFFFFF;
  --bone-soft: #F4F7FA;
  --ink: #1F2933;
  --muted: #52606D;
  --brass: #B86B35;
  --line: #D9E2EC;
  --on-dark: #F8FAFC;
  --on-dark-dim: #CBD5E1;
  --dark-line: rgba(248,250,252,0.16);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bone);
  color: var(--ink);
  font-family: 'Manrope', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { font-family: 'Archivo', Arial, sans-serif; }

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

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 600;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--pine);
  border-bottom: 1px solid var(--dark-line);
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { line-height: 1.2; text-decoration: none; }
.brand-name {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.01em;
  color: var(--on-dark);
}
.brand-sub {
  font-size: 10.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--on-dark-dim);
}

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  color: var(--on-dark-dim);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.nav a:hover { color: var(--on-dark); }

.btn-call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #BE743A;
  color: var(--pine-deep);
  text-decoration: none;
  padding: 11px 20px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.01em;
  border-radius: 2px;
  white-space: nowrap;
  transition: background 0.2s;
}
.nav a.btn-call { color: var(--pine-deep); }
.btn-call:hover, .nav a.btn-call:hover { background: #C79A4A; color: var(--pine-deep); }

.nav-links { display: flex; align-items: center; gap: 30px; }
@media (max-width: 860px) {
  .header-inner { flex-wrap: wrap; gap: 12px 18px; }
  .nav { display: contents; }
  .btn-call { order: 1; }
  .nav-links {
    order: 2;
    flex: 1 0 100%;
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding-top: 10px;
    border-top: 1px solid var(--dark-line);
    scrollbar-width: none;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { white-space: nowrap; font-size: 12px; padding: 6px 0; }
}

/* ---------- Blog index ---------- */
.blog-hero {
  background: var(--pine);
  color: var(--on-dark);
  padding: 64px 0 56px;
}
.blog-hero h1 {
  font-weight: 700;
  font-size: clamp(30px, 4.5vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-top: 14px;
  color: var(--on-dark);
}
.blog-hero .lead {
  margin-top: 18px;
  max-width: 620px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--on-dark-dim);
}

.post-list { padding: 64px 0 80px; display: grid; gap: 22px; }
.post-card {
  display: block;
  background: var(--bone);
  border: 1px solid var(--line);
  padding: 30px 28px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  max-width: 780px;
}
.post-card:hover {
  border-color: var(--brass);
  box-shadow: 0 16px 38px rgba(16,42,67,0.10);
  transform: translateY(-2px);
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}
.post-tag { color: var(--brass); }
.post-date { color: var(--muted); }
.post-card h2 {
  font-weight: 700;
  font-size: 23px;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 12px 0 10px;
  color: var(--ink);
}
.post-card p { color: var(--muted); font-size: 15.5px; line-height: 1.6; }
.post-more {
  display: inline-block;
  margin-top: 16px;
  color: var(--pine);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lane-note {
  border-left: 3px solid var(--brass);
  color: var(--muted);
  line-height: 1.65;
  padding-left: 20px;
  max-width: 720px;
}

/* ---------- Article ---------- */
.article-head {
  background: var(--pine);
  color: var(--on-dark);
  padding: 60px 0 52px;
}
.article-head .wrap, .article-body .wrap { max-width: 820px; }
.article-head h1 {
  font-weight: 700;
  font-size: clamp(29px, 4.2vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-top: 14px;
  color: var(--on-dark);
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--on-dark-dim);
}
.article-meta .post-tag { color: var(--brass); }

.byline {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--dark-line);
  font-size: 14px;
  color: var(--on-dark-dim);
  line-height: 1.6;
}
.byline strong { color: var(--on-dark); font-weight: 600; }

.article-body { padding: 56px 0 24px; }
.article-body .prose {
  max-width: 68ch;
  font-size: 17.5px;
  line-height: 1.75;
  color: var(--ink);
}
.prose p { margin-bottom: 1.35em; }
.prose h2 {
  font-weight: 700;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 1.9em 0 0.7em;
}
.prose ul { margin: 0 0 1.35em 1.2em; }
.prose li { margin-bottom: 0.5em; }
.prose a { color: var(--pine); font-weight: 600; border-bottom: 1px solid rgba(184,107,53,0.45); text-decoration: none; }
.prose a:hover { color: var(--brass); }
.prose .callout {
  border-left: 3px solid var(--brass);
  background: var(--bone-soft);
  padding: 18px 22px;
  margin: 0 0 1.35em;
  color: var(--ink);
}

/* End-of-article CTA */
.article-cta {
  margin: 56px 0 0;
  background: var(--pine);
  color: var(--on-dark);
  padding: 40px 36px;
  max-width: 68ch;
}
.article-cta h2 {
  font-weight: 700;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--on-dark);
  margin-bottom: 12px;
}
.article-cta p { color: var(--on-dark-dim); font-size: 16px; line-height: 1.6; margin-bottom: 22px; }
.btn-cta {
  display: inline-block;
  background: var(--bone);
  color: var(--pine-deep);
  text-decoration: none;
  padding: 14px 28px;
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background 0.2s;
}
.btn-cta:hover { background: #fff; }

/* Prev / next */
.article-nav {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 32px 72px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 24px;
  border-top: 1px solid var(--line);
  margin-top: 56px;
}
.article-nav a {
  color: var(--pine);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.03em;
  text-decoration: none;
  border-bottom: 1px solid rgba(184,107,53,0.45);
  padding-bottom: 2px;
}
.article-nav a:hover { color: var(--brass); }
.article-nav .nav-lbl {
  display: block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 600;
  margin-bottom: 6px;
}

/* ---------- Footer ---------- */
footer {
  background: var(--pine-deep);
  color: var(--on-dark-dim);
  padding: 52px 0 40px;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--dark-line);
}
.footer-brand .brand-name { color: var(--on-dark); }
.footer-contact { font-size: 14px; line-height: 1.9; }
.footer-contact a { color: var(--on-dark-dim); text-decoration: none; }
.footer-contact a:hover { color: var(--on-dark); }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.footer-links a {
  color: var(--on-dark-dim); text-decoration: none; font-size: 13px; letter-spacing: 0.03em;
  border-bottom: 1px solid transparent; padding-bottom: 2px; transition: border-color 0.2s, color 0.2s;
}
.footer-links a:hover { color: var(--on-dark); border-bottom-color: var(--brass); }

.footer-marks {
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  padding: 26px 0;
  border-bottom: 1px solid var(--dark-line);
}
.eho { display: flex; align-items: center; gap: 10px; color: var(--on-dark-dim); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }
.eho svg { width: 26px; height: 26px; flex-shrink: 0; }
.mark-realtor { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-dark-dim); font-weight: 600; }

.footer-legal { padding-top: 24px; font-size: 12px; line-height: 1.8; color: var(--on-dark-dim); }
.footer-legal .compliance { letter-spacing: 0.04em; color: var(--on-dark); margin-bottom: 8px; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

@media (max-width: 560px) {
  .wrap, .header-inner { padding-left: 22px; padding-right: 22px; }
  .header-inner { padding-top: 12px; padding-bottom: 12px; }
  .brand-sub { display: none; }
  .blog-hero { padding: 44px 0 40px; }
  .article-head { padding: 44px 0 38px; }
  .article-body .prose { font-size: 16.5px; }
  .article-cta { padding: 32px 24px; }
  .article-nav { padding: 36px 22px 56px; }
  .footer-top { flex-direction: column; }
}
