/* ==========================================================
   EasyGen blog — same tokens and components as the homepage.
   Loaded after styles.css, only on /blog pages.
   ========================================================== */

/* ============ page head ============ */
.page-head { padding: 40px 0 8px; }
.page-head h1 {
  margin: 14px 0 16px;
  font-size: clamp(2.1rem, 4.6vw, 3.35rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 800;
  max-width: 17em;
}
.page-head .lead {
  margin: 0;
  color: var(--dim);
  font-size: 18px;
  max-width: 44em;
}

/* ============ post cards (index) ============ */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  padding: 34px 0 8px;
}
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.post-card:hover { transform: translateY(-3px); border-color: var(--lime-line); }
.post-card .pc-media {
  display: block;
  background: #050506;
  border-bottom: 1px solid var(--line);
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.post-card .pc-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.post-card .pc-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  padding: 22px 24px 26px;
}
.post-card .tag {
  align-self: flex-start;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--lime);
  background: var(--lime-soft);
  border: 1px solid var(--lime-line);
  border-radius: 999px;
  padding: 4px 11px;
}
.post-card h2 { margin: 0; font-size: 19.5px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.28; }
.post-card h2 a { transition: color 0.15s; }
.post-card:hover h2 a { color: var(--lime-hi); }
.post-card p { margin: 0; flex: 1; color: var(--dim); font-size: 15px; }
.post-card .meta { color: var(--faint); font-size: 13px; }

.meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; color: var(--faint); font-size: 13.5px; }
.meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--faint); }

/* ============ article ============ */
.post-head { padding: 34px 0 0; }
.post-head .tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--lime);
  background: var(--lime-soft);
  border: 1px solid var(--lime-line);
  border-radius: 999px;
  padding: 4px 11px;
}
.post-head h1 {
  margin: 16px 0 14px;
  font-size: clamp(2rem, 4.2vw, 2.95rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 800;
}
.post-dek { margin: 0; color: var(--dim); font-size: 18.5px; max-width: 34em; }
.post-head .meta { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }

figure.shot-fig, .prose figure { margin: 0; }
.shot-fig { margin: 28px 0 34px; }
.shot-fig img {
  width: 100%;
  height: auto;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--panel);
}
.shot-fig figcaption { margin-top: 10px; color: var(--faint); font-size: 13.5px; }

/* table of contents */
.toc {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px 22px;
  margin: 0 0 34px;
}
.toc p {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text);
}
.toc ol { margin: 0; padding-left: 20px; color: var(--dim); font-size: 15px; }
.toc li { margin: 5px 0; }
.toc a { color: var(--dim); transition: color 0.15s; }
.toc a:hover { color: var(--lime); }

/* prose */
.prose { color: #c9cedb; font-size: 17px; line-height: 1.75; }
.prose > p:first-child { font-size: 18.5px; color: #dfe3ec; }
.prose h2 {
  margin: 46px 0 14px;
  color: var(--text);
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.18;
}
.prose h3 { margin: 30px 0 10px; color: var(--text); font-size: 1.1rem; font-weight: 700; letter-spacing: -0.015em; }
.prose p { margin: 0 0 18px; }
.prose a {
  color: var(--lime);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(52, 211, 153, 0.4);
  transition: text-decoration-color 0.15s;
}
.prose a:hover { text-decoration-color: var(--lime); }
.prose ul, .prose ol { margin: 0 0 20px; padding-left: 22px; }
.prose li { margin: 0 0 8px; }
.prose li::marker { color: var(--lime); }
.prose strong { color: var(--text); font-weight: 700; }
.prose code {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 0.88em;
}
.prose blockquote {
  margin: 26px 0;
  padding: 14px 20px;
  border-left: 2px solid var(--lime);
  background: var(--panel);
  border-radius: 0 var(--r) var(--r) 0;
  color: var(--dim);
  font-size: 16.5px;
}
.prose figure { margin: 30px 0 32px; }
.prose figure img { width: 100%; height: auto; border-radius: var(--r); border: 1px solid var(--line); }
.prose figure figcaption { margin-top: 9px; color: var(--faint); font-size: 13.5px; }
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 24px;
  font-size: 15.5px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.prose th, .prose td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.prose th { color: var(--text); font-size: 12.5px; letter-spacing: 0.07em; text-transform: uppercase; background: var(--panel-2); }
.prose td { color: var(--dim); }
.prose tr:last-child td { border-bottom: 0; }
.prose td:first-child { color: var(--text); font-weight: 600; }

/* in-article FAQ reuses the homepage <details> styling */
.post-faq { margin: 46px 0 0; }
.post-faq h2 { margin-bottom: 18px; }
.post-faq details { margin-bottom: 12px; }

/* call to action */
.post-cta {
  margin: 46px 0 0;
  padding: 32px 30px;
  text-align: center;
  border: 1px solid var(--lime-line);
  border-radius: var(--r-lg);
  background:
    linear-gradient(180deg, rgba(52, 211, 153, 0.09), rgba(52, 211, 153, 0.015) 70%),
    var(--panel);
}
.post-cta .eyebrow { margin-bottom: 14px; }
.post-cta h2 { margin: 0 0 10px; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; letter-spacing: -0.03em; }
.post-cta p { margin: 0 auto 22px; color: var(--dim); font-size: 16.5px; max-width: 34em; }
.post-cta .note { margin: 16px 0 0; color: var(--faint); font-size: 13px; }

/* related posts */
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 34px; }
.post-nav a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition: border-color 0.18s, transform 0.18s;
}
.post-nav a:hover { border-color: var(--lime-line); transform: translateY(-2px); }
.post-nav .dir { color: var(--faint); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.post-nav .ttl { color: var(--text); font-weight: 700; font-size: 16px; line-height: 1.35; }
.post-nav a:hover .ttl { color: var(--lime-hi); }

/* index spacing */
.blog-index { padding-bottom: 18px; }
.blog-cta { margin-top: 46px; }

/* ============ responsive ============ */
@media (max-width: 980px) {
  .post-grid { grid-template-columns: 1fr; }
  .post-nav { grid-template-columns: 1fr; }
  .page-head { padding-top: 28px; }
}
@media (max-width: 560px) {
  .prose { font-size: 16px; }
  .prose > p:first-child { font-size: 17px; }
  .post-dek { font-size: 17px; }
  .shot-fig { margin: 22px 0 28px; }
  .post-cta { padding: 26px 20px; }
}
