/* ── Blog — layout and typography only.
   All colours come from theme.css tokens (data-theme="claude" data-mode="dark").
   Zero hardcoded colour values here.
   ─────────────────────────────────────────────────────────────────────────── */

/* ── Reset / base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; }

body {
  background-color: hsl(var(--bg-100));
  color: hsl(var(--text-100));
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: hsl(var(--accent-secondary-000));
  text-decoration: none;
}
a:hover { text-decoration: underline; }

/* ── Blog wrapper ─────────────────────────────────────────────────────────── */
.blog { min-height: 100vh; display: flex; flex-direction: column; }

/* ── Nav ──────────────────────────────────────────────────────────────────── */
.blog-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: hsl(var(--bg-100) / 78%);
}
.blog-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.blog-nav-brand {
  display: inline-flex;
  align-items: center;
}
.blog-nav-brand img {
  max-height: 45px;
  height: auto;
  width: auto;
}
.blog-nav-right {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.blog-nav-link {
  font-size: 0.86rem;
  font-weight: 500;
  color: hsl(var(--text-200));
  transition: color 0.15s;
  text-decoration: none;
}
.blog-nav-link:hover { color: hsl(var(--text-000)); text-decoration: none; }

/* ── Language menu (same as landing, scoped to blog) ──────────────────────── */
.lang-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.55rem;
  background: transparent;
  border: none;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 500;
  color: hsl(var(--text-300));
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}
.lang-trigger:hover {
  color: hsl(var(--text-000));
  background: hsl(var(--bg-200));
}
.lang-chevron { transition: transform 0.2s ease; }
.lang-chevron--open { transform: rotate(180deg); }
.lang-menu-list {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 130px;
  padding: 0.35rem;
  margin: 0;
  list-style: none;
  background: hsl(var(--bg-300));
  border: 1px solid hsl(var(--border-300) / 18%);
  border-radius: 12px;
  box-shadow: 0 12px 32px -8px rgba(0,0,0,0.35);
  backdrop-filter: blur(12px);
  z-index: 60;
}
.lang-menu-item {
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  font-size: 0.88rem;
  color: hsl(var(--text-200));
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}
.lang-menu-item:hover {
  background: hsl(var(--bg-200));
  color: hsl(var(--text-000));
}
.lang-menu-item--active {
  color: hsl(var(--text-000));
  background: hsl(var(--bg-200) / 60%);
}

/* ── Main content area ────────────────────────────────────────────────────── */
.blog-main {
  flex: 1;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 3.5rem 2rem 5rem;
}

/* ── Index page ───────────────────────────────────────────────────────────── */
.blog-index-heading {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: hsl(var(--text-400));
  margin-bottom: 2.5rem;
  font-weight: 500;
}

.article-list { list-style: none; }

.article-card {
  border-top: 1px solid hsl(var(--bg-200));
  padding: 2rem 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem 2rem;
  align-items: start;
}
.article-card:last-child { border-bottom: 1px solid hsl(var(--bg-200)); }

.article-card-category {
  grid-column: 1;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: hsl(var(--accent-secondary-000));
  font-weight: 500;
  margin-bottom: 0.4rem;
}
.article-card-title {
  grid-column: 1;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.35;
  color: hsl(var(--text-100));
  margin-bottom: 0.5rem;
}
.article-card-title a { color: inherit; }
.article-card-title a:hover { text-decoration: underline; }
.article-card-desc {
  grid-column: 1;
  font-size: 0.9rem;
  color: hsl(var(--text-300));
  line-height: 1.55;
  max-width: 600px;
}
.article-card-meta {
  grid-column: 2;
  grid-row: 1 / 4;
  font-size: 0.78rem;
  color: hsl(var(--text-400));
  white-space: nowrap;
  padding-top: 0.15rem;
  text-align: right;
  line-height: 1.8;
}

/* ── Article page ─────────────────────────────────────────────────────────── */
.article-header { margin-bottom: 2.5rem; }

.article-category {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: hsl(var(--accent-secondary-000));
  font-weight: 500;
  margin-bottom: 1rem;
}

