﻿/* =========================================
   BuildHaus Journal / Blog styles
   Extends global styles.css
   ========================================= */

/* Editorial masthead */
.blog-masthead {
  max-width: 1280px;
  margin: 0 auto;
  padding: 180px 48px 80px;
  position: relative;
  z-index: 2;
}
.blog-masthead-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 48px;
  border-bottom: 1px solid rgba(17,28,24,0.15);
  padding-bottom: 18px;
}
.blog-mast-title {
  font-family: var(--font-display, 'Playfair Display', 'Cormorant Garamond', Georgia, serif);
  font-weight: 500;
  font-size: clamp(48px, 8vw, 120px);
  line-height: 0.96;
  letter-spacing: -0.02em;
  margin: 0 0 40px;
  color: #111C18;
}
.blog-mast-title .outline-text {
  -webkit-text-stroke: 1.5px #111C18;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.blog-mast-sub {
  max-width: 760px;
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.55;
  color: rgba(17,28,24,0.75);
  margin: 0;
}

/* Post index list */
.blog-index {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 48px 120px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  position: relative;
  z-index: 2;
}
.blog-card {
  border-top: 1px solid rgba(17,28,24,0.15);
  transition: background 0.3s ease;
}
.blog-card:last-child {
  border-bottom: 1px solid rgba(17,28,24,0.15);
}
.blog-card:hover {
  background: rgba(251,220,17,0.06);
}
.blog-card-link {
  display: block;
  padding: 48px 16px;
  text-decoration: none;
  color: #111C18;
  position: relative;
  transition: padding 0.3s ease;
}
.blog-card:hover .blog-card-link {
  padding-left: 32px;
}
.blog-card-meta {
  display: flex;
  gap: 18px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.blog-card-cat {
  color: #111C18;
  background: #FBDC11;
  padding: 3px 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.blog-card-title {
  font-family: var(--font-display, 'Playfair Display', Georgia, serif);
  font-weight: 500;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
  max-width: 900px;
}
.blog-card-excerpt {
  max-width: 760px;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.55;
  color: rgba(17,28,24,0.72);
  margin: 0 0 24px;
}
.blog-card-arrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: #111C18;
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
  transition: transform 0.3s ease;
}
.blog-card:hover .blog-card-arrow {
  transform: translateX(6px);
}

/* Featured card gets a bit more presence */
.blog-card-featured .blog-card-title {
  font-size: clamp(32px, 4.2vw, 56px);
}
.blog-card-featured .blog-card-cat {
  background: #111C18;
  color: #FBDC11;
}

/* =========================================
   BuildHaus Journal, single post layout
   (used by individual blog post HTML files)
   ========================================= */

.post-header {
  max-width: 880px;
  margin: 0 auto;
  padding: 180px 24px 60px;
  position: relative;
  z-index: 2;
}
.post-meta {
  display: flex;
  gap: 20px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.post-meta .post-cat {
  background: #FBDC11;
  color: #111C18;
  padding: 4px 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.post-title {
  font-family: var(--font-display, 'Playfair Display', Georgia, serif);
  font-weight: 500;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0 0 24px;
  color: #111C18;
}
.post-lede {
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.5;
  color: rgba(17,28,24,0.78);
  max-width: 780px;
  margin: 0;
  font-family: var(--font-display, 'Playfair Display', Georgia, serif);
  font-style: italic;
  font-weight: 400;
}

/* Post body */
.post-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.7;
  color: rgba(17,28,24,0.88);
  position: relative;
  z-index: 2;
}
.post-body h2 {
  font-family: var(--font-display, 'Playfair Display', Georgia, serif);
  font-weight: 500;
  font-size: clamp(26px, 2.8vw, 36px);
  line-height: 1.2;
  margin: 56px 0 18px;
  color: #111C18;
  letter-spacing: -0.01em;
}
.post-body h3 {
  font-weight: 600;
  font-size: 1.15em;
  margin: 36px 0 12px;
  letter-spacing: 0.01em;
}
.post-body p {
  margin: 0 0 20px;
}
.post-body ul, .post-body ol {
  margin: 0 0 22px;
  padding-left: 24px;
}
.post-body li {
  margin-bottom: 10px;
}
.post-body blockquote {
  border-left: 3px solid #FBDC11;
  padding: 8px 0 8px 24px;
  margin: 32px 0;
  font-family: var(--font-display, 'Playfair Display', Georgia, serif);
  font-style: italic;
  font-size: 1.1em;
  color: rgba(17,28,24,0.85);
}
.post-body strong {
  color: #111C18;
  font-weight: 700;
}
.post-body a {
  color: #111C18;
  border-bottom: 1.5px solid #FBDC11;
  text-decoration: none;
  font-weight: 500;
}
.post-body a:hover {
  background: #FBDC11;
}
.post-body hr {
  border: 0;
  border-top: 1px solid rgba(17,28,24,0.15);
  margin: 48px 0;
}

/* Author / share footer at end of post */
.post-signoff {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px;
  border-top: 1px solid rgba(17,28,24,0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
  letter-spacing: 0.05em;
  opacity: 0.75;
  position: relative;
  z-index: 2;
}

/* Mobile tweaks */
@media (max-width: 768px) {
  .blog-masthead { padding: 120px 24px 48px; }
  .blog-index { padding: 24px 24px 80px; }
  .blog-card-link { padding: 32px 8px; }
  .blog-card:hover .blog-card-link { padding-left: 16px; }
  .post-header { padding: 120px 20px 40px; }
  .post-body { padding: 24px 20px 60px; }
}

/* =========================================
   Hero image for individual posts
   ========================================= */
.post-hero {
  max-width: 1100px;
  margin: 0 auto 40px;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}
.post-hero img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 540px;
  object-fit: cover;
  border-radius: 2px;
}

/* =========================================
   Thumbnail image on blog index cards
   ========================================= */
.blog-card-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin-bottom: 28px;
  border-radius: 2px;
}

/* Featured card thumbnail a little bigger */
.blog-card-featured .blog-card-thumb {
  aspect-ratio: 16 / 8;
}

@media (max-width: 768px) {
  .post-hero {
    padding: 0 16px;
    margin-bottom: 28px;
  }
  .post-hero img {
    max-height: 360px;
  }
  .blog-card-thumb {
    margin-bottom: 20px;
  }
}
