/* ==========================================================================
   EnTeam Blog stylesheet
   Tokens, fonts, header, footer and buttons are lifted verbatim from the
   marketing site (index.html) so the blog reads as a native part of enteam.ai.
   Blog/article-specific styles follow the same idiom.
   ========================================================================== */

:root {
  --bg: #ffffff;
  --ink: #0d0d12;
  --ink-soft: #3b3b46;
  --ink-muted: #6c6c78;
  --line: #e8e8ec;
  --line-strong: #d4d4d8;
  --surface: #f7f7f8;
  --surface-2: #f1f1f3;
  --accent: #6366F1;
  --accent-ink: #4f46e5;
  --accent-soft: #eef0fe;
  --accent-line: #d8dbfa;
  --accent-2: #8B5CF6;
  --accent-2-ink: #7c3aed;
  --accent-3: #38BDF8;
  --c-sky: #0EA5E9;
  --c-sky-soft: #e6f6fe;
  --c-sky-line: #bfe6fa;
  --emerald-ink: #0B7A4D;
  --c-teal: #0E9E8E;
  --c-teal-soft: #e3f7f3;
  --dark: #0d0d12;
  --dark-soft: #17171f;
  --dark-line: #2a2a35;
  --dark-ink-soft: #a7a7b3;
  --ok: #0d8a55;
  --ok-bg: #ecfdf3;
  --warn: #a04300;
  --warn-bg: #fff5e6;
  --max: 1120px;
  --reading: 720px;
  --radius: 14px;
  --radius-lg: 18px;
  --radius-sm: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 17px;
  line-height: 1.5;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: #c7caff; color: var(--ink); }
button { font-family: inherit; cursor: pointer; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }

h1, h2, h3, h4 { font-weight: 500; letter-spacing: -0.02em; margin: 0; line-height: 1.05; }
h1 { font-size: clamp(34px, 5vw, 56px); letter-spacing: -0.032em; line-height: 1.04; }
h2 { font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -0.024em; line-height: 1.1; }
h3 { font-size: 22px; letter-spacing: -0.015em; }
p { margin: 0; color: var(--ink-soft); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff;
  padding: 10px 14px; border-radius: 8px;
  font-size: 14px; z-index: 999;
}
.skip-link:focus { left: 12px; top: 12px; }

.hl {
  font-style: italic; font-weight: 500;
  background-image: linear-gradient(0deg, var(--accent) 0, var(--accent) 100%);
  background-repeat: no-repeat; background-size: 100% 3px; background-position: 0 100%;
  padding-bottom: 2px;
}
.hl-soft { font-style: italic; font-weight: 500; color: var(--accent-ink); }

/* ---- Buttons (verbatim from marketing site) ---- */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%); color: #fff;
  border: 0; padding: 13px 20px; border-radius: 999px;
  font-size: 15px; font-weight: 500; letter-spacing: -0.01em;
  white-space: nowrap; flex-shrink: 0;
  box-shadow: 0 1px 0 rgba(255,255,255,0.22) inset, 0 8px 20px -8px rgba(99,102,241,0.55);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.btn-primary:hover { filter: brightness(1.05); transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,0.22) inset, 0 13px 28px -8px rgba(124,58,237,0.6); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--ink); border: 1px solid var(--line);
  padding: 12px 18px; border-radius: 999px; font-size: 15px; font-weight: 500;
  white-space: nowrap; flex-shrink: 0;
  transition: border-color .12s ease, background .12s ease;
}
.btn-secondary:hover { border-color: var(--line-strong); background: var(--surface); }

/* ---- Pill ---- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); background: #fff;
  border-radius: 999px; padding: 6px 12px 6px 10px;
  font-family: 'JetBrains Mono', monospace; font-size: 11.5px;
  letter-spacing: 0.04em; color: var(--ink-soft);
}

/* Header chrome (announcement, logo, mega-menu nav, mobile menu) now lives in
   the shared site-header.css — loaded alongside this file by base.njk. */

