/* ============================================================
   Effective Arts — blog styles (v2 dark theme)
   Loads after v2.css; styles article + blog-index components.
============================================================ */

/* ---------- article hero ---------- */
.article-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-h) + 80px) 0 70px;
}
.article-hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.article-hero-bg .orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.3; }
.article-hero-bg .orb-1 { width: 500px; height: 500px; background: var(--purple); top: -30%; right: -10%; }
.article-hero-bg .orb-2 { width: 400px; height: 400px; background: var(--teal); bottom: -20%; left: -5%; }
.article-hero-grid {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 10%, black 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 90% 80% at 50% 10%, black 30%, transparent 75%);
}
.article-hero-content {
  position: relative; z-index: 2;
  max-width: 820px; margin: 0 auto; text-align: center;
  padding: 0 24px;
}
.article-hero-tag {
  display: inline-block;
  font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--light-teal);
  background: rgba(211, 210, 251, 0.05);
  border: 1px solid var(--line);
  padding: 8px 18px; border-radius: 100px;
  margin-bottom: 24px;
}
.article-hero-content h1 {
  font-size: clamp(30px, 4.4vw, 48px);
  margin-bottom: 20px;
}
.article-hero-content .subhead {
  font-size: 17.5px;
  color: var(--text);
  max-width: 640px;
  margin: 0 auto 28px;
}
.article-meta {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  flex-wrap: wrap;
  color: var(--text-dim); font-size: 13.5px;
}
.article-meta-item { display: inline-flex; align-items: center; gap: 7px; }
.article-meta-item svg { width: 16px; height: 16px; color: var(--teal); }
.article-meta-divider { width: 4px; height: 4px; border-radius: 50%; background: var(--line); }

/* ---------- article body ---------- */
.article-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 40px;
  font-size: 17px;
  line-height: 1.85;
}
.article-body h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin: 52px 0 18px;
}
.article-body h3 { font-size: 21px; margin: 36px 0 14px; }
.article-body h4 { font-size: 17.5px; margin: 26px 0 10px; }
.article-body p { margin-bottom: 20px; }
.article-body ul, .article-body ol { margin: 0 0 22px 24px; }
.article-body li { margin-bottom: 10px; }
.article-body li::marker { color: var(--teal); }
.article-body a { border-bottom: 1px solid rgba(40, 205, 207, 0.4); }
.article-body a:hover { border-bottom-color: var(--teal); }
.article-body img { border-radius: 14px; border: 1px solid var(--line-soft); margin: 8px 0 24px; }
.article-body blockquote {
  border-left: 3px solid var(--purple);
  background: var(--card);
  border-radius: 0 12px 12px 0;
  padding: 20px 26px;
  margin: 0 0 22px;
  color: var(--light-lav);
  font-style: italic;
}
.article-body table {
  width: 100%; border-collapse: collapse; margin: 0 0 24px;
  font-size: 15px;
}
.article-body th, .article-body td {
  border: 1px solid var(--line-soft);
  padding: 12px 14px; text-align: left;
}
.article-body th { background: var(--card); color: var(--white); font-family: 'Space Grotesk', sans-serif; }

.article-callout {
  background: var(--card);
  border: 1px solid rgba(40, 205, 207, 0.3);
  border-radius: 14px;
  padding: 26px 30px;
  margin: 30px 0;
}
.article-callout h4 { margin: 0 0 10px; color: var(--light-teal); }
.article-callout p { margin: 0; font-size: 15.5px; }

.inline-cta {
  background:
    radial-gradient(100% 140% at 10% 0%, rgba(40, 205, 207, 0.14), transparent 55%),
    radial-gradient(100% 140% at 90% 100%, rgba(189, 83, 253, 0.16), transparent 55%),
    var(--navy);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px 34px;
  margin: 38px 0;
  text-align: center;
}
.inline-cta h3 { margin: 0 0 10px; font-size: 21px; }
.inline-cta p { margin: 0 auto 20px; max-width: 480px; font-size: 15px; }
.inline-cta a {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 15px;
  color: #0d0c22;
  background: linear-gradient(120deg, var(--teal), #62e0d9);
  padding: 13px 30px; border-radius: 100px;
  border-bottom: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.inline-cta a:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(40, 205, 207, 0.4); border-bottom: none; }

/* ---------- share ---------- */
.article-share {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px 60px;
  display: flex; align-items: center; gap: 12px;
}
.article-share-label { font-size: 13.5px; color: var(--text-dim); }
.article-share-btn {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--light-lav);
  transition: all 0.2s ease;
}
.article-share-btn svg { width: 17px; height: 17px; }
.article-share-btn:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-2px); }

