/* Agent Speak blog — shared styles. Matches the tool's brand:
   Inter / Instrument Serif / JetBrains Mono, iridescent teal→violet→pink→peach. */

:root {
  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-soft: #eef2f6;
  --bg: #f8fafc;
  --paper: #ffffff;
  --dark: #0b1120;
  --teal: #14b8a6;
  --violet: #8b5cf6;
  --pink: #ec4899;
}

html, body {
  background: var(--bg);
  font-family: 'Inter', system-ui, sans-serif;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  margin: 0;
}

.serif {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }
.display { letter-spacing: -0.022em; line-height: 1.04; }
.heading { letter-spacing: -0.012em; }

.iridescent {
  background: linear-gradient(110deg, #5eead4 0%, #a78bfa 35%, #f472b6 70%, #fb923c 100%);
}
.iridescent-text {
  background: linear-gradient(110deg, #14b8a6 0%, #8b5cf6 38%, #ec4899 72%, #fb923c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-stripes {
  background:
    radial-gradient(1100px 420px at 82% -12%, rgba(94, 234, 212, 0.20), transparent 60%),
    radial-gradient(820px 380px at 8% 16%, rgba(167, 139, 250, 0.20), transparent 60%),
    radial-gradient(900px 420px at 60% 120%, rgba(244, 114, 182, 0.16), transparent 60%),
    var(--dark);
}

a { color: inherit; }

/* ---- shell ---- */
.wrap { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.wrap-wide { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

/* ---- top nav ---- */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 600; letter-spacing: -0.01em; text-decoration: none; }
.brand .dot { width: 18px; height: 18px; border-radius: 6px; }
.brand .speak { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-size: 19px; line-height: 1; }
.nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 14px; border-radius: 9px;
  background: var(--ink); color: #fff; text-decoration: none;
  font-size: 13px; font-weight: 500; transition: background 160ms ease;
}
.nav-cta:hover { background: #1e293b; }

/* ---- article ---- */
.post-body { font-size: 17.5px; line-height: 1.7; color: var(--ink-soft); }
.post-body > p { margin: 0 0 1.15em; text-wrap: pretty; }
.post-body h2 {
  font-family: 'Inter', sans-serif; font-weight: 650; letter-spacing: -0.015em;
  font-size: 25px; line-height: 1.25; color: var(--ink);
  margin: 2.1em 0 0.6em; scroll-margin-top: 84px;
}
.post-body h3 {
  font-weight: 600; font-size: 19px; color: var(--ink);
  margin: 1.6em 0 0.5em;
}
.post-body strong { color: var(--ink); font-weight: 600; }
.post-body ul, .post-body ol { margin: 0 0 1.15em; padding-left: 1.3em; }
.post-body li { margin: 0.35em 0; }
.post-body a.link {
  color: #0e7490; text-decoration: underline;
  text-decoration-color: rgba(20,184,166,0.4); text-underline-offset: 3px;
  transition: text-decoration-color 160ms ease;
}
.post-body a.link:hover { text-decoration-color: var(--teal); }

/* the answer-first TL;DR block — AEO: lead with the direct answer */
.answer {
  border-left: 3px solid transparent;
  border-image: linear-gradient(180deg, #14b8a6, #8b5cf6 55%, #ec4899) 1;
  background: linear-gradient(90deg, rgba(94,234,212,0.06), rgba(167,139,250,0.04));
  padding: 18px 22px; margin: 0 0 2em;
  border-radius: 0 10px 10px 0;
}
.answer .lbl { font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--violet); margin-bottom: 7px; }
.answer p { font-size: 18px; line-height: 1.6; color: var(--ink); margin: 0; font-weight: 450; text-wrap: pretty; }

/* pull box / callout */
.callout {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 12px; padding: 18px 20px; margin: 1.8em 0;
  font-size: 15.5px; line-height: 1.6; color: var(--ink-soft);
}
.callout .lbl { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }

/* faq */
.faq-q { font-weight: 600; color: var(--ink); font-size: 18px; margin: 1.5em 0 0.3em; }
.faq-a { margin: 0 0 0.6em; }

/* meta row */
.kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--violet); }
.byline { font-size: 13.5px; color: var(--muted); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.byline .sep { color: var(--line); }

/* inline CTA card to the tool */
.tool-cta {
  border-radius: 16px; overflow: hidden; margin: 2.4em 0;
  border: 1px solid var(--line);
}
.tool-cta .inner { padding: 26px 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.tool-cta h4 { margin: 0 0 4px; font-size: 19px; font-weight: 600; color: #fff; letter-spacing: -0.01em; }
.tool-cta p { margin: 0; font-size: 14px; color: rgba(255,255,255,0.7); max-width: 42ch; }
.tool-cta .btn {
  display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0;
  height: 44px; padding: 0 20px; border-radius: 11px;
  background: #fff; color: var(--ink); text-decoration: none;
  font-size: 14px; font-weight: 600;
}

/* footer */
.foot { border-top: 1px solid var(--line); margin-top: 64px; }
.foot-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 26px 0; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }

/* index cards */
.post-grid { display: grid; grid-template-columns: 1fr; gap: 2px; }
.post-row {
  display: block; text-decoration: none; padding: 26px 4px;
  border-bottom: 1px solid var(--line); transition: padding-left 160ms ease;
}
.post-row:hover { padding-left: 12px; }
.post-row .q { font-size: 23px; font-weight: 600; letter-spacing: -0.015em; color: var(--ink); line-height: 1.25; margin: 0 0 8px; }
.post-row .d { font-size: 15px; color: var(--muted); line-height: 1.55; margin: 0 0 10px; max-width: 64ch; text-wrap: pretty; }
.post-row .m { font-size: 12.5px; color: #94a3b8; display: flex; gap: 10px; align-items: center; }
.tag { font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--teal); }

@media (max-width: 640px) {
  .post-body { font-size: 16.5px; }
  .post-body h2 { font-size: 22px; }
  .post-row .q { font-size: 20px; }
}
