/* Flat Fee Select — Blog stylesheet.
 *
 * Shared across blog/index.html, blog/post-template.html, and every individual
 * blog post. Pages link to this with: <link rel="stylesheet" href="../assets/blog.css">
 *
 * Color/font tokens match the main site (Inter + Instrument Serif italic accent,
 * navy + cobalt + ink palette). No layout/look changes vs. the rest of the site.
 */

:root {
  --ink: #0F172A;
  --paper: #F8FAFC;
  --white: #FFFFFF;
  --hairline: #E2E8F0;
  --gray-500: #64748B;
  --gray-700: #334155;
  --cobalt: #2563EB;
  --cobalt-hover: #1D4ED8;
  --navy: #0E1A26;
  --emerald: #10B981;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--paper); color: var(--ink); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.serif {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400; font-style: italic; letter-spacing: -0.005em;
}
a { color: var(--cobalt); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Topbar (navy, matches main site) */
.topbar { background: var(--navy); color: var(--white); padding: 18px 24px; }
.topbar-inner { max-width: 980px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar-brand img { height: 56px; width: auto; display: block; }
.topbar-back { color: rgba(255,255,255,0.7); font-size: 13.5px; text-decoration: none; }
.topbar-back:hover { color: var(--white); text-decoration: none; }

/* Article hero */
.article-hero { background: linear-gradient(180deg, var(--navy), #14233a); color: var(--white); padding: 56px 24px 56px; }
.article-hero-inner { max-width: 820px; margin: 0 auto; }
.article-hero .eyebrow {
  display: inline-block;
  font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.55); margin-bottom: 16px;
}
.article-hero h1 { font-size: 36px; font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 18px; color: var(--white); }
.article-hero h1 .serif { color: rgba(191,219,254,0.95); }
.article-hero .article-meta { font-size: 14px; color: rgba(255,255,255,0.75); display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.article-hero .article-meta .dot { color: rgba(255,255,255,0.4); }

/* Blog index hero (lighter weight) */
.blog-index-hero { background: linear-gradient(180deg, var(--navy), #14233a); color: var(--white); padding: 64px 24px 64px; text-align: center; }
.blog-index-hero .eyebrow {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.55); margin-bottom: 16px;
}
.blog-index-hero h1 { font-size: 38px; font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; margin-bottom: 14px; color: var(--white); }
.blog-index-hero h1 .serif { color: rgba(191,219,254,0.95); }
.blog-index-hero .lede { font-size: 16.5px; line-height: 1.65; color: rgba(255,255,255,0.82); max-width: 640px; margin: 0 auto; }

/* Article body */
.article-body { max-width: 720px; margin: 0 auto; padding: 56px 24px 64px; }
.article-body p { font-size: 16.5px; color: var(--gray-700); line-height: 1.8; margin: 0 0 22px; }
.article-body p:last-child { margin-bottom: 0; }
.article-body strong { color: var(--ink); font-weight: 600; }
.article-body em { font-style: italic; }

.article-body h2 {
  font-size: 26px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.2;
  color: var(--ink); margin: 48px 0 18px;
}
.article-body h2 .serif { color: var(--gray-500); }
.article-body h2:first-child { margin-top: 0; }

.article-body h3 {
  font-size: 19px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3;
  color: var(--ink); margin: 32px 0 12px;
}

.article-body ul, .article-body ol { margin: 0 0 22px; padding-left: 22px; }
.article-body li { font-size: 16.5px; color: var(--gray-700); line-height: 1.8; margin-bottom: 8px; }
.article-body li::marker { color: var(--cobalt); }

.article-body blockquote {
  border-left: 4px solid var(--cobalt);
  background: rgba(37,99,235,0.04);
  padding: 18px 24px; margin: 28px 0;
  border-radius: 0 8px 8px 0;
  font-size: 16.5px; color: var(--gray-700); line-height: 1.7;
}
.article-body blockquote p:last-child { margin-bottom: 0; }

.callout {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-left: 4px solid var(--cobalt);
  border-radius: 0 12px 12px 0;
  padding: 22px 26px; margin: 32px 0;
  box-shadow: 0 4px 14px rgba(15,23,42,0.04);
}
.callout-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cobalt); margin-bottom: 8px;
}
.callout p { margin: 0; font-size: 15.5px; }

/* Table of contents (optional, sticky on desktop) */
.toc {
  background: var(--white); border: 1px solid var(--hairline);
  border-radius: 12px; padding: 22px 26px;
  margin-bottom: 36px;
  box-shadow: 0 4px 14px rgba(15,23,42,0.04);
}
.toc-heading {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gray-500); margin-bottom: 10px;
}
.toc ol { margin: 0; padding-left: 20px; }
.toc ol li { font-size: 14.5px; line-height: 1.7; margin-bottom: 4px; color: var(--gray-700); }
.toc ol li::marker { color: var(--cobalt); font-weight: 600; }
.toc ol li a { color: var(--gray-700); text-decoration: none; }
.toc ol li a:hover { color: var(--cobalt); text-decoration: underline; }

/* CTA block at end of article */
.article-cta {
  background: linear-gradient(180deg, rgba(37,99,235,0.06), rgba(37,99,235,0.02));
  border: 1px solid rgba(37,99,235,0.18);
  border-radius: 16px;
  padding: 36px 32px; margin: 48px 0 0;
  text-align: center;
}
.article-cta .eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--cobalt); margin-bottom: 12px;
}
.article-cta h3 {
  font-size: 22px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.25;
  color: var(--ink); margin: 0 0 10px;
}
.article-cta p { font-size: 15px; color: var(--gray-700); line-height: 1.65; margin: 0 0 22px; max-width: 480px; margin-left: auto; margin-right: auto; }
.article-cta .primary-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px; border-radius: 999px;
  background: var(--cobalt); color: var(--white) !important;
  font-size: 15px; font-weight: 600; text-decoration: none;
  box-shadow: 0 10px 28px rgba(37,99,235,0.32);
  transition: background 0.18s, transform 0.18s;
}
.article-cta .primary-btn:hover { background: var(--cobalt-hover); transform: translateY(-1px); text-decoration: none; }
.article-cta .secondary-links { font-size: 13.5px; color: var(--gray-500); margin-top: 16px; }
.article-cta .secondary-links a {
  color: var(--cobalt);
  text-decoration: underline;
  text-decoration-color: rgba(37,99,235,0.4);
  text-underline-offset: 3px;
}
.article-cta .secondary-links .dot { margin: 0 8px; color: #CBD5E1; }

/* Related articles */
.related-articles { max-width: 980px; margin: 0 auto; padding: 0 24px 64px; }
.related-articles h3 {
  font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gray-500); margin-bottom: 18px;
}
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related-grid a {
  display: block; padding: 20px 22px;
  background: var(--white); border: 1px solid var(--hairline); border-radius: 12px;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  text-decoration: none;
}
.related-grid a:hover {
  border-color: var(--cobalt);
  box-shadow: 0 8px 22px rgba(37,99,235,0.10);
  transform: translateY(-1px);
  text-decoration: none;
}
.related-grid .rel-eyebrow {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cobalt); margin-bottom: 8px;
}
.related-grid .rel-title { font-size: 15.5px; font-weight: 600; line-height: 1.35; color: var(--ink); margin-bottom: 6px; }
.related-grid .rel-sub { font-size: 13px; color: var(--gray-500); line-height: 1.5; }

