/* ── Blog public styles ─────────────────────────────────────────────────────── */

.blog-hero {
  background: #0a0a0a;
  padding: 80px 24px 48px;
  text-align: center;
  border-bottom: 1px solid #1e1e1e;
}
.blog-hero__tag {
  font-family: var(--font-head);
  font-size: .75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.blog-hero__title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 12px;
}
.blog-hero__sub {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto;
}

/* ── Overview grid ───────────────────────────────────────────────────────── */
.blog-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.blog-card {
  background: #111;
  border: 1px solid #1e1e1e;
  border-radius: 4px;
  overflow: hidden;
  transition: border-color .2s, transform .2s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.blog-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
}
.blog-card__img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  background: #1a1a1a;
}
.blog-card__img-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #333;
}
.blog-card__body {
  padding: 22px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-card__date {
  font-size: .78rem;
  color: var(--gold);
  font-family: var(--font-head);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.blog-card__title {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 10px;
  line-height: 1.3;
}
.blog-card__intro {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.6;
  flex: 1;
}
.blog-card__read {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--font-head);
  font-size: .8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
}

.blog-empty {
  text-align: center;
  padding: 80px 24px;
  color: var(--muted);
  font-size: 1rem;
}

/* ── Single post ─────────────────────────────────────────────────────────── */
.blog-post {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.blog-post__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold);
  text-decoration: none;
  font-family: var(--font-head);
  font-size: .82rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 36px;
  transition: opacity .15s;
}
.blog-post__back:hover { opacity: .75; }

.blog-post__cover {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #1e1e1e;
  display: block;
  margin-bottom: 36px;
}

.blog-post__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}
.blog-post__date {
  font-family: var(--font-head);
  font-size: .8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
}

.blog-post__title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 16px;
  line-height: 1.2;
}

.blog-post__intro {
  font-size: 1.1rem;
  color: #bbb;
  line-height: 1.7;
  border-left: 3px solid var(--gold);
  padding-left: 18px;
  margin-bottom: 36px;
}

.blog-post__divider {
  border: none;
  border-top: 1px solid #1e1e1e;
  margin: 32px 0;
}

/* Markdown rendered body */
.blog-post__body {
  color: #ccc;
  font-size: 1rem;
  line-height: 1.85;
}
.blog-post__body h2 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  margin: 40px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid #1e1e1e;
}
.blog-post__body h3 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  margin: 32px 0 10px;
}
.blog-post__body p { margin: 0 0 18px; }
.blog-post__body ul, .blog-post__body ol {
  margin: 0 0 18px 24px;
  padding: 0;
}
.blog-post__body li { margin-bottom: 6px; }
.blog-post__body strong { color: var(--text); }
.blog-post__body em { color: #aaa; }
.blog-post__body blockquote {
  border-left: 3px solid var(--gold);
  margin: 24px 0;
  padding: 12px 20px;
  background: #111;
  border-radius: 0 3px 3px 0;
  color: #bbb;
  font-style: italic;
}
.blog-post__body a { color: var(--gold); text-decoration: underline; }
.blog-post__body code {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: .9em;
  font-family: 'Courier New', monospace;
}
.blog-post__body pre {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 4px;
  padding: 16px;
  overflow-x: auto;
  margin: 0 0 18px;
}
.blog-post__body pre code {
  background: none;
  border: none;
  padding: 0;
}
.blog-post__body img {
  max-width: 100%;
  border-radius: 4px;
  border: 1px solid #1e1e1e;
  margin: 8px 0;
}

/* Loading / error */
.blog-loading {
  text-align: center;
  padding: 80px 24px;
  color: var(--muted);
}
.blog-loading__spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #2a2a2a;
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  margin: 0 auto 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.blog-404 {
  text-align: center;
  padding: 80px 24px;
}
.blog-404__icon { font-size: 3rem; margin-bottom: 16px; }
.blog-404__title {
  font-family: var(--font-head);
  font-size: 1.8rem;
  color: var(--text);
  margin-bottom: 12px;
}
.blog-404__sub { color: var(--muted); margin-bottom: 28px; }

/* CTA block at bottom of post */
.blog-cta {
  background: #111;
  border: 1px solid #2a2a2a;
  border-left: 3px solid var(--gold);
  border-radius: 4px;
  padding: 28px 28px;
  margin-top: 48px;
  text-align: center;
}
.blog-cta__title {
  font-family: var(--font-head);
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 8px;
}
.blog-cta__sub { color: var(--muted); font-size: .9rem; margin-bottom: 20px; }
