/* ============================================================
   poxisFX blog
   Extends the main design system (style.css). Load AFTER it.
   Covers: blog index listing, article layout, image placeholders,
   comparison tables, FAQ blocks, author byline.
   ============================================================ */

/* ---------- Shared blog rhythm ---------- */

.blog-wrap { width: min(100% - 2 * var(--gutter), 72rem); margin-inline: auto; }

.blog-head {
  padding-top: clamp(8rem, 14vh, 11rem);
  padding-bottom: clamp(2.5rem, 5vh, 4rem);
}
.blog-head .kicker { margin-bottom: 1.4rem; }
/* Article titles use .display-md from the site scale, two steps below the hero's
   .display-xl. At hero size a 60 character title wraps to five lines in the 46rem
   article column and pushes the byline off screen. The base h1 line-height of 1.02
   is tuned for the hero's deliberate 3-line headline; titles that wrap naturally
   need a little more room between lines, hence the small override here. */
.blog-head h1 { max-width: 20em; margin: 0; line-height: 1.1; }
.blog-head .lede { margin-top: 1.6rem; max-width: 44em; }

/* ---------- Index: tier sections ---------- */

.tier { padding-block: clamp(3rem, 6vh, 5rem); border-top: 1px solid var(--line); }
.tier:first-of-type { border-top: 0; }

.tier__head { display: flex; align-items: baseline; gap: 1.1rem; flex-wrap: wrap; margin-bottom: 0.6rem; }
.tier__num {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}
.tier__head h2 { margin: 0; }
.tier__note { color: var(--muted); max-width: 46em; margin: 0 0 2.4rem; }

/* Pillar grouping inside a tier */
.pillar { margin-top: 2.6rem; }
.pillar__label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line);
}

.post-list { display: grid; gap: 0.9rem; margin: 0; padding: 0; list-style: none; }

.post-card {
  display: block;
  padding: 1.35rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--ink-2);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s var(--ease-out), background-color 0.25s var(--ease-out),
    transform 0.25s var(--ease-out);
}
.post-card:hover,
.post-card:focus-visible {
  border-color: var(--line-strong);
  background: var(--ink-3);
  transform: translateY(-2px);
}
.post-card h3 { margin: 0 0 0.5rem; font-size: 1.16rem; line-height: 1.35; color: var(--text); }
.post-card p { margin: 0; color: var(--muted); font-size: 0.94rem; line-height: 1.6; }
.post-card__meta {
  display: block;
  margin-top: 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}
.post-card--hub { border-left: 3px solid var(--gold); }
.post-card--soon { opacity: 0.5; pointer-events: none; }

/* ---------- Article layout ---------- */

.article { padding-bottom: clamp(4rem, 9vh, 7rem); }
.article__inner { width: min(100% - 2 * var(--gutter), 46rem); margin-inline: auto; }

.article__meta {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--faint);
}
.article__meta strong { color: var(--text-dim); font-weight: 500; }
.article__meta span::before { content: "·"; margin-right: 0.9rem; color: var(--line-strong); }
.article__meta span:first-child::before { content: none; margin: 0; }

.article__body { margin-top: clamp(2.5rem, 5vh, 3.5rem); }
.article__body > h2 {
  margin: 3.2rem 0 1.1rem;
  font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2rem);
  line-height: 1.22;
  letter-spacing: -0.015em;
}
.article__body > h3 {
  margin: 2.3rem 0 0.8rem;
  font-size: clamp(1.12rem, 1rem + 0.5vw, 1.3rem);
  line-height: 1.3;
  color: var(--text-dim);
}
.article__body p { margin: 0 0 1.2rem; color: var(--text-dim); }
.article__body a { color: var(--iris-bright); text-decoration-color: rgba(168, 155, 255, 0.4); }
.article__body a:hover { text-decoration-color: currentColor; }
.article__body ul,
.article__body ol { margin: 0 0 1.4rem; padding-left: 1.3rem; color: var(--text-dim); }
.article__body li { margin-bottom: 0.55rem; }
.article__body li::marker { color: var(--iris); }
.article__body strong { color: var(--text); font-weight: 600; }

/* The opening answer. Deliberately NOT a labelled TL;DR box: it reads as the
   first paragraph but carries the direct-answer weight for AI extraction. */
.article__body .answer {
  font-size: 1.1em;
  line-height: 1.6;
  color: var(--text);
  padding-left: 1.15rem;
  border-left: 2px solid var(--gold);
}

/* ---------- Image placeholders ---------- */

figure.shot { margin: 2.4rem 0; }
.shot__box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 190px;
  padding: 2rem 1.5rem;
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  background: repeating-linear-gradient(
    -45deg,
    rgba(139, 124, 247, 0.05) 0 10px,
    transparent 10px 20px
  ), var(--ink-2);
}
.shot__name {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}
.shot__what { margin: 0; max-width: 34em; font-size: 0.9rem; color: var(--muted); line-height: 1.55; }
figure.shot figcaption {
  margin-top: 0.7rem;
  font-size: 0.82rem;
  color: var(--faint);
  line-height: 1.5;
}

/* ---------- Tables ---------- */

.table-scroll { overflow-x: auto; margin: 1.8rem 0 2.2rem; }
.article__body table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.article__body th,
.article__body td {
  text-align: left;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.article__body thead th {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom-color: var(--line-strong);
}
.article__body tbody td { color: var(--muted); }
.article__body tbody td:first-child { color: var(--text-dim); font-weight: 500; }

/* ---------- FAQ ---------- */

.faq { margin-top: 3.4rem; padding-top: 2.2rem; border-top: 1px solid var(--line); }
.faq h2 { margin-top: 0; }
.faq__item { padding: 1.3rem 0; border-bottom: 1px solid var(--line); }
.faq__item h3 { margin: 0 0 0.6rem; font-size: 1.05rem; color: var(--text); }
.faq__item p { margin: 0; color: var(--muted); }

/* ---------- Related / next ---------- */

.related { margin-top: 3.4rem; padding-top: 2.2rem; border-top: 1px solid var(--line); }
.related h2 { margin: 0 0 1.4rem; font-size: 1.2rem; }
.related ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.related a { color: var(--text-dim); text-decoration: none; }
.related a:hover { color: var(--iris-bright); }
.related li { padding-left: 1.1rem; position: relative; }
.related li::before { content: "→"; position: absolute; left: 0; color: var(--gold); }

/* ---------- Author ---------- */

.author {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  margin-top: 3rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--ink-2);
}
.author img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author__body { min-width: 0; }
.author__body b { display: block; color: var(--text); }
.author__body p { margin: 0.4rem 0 0; font-size: 0.9rem; color: var(--muted); line-height: 1.55; }

/* ---------- Breadcrumb ---------- */

.crumb {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 1.6rem;
}
.crumb a { color: var(--faint); text-decoration: none; }
.crumb a:hover { color: var(--gold); }
.crumb span { margin: 0 0.5rem; }

@media (max-width: 640px) {
  .author { flex-direction: column; }
  .shot__box { min-height: 150px; }
}
