/* Blog styles — layered on top of the landing styles.css (tokens, nav, footer,
   buttons, eyebrow, reveal all come from there). Only blog-specific components
   live here so the blog stays visually identical to the rest of the site. */

/* --- Blog hero --- */
.blog-hero { padding: calc(var(--nav-h) + 72px) 0 40px; }
.blog-hero .h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.05; letter-spacing: -0.02em; color: var(--ink); margin: 0 0 16px; }
.blog-hero .lead { font-size: 18px; line-height: 1.6; color: var(--body); max-width: 620px; }

/* --- Category filter --- */
.blog-filter { display: flex; flex-wrap: wrap; gap: 10px; margin: 32px 0 8px; }
.blog-filter button {
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 16px; cursor: pointer; transition: all .15s var(--ease);
}
.blog-filter button:hover { color: var(--ink); border-color: var(--field); }
.blog-filter button.is-active { color: #fff; background: var(--ink); border-color: var(--ink); }

/* --- Post grid --- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 28px; }
@media (max-width: 920px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .post-grid { grid-template-columns: 1fr; } }

.post-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden; text-decoration: none;
  box-shadow: 0 1px 2px rgba(18,27,74,.04);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.post-card:hover { transform: translateY(-3px); border-color: var(--field); box-shadow: 0 1px 2px rgba(18,27,74,.04), 0 24px 48px -28px rgba(18,27,74,.28); }

/* Image slot: shows a branded gradient placeholder until a real photo is dropped in. */
.post-thumb { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--night) 0%, var(--blue) 120%); overflow: hidden; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-thumb .ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.55); }

.cat-tag {
  display: inline-block; font-family: var(--mono); font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 10px;
}
.cat-tag[data-cat="security"] { color: var(--accent); }
.cat-tag[data-cat="questions"] { color: var(--green); }

.post-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.post-body h3 { font-size: 19px; line-height: 1.3; color: var(--ink); margin: 0 0 8px; letter-spacing: -0.01em; }
.post-body p { font-size: 14.5px; line-height: 1.6; color: var(--body); margin: 0 0 16px; }
.post-meta { margin-top: auto; display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.post-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--subtle); }

/* --- Single post / article --- */
.article-wrap { padding: calc(var(--nav-h) + 56px) 0 24px; }
.article-head { max-width: 760px; margin: 0 auto; }
.article-head .back { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); text-decoration: none; margin-bottom: 24px; }
.article-head .back:hover { color: var(--ink); }
.article-head h1 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.08; letter-spacing: -0.02em; color: var(--ink); margin: 12px 0 16px; }
.article-head .lead { font-size: 19px; line-height: 1.6; color: var(--body); }
.article-head .post-meta { margin: 20px 0 0; }

.article-hero { max-width: 960px; margin: 36px auto 0; aspect-ratio: 16 / 7; border-radius: 16px; overflow: hidden; background: linear-gradient(135deg, var(--night) 0%, var(--blue) 120%); position: relative; }
.article-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-hero .ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.55); }

.article-body { max-width: 720px; margin: 44px auto 0; }
.article-body h2 { font-size: 26px; line-height: 1.2; letter-spacing: -0.01em; color: var(--ink); margin: 40px 0 14px; }
.article-body h3 { font-size: 19px; color: var(--ink); margin: 28px 0 10px; }
.article-body p { font-size: 17px; line-height: 1.75; color: var(--body); margin: 0 0 18px; }
.article-body ul, .article-body ol { margin: 0 0 18px; padding-left: 22px; }
.article-body li { font-size: 17px; line-height: 1.7; color: var(--body); margin-bottom: 8px; }
.article-body strong { color: var(--ink); font-weight: 600; }
.article-body a { color: var(--blue); }
.article-body blockquote { margin: 24px 0; padding: 16px 22px; border-left: 3px solid var(--blue); background: var(--alt); border-radius: 0 10px 10px 0; color: var(--ink); font-size: 17px; line-height: 1.6; }
.article-body .callout { margin: 28px 0; padding: 20px 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--alt); }
.article-body .callout h4 { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin: 0 0 8px; }
.article-body .callout p { margin: 0; font-size: 15.5px; }

/* CTA at the end of each article */
.article-cta { max-width: 720px; margin: 48px auto 0; padding: 32px; border-radius: 16px; background: var(--night); color: #fff; text-align: center; }
.article-cta h3 { font-size: 22px; margin: 0 0 8px; color: #fff; }
.article-cta p { color: var(--subtle); margin: 0 0 20px; font-size: 15px; }
