/* ============================================================
   EntraGUARD — blog
   Layered on top of ../styles.css: tokens, reset, fonts, .nav,
   .brand, .btn, .foot and .eyebrow all come from there, so the
   blog cannot drift from the main site. Only blog-specific
   layout and long-form typography live here.
   ============================================================ */

.container { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 28px; }
.mono { font-family: var(--mono); }

/* the current page in the header nav */
.nav__links a.active { color: var(--text); font-weight: 600; }

/* ── listing hero ─────────────────────────────────────────── */
.blog-hero { padding: 4rem 0 0; }
.blog-hero h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1.04;
  letter-spacing: -.032em; color: var(--text); margin: .9rem 0 1rem;
}
.blog-hero > p { font-size: 1.06rem; line-height: 1.6; color: var(--text-2); max-width: 62ch; }

.blog-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin: 2.2rem 0 2.4rem; }
.blog-filter {
  font-family: var(--mono); font-size: .71rem; letter-spacing: .07em; text-transform: uppercase;
  padding: .52rem .85rem; border: 1px solid var(--line); border-radius: 6px;
  background: var(--paper-2); color: var(--text-2); cursor: pointer;
  transition: border-color .16s, color .16s, background .16s;
}
.blog-filter:hover { border-color: var(--text-3); color: var(--text); }
.blog-filter.active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ── post cards ───────────────────────────────────────────── */
.blog-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.15rem; padding-bottom: 4.5rem;
}
.post-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--paper-2);
  padding: 1.5rem 1.4rem; transition: border-color .18s, transform .18s, box-shadow .18s;
}
.post-card:hover {
  border-color: var(--accent); transform: translateY(-2px);
  box-shadow: 0 14px 34px -22px rgba(10,20,40,.35);
}
.pc-tag { font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.post-card h2 {
  font-family: var(--display); font-weight: 700; font-size: 1.06rem; line-height: 1.28;
  letter-spacing: -.016em; color: var(--text); margin: .65rem 0 .5rem;
}
.post-card p { font-size: .9rem; line-height: 1.6; color: var(--text-2); }
.pc-meta { display: flex; gap: .45rem; font-family: var(--mono); font-size: .68rem; color: var(--text-3); margin-top: 1.05rem; }
.pc-arrow { font-family: var(--mono); font-size: .72rem; letter-spacing: .03em; color: var(--accent); margin-top: 1rem; }

/* ── article ──────────────────────────────────────────────── */
/* declared after .container so the reading column wins */
.article { max-width: 768px; margin: 0 auto; padding: 3.2rem 28px 2.6rem; }

.crumb { display: flex; align-items: center; gap: .55rem; font-family: var(--mono); font-size: .69rem; letter-spacing: .04em; color: var(--text-3); }
.crumb a { color: var(--text-3); }
.crumb a:hover { color: var(--text); }
.crumb a + a::before { content: "/"; margin-right: .55rem; color: var(--line); }

.a-tag {
  display: inline-block; margin: 1.6rem 0 0;
  font-family: var(--mono); font-size: .67rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-bg); border-radius: 5px; padding: .3rem .55rem;
}
.article h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.85rem, 3.9vw, 2.55rem); line-height: 1.09;
  letter-spacing: -.032em; color: var(--text); margin: .9rem 0 1.1rem;
}
.a-meta {
  display: flex; flex-wrap: wrap; gap: .5rem; align-items: center;
  font-family: var(--mono); font-size: .69rem; letter-spacing: .04em; color: var(--text-3);
  padding-bottom: 1.7rem; border-bottom: 1px solid var(--line);
}
.a-lead { font-size: 1.13rem !important; line-height: 1.65; color: var(--text) !important; margin: 1.9rem 0 0 !important; }

.article h2 {
  font-family: var(--display); font-weight: 700; font-size: 1.46rem; line-height: 1.2;
  letter-spacing: -.022em; color: var(--text); margin: 2.7rem 0 .95rem;
}
.article h3 {
  font-family: var(--display); font-weight: 700; font-size: 1.08rem; line-height: 1.3;
  letter-spacing: -.014em; color: var(--text); margin: 2rem 0 .6rem;
}
.article p { font-size: 1rem; line-height: 1.75; color: var(--text-2); margin: 0 0 1.1rem; }
.article strong { color: var(--text); font-weight: 600; }
.article a {
  color: var(--accent); text-decoration: underline;
  text-decoration-color: rgba(37,99,235,.34); text-underline-offset: 3px;
}
.article a:hover { text-decoration-color: var(--accent); }

.article ul, .article ol { list-style: none; margin: 0 0 1.3rem; padding: 0; }
.article li { position: relative; padding-left: 1.4rem; font-size: 1rem; line-height: 1.7; color: var(--text-2); margin-bottom: .55rem; }
.article li::before { content: ""; position: absolute; left: .25rem; top: .68em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.article ol { counter-reset: li; }
.article ol li::before { content: none; }
.article ol li { counter-increment: li; }
.article ol li::after {
  content: counter(li) "."; position: absolute; left: 0; top: 0;
  font-family: var(--mono); font-size: .8rem; color: var(--accent);
}

.article table { width: 100%; border-collapse: collapse; margin: 1.5rem 0 1.9rem; font-size: .92rem; }
.article th {
  text-align: left; font-family: var(--mono); font-size: .67rem; letter-spacing: .09em;
  text-transform: uppercase; color: var(--text-3); font-weight: 400;
  padding: .7rem .85rem; background: var(--line-soft); border-bottom: 1px solid var(--line);
}
.article td { padding: .78rem .85rem; border-bottom: 1px solid var(--line-soft); color: var(--text-2); vertical-align: top; line-height: 1.55; }
.article tr:hover td { background: var(--line-soft); }

.callout {
  background: var(--accent-bg); border-left: 3px solid var(--accent);
  border-radius: 0 var(--r) var(--r) 0; padding: 1.2rem 1.35rem; margin: 1.8rem 0;
}
.callout p { margin: 0; font-size: .96rem; line-height: 1.65; color: var(--text); }

.a-cta { margin: 3.2rem 0 0; background: var(--ink); border-radius: var(--r); padding: 2.3rem 2rem; text-align: center; }
.a-cta h3 { font-family: var(--display); font-weight: 700; font-size: 1.32rem; letter-spacing: -.02em; color: #fff; margin: 0 0 .65rem; }
.a-cta p { color: var(--on-dark-2); font-size: .96rem; line-height: 1.6; margin: 0 auto 1.5rem; max-width: 46ch; }

/* ── related ──────────────────────────────────────────────── */
.related { max-width: 768px; margin: 0 auto; padding: 0 28px 4.5rem; }
.related h3 {
  font-family: var(--mono); font-weight: 400; font-size: .71rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-2);
  padding-bottom: .75rem; border-bottom: 1px solid var(--line); margin-bottom: 1.1rem;
}
.related-grid { display: grid; gap: .7rem; }
.related-grid a {
  font-size: .95rem; line-height: 1.45; color: var(--text);
  padding: .9rem 1.05rem; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--paper-2); transition: border-color .16s, color .16s;
}
.related-grid a:hover { border-color: var(--accent); color: var(--accent); }

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .article { padding: 2.4rem 20px 2rem; }
  .related { padding: 0 20px 3rem; }
  .blog-hero { padding: 2.6rem 0 0; }
  .a-cta { padding: 1.8rem 1.3rem; }
}
