/* FairSplit Journal — blog-specific styles
   Inherits cream/warm/sage palette + DM Serif Display + Inter from custom.css */

.blog-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 24px 80px;
}

/* Header */
.blog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0 32px;
  margin-bottom: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.brand .logo {
  width: 36px;
  height: 36px;
  background: #D96A52;
  color: #FBF8F3;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.5px;
}
.brand-text {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.3px;
}
.blog-nav {
  display: flex;
  gap: 24px;
}
.blog-nav a {
  font-size: 15px;
  color: #1A1A1B;
  text-decoration: none;
  font-weight: 500;
  opacity: 0.7;
}
.blog-nav a:hover { opacity: 1; }
.blog-nav a[aria-current="page"] { color: #D96A52; opacity: 1; }

/* Hero on listing page */
.hero {
  padding: 32px 0 56px;
  border-bottom: 1px solid rgba(26,26,27,0.08);
  margin-bottom: 56px;
}
.kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #6E9279;
  margin: 0 0 16px;
}
.hero h1 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 48px;
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: -1px;
  margin: 0 0 16px;
  color: #1A1A1B;
}
.hero .subhead {
  font-size: 18px;
  line-height: 1.55;
  color: #4A4A4B;
  margin: 0 0 32px;
  max-width: 560px;
}

/* Quiz CTA button — overrides any inherited link styling */
a.quiz-cta,
.post-article a.quiz-cta,
.hero a.quiz-cta,
.bottom-cta a.quiz-cta,
.inline-cta a.quiz-cta {
  display: inline-block !important;
  background-color: #D96A52 !important;
  background-image: none !important;
  color: #FBF8F3 !important;
  padding: 16px 32px !important;
  border-radius: 999px !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  border: 0 !important;
  cursor: pointer;
  transition: background 0.2s;
  line-height: 1.2 !important;
}
a.quiz-cta:hover,
.post-article a.quiz-cta:hover,
.hero a.quiz-cta:hover,
.bottom-cta a.quiz-cta:hover,
.inline-cta a.quiz-cta:hover {
  background-color: #B85340 !important;
  color: #FBF8F3 !important;
}

/* Post listing */
.post-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.post-card {
  display: block;
  padding: 32px 24px;
  margin: 0 -24px;
  border-top: 1px solid rgba(26,26,27,0.08);
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
  border-radius: 8px;
}
.post-card:last-child { border-bottom: 1px solid rgba(26,26,27,0.08); }
.post-card:hover { background: rgba(217,106,82,0.04); }
.post-card:hover .read-more { text-decoration: underline; }
.post-meta {
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #6E9279;
  margin: 0 0 12px;
  font-weight: 600;
}
.post-card h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 30px;
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: -0.5px;
  margin: 0 0 12px;
  color: #1A1A1B;
}
.post-excerpt {
  font-size: 17px;
  line-height: 1.55;
  color: #4A4A4B;
  margin: 0 0 16px;
}
.read-more {
  font-size: 15px;
  font-weight: 600;
  color: #D96A52;
}

/* Article (post body) */
.post-article {
  padding-top: 16px;
}
.post-article .post-meta {
  margin-bottom: 16px;
}
.post-article h1 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 44px;
  line-height: 1.12;
  font-weight: 400;
  letter-spacing: -1px;
  margin: 0 0 24px;
  color: #1A1A1B;
}
.post-article .lede {
  font-size: 20px;
  line-height: 1.5;
  color: #1A1A1B;
  margin: 0 0 40px;
  font-weight: 400;
}
.post-article p {
  font-size: 17px;
  line-height: 1.7;
  color: #1A1A1B;
  margin: 0 0 24px;
}
.post-article h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 28px;
  line-height: 1.25;
  font-weight: 400;
  letter-spacing: -0.5px;
  margin: 48px 0 16px;
  color: #1A1A1B;
}
.post-article ul, .post-article ol {
  font-size: 17px;
  line-height: 1.7;
  margin: 0 0 24px;
  padding-left: 24px;
}
.post-article ul li, .post-article ol li {
  margin-bottom: 8px;
}
.post-article blockquote {
  border-left: 3px solid #D96A52;
  margin: 32px 0;
  padding: 8px 0 8px 24px;
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 24px;
  line-height: 1.4;
  color: #1A1A1B;
  font-style: italic;
}
.post-article a {
  color: #D96A52;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
}
.post-article a:hover { color: #B85340; }
.post-article strong { font-weight: 700; }

/* Inline CTA card */
.inline-cta {
  background: #1A1A1B;
  color: #FBF8F3;
  padding: 32px;
  border-radius: 16px;
  margin: 48px 0;
  text-align: center;
}
.inline-cta h3 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 26px;
  line-height: 1.25;
  font-weight: 400;
  margin: 0 0 8px;
  color: #FBF8F3;
}
.inline-cta p {
  color: rgba(251,248,243,0.8);
  font-size: 16px;
  margin: 0 0 20px;
}
.inline-cta .quiz-cta {
  background: #D96A52;
}
.inline-cta .quiz-cta:hover {
  background: #E47A63;
}

/* Bottom CTA on listing/post pages */
.bottom-cta {
  margin: 80px 0 40px;
  padding: 56px 32px;
  background: rgba(217,106,82,0.08);
  border-radius: 24px;
  text-align: center;
}
.bottom-cta .kicker { color: #D96A52; }
.bottom-cta h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 32px;
  line-height: 1.2;
  font-weight: 400;
  margin: 0 0 12px;
  color: #1A1A1B;
}
.bottom-cta p {
  font-size: 17px;
  color: #4A4A4B;
  margin: 0 0 24px;
}

/* Footer */
.blog-footer {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid rgba(26,26,27,0.08);
  text-align: center;
  font-size: 14px;
  color: #888;
}
.blog-footer a {
  color: #888;
  text-decoration: none;
  margin: 0 4px;
}
.blog-footer a:hover { color: #D96A52; }

/* Back-to-journal link */
.back-link {
  display: inline-block;
  font-size: 14px;
  color: #6E9279;
  text-decoration: none;
  margin-bottom: 24px;
  font-weight: 500;
}
.back-link:hover { color: #D96A52; }

/* Mobile */
@media (max-width: 640px) {
  .hero h1, .post-article h1 { font-size: 32px; }
  .post-card h2 { font-size: 24px; }
  .blog-wrap { padding: 16px 20px 60px; }
  .bottom-cta { padding: 40px 20px; }
  .inline-cta { padding: 24px 20px; }
}
