/* ============================================================
   ENVIRTUAL3D — BLOG STYLES
   blog.css — Blog-specific components only
   All tokens from tokens.css
   ============================================================ */

/* ===== BLOG HERO ===== */
.blog-hero {
  background: var(--void);
  color: var(--void-text);
  text-align: center;
  padding: calc(var(--nav-h) + 4rem) var(--container-pad) 4rem;
  border-bottom: 1px solid var(--void-border);
}
.blog-hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-h2);
  font-weight: 700;
  color: var(--void-text);
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}
.blog-hero p {
  font-family: var(--font-body);
  font-size: var(--text-body-lg);
  color: var(--void-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ===== BLOG GRID SECTION ===== */
.blog-grid-section {
  background: var(--white);
  padding: var(--space-4xl) 0;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
@media (max-width: 900px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .blog-grid { grid-template-columns: 1fr; } }

/* ===== POST CARD ===== */
.post-card {
  background: var(--white);
  border: 1px solid var(--wire);
  border-radius: 2px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 200ms var(--ease-out-smooth),
              border-color 200ms,
              box-shadow 200ms;
  text-decoration: none;
  color: inherit;
}
.post-card:hover {
  transform: translateY(-4px);
  border-color: var(--steel);
  box-shadow: 0 8px 32px rgba(72,145,189,0.12);
}
.post-card__img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.post-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 400ms var(--ease-out-smooth);
}
.post-card:hover .post-card__img img { transform: scale(1.04); }
.post-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.post-category {
  display: inline-block;
  font-family: var(--font-data);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--steel-dim);
  color: var(--steel);
  padding: 0.25rem 0.625rem;
  border-radius: 2px;
  margin-bottom: 0.75rem;
}
.post-card__title {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 600;
  color: var(--graphite);
  line-height: 1.3;
  margin: 0 0 0.75rem;
}
.post-card__excerpt {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--dim);
  line-height: 1.6;
  margin: 0 0 1rem;
  flex: 1;
}
.post-card__meta {
  font-family: var(--font-data);
  font-size: var(--text-xs);
  color: var(--muted);
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}
.post-card__link {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--steel);
  text-decoration: none;
  transition: color 150ms;
}
.post-card__link:hover { color: var(--steel-2); }

/* ===== POST ARTICLE ===== */
.post-article {
  background: var(--white);
  padding-top: var(--nav-h);
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  font-family: var(--font-data);
  font-size: var(--text-xs);
  color: var(--muted);
  letter-spacing: 0.06em;
  padding: 1.5rem 0 0;
  margin-bottom: 2rem;
}
.breadcrumb a { color: var(--steel); text-decoration: none; }
.breadcrumb a:hover { color: var(--steel-2); }

/* ===== POST HEADER ===== */
.post-header { margin-bottom: 2.5rem; }
.post-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--graphite);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0.75rem 0 1rem;
  max-width: 800px;
}
.post-meta {
  font-family: var(--font-data);
  font-size: var(--text-xs);
  color: var(--muted);
  letter-spacing: 0.08em;
}

/* ===== POST HERO IMAGE ===== */
.post-hero-img {
  margin: 0 0 3rem;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.post-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== POST BODY ===== */
.post-body {
  max-width: 720px;
  margin: 0 auto 4rem;
  font-family: var(--font-body);
  font-size: var(--text-body-lg);
  color: var(--dim);
  line-height: 1.75;
}
.post-body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.875rem);
  font-weight: 700;
  color: var(--graphite);
  margin: 2.5rem 0 1rem;
  letter-spacing: -0.01em;
}
.post-body h3 {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 600;
  color: var(--graphite);
  margin: 2rem 0 0.75rem;
}
.post-body p { margin: 0 0 1.25rem; }
.post-body ul, .post-body ol { margin: 0 0 1.25rem 1.5rem; }
.post-body li { margin-bottom: 0.5rem; }
.post-body ul li::marker { color: var(--steel); }
.post-body a { color: var(--steel); text-decoration: underline; text-underline-offset: 3px; }
.post-body a:hover { color: var(--steel-2); }
.post-body strong { color: var(--graphite); font-weight: 600; }
.post-body hr { border: none; border-top: 1px solid var(--wire); margin: 2.5rem 0; }
.post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0 2rem;
  font-size: var(--text-sm);
  overflow-x: auto;
  display: block;
}
.post-body th {
  font-family: var(--font-data);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--graphite);
  background: var(--surface);
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 2px solid var(--wire);
  white-space: nowrap;
}
.post-body td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--wire);
  color: var(--dim);
  vertical-align: top;
}
.post-body tr:last-child td { border-bottom: none; }
.post-body tr:nth-child(even) td { background: var(--surface); }
.inline-cta {
  display: inline-block;
  font-weight: 600;
  color: var(--steel) !important;
  text-decoration: none !important;
  padding: 0.125rem 0;
  transition: color 150ms;
}
.inline-cta:hover { color: var(--steel-2) !important; }

/* ===== POST CTA ===== */
.post-cta {
  background: var(--void);
  color: var(--void-text);
  text-align: center;
  padding: 4rem var(--container-pad);
  margin: 0 0 4rem;
  border-radius: 2px;
}
.post-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--void-text);
  margin: 0 0 1rem;
}
.post-cta p {
  font-family: var(--font-body);
  font-size: var(--text-body-lg);
  color: var(--void-muted);
  margin: 0 auto 2rem;
  max-width: 480px;
}

/* ===== RELATED POSTS ===== */
.related-posts { padding: 0 0 4rem; }
.related-posts h2 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 700;
  color: var(--graphite);
  margin: 0 0 2rem;
}
.blog-grid--3 { grid-template-columns: repeat(3, 1fr); }
.nav-link--active { color: var(--steel) !important; }

@media (max-width: 768px) {
  .blog-grid--3 { grid-template-columns: 1fr; }
  .post-body { font-size: var(--text-body); }
  .post-cta { padding: 3rem var(--container-pad); }
}
@media print {
  .nav, .nav-drawer, .post-cta, .related-posts, footer { display: none; }
  .post-body { max-width: 100%; font-size: 11pt; }
}
