/* bkimbarnesconsulting — public styles for /blog/ pages
 * Same design tokens as the home page, but a focused, single-column
 * reading layout. Reuses the existing site header so the brand stays
 * consistent.
 */

:root {
  --ink-900: #100d18;
  --ink-800: #1c1827;
  --ink-600: #3a324b;
  --ink-500: #524866;
  --ink-400: #7a6f8c;
  --ink-300: #a89fb6;
  --ink-200: #cfcad7;
  --ink-100: #e9e7ee;
  --teal-500: #006B75;
  --teal-400: #2593A0;
  --teal-300: #5EB0BA;
  --gold-500: #006B75;
  --gold-400: #2593A0;
  --gold-300: #5EB0BA;
  --canvas: #ffffff;
  --canvas-muted: #f5f4f7;
  --rule: #e6e4ea;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Inter, sans-serif;
  color: var(--ink-800);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
a { color: var(--ink-900); }
a:hover { color: var(--gold-500); }
::selection { background: var(--gold-300); color: var(--ink-900); }

.shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.display-2 {
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: -0.035em;
  font-size: clamp(2rem, 3.5vw + 0.5rem, 3.5rem);
  line-height: 1.05;
  color: var(--ink-900);
  margin: 0;
}
.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold-500);
  margin-bottom: 1rem;
}
.lede {
  font-size: 1.125rem;
  color: var(--ink-500);
  line-height: 1.6;
  margin: 0;
}

/* --- Site header (shared with home page) --------------------------- */
.site-header {
  border-bottom: 1px solid var(--rule);
  background: var(--canvas);
  position: sticky; top: 0; z-index: 10;
}
.header-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}
.site-brand {
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.025em;
  text-decoration: none;
  color: var(--ink-900);
  /* match CTA height so brand line-center aligns with button line-center */
  line-height: 1.5;
  display: inline-flex;
  align-items: center;
}
.site-brand:hover {
  color: var(--ink-900);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1;
}
.site-nav a {
  text-decoration: none;
  color: var(--ink-500);
  transition: color 0.15s;
  /* anchor text links to the same line-center as the buttons */
  line-height: 2.25rem;
}
.site-nav a:hover { color: var(--ink-900); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  height: 2.25rem;        /* fixed height so both CTAs match */
  padding: 0 1rem;
  background: var(--ink-900);
  color: var(--canvas) !important;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid var(--ink-900);
}
.nav-cta:hover { background: var(--ink-800); color: var(--canvas) !important; border-color: var(--ink-800); }
.nav-cta-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}
.site-nav a.nav-cta-text-orange {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold-500) !important;
  text-decoration: none;
  line-height: 1 !important;
  transition: color 0.15s;
}
.site-nav a.nav-cta-text-orange:hover {
  color: var(--gold-400) !important;
}
.nav-cta-secondary {
  background: transparent;
  color: var(--ink-900) !important;
}
.nav-cta-secondary:hover { background: var(--ink-900); color: var(--canvas) !important; }


.site-footer {
  margin-top: 6rem;
  padding: 2rem 0;
  border-top: 1px solid var(--rule);
  background: var(--canvas-muted);
  font-size: 0.875rem;
  color: var(--ink-500);
}

/* --- Blog index ---------------------------------------------------- */
.blog-index { padding: 5rem 0 3rem; }
.blog-index-header { max-width: 720px; margin-bottom: 4rem; }
.empty-blog {
  color: var(--ink-500);
  padding: 3rem 0;
  text-align: center;
  border: 1px dashed var(--rule);
}
.post-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.post-list-item {
  border-top: 1px solid var(--rule);
}
.post-list-item:last-child {
  border-bottom: 1px solid var(--rule);
}
.post-list-link {
  display: block;
  padding: 2.5rem 0;
  text-decoration: none;
  color: inherit;
  transition: padding 0.2s;
}
.post-list-link:hover { padding-left: 0.5rem; }
.post-list-title {
  font-family: ui-serif, Georgia, serif;
  font-weight: 700;
  font-size: 1.875rem;
  letter-spacing: -0.025em;
  color: var(--ink-900);
  margin: 0 0 0.75rem;
  line-height: 1.15;
}
.post-list-excerpt {
  color: var(--ink-500);
  font-size: 1.0625rem;
  margin: 0 0 1rem;
  max-width: 65ch;
  line-height: 1.55;
}
.post-list-meta {
  font-size: 0.875rem;
  color: var(--ink-400);
  display: flex;
  gap: 0.625rem;
  align-items: center;
}

