/* =========================================================================
   Blog styles.

   Loaded after styles.css, which supplies the reset, the fonts, the :root
   variables and the navbar and footer rules. Nothing here restyles shared
   chrome; it only adds what a blog needs and the rest of the site does not.

   The article column is capped at 68ch rather than a pixel width. Line length
   is what makes long prose readable, and a character-based cap holds at any
   font size the reader chooses.
   ========================================================================= */

/* ---------------------------------------------------------------- shared */

.blog-page {
  padding-top: 96px; /* the navbar is fixed; clear it */
}

.blog-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ------------------------------------------------------------ blog index */

.blog-hero {
  padding: 64px 0 48px;
  border-bottom: 1px solid rgba(240, 240, 240, 0.08);
}

.blog-hero-eyebrow {
  color: var(--green-accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.blog-hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  max-width: 20ch;
}

.blog-hero p {
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.7;
  max-width: 60ch;
}

.blog-list {
  padding: 48px 0 96px;
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

@media (min-width: 780px) {
  .blog-list { grid-template-columns: repeat(2, 1fr); }
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-darker);
  border: 1px solid rgba(240, 240, 240, 0.08);
  border-radius: 16px;
  padding: 28px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.blog-card:hover {
  border-color: rgba(235, 235, 65, 0.35);
  transform: translateY(-3px);
}

.blog-card-meta {
  color: var(--text-dim);
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 12px;
}

.blog-card h2 {
  font-size: 1.375rem;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.blog-card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.65;
  flex: 1;
  margin-bottom: 18px;
}

.blog-card-more {
  color: var(--green-accent);
  font-size: 0.875rem;
  font-weight: 600;
}

/* ----------------------------------------------------------- blog post */

.post-header {
  padding: 56px 0 40px;
  border-bottom: 1px solid rgba(240, 240, 240, 0.08);
}

.post-breadcrumb {
  font-size: 0.8125rem;
  color: var(--text-dim);
  margin-bottom: 24px;
}

.post-breadcrumb a { color: var(--text-muted); text-decoration: none; }
.post-breadcrumb a:hover { color: var(--green-accent); }

.post-header h1 {
  font-size: clamp(1.875rem, 4.5vw, 2.875rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  max-width: 24ch;
}

.post-meta {
  color: var(--text-dim);
  font-size: 0.875rem;
  font-weight: 500;
}

.post-body {
  max-width: 68ch;
  padding: 44px 0 80px;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text-muted);
}

.post-body h2 {
  color: var(--text-white);
  font-size: 1.625rem;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 48px 0 16px;
}

.post-body h3 {
  color: var(--text-white);
  font-size: 1.1875rem;
  font-weight: 700;
  margin: 32px 0 12px;
}

.post-body p { margin-bottom: 20px; }

.post-body a {
  color: var(--green-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-body ul, .post-body ol {
  margin: 0 0 20px 1.25rem;
  padding: 0;
}

.post-body li { margin-bottom: 10px; }

.post-body strong { color: var(--text-white); font-weight: 600; }

.post-body hr {
  border: 0;
  border-top: 1px solid rgba(240, 240, 240, 0.1);
  margin: 44px 0;
}

/* The summary box at the top of a post. This is the block most likely to be
   quoted, whether by a reader skimming or by an assistant answering. */
.post-takeaways {
  background: var(--bg-darker);
  border: 1px solid rgba(235, 235, 65, 0.2);
  border-left: 3px solid var(--green-accent);
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 40px;
}

.post-takeaways-label {
  color: var(--green-accent);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.post-takeaways ul { margin: 0 0 0 1.1rem; }
.post-takeaways li:last-child { margin-bottom: 0; }

/* A ranked entry in the listing post. */
.firm {
  background: var(--bg-darker);
  border: 1px solid rgba(240, 240, 240, 0.08);
  border-radius: 14px;
  padding: 26px 28px;
  margin-bottom: 20px;
}

.firm-rank {
  color: var(--green-accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.firm h3 { margin-top: 0; }

.firm-detail {
  font-size: 0.9375rem;
  margin: 0;
}

.firm-detail + .firm-detail { margin-top: 10px; }

.post-cta {
  background: linear-gradient(135deg, rgba(235, 235, 65, 0.09), rgba(126, 207, 60, 0.05));
  border: 1px solid rgba(235, 235, 65, 0.25);
  border-radius: 16px;
  padding: 32px;
  margin: 48px 0 0;
}

.post-cta h2 { margin-top: 0; }
.post-cta p:last-child { margin-bottom: 0; }
