/* Content pages: /blog, /blog/<slug>, /agents, /talent, /talent/<slug>.
   Reads the tokens in site.css; adds only what these pages need. */

/* ── Blog index: one list going down, newest first ───── */
.posts { list-style: none; margin: 0; padding: 0; }
.posts li { border-top: 1px solid var(--gray-a3); }
.posts li:last-child { border-bottom: 1px solid var(--gray-a3); }
.posts a { display: block; padding: 36px 0; }
.posts h2 {
  margin: 10px 0 0; max-width: 22em; font-family: var(--display); font-weight: 400;
  font-size: clamp(30px, 3.4vw, 44px); line-height: 1.08; letter-spacing: -0.01em;
  transition: color .2s var(--ease);
}
.posts a:hover h2 { color: var(--mint); }
.posts p { margin: 12px 0 0; max-width: 40em; font-size: 17px; line-height: 1.55; color: var(--gray-11); }
.post-meta { display: block; margin: 0; font-size: 15px; color: var(--gray-11); }

/* ── A post ──────────────────────────────────────────── */
.post { max-width: 44em; margin: 0 auto; padding: 184px 28px 144px; }
.post h1 {
  margin: 16px 0 0; font-family: var(--display); font-weight: 400;
  font-size: clamp(44px, 5.6vw, 72px); line-height: 1.04; letter-spacing: -0.02em; color: var(--strong);
  text-wrap: balance;
}
.post-deck { margin: 24px 0 0; padding-bottom: 40px; border-bottom: 1px solid var(--gray-a3); font-size: 19px; line-height: 1.55; color: var(--gray-11); }
.post-body { margin-top: 8px; }
.post-body p { margin: 20px 0 0; font-size: 18px; line-height: 1.7; color: var(--gray-12); }
.post-body h2 { margin: 56px 0 0; font-size: 23px; font-weight: 500; line-height: 1.3; letter-spacing: -0.005em; }
.post-body ul { margin: 20px 0 0; padding-left: 22px; font-size: 18px; line-height: 1.7; }
.post-body .pull {
  margin: 40px 0; padding: 4px 0 4px 24px; border-left: 2px solid var(--mint);
  font-family: var(--display); font-style: italic; font-size: clamp(28px, 3vw, 36px); line-height: 1.2; color: var(--strong);
}
.post-foot { margin-top: 72px; padding-top: 32px; border-top: 1px solid var(--gray-a3); }
.post-foot p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--gray-11); }

/* Code: a block that scrolls inside itself, never the page */
.code {
  margin: 28px 0 0; padding: 20px 22px; overflow-x: auto; border-radius: 14px;
  background: var(--gray-a2); box-shadow: inset 0 0 0 1px var(--gray-a3);
  font: 14px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--gray-12);
}
.code code { font: inherit; white-space: pre; }

/* ── For AI assistants ───────────────────────────────── */
.endpoint { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: start; }
.call { min-width: 0; }
.call-line { margin: 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; font-size: 15px; color: var(--gray-11); overflow-wrap: anywhere; }
.call-line b { color: var(--mint); font-weight: 600; }
.call .code { margin-top: 14px; }
.fields { width: 100%; border-collapse: collapse; font-size: 16px; }
.fields th, .fields td { padding: 16px 0; border-top: 1px solid var(--gray-a3); text-align: left; vertical-align: top; }
.fields tbody tr:last-child th, .fields tbody tr:last-child td { border-bottom: 1px solid var(--gray-a3); }
.fields thead th { padding-top: 0; border-top: 0; font-size: 14px; font-weight: 500; color: var(--gray-11); }
.fields tbody th { width: 40%; padding-right: 16px; font-weight: 400; }
.fields code { font: 15px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--gray-12); }
.fields .req, .fields .opt { display: block; margin-top: 4px; font-size: 14px; }
.fields .req { color: var(--mint); }
.fields .opt { color: var(--gray-11); }
.fields td { line-height: 1.55; color: var(--gray-11); }
.bounds { list-style: none; margin: 72px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bounds > li { padding: 28px; border-radius: 18px; background: var(--gray-a2); box-shadow: inset 0 0 0 1px var(--gray-a3); }
.bounds h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1.1; }
.bounds ul { margin: 16px 0 0; padding-left: 20px; font-size: 17px; line-height: 1.6; color: var(--gray-11); }
.bounds ul li + li { margin-top: 6px; }