/* ---------- related posts ---------- */
.related-posts {
  padding: 80px 0 100px;
  background: var(--bg-2);
  border-top: 1px solid var(--line-soft);
}
.related-posts-header { text-align: center; margin-bottom: 40px; padding: 0 24px; }
.related-posts-header h2 { font-size: clamp(26px, 3.2vw, 34px); }
.related-posts-header p { font-size: 15px; color: var(--text-dim); margin-top: 8px; }
.related-posts-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px;
  max-width: 1080px; margin: 0 auto; padding: 0 32px;
}
.related-post-card {
  background: var(--card);
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line-soft);
  display: flex; flex-direction: column;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.related-post-card:hover {
  transform: translateY(-5px);
  border-color: rgba(189, 83, 253, 0.45);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
}
.related-post-visual {
  height: 120px;
  display: grid; place-items: center;
}
.related-post-visual svg { width: 42px; height: 42px; color: rgba(255, 255, 255, 0.9); }
.related-post-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; }
.related-post-tag {
  font-size: 11.5px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--teal);
}
.related-post-body h3 { font-size: 16.5px; line-height: 1.4; }
.read-more {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13.5px; font-weight: 600; color: var(--teal);
  margin-top: auto;
}

/* ---------- blog index ---------- */
.h2-blog-hero {
  position: relative; overflow: hidden;
  padding: calc(var(--nav-h) + 90px) 0 80px;
  text-align: center;
}
.h2-blog-hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.h2-blog-hero-bg .orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.32; }
.h2-blog-hero-bg .orb-1 { width: 500px; height: 500px; background: var(--purple); top: -30%; right: -10%; }
.h2-blog-hero-bg .orb-2 { width: 400px; height: 400px; background: var(--teal); bottom: -20%; left: -5%; }
.h2-blog-hero-grid {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 10%, black 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 90% 80% at 50% 10%, black 30%, transparent 75%);
}
.h2-blog-hero-content { position: relative; z-index: 2; }
.h2-blog-hero-content h1 { font-size: clamp(34px, 5vw, 58px); margin-bottom: 18px; }
.h2-blog-hero-content p { font-size: 18px; max-width: 620px; margin: 0 auto; }

.h2-blog-section { padding: 70px 0 100px; }
.h2-blog-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
}
.h2-blog-card {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: 18px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.h2-blog-card:hover {
  transform: translateY(-6px);
  border-color: rgba(189, 83, 253, 0.45);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.45);
}
.h2-blog-card.featured { grid-column: span 2; }
.h2-blog-card-visual {
  height: 160px;
  display: grid; place-items: center;
  position: relative; overflow: hidden;
}
.h2-blog-card.featured .h2-blog-card-visual { height: 200px; }
.h2-blog-card-visual::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(120% 100% at 80% 0%, rgba(255, 255, 255, 0.14), transparent 55%);
}
.h2-blog-card-visual svg {
  width: 48px; height: 48px; color: rgba(255, 255, 255, 0.92);
  transition: transform 0.35s ease;
  position: relative; z-index: 1;
}
.h2-blog-card:hover .h2-blog-card-visual svg { transform: scale(1.12); }
.h2-blog-card-content { padding: 24px 26px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.h2-blog-card-meta {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; color: var(--text-dim);
}
.h2-blog-card-meta .tag {
  font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--teal);
}
.h2-blog-card-meta .date, .h2-blog-card-meta .read-time { color: var(--text-dim); }
.h2-blog-card h2 { font-size: 19px; line-height: 1.35; }
.h2-blog-card.featured h2 { font-size: 24px; }
.h2-blog-card p { font-size: 14.5px; color: var(--text-dim); }
.h2-blog-card-arrow {
  margin-top: auto;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px; font-weight: 600; color: var(--teal);
}

@media (max-width: 1024px) {
  .h2-blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .h2-blog-grid { grid-template-columns: 1fr; }
  .h2-blog-card.featured { grid-column: span 1; }
  .article-body { padding-top: 44px; font-size: 16px; }
}

/* constrain inline arrow icons in cards */
.h2-blog-card-arrow svg, .read-more svg {
  width: 16px; height: 16px;
  vertical-align: -3px;
  display: inline-block;
  margin-left: 4px;
}
