/* Launchcast Blog Styles */

/* Blog index */
.blog-index {
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 32px 120px;
}

@media (max-width: 768px) {
  .blog-index { padding: 40px 20px 80px; }
}

.blog-hero {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
}

.blog-hero .page-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--amber);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 500;
}

.blog-hero h1 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 20px;
}

.blog-hero p {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.6;
}

.blog-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 56px;
}

.cat-pill {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--glass);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.cat-pill:hover {
  background: var(--glass-strong);
  color: var(--text);
  border-color: rgba(255, 149, 0, 0.4);
}

.cat-pill.is-active {
  background: rgba(255, 149, 0, 0.12);
  color: var(--amber);
  border-color: rgba(255, 149, 0, 0.5);
}

/* Featured card */
.featured-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  background: var(--glass-strong);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 60px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.featured-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 149, 0, 0.3);
}

@media (max-width: 768px) {
  .featured-card { grid-template-columns: 1fr; gap: 0; }
}

.featured-thumb {
  position: relative;
  min-height: 360px;
  background-color: var(--ink-2);
  overflow: hidden;
}
.featured-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .featured-thumb { min-height: 240px; }
}

.featured-meta {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 768px) {
  .featured-meta { padding: 28px; }
}

.featured-cat {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--amber);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.featured-meta h2 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.featured-meta p {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 20px;
}

.featured-byline,
.blog-byline {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
}

/* Blog grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media (max-width: 1024px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .blog-grid { grid-template-columns: 1fr; gap: 20px; } }

.blog-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 149, 0, 0.3);
  background: var(--glass-strong);
}

.blog-thumb {
  aspect-ratio: 16 / 10;
  background-color: var(--ink-2);
  overflow: hidden;
}
.blog-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-meta {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-cat {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: var(--amber);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.blog-meta h3 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin-bottom: 12px;
  color: var(--text);
}

.blog-meta p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 16px;
  flex: 1;
}

/* Single post */
.post {
  max-width: 780px;
  margin: 0 auto;
  padding: 40px 24px 100px;
}

.breadcrumbs {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumbs a:hover { color: var(--amber); }

.post-header {
  margin-bottom: 40px;
}

.post-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--amber);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 18px;
  font-weight: 500;
}

.post-header h1 {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin-bottom: 20px;
}

.post-lede {
  font-size: 19px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 24px;
}

.post-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.post-meta .dot { opacity: 0.5; }

.post-hero {
  margin: 0 -24px 36px;
  border-radius: 0;
  overflow: hidden;
}

@media (min-width: 720px) {
  .post-hero { margin: 0 0 40px; border-radius: 18px; }
}

.post-hero img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.post-hero figcaption {
  padding: 12px 8px 0;
  font-size: 12px;
  color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
  text-align: center;
}

/* Share row */
.post-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 36px;
  font-size: 13px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.post-share-bottom {
  margin: 56px 0 32px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 38px;
  height: 38px;
  background: var(--glass);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  color: var(--text-muted);
  text-decoration: none;
  cursor: pointer;
  font-size: 12px;
  font-family: inherit;
  transition: all 0.2s ease;
}

.post-share-bottom .share-btn {
  width: auto;
  padding: 0 14px;
  height: 38px;
}

.share-btn:hover {
  background: rgba(255, 149, 0, 0.12);
  color: var(--amber);
  border-color: rgba(255, 149, 0, 0.4);
}

/* Body typography */
.post-body {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
}

.post-body p,
.post-body ul,
.post-body ol,
.post-body blockquote,
.post-body figure,
.post-body .post-kv {
  margin: 0 0 24px;
}

.post-body h2 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 48px 0 20px;
  color: var(--text);
}

.post-body h3 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 36px 0 16px;
  color: var(--text);
}

.post-body a {
  color: var(--amber);
  text-decoration: underline;
  text-decoration-color: rgba(255, 149, 0, 0.4);
  text-underline-offset: 3px;
}

.post-body a:hover {
  text-decoration-color: var(--amber);
}

.post-body ul,
.post-body ol {
  padding-left: 26px;
  color: var(--text-muted);
}

.post-body li {
  margin-bottom: 8px;
}

.post-body strong {
  color: var(--text);
  font-weight: 700;
}

.post-body blockquote {
  padding: 24px 28px;
  background: var(--glass);
  border-left: 3px solid var(--amber);
  border-radius: 0 14px 14px 0;
  font-size: 18px;
  color: var(--text);
  font-style: italic;
}

.post-body blockquote cite {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-size: 13px;
  color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.post-body .callout {
  padding: 24px 28px;
  background: linear-gradient(135deg, rgba(255, 149, 0, 0.08), rgba(235, 95, 21, 0.02));
  border: 1px solid rgba(255, 149, 0, 0.2);
  border-radius: 16px;
  margin: 32px 0;
}

.post-body .callout h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--amber);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 10px;
  font-weight: 600;
}

.post-body .callout p {
  margin: 0;
  color: var(--text);
  font-size: 16px;
}

.post-body .post-figure {
  margin: 32px 0;
  border-radius: 14px;
  overflow: hidden;
}

.post-body .post-figure img {
  width: 100%;
  height: auto;
  display: block;
}

.post-body .post-figure figcaption {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-dim);
  background: var(--glass);
  border-top: 1px solid var(--border);
}

.post-body .post-kv {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 10px 20px;
  padding: 24px 28px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 14px;
  font-size: 14.5px;
}

.post-body .post-kv dt {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.post-body .post-kv dd {
  color: var(--text);
}

@media (max-width: 640px) {
  .post-body .post-kv { grid-template-columns: 1fr; gap: 4px 0; }
  .post-body .post-kv dd { margin-bottom: 12px; }
}

/* FAQ */
.post-faq {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.post-faq h2 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.post-faq details {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}

.post-faq summary {
  font-weight: 600;
  font-size: 17px;
  color: var(--text);
  list-style: none;
  position: relative;
  padding-right: 28px;
}

.post-faq summary::-webkit-details-marker { display: none; }

.post-faq summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  font-size: 22px;
  font-weight: 300;
  color: var(--amber);
  transition: transform 0.2s ease;
}

.post-faq details[open] summary::after {
  transform: rotate(45deg);
}

.post-faq p {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.65;
}

/* CTA card */
.cta-card {
  margin-top: 64px;
  padding: 40px;
  background: linear-gradient(135deg, rgba(255, 149, 0, 0.1), rgba(235, 95, 21, 0.04));
  border: 1px solid rgba(255, 149, 0, 0.25);
  border-radius: 20px;
  text-align: center;
}

.cta-card h2 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.cta-card p {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 16px;
}

.cta-btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--amber);
  color: var(--ink-0);
  font-weight: 700;
  border-radius: 12px;
  text-decoration: none;
  font-size: 15px;
}

.cta-btn.is-disabled {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-dim);
  cursor: not-allowed;
  filter: grayscale(0.6);
}

/* Related */
.related {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.related h2 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (max-width: 768px) { .related-grid { grid-template-columns: 1fr; } }

.related-card {
  display: flex;
  flex-direction: column;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.related-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 149, 0, 0.3);
}

.related-thumb {
  aspect-ratio: 16 / 10;
  background-color: var(--ink-2);
  overflow: hidden;
}
.related-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-meta {
  padding: 16px 18px 20px;
}

.related-cat {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--amber);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.related-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text);
}
