/* Atacante.App — blog styles
   Builds on the tokens/components from atacante.css (dark/lime system):
   --bg, --ink, --muted, --hair, --line, --lime, --panel, --radius, --mono, --sans.
   Covers only what's specific to /blog/: post-list cards, article prose,
   the meta line (date + reading time) and the in-article CTA box.
   .breadcrumb is already styled in atacante.css — nothing to add here. */

/* ---------- Post list (blog home) ---------- */
.post-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 42px;
}

.post-card {
  display: flex;
  gap: 28px;
  padding: 28px;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  background: var(--panel);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.post-card:hover {
  border-color: var(--line);
  background: rgba(219, 255, 92, 0.08);
  transform: translateY(-2px);
}

/* Thumbnail is optional: a card with no .post-card-thumb just stays
   text-only (post-card-body fills the row on its own). */
.post-card-thumb {
  flex: none;
  width: 40%;
  aspect-ratio: 1200 / 630;
  margin: 0;
  border-radius: calc(var(--radius) - 12px);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

.post-card-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card-body {
  flex: 1;
  min-width: 0;
}

.post-card-meta {
  margin: 0 0 16px;
  color: var(--lime);
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.post-card-title {
  margin: 0 0 12px;
  font-size: 26px;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.post-card-title a {
  text-decoration: none;
}

.post-card-title a:hover {
  color: var(--lime);
}

.post-card-excerpt {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

@media (max-width: 620px) {
  .post-card {
    flex-direction: column;
    gap: 20px;
  }

  .post-card-thumb {
    width: 100%;
  }
}

/* ---------- Article shell ---------- */
/* Narrower column than the default 1220px section: long-form text reads
   better at prose width, same side gutters as the rest of the site. */
.post-shell {
  max-width: 720px;
  margin: 0 auto;
}

.post-header .eyebrow {
  margin-bottom: 14px;
}

.post-header h1 {
  max-width: none;
}

.post-header .lead {
  max-width: none;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 24px 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
}

.post-cover {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  margin-top: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--hair);
}

/* ---------- Article prose ---------- */
.post-body {
  margin-top: 56px;
  font-size: 18px;
  line-height: 1.7;
  color: rgba(248, 250, 238, 0.86);
}

.post-body > * + * {
  margin-top: 22px;
}

.post-body h2 {
  max-width: none;
  margin-top: 48px;
  font-size: clamp(26px, 3.6vw, 36px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.post-body h2 + * {
  margin-top: 18px;
}

:where(.post-body p) {
  margin: 0;
}

.post-body strong {
  color: var(--ink);
}

.post-body a {
  color: var(--lime);
  text-decoration: underline;
  text-decoration-color: rgba(219, 255, 92, 0.4);
  text-underline-offset: 2px;
}

.post-body a:hover {
  text-decoration-color: var(--lime);
}

.post-body ul,
.post-body ol {
  margin-bottom: 0;
  padding-left: 22px;
  display: grid;
  gap: 12px;
}

.post-body li {
  padding-left: 6px;
}

.post-body li::marker {
  color: var(--lime);
  font-family: var(--mono);
}

.post-body blockquote {
  margin: 0;
  padding: 4px 0 4px 22px;
  border-left: 2px solid var(--lime);
  color: var(--muted);
  font-size: 19px;
  line-height: 1.5;
}

/* ---------- In-article CTA box ---------- */
.post-cta {
  margin-top: 56px;
  padding: 36px;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  background: var(--panel);
}

.post-cta h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.post-cta p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.post-cta .cta-row {
  margin-top: 22px;
}

@media (max-width: 620px) {
  .post-cta {
    padding: 24px;
  }

  .post-body {
    font-size: 17px;
  }
}