/* Blog index — post grid */
.posts-grid-section { max-width: 980px; margin: 0 auto; padding: 56px 24px 64px; }
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card {
  background: var(--white); border: 1px solid var(--hairline); border-radius: 14px;
  padding: 26px 28px; display: block; color: var(--ink); text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.post-card:hover {
  border-color: var(--cobalt);
  box-shadow: 0 12px 28px rgba(37,99,235,0.12);
  transform: translateY(-2px);
  text-decoration: none;
}
.post-card .post-eyebrow {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cobalt); margin-bottom: 12px;
}
.post-card h2 {
  font-size: 19px; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em;
  color: var(--ink); margin-bottom: 10px;
}
.post-card .post-excerpt { font-size: 14.5px; color: var(--gray-700); line-height: 1.65; margin-bottom: 18px; }
.post-card .post-meta { font-size: 12.5px; color: var(--gray-500); display: flex; gap: 10px; align-items: center; }
.post-card .post-meta .dot { color: var(--hairline); }
.post-card .read-more { font-size: 13.5px; font-weight: 600; color: var(--cobalt); margin-top: 14px; display: inline-block; }

/* Footer (matches main site) */
footer { background: var(--navy); color: rgba(255,255,255,0.55); padding: 28px 24px; font-size: 13px; }
footer a { color: rgba(255,255,255,0.85); }
footer .footer-row { max-width: 980px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
footer .footer-compliance-line { max-width: 980px; margin: 14px auto 0; font-size: 11.5px; color: rgba(255,255,255,0.5); line-height: 1.6; }
footer .footer-compliance-line strong { color: rgba(255,255,255,0.78); }

/* Mobile */
@media (max-width: 720px) {
  .article-hero h1 { font-size: 28px; }
  .blog-index-hero h1 { font-size: 28px; }
  .article-body { padding: 36px 18px 48px; }
  .article-body h2 { font-size: 22px; margin: 36px 0 14px; }
  .article-body h3 { font-size: 17px; }
  .article-cta { padding: 28px 22px; }
  .article-cta h3 { font-size: 19px; }
  .related-grid { grid-template-columns: 1fr; }
  .posts-grid { grid-template-columns: 1fr; }
  .topbar { padding: 14px 18px; }
  .topbar-brand img { height: 44px; }
}