/* --- Single post --------------------------------------------------- */
.blog-post { padding: 4rem 0 2rem; }
.post-article { max-width: 720px; margin: 0 auto; }
.post-header { margin-bottom: 3rem; }
.back-link {
  display: inline-block;
  font-size: 0.875rem;
  color: var(--ink-500);
  text-decoration: none;
  margin-bottom: 1.5rem;
}
.back-link:hover { color: var(--ink-900); }
.post-title {
  font-size: clamp(2.25rem, 4.5vw + 0.5rem, 3.75rem);
  margin: 0 0 1.5rem;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--ink-500);
  font-size: 0.9375rem;
}
.post-body {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--ink-700, #2a2438);
}
.post-body > * + * { margin-top: 1.25em; }
.post-body h2 {
  font-family: ui-serif, Georgia, serif;
  font-weight: 700;
  font-size: 1.75rem;
  letter-spacing: -0.025em;
  color: var(--ink-900);
  margin-top: 2.5em;
  margin-bottom: 0.75em;
  line-height: 1.2;
}
.post-body h3 {
  font-family: ui-serif, Georgia, serif;
  font-weight: 700;
  font-size: 1.375rem;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  margin-top: 2em;
  margin-bottom: 0.5em;
  line-height: 1.25;
}
.post-body p { margin: 1.25em 0; }
.post-body ul, .post-body ol { padding-left: 1.5em; }
.post-body li { margin: 0.5em 0; }
.post-body blockquote {
  border-left: 3px solid var(--gold-500);
  padding-left: 1.5rem;
  margin: 2em 0;
  font-family: ui-serif, Georgia, serif;
  font-size: 1.25rem;
  font-style: italic;
  color: var(--ink-600);
  line-height: 1.5;
}
.post-body img {
  max-width: 100%;
  height: auto;
  margin: 2em 0;
  border-radius: 2px;
}
.post-body figure { margin: 2em 0; }
.post-body figcaption {
  font-size: 0.875rem;
  color: var(--ink-400);
  text-align: center;
  margin-top: 0.5em;
}
.post-body a {
  color: var(--ink-900);
  text-decoration: underline;
  text-decoration-color: var(--gold-400);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.post-body a:hover { color: var(--gold-500); }
.post-body code {
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.9em;
  background: var(--canvas-muted);
  padding: 0.1em 0.35em;
  border-radius: 2px;
}
.post-body pre {
  background: var(--canvas-muted);
  padding: 1rem 1.25rem;
  overflow-x: auto;
  font-size: 0.9em;
  line-height: 1.55;
  border-radius: 2px;
}
.post-body pre code { background: transparent; padding: 0; }
.post-body hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 3em auto;
  width: 4rem;
}

@media (max-width: 880px) {
  .site-nav { gap: 1rem; font-size: 0.8125rem; }
  .site-nav a { line-height: 2rem; }
  .nav-cta { height: 2rem; padding: 0 0.75rem; }
}
@media (max-width: 640px) {
  .site-nav { gap: 0.75rem; font-size: 0.75rem; }
  .site-nav a { line-height: 1.75rem; }
  .nav-cta { height: 1.75rem; padding: 0 0.6rem; font-size: 0.75rem; }
  .post-list-link { padding: 1.75rem 0; }
  .post-list-title { font-size: 1.5rem; }
}