/* ==========================================================================
   Blog index
   ========================================================================== */
.blog-hero {
  position: relative; overflow: hidden;
  background: radial-gradient(60% 46% at 50% 10%, rgba(99,102,241,.07), transparent 72%), #fafafa;
  border-bottom: 1px solid var(--line);
  padding: 72px 0 56px;
}
.blog-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(30,28,60,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30,28,60,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000 50%, transparent 100%);
          mask-image: radial-gradient(120% 80% at 50% 0%, #000 50%, transparent 100%);
}
.blog-hero > * { position: relative; z-index: 1; }
.blog-hero .eyebrow {
  font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent-ink); margin: 0 0 14px;
}
.blog-hero p.lede { font-size: 19px; color: var(--ink-soft); max-width: 640px; margin: 18px 0 0; }

.section { padding: 56px 0 88px; }

.post-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
@media (max-width: 900px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; } }

.post-card {
  display: flex; flex-direction: column; gap: 12px;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: #fff; padding: 22px 22px 24px;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.post-card:hover {
  border-color: var(--accent-line);
  box-shadow: 0 18px 40px -28px rgba(40,38,80,.4);
  transform: translateY(-2px);
}
.post-card .kicker {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink-muted);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.post-card h3 { font-size: 20px; letter-spacing: -0.018em; line-height: 1.18; color: var(--ink); }
.post-card h3 a:hover { color: var(--accent-ink); }
.post-card p { font-size: 15px; line-height: 1.5; }
.post-card .read { margin-top: auto; font-size: 14px; font-weight: 500; color: var(--accent-ink); }
.post-card .read::after { content: " →"; }

.tag-pill {
  display: inline-block; font-size: 11px; letter-spacing: 0.02em;
  color: var(--accent-ink); background: var(--accent-soft);
  border: 1px solid var(--accent-line); border-radius: 999px; padding: 2px 9px;
  font-family: 'JetBrains Mono', monospace;
}

/* ==========================================================================
   Article (post) page
   ========================================================================== */
.post-head { padding: 56px 0 8px; border-bottom: 1px solid var(--line); }
.post-head .breadcrumb {
  font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.06em;
  color: var(--ink-muted); margin-bottom: 18px;
}
.post-head .breadcrumb a:hover { color: var(--accent-ink); }
.post-head h1 { max-width: var(--reading); }
.post-meta {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin: 22px 0 30px; color: var(--ink-muted); font-size: 14px;
}
.post-meta .dot { color: var(--line-strong); }
.post-meta .tags { display: flex; gap: 6px; flex-wrap: wrap; }

/* Long-form prose */
.prose { max-width: var(--reading); margin: 0 auto; padding: 40px 0 8px; }
.prose > * + * { margin-top: 1.15em; }
.prose p { font-size: 18px; line-height: 1.72; color: var(--ink-soft); }
.prose h2 {
  font-size: 28px; letter-spacing: -0.02em; color: var(--ink);
  margin-top: 2em; line-height: 1.18; scroll-margin-top: 90px;
}
.prose h3 { font-size: 21px; color: var(--ink); margin-top: 1.6em; scroll-margin-top: 90px; }
.prose a {
  color: var(--accent-ink); text-decoration: underline;
  text-decoration-color: var(--accent-line); text-underline-offset: 3px;
}
.prose a:hover { text-decoration-color: var(--accent-ink); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.3em; color: var(--ink-soft); font-size: 18px; line-height: 1.7; }
.prose li + li { margin-top: 0.5em; }
.prose li::marker { color: var(--accent-ink); }
.prose blockquote {
  margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--accent-line);
  color: var(--ink); font-style: italic;
}
.prose code {
  font-family: 'JetBrains Mono', monospace; font-size: 0.86em;
  background: var(--surface-2); border: 1px solid var(--line);
  padding: 1px 6px; border-radius: 6px; color: var(--accent-ink);
}
.prose pre {
  background: var(--dark); color: #e7e7ee; border-radius: var(--radius);
  padding: 18px 20px; overflow-x: auto; font-size: 14px;
}
.prose pre code { background: none; border: 0; color: inherit; padding: 0; }
.prose img { border-radius: var(--radius); border: 1px solid var(--line); margin: 1.6em 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; margin: 1.6em 0; }
.prose th, .prose td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 600; color: var(--ink); background: var(--surface); }