/* ── Sample profiles ─────────────────────────────────── */
.bench { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.bench li { border-radius: 18px; background: var(--gray-a2); box-shadow: inset 0 0 0 1px var(--gray-a3); transition: background .2s var(--ease); }
.bench li:hover { background: var(--gray-a3); }
.bench a { display: block; padding: 16px 16px 24px; height: 100%; }
.bench img { display: block; width: 100%; aspect-ratio: 1 / 1; height: auto; border-radius: 12px; object-fit: cover; box-shadow: 0 0 0 1px var(--gray-a3); }
.bench h2, .bench h3 { margin: 20px 8px 0; font-family: var(--display); font-weight: 400; font-size: 32px; line-height: 1.1; letter-spacing: -0.01em; }
.bench .role { display: block; margin: 6px 8px 0; font-size: 15px; color: var(--mint); }
.bench .where { display: block; margin: 4px 8px 0; font-size: 15px; color: var(--gray-11); }
.bench p { margin: 14px 8px 0; font-size: 16px; line-height: 1.55; color: var(--gray-11); }

.profile-top { display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: center; }
.profile-top img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; border-radius: 18px; object-fit: cover; box-shadow: 0 0 0 1px var(--gray-a3); }
.profile-role { margin: 16px 0 0; font-size: 19px; color: var(--mint); }
.profile-facts { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 36px; }
.profile-facts li { font-size: 15px; color: var(--gray-11); }
.profile-facts b { display: block; font-size: 19px; font-weight: 500; color: var(--gray-12); }
.jobs { list-style: none; margin: 0; padding: 0; }
.jobs > li { padding: 24px 0; border-top: 1px solid var(--gray-a3); }
.jobs > li:last-child { border-bottom: 1px solid var(--gray-a3); }
.jobs .dates { font-size: 15px; color: var(--gray-11); }
.jobs h3 { margin: 6px 0 0; font-size: 19px; font-weight: 500; }
.jobs .org { margin: 6px 0 0; font-size: 15px; color: var(--gray-11); }
.jobs ul { margin: 16px 0 0; padding-left: 20px; font-size: 17px; line-height: 1.6; color: var(--gray-11); }
.jobs ul li + li { margin-top: 8px; }

@media (max-width: 920px) {
  .endpoint { grid-template-columns: 1fr; }
  .bench { grid-template-columns: 1fr 1fr; }
  .profile-top { grid-template-columns: 180px 1fr; gap: 32px; }
}
@media (max-width: 720px) {
  .posts a { padding: 28px 0; }
  .post { padding: 120px 16px 96px; }
  .post-deck { font-size: 17px; }
  .post-body p, .post-body ul { font-size: 17px; }
  .post-body h2 { font-size: 21px; margin-top: 44px; }
  .code { padding: 16px; font-size: 13px; }
  .bounds { grid-template-columns: 1fr; margin-top: 48px; }
  .bounds > li { padding: 20px; }
  .fields tbody th { width: auto; }
  .fields th, .fields td { display: block; padding: 0; border: 0; }
  .fields thead { display: none; }
  .fields tbody tr { display: block; padding: 16px 0; border-top: 1px solid var(--gray-a3); }
  .fields tbody tr:last-child { border-bottom: 1px solid var(--gray-a3); }
  .fields tbody tr:last-child th, .fields tbody tr:last-child td { border-bottom: 0; }
  .fields td { margin-top: 6px; }
  .bench { grid-template-columns: 1fr; }
  .profile-top { grid-template-columns: 1fr; gap: 28px; }
  .profile-top img { max-width: 200px; }
}
