/* Moore AI · estilos do blog
   Tokens em colors_and_type.css. Tipografia de leitura aqui. */

/* Capa */
.cover {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--cream-2);
  border: 1px solid var(--border);
  aspect-ratio: 16 / 10;
}
.cover-tall { aspect-ratio: 21 / 9; }
.cover-credit { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; color: var(--warm-500); margin: 10px 0 0; }

/* Index: lista de cards */
.post-list { display: flex; flex-direction: column; }
.post-card {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 48px;
  align-items: center;
  padding: 48px 0;
  border-top: 1px solid var(--border);
  cursor: pointer;
  text-decoration: none;
  border-bottom: 0;
}
.post-card:last-child { border-bottom: 1px solid var(--border); }
.post-card:hover { opacity: 1; }
.post-card .cover { transition: transform 320ms var(--ease-out); }
.post-card:hover .cover { transform: scale(1.012); }
.post-card:hover .post-title { color: var(--graphite); }
.post-title { transition: color 200ms var(--ease-out); }

/* Tabs de categoria */
.cat-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-tab {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--warm-600); background: transparent;
  border: 1px solid var(--border-strong); border-radius: 999px;
  padding: 8px 16px; cursor: pointer;
  transition: background 200ms var(--ease-out), color 200ms var(--ease-out), border-color 200ms var(--ease-out);
}
.cat-tab:hover { border-color: var(--ink); color: var(--ink); }
.cat-tab.active { background: var(--ink); color: var(--cream); border-color: var(--ink); }

/* Tag de categoria */
.cat-tag {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 8px;
}
.cat-tag .swatch { width: 8px; height: 8px; border-radius: 999px; display: inline-block; }

/* Prose: corpo do artigo */
.prose { max-width: 68ch; }
.prose > * { margin: 0; }
.prose > * + * { margin-top: 28px; }
.prose p {
  font-size: 19px; line-height: 1.7; color: var(--warm-800);
  letter-spacing: -0.003em;
}
.prose .lead {
  font-size: 23px; line-height: 1.55; color: var(--ink); letter-spacing: -0.012em;
  font-weight: 400;
}
.prose h2 {
  font-size: clamp(28px, 3.4vw, 38px); font-weight: 500; letter-spacing: -0.025em;
  line-height: 1.12; color: var(--ink);
  margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--border);
}
.prose h3 {
  font-size: 23px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; color: var(--ink);
  margin-top: 44px;
}
.prose ul, .prose ol { padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.prose li {
  position: relative; padding-left: 30px;
  font-size: 18px; line-height: 1.6; color: var(--warm-800);
}
.prose ul li::before {
  content: ""; position: absolute; left: 4px; top: 13px;
  width: 7px; height: 7px; background: var(--graphite); border-radius: 999px;
}
.prose ol { counter-reset: li; }
.prose ol li { counter-increment: li; }
.prose ol li::before {
  content: counter(li); position: absolute; left: 0; top: 2px;
  font-family: var(--font-mono); font-size: 12px; color: var(--graphite); font-weight: 500;
  letter-spacing: 0.04em;
}
.prose a.in {
  color: var(--graphite); border-bottom: 1px solid var(--graphite-soft); padding-bottom: 1px;
  cursor: pointer; text-decoration: none;
}
.prose a.in:hover { opacity: 0.65; }
.prose strong { font-weight: 600; color: var(--ink); }

/* Pull quote */
.prose blockquote {
  border-left: 2px solid var(--ink); padding: 4px 0 4px 28px; margin: 8px 0;
}
.prose blockquote p {
  font-size: clamp(24px, 3vw, 30px); line-height: 1.3; letter-spacing: -0.02em;
  color: var(--ink); font-weight: 500;
}
.prose blockquote cite {
  display: block; margin-top: 14px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--warm-600); font-style: normal;
}

/* Callout */
.callout {
  background: var(--cream-2); border: 1px solid var(--border);
  border-left: 2px solid var(--graphite); border-radius: 2px;
  padding: 28px 32px;
}
.callout .callout-title {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--graphite); margin: 0 0 10px;
}
.callout p { font-size: 17px; line-height: 1.6; color: var(--warm-800); margin: 0; }

/* Tabela (bloco `table` dos artigos) */
.prose .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.prose table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--ink); }
.prose th {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  font-weight: 500; color: var(--warm-600); text-align: left;
  padding: 12px 16px 12px 0; border-bottom: 1px solid var(--border); white-space: nowrap;
}
.prose td {
  font-size: 15px; line-height: 1.55; color: var(--warm-800);
  padding: 14px 16px 14px 0; border-bottom: 1px solid var(--border); vertical-align: top;
}
.prose td:first-child { color: var(--ink); font-weight: 500; }
.prose table strong { color: var(--ink); }

/* Related links */
.related-card {
  display: grid; grid-template-columns: 96px 1fr; gap: 20px; align-items: center;
  padding: 20px 0; border-top: 1px solid var(--border); cursor: pointer; text-decoration: none; border-bottom: 0;
}
.related-card:last-child { border-bottom: 1px solid var(--border); }
.related-card .cover { aspect-ratio: 1 / 1; }
.related-card:hover .rel-title { color: var(--graphite); }
.rel-title { transition: color 200ms var(--ease-out); }

@media (max-width: 880px) {
  .post-card { grid-template-columns: 1fr; gap: 20px; }
  .prose p { font-size: 18px; }
  .prose .lead { font-size: 20px; }
}