.article-title {
  font-size: clamp(1.65rem, 4vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: hsl(var(--text-100));
  margin-bottom: 1rem;
}

.article-subtitle {
  font-size: 1.1rem;
  color: hsl(var(--text-300));
  line-height: 1.5;
  margin-bottom: 1.25rem;
  font-weight: 400;
}

.article-byline {
  font-size: 0.8rem;
  color: hsl(var(--text-400));
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.article-byline-author { color: hsl(var(--text-300)); font-weight: 500; text-decoration: none; }
.article-byline-author:hover { color: hsl(var(--accent-brand)); text-decoration: underline; }

.article-divider {
  border: none;
  border-top: 2px solid #234;
  margin: 2rem 0 2.5rem;
}

/* ── Article body ─────────────────────────────────────────────────────────── */
.article-body {
  font-size: 0.925rem;
  line-height: 1.65;
  color: hsl(var(--text-200));
  max-width: 720px;
}

.article-body h2 {
  font-size: 1.3rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: hsl(var(--text-100));
  margin: 2.5rem 0 0.75rem;
  line-height: 1.3;
}

.article-body h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: hsl(var(--text-100));
  margin: 1.75rem 0 0.5rem;
}

.article-body p { margin-bottom: 1.2rem; }

.article-body strong { color: hsl(var(--text-100)); font-weight: 600; }

.article-body ul, .article-body ol {
  margin: 0.75rem 0 1.2rem 1.5rem;
}
.article-body li { margin-bottom: 0.4rem; }

.article-body a {
  color: hsl(var(--accent-secondary-000));
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Pull quote */
.pull-quote {
  border-left: 3px solid hsl(var(--accent-brand));
  margin: 2rem 0;
  padding: 0.75rem 0 0.75rem 1.5rem;
  font-size: 1.05rem;
  font-style: italic;
  color: hsl(var(--text-200));
  line-height: 1.6;
}

/* ── FAQ ──────────────────────────────────────────────────────────────────── */
.faq-section {
  max-width: 720px;
  margin-top: 3rem;
  border-top: 2px solid #234;
  padding-top: 2.5rem;
}

.faq-section-heading {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: hsl(var(--text-400));
  font-weight: 500;
  margin-bottom: 1.75rem;
}

.faq-item { margin-bottom: 1.75rem; }

.faq-question {
  font-size: 0.975rem;
  font-weight: 600;
  color: hsl(var(--text-100));
  margin-bottom: 0.4rem;
  line-height: 1.4;
}

.faq-answer {
  font-size: 0.925rem;
  color: hsl(var(--text-300));
  line-height: 1.65;
}

/* ── Author bio ───────────────────────────────────────────────────────────── */
.author-bio {
  max-width: 720px;
  margin-top: 3rem;
  border-top: 2px solid #234;
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.author-bio-label {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: hsl(var(--text-400));
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.author-bio-name {
  font-size: 1rem;
  font-weight: 650;
  color: hsl(var(--text-100));
  line-height: 1.3;
}

.author-bio-title {
  font-size: 0.82rem;
  color: hsl(var(--text-400));
  margin-bottom: 0.75rem;
}

.author-bio-body {
  font-size: 0.9rem;
  color: hsl(var(--text-300));
  line-height: 1.68;
}
.author-bio-credentials {
  font-size: 0.82rem;
  color: hsl(var(--text-400));
  margin-top: 0.25rem;
}
.author-bio-linkedin {
  font-size: 0.85rem;
  margin-top: 0.75rem;
}
.author-bio-linkedin a {
  color: hsl(var(--accent-secondary-000));
  text-decoration: none;
  font-weight: 500;
}
.author-bio-linkedin a:hover {
  text-decoration: underline;
}

/* ── Article footer nav ───────────────────────────────────────────────────── */
.article-footer-nav {
  max-width: 720px;
  margin-top: 3.5rem;
  border-top: 2px solid #234;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.article-footer-nav a {
  font-size: 0.85rem;
  color: hsl(var(--text-400));
}
.article-footer-nav a:hover { color: hsl(var(--text-100)); }

.article-footer-next { text-align: right; }
.article-footer-next .nav-arrow { color: hsl(var(--accent-secondary-000)); }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.blog-footer {
  border-top: 1px solid hsl(var(--bg-200));
  padding: 1.5rem 2rem;
}
.blog-footer-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: hsl(var(--text-400));
  gap: 1rem;
  flex-wrap: wrap;
}
.blog-footer a { color: hsl(var(--text-400)); }
.blog-footer a:hover { color: hsl(var(--text-100)); text-decoration: none; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .blog-main { padding: 2rem 1.25rem 4rem; }
  .article-card { grid-template-columns: 1fr; }
  .article-card-meta { grid-column: 1; grid-row: auto; text-align: left; margin-top: 0.5rem; }
  .blog-nav { padding: 0 1.25rem; }
  .blog-footer { padding: 1.25rem; }
}
