/* ============================================================
   Apply Quantum — blog.css
   Styles used only by the blog (blog/index.html and articles).
   Shared tokens, nav, footer and buttons live in base.css,
   which must be loaded before this file.
   ============================================================ */

/* ============================================================
   BLOG INDEX
   ============================================================ */
.blog-hero {
  padding: 200px 10vw 80px;
  position: relative;
  overflow: hidden;
}
.blog-hero-glow {
  position: absolute;
  top: -220px; left: -120px;
  width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(123,47,255,0.16), transparent 68%);
  pointer-events: none;
}
.blog-hero-inner { position: relative; z-index: 2; max-width: 820px; }
.blog-h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 5.5vw, 68px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
}
.blog-h1 .accent { color: var(--cyan); }
.blog-lead {
  font-size: 18px;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  max-width: 640px;
}

/* Post list */
.post-list {
  display: flex;
  flex-direction: column;
  /* The 1px gaps let the background show through as hairline separators. */
  gap: 1px;
  background: rgba(255,255,255,0.06);
  margin: 0 10vw 120px;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.post-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  padding: 44px 40px;
  background: var(--black);
  text-decoration: none;
  color: inherit;
  transition: background 0.25s ease;
  align-items: start;
}
.post-card:hover { background: var(--grey-2); }
.post-card:hover .post-card-title { color: var(--cyan); }
.post-card:hover .post-card-arrow { transform: translateX(6px); opacity: 1; }

.post-card-side { display: flex; flex-direction: column; gap: 12px; }
.post-card-date {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}
.post-card-readtime {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--grey-5);
}
.post-card-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
  transition: color 0.2s;
}
.post-card-excerpt {
  font-size: 16px;
  font-weight: 300;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  max-width: 620px;
  margin-bottom: 20px;
}
.post-card-footer { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.post-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.post-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 5px 11px;
  border-radius: 2px;
}
.post-tag.t-cyan { color: var(--cyan); border-color: rgba(0,245,255,0.28); }
.post-tag.t-purple { color: var(--purple); border-color: rgba(123,47,255,0.35); }
.post-tag.t-fuchsia { color: var(--fuchsia); border-color: rgba(255,0,200,0.28); }
.post-card-arrow {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--cyan);
  opacity: 0.5;
  transition: transform 0.25s ease, opacity 0.25s ease;
  margin-left: auto;
}

/* Empty state, shown when there are no posts yet */
.post-empty {
  padding: 80px 40px;
  text-align: center;
  background: var(--black);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}

/* ============================================================
   ARTICLE PAGE
   ============================================================ */
.article-wrap { padding: 0 10vw; }

.article-header {
  padding: 180px 0 56px;
  max-width: 780px;
}
.article-back {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 40px;
  transition: color 0.2s;
}
.article-back:hover { color: var(--cyan); }
.article-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.4vw, 56px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin-bottom: 28px;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 28px;
}
.article-meta .sep { color: var(--grey-4); }
.article-standfirst {
  font-size: 20px;
  font-weight: 300;
  line-height: 1.65;
  color: rgba(255,255,255,0.72);
  border-left: 2px solid var(--cyan);
  padding-left: 24px;
}

.article-figure { margin: 0 0 64px; }
.article-figure img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid rgba(255,255,255,0.08);
}
.article-figure figcaption {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--grey-5);
  margin-top: 12px;
}

/* Prose */
.article-body {
  max-width: 720px;
  padding-bottom: 40px;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(255,255,255,0.72);
}
.article-body > * + * { margin-top: 28px; }
.article-body h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--white);
  margin-top: 64px;
  margin-bottom: -4px;
}
.article-body h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--white);
  margin-top: 44px;
  margin-bottom: -8px;
}
.article-body strong { color: var(--white); font-weight: 500; }
.article-body em { font-style: italic; color: rgba(255,255,255,0.85); }
.article-body a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(0,245,255,0.3);
  transition: border-color 0.2s, color 0.2s;
}
.article-body a:hover { border-bottom-color: var(--cyan); color: var(--white); }
.article-body ul, .article-body ol { padding-left: 24px; }
.article-body li { margin-bottom: 12px; }
.article-body li::marker { color: var(--cyan); }
.article-body blockquote {
  border-left: 2px solid var(--purple);
  padding: 4px 0 4px 28px;
  font-size: 22px;
  font-weight: 300;
  line-height: 1.55;
  color: var(--white);
  margin-top: 48px;
  margin-bottom: 48px;
}
.article-body code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--grey-3);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 2px 7px;
  border-radius: 2px;
  color: var(--cyan);
}
.article-body pre {
  background: var(--grey-2);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 2px;
  padding: 24px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255,255,255,0.8);
}
.article-body pre code {
  background: none; border: none; padding: 0; color: inherit; font-size: inherit;
}
.article-body hr {
  border: none;
  height: 1px;
  background: linear-gradient(to right, rgba(255,255,255,0.14), transparent);
  margin: 56px 0;
}
/* Pull-out box for key takeaways */
.article-body .callout {
  background: var(--grey-1);
  border: 1px solid rgba(255,255,255,0.08);
  border-left: 2px solid var(--cyan);
  padding: 28px 32px;
  font-size: 16px;
  line-height: 1.75;
  margin-top: 48px;
  margin-bottom: 48px;
}
.article-body .callout-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}

/* Article footer: share + next steps */
.article-end {
  max-width: 720px;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 40px 0 100px;
}
.article-share {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.article-share-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.share-link {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--white);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.16);
  padding: 9px 18px;
  border-radius: 2px;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.share-link:hover { border-color: var(--cyan); color: var(--cyan); background: rgba(0,245,255,0.05); }

.article-cta {
  background: var(--grey-1);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 40px;
}
.article-cta-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 12px;
}
.article-cta-text {
  font-size: 15px;
  font-weight: 300;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  margin-bottom: 28px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .blog-hero { padding: 140px 24px 56px; }
  .post-list { margin: 0 0 80px; }
  .post-card { grid-template-columns: 1fr; gap: 16px; padding: 36px 24px; }
  .post-card-side { flex-direction: row; align-items: baseline; gap: 14px; }
  .article-wrap { padding: 0 24px; }
  .article-header { padding: 130px 0 44px; }
  .article-body { font-size: 17px; }
  .article-cta { padding: 32px 24px; }
}
