/* ═══════════════════════════════════════════════════════════
   BLOG — blog.css
   ═══════════════════════════════════════════════════════════ */

/* ── Hero ─────────────────────────────────────────────────── */
.blog-hero {
  background: var(--bg-dark);
  padding: clamp(80px, 12vw, 140px) 48px clamp(60px, 8vw, 100px);
  text-align: center;
}

.blog-hero-eyebrow {
  display: inline-block;
  font-family: var(--fh);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--key);
  margin-bottom: 20px;
}

.blog-hero h1 {
  font-family: var(--fh);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin: 0 0 20px;
}

.blog-hero-sub {
  font-family: var(--fb);
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-lite);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── Post Grid ────────────────────────────────────────────── */
.blog-posts {
  background: var(--bg-light);
  padding: clamp(60px, 8vw, 100px) 48px clamp(80px, 10vw, 120px);
}

.blog-posts-inner {
  max-width: var(--max, 1140px);
  margin: 0 auto;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  margin-top: 0;
}

.post-card {
  background: #fff;
  border: 1px solid var(--border-l);
  border-radius: 12px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.post-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  transform: translateY(-2px);
}

.post-card-tag {
  font-family: var(--fh);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--key-d);
}

.post-card h2 {
  font-family: var(--fh);
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.25;
  margin: 0;
}

.post-card h2 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s;
}

.post-card h2 a:hover {
  color: var(--key-d);
}

.post-card-excerpt {
  font-family: var(--fb);
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.6;
  flex: 1;
  margin: 0;
}

.post-card-meta {
  font-family: var(--fb);
  font-size: 0.8rem;
  color: #999;
  margin-top: 4px;
}

.post-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--fh);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dark);
  text-decoration: none;
  margin-top: 4px;
  transition: color 0.15s;
}

.post-card-link:hover {
  color: var(--key-d);
}

.post-card-link svg {
  transition: transform 0.15s;
}

.post-card-link:hover svg {
  transform: translateX(3px);
}

/* ── Article page ─────────────────────────────────────────── */
.post-hero {
  background: var(--bg-dark);
  padding: clamp(80px, 12vw, 140px) 48px clamp(48px, 6vw, 72px);
}

.post-hero-inner {
  max-width: 760px;
  margin: 0 auto;
}

.post-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--fh);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  margin-bottom: 32px;
  transition: color 0.15s;
}

.post-back:hover {
  color: var(--key);
}

.post-tag {
  font-family: var(--fh);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--key);
  margin-bottom: 16px;
}

.post-hero h1 {
  font-family: var(--fh);
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin: 0 0 20px;
}

.post-hero h1 em {
  color: var(--key);
  font-style: normal;
}

.post-hero-meta {
  font-family: var(--fb);
  font-size: 0.875rem;
  color: rgba(255,255,255,0.4);
}

/* ── Article body ─────────────────────────────────────────── */
.post-body {
  background: var(--bg-light);
  padding: clamp(48px, 7vw, 80px) 48px clamp(80px, 10vw, 120px);
}

.post-article {
  max-width: 760px;
  margin: 0 auto;
  font-family: var(--fb);
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  color: var(--text-dark);
  line-height: 1.75;
}

.post-article p {
  margin: 0 0 1.4em;
}

.u-accent {
  background: rgba(215, 255, 17, 0.22);
  border-radius: 3px;
  padding: 0 2px;
}

.post-article h2 {
  font-family: var(--fh);
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
  margin: 2em 0 0.6em;
}

.post-article h3 {
  font-family: var(--fh);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.25;
  margin: 1.6em 0 0.4em;
}

.post-article strong {
  font-weight: 700;
  color: var(--text-dark);
}

.post-article em {
  font-style: italic;
}

.post-article ul,
.post-article ol {
  padding-left: 1.4em;
  margin: 0 0 1.4em;
}

.post-article li {
  margin-bottom: 0.5em;
}

.post-article blockquote {
  margin: 2em 0;
  padding: 20px 24px;
  border-left: 3px solid var(--key);
  background: var(--bg-light2);
  border-radius: 0 8px 8px 0;
  font-size: 1.05em;
  color: var(--text-mid);
}

.post-article blockquote p:last-child {
  margin: 0;
}

/* ── Figure / image ───────────────────────────────────────── */
.post-figure {
  margin: 2em 0;
}

.post-figure-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

/* ── Table ────────────────────────────────────────────────── */
.post-table-wrap {
  overflow-x: auto;
  margin: 1.6em 0 1.4em;
  border-radius: 8px;
  border: 1px solid var(--border-l);
}

.post-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--fb);
  font-size: 0.9rem;
}

.post-table th {
  background: var(--bg-light2);
  font-family: var(--fh);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-mid);
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-l);
}

.post-table td {
  padding: 12px 16px;
  color: var(--text-dark);
  border-bottom: 1px solid var(--border-l);
  vertical-align: top;
}

.post-table tr:last-child td {
  border-bottom: none;
}

.post-table tr:nth-child(even) td {
  background: var(--bg-light2);
}

/* ── Post CTA ─────────────────────────────────────────────── */
.post-cta {
  background: var(--bg-dark);
  padding: clamp(60px, 8vw, 96px) 48px;
  text-align: center;
}

.post-cta h2 {
  font-family: var(--fh);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin: 0 0 16px;
}

.post-cta h2 em {
  color: var(--key);
  font-style: normal;
}

.post-cta p {
  font-family: var(--fb);
  font-size: 1rem;
  color: var(--text-lite);
  max-width: 480px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.post-cta-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 640px) {
  .blog-hero,
  .blog-posts,
  .post-hero,
  .post-body,
  .post-cta {
    padding-left: 24px;
    padding-right: 24px;
  }

  .post-grid {
    grid-template-columns: 1fr;
  }
}
