/* ── Red City Ink — Blog shared styles ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

:root {
  --bg:     #080808;
  --bg2:    #111111;
  --bg3:    #0d0d0d;
  --red:    #c0392b;
  --red-hi: #e74c3c;
  --gold:   #c8a96e;
  --text:   #f0f0f0;
  --muted:  #666666;
  --border: rgba(255,255,255,0.07);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Barlow', system-ui, sans-serif;
  overflow-x: hidden;
  line-height: 1.7;
}

/* ── NAV ── */
nav {
  position: sticky; top: 0;
  background: rgba(8,8,8,0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2.5rem;
}
.nav-logo {
  display: flex; align-items: center; gap: 0.65rem;
  text-decoration: none; color: var(--text);
}
.nav-wordmark {
  font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
}
.nav-wordmark em { font-style: normal; color: var(--red-hi); }
.nav-back {
  font-size: 0.76rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted);
  text-decoration: none; display: flex; align-items: center; gap: 0.5rem;
  transition: color 0.2s;
}
.nav-back:hover { color: var(--text); }
.nav-back svg { transition: transform 0.2s; }
.nav-back:hover svg { transform: translateX(-3px); }

/* ── ARTICLE ── */
.article-hero {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 6rem 2rem 4rem;
  text-align: center;
}
.article-cat {
  font-size: 0.62rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--red-hi);
  font-weight: 700; display: block; margin-bottom: 1.25rem;
}
.article-title {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 500; line-height: 1.12;
  color: var(--text); max-width: 22ch;
  margin: 0 auto; text-wrap: balance;
}
.article-meta {
  display: flex; align-items: center; justify-content: center;
  gap: 1.5rem; margin-top: 2rem;
  font-size: 0.72rem; color: var(--muted);
  letter-spacing: 0.06em;
}
.article-meta span { display: flex; align-items: center; gap: 0.4rem; }

/* ── BODY ── */
.article-body {
  max-width: 720px;
  margin: 5rem auto;
  padding: 0 2rem 6rem;
}
.article-body h2 {
  font-family: 'EB Garamond', serif;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 500; line-height: 1.2;
  color: var(--text); margin: 3rem 0 1.1rem;
  text-wrap: balance;
}
.article-body h3 {
  font-size: 1.05rem; font-weight: 600;
  color: var(--text); margin: 2.2rem 0 0.75rem;
  letter-spacing: 0.01em;
}
.article-body p {
  font-size: 1.02rem; color: rgba(255,255,255,0.72);
  line-height: 1.82; font-weight: 300;
  margin-bottom: 1.4rem; text-wrap: pretty;
}
.article-body ul, .article-body ol {
  margin: 1rem 0 1.5rem 1.5rem;
}
.article-body li {
  font-size: 1rem; color: rgba(255,255,255,0.68);
  line-height: 1.75; font-weight: 300; margin-bottom: 0.5rem;
}
.article-body strong { color: var(--text); font-weight: 600; }
.article-body a { color: var(--red-hi); text-decoration: none; }
.article-body a:hover { text-decoration: underline; }
.article-body blockquote {
  border-left: 2px solid var(--red);
  margin: 2rem 0; padding: 0.5rem 0 0.5rem 1.75rem;
  font-style: italic; color: var(--muted);
  font-family: 'EB Garamond', serif;
  font-size: 1.15rem; line-height: 1.65;
}
.article-divider {
  border: none; border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

/* ── CTA BOX ── */
.article-cta {
  background: var(--bg2);
  border: 1px solid rgba(192,57,43,0.3);
  border-radius: 3px; padding: 2.5rem;
  text-align: center; margin-top: 3.5rem;
  position: relative; overflow: hidden;
}
.article-cta::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--red), transparent);
}
.article-cta h3 {
  font-family: 'EB Garamond', serif;
  font-size: 1.6rem; font-weight: 500; margin-bottom: 0.75rem;
}
.article-cta p { font-size: 0.93rem; color: var(--muted); margin-bottom: 1.75rem; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  text-decoration: none; font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.85rem 1.75rem; border-radius: 2px; transition: all 0.22s ease;
}
.btn-red   { background: var(--red); color: #fff; border: 1px solid var(--red); }
.btn-red:hover { background: var(--red-hi); border-color: var(--red-hi); }

/* ── FOOTER ── */
footer {
  background: #050505; border-top: 1px solid var(--border);
  padding: 2.5rem 2.5rem; text-align: center;
}
footer p { font-size: 0.7rem; color: var(--muted); }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--red-hi); }

/* ── BLOG INDEX ── */
.blog-index-hero {
  padding: 6rem 2rem 4rem;
  border-bottom: 1px solid var(--border);
}
.blog-index-inner { max-width: 1100px; margin: 0 auto; }
.blog-index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  padding: 4rem 2rem 6rem;
  max-width: 1100px; margin: 0 auto;
}
.blog-index-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 3px; padding: 2.25rem;
  display: flex; flex-direction: column; gap: 0.9rem;
  text-decoration: none; position: relative; overflow: hidden;
  transition: border-color 0.25s;
}
.blog-index-card:hover { border-color: rgba(192,57,43,0.45); }
.blog-index-card::after {
  content: ''; position: absolute;
  bottom: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--red), transparent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s ease;
}
.blog-index-card:hover::after { transform: scaleX(1); }

.blog-loading {
  grid-column: 1/-1; padding: 4rem 2rem; text-align: center;
  color: var(--muted); font-size: 0.88rem; font-style: italic;
}

/* Cover images */
.blog-card-cover {
  width: calc(100% + 4.5rem); /* bleed past card padding */
  margin: -2.25rem -2.25rem 0;
  aspect-ratio: 16/9; object-fit: cover; display: block;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}

.post-cover-img {
  width: 100%; max-height: 480px; object-fit: cover; display: block;
  border-bottom: 1px solid var(--border);
}

@media (max-width: 700px) {
  nav { padding: 1rem 1.25rem; }
  .article-body { padding: 0 1.25rem 4rem; }
}
