/* pages.css — shared styles for Blog and other sub-pages */

/* ===== Shared page hero ===== */
.page-hero {
  padding: 180px 24px 80px;
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 40% at 50% 30%, rgba(78,60,217,0.18), transparent 70%);
  pointer-events: none; z-index: -1;
}
.page-hero .eyebrow {
  display: inline-block; margin-bottom: 20px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,0.02);
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.04; letter-spacing: -0.03em;
  margin: 0 0 24px; color: var(--ink-10); font-weight: 600;
}
.page-hero .lead {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--fg-dim); max-width: 620px;
  margin: 0 auto; line-height: 1.65;
}

/* ===== CTA strip ===== */
.cta-strip { padding-bottom: 0; }
.cta-card {
  background: var(--ink-3);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px 48px;
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
  box-shadow: var(--shadow-md), var(--inset-top);
  position: relative; overflow: hidden;
}
.cta-card::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 40% 80% at 85% 50%, rgba(242,106,46,0.15), transparent 60%),
    radial-gradient(ellipse 50% 100% at 10% 50%, rgba(61,180,242,0.12), transparent 60%);
  pointer-events: none;
}
.cta-card > * { position: relative; z-index: 1; }
.cta-card h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  margin: 6px 0 4px; color: var(--ink-10);
  letter-spacing: -0.02em; font-weight: 600;
}
.cta-card p { color: var(--fg-dim); margin: 0; font-size: 14.5px; }

/* ===== Blog ===== */
.tag-row {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin: 0 auto 32px;
  padding: 6px;
  background: var(--ink-3);
  border: 1px solid var(--border);
  border-radius: 999px;
  width: fit-content;
  box-shadow: var(--inset-top);
}
.tag-btn {
  background: none; border: none;
  padding: 8px 16px; border-radius: 999px;
  font-family: var(--font-sans); font-size: 13px;
  color: var(--fg-dim); cursor: pointer; font-weight: 500;
  transition: all 180ms;
}
.tag-btn:hover { color: var(--ink-10); }
.tag-btn.active { background: var(--ink-1); color: var(--ink-10); box-shadow: inset 0 0 0 1px var(--border-strong); }

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}
.post-featured { margin-bottom: 24px; }
.post-featured .post-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 320px;
}
@media (max-width: 820px) { .post-featured .post-card { grid-template-columns: 1fr; } }
.post-featured .post-thumb { aspect-ratio: auto; }
.post-featured .post-body { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.post-featured .post-body h3 { font-size: 26px; }

.post-card {
  background: var(--ink-3);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none; color: inherit;
  display: block;
  transition: all 300ms var(--ease-out);
  box-shadow: var(--shadow-sm), var(--inset-top);
}
.post-card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow-md), var(--inset-top); }

.post-thumb { aspect-ratio: 16/10; position: relative; overflow: hidden; }
.post-thumb-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 40% 60% at 20% 30%, rgba(61,180,242,0.4), transparent 60%),
    radial-gradient(ellipse 50% 60% at 70% 40%, rgba(78,60,217,0.5), transparent 60%),
    radial-gradient(ellipse 40% 60% at 80% 80%, rgba(242,106,46,0.35), transparent 60%),
    var(--ink-2);
}
.post-card:nth-child(2n) .post-thumb-bg { background:
  radial-gradient(ellipse 50% 60% at 30% 70%, rgba(242,106,46,0.4), transparent 60%),
  radial-gradient(ellipse 40% 50% at 70% 30%, rgba(78,60,217,0.5), transparent 60%),
  var(--ink-2);
}
.post-card:nth-child(3n) .post-thumb-bg { background:
  radial-gradient(ellipse 50% 60% at 60% 50%, rgba(61,180,242,0.4), transparent 60%),
  radial-gradient(ellipse 40% 50% at 20% 80%, rgba(184,59,168,0.3), transparent 60%),
  var(--ink-2);
}

.post-tag {
  position: absolute; top: 16px; left: 16px;
  font-family: var(--font-mono); font-size: 10.5px;
  text-transform: uppercase; letter-spacing: 0.12em;
  padding: 5px 10px; border-radius: 999px;
  background: rgba(11,13,26,0.7);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border); color: var(--ink-10);
}

.post-body { padding: 22px 24px 26px; }
.post-body h3 {
  font-family: var(--font-display); font-size: 19px; font-weight: 600;
  margin: 0 0 8px; color: var(--ink-10);
  letter-spacing: -0.01em; line-height: 1.25;
}
.post-body p { font-size: 13.5px; color: var(--fg-dim); line-height: 1.6; margin: 0 0 16px; }
.post-meta {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--fg-meta); letter-spacing: 0.04em;
  display: flex; gap: 8px; flex-wrap: wrap;
}

/* Inline subscribe form */
.inline-form { display: flex; gap: 8px; align-items: center; }
.inline-form input {
  font-family: var(--font-sans); font-size: 14px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 999px; color: var(--ink-10);
  min-width: 220px;
}
.inline-form input:focus { outline: none; border-color: var(--brand-indigo); box-shadow: 0 0 0 4px rgba(78,60,217,0.15); }
.inline-form input::placeholder { color: var(--ink-6); }

@media (max-width: 600px) {
  .inline-form { flex-direction: column; align-items: stretch; }
  .inline-form input { min-width: 0; width: 100%; }
  .cta-card { padding: 32px 24px; }
}