/* FAQ block (also emitted as FAQ JSON-LD) */
.faq { max-width: var(--reading); margin: 8px auto 0; padding-top: 8px; }
.faq h2 { font-size: 26px; margin-bottom: 8px; }
.faq-item { border-top: 1px solid var(--line); padding: 20px 0; }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q { font-size: 17.5px; font-weight: 500; color: var(--ink); letter-spacing: -0.012em; margin-bottom: 8px; }
.faq-a { font-size: 16.5px; line-height: 1.65; color: var(--ink-soft); }

/* End-of-article CTA */
.post-cta {
  max-width: var(--reading); margin: 48px auto 0;
  border: 1px solid var(--accent-line); background: var(--accent-soft);
  border-radius: var(--radius-lg); padding: 30px 30px 32px;
}
.post-cta h2 { font-size: 24px; color: var(--ink); margin-bottom: 10px; }
.post-cta p { color: var(--ink-soft); margin-bottom: 18px; }

.post-foot-nav { max-width: var(--reading); margin: 40px auto 0; }

/* ==========================================================================
   Footer (verbatim structure from marketing site)
   ========================================================================== */
.site-footer { padding: 52px 0 36px; background: #0a0a10; color: #9d9dab; border-top: 1px solid var(--dark-line); }
.site-footer .container { max-width: 1080px; }
.footer-row { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-left { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.footer-copy { font-size: 11px; letter-spacing: 0.04em; color: #56565f; }
.footer-right { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; margin-top: 4px; }
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; font-size: 14px; align-items: center; }
.footer-nav a { color: #c8c8d4; }
.footer-nav a:hover { color: #fff; }
.footer-social { display: flex; gap: 10px; margin-left: 6px; }
.footer-social a { color: #c8c8d4; display: inline-flex; }
.footer-social a:hover { color: #fff; }
.footer-addr { font-size: 11px; letter-spacing: 0.04em; color: #56565f; text-align: right; }
@media (max-width: 600px) {
  .footer-row { flex-direction: column; }
  .footer-right { align-items: flex-start; }
  .footer-addr { text-align: left; }
}

/* ==========================================================================
   Resources hub: section titles, pillar cards, related links
   ========================================================================== */
.section-title { font-size: clamp(22px, 3vw, 30px); letter-spacing: -0.02em; color: var(--ink); margin: 0 0 24px; }

/* breadcrumb reused in the pillar hero */
.blog-hero .breadcrumb {
  font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.06em;
  color: var(--ink-muted); margin: 0 0 16px;
}
.blog-hero .breadcrumb a:hover { color: var(--accent-ink); }

/* topic pillar cards (whole card is a link) */
.pillar-card h3 { color: var(--ink); }
.pillar-card:hover h3 { color: var(--accent-ink); }
.pillar-card .kicker { justify-content: space-between; width: 100%; }

/* "More on <topic>" related list on articles */
.related { max-width: var(--reading); margin: 48px auto 0; }
.related h2 { font-size: 22px; color: var(--ink); margin-bottom: 6px; text-transform: capitalize; }
.related-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.related-item {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 2px; border-bottom: 1px solid var(--line);
  transition: padding-left .15s ease;
}
.related-item:hover { padding-left: 8px; }
.related-title { font-weight: 500; color: var(--ink); letter-spacing: -0.01em; }
.related-item:hover .related-title { color: var(--accent-ink); }
.related-go { color: var(--accent-ink); font-size: 14px; white-space: nowrap; flex-shrink: 0; }

/* footer nav under an article now holds two buttons */
.post-foot-nav { display: flex; gap: 12px; flex-wrap: wrap; }
