/* Inkvox subpages — blog + 404. Glaido-style agencement on Inkvox tokens.
   Loads AFTER css/v2.css (tokens, .nav, .footer, .container, .btn).
   .mono-label / .mono-sm were ported here from the retired v1 main.css. */

.mono-label {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-sub);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.mono-label::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: var(--r-full);
  background: var(--accent);
  box-shadow: var(--glow-sm);
  flex: none;
}

.mono-sm {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .02em;
  color: var(--text-dis);
}

/* ---------------- Border rails (full-height vertical frame) ---------------- */

.rails {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(var(--container), calc(100% - 48px));
  border-inline: 1px solid var(--border);
  pointer-events: none;
  z-index: 30;
}

/* ---------------- Page load rise (CSS-only, no main.js needed) ---------------- */

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
.rise { animation: rise .7s var(--ease) both; animation-delay: var(--d, 0s); }
@media (prefers-reduced-motion: reduce) {
  .rise { animation: none; }
}

/* ---------------- Hero band ---------------- */

.page-hero {
  position: relative;
  text-align: center;
  padding: 84px 24px 64px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 70% 90% at 50% -30%, rgba(43, 108, 255, .12), transparent 65%);
}
.page-hero > * { position: relative; }
.page-hero .mono-label { justify-content: center; margin-bottom: 18px; }
.page-title {
  font-size: clamp(36px, 5.4vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0 auto;
  max-width: 18ch;
}
.page-lede {
  max-width: 52ch;
  margin: 16px auto 0;
  color: var(--text-sub);
  font-size: 17px;
  line-height: 1.6;
}
.page-hero .mono-sm { display: block; margin-top: 14px; }

/* ---------------- Content column ---------------- */

/* The v2 nav is position:fixed (the v1 bar was sticky) — reserve its height. */
.page-main { position: relative; padding-top: 84px; }
.page-col {
  max-width: 768px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}

/* ---------------- Prose (articles + legal text) ---------------- */

.prose h2 {
  font-size: 23px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 42px 0 14px;
}
.prose h3 {
  font-size: 17.5px;
  letter-spacing: -0.01em;
  margin: 30px 0 10px;
}
.prose p, .prose li {
  color: var(--text-sub);
  font-size: 15.5px;
  line-height: 1.75;
}
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 22px; margin: 14px 0 18px; }
.prose li { margin: 7px 0; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--accent); }
.prose a:hover { text-decoration: underline; }
.prose blockquote {
  border-left: 2px solid var(--accent);
  padding: 4px 0 4px 18px;
  margin: 22px 0;
  font-style: italic;
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose code {
  font-family: var(--mono);
  font-size: .88em;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 2px 6px;
}
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 36px 0; }
.prose img {
  max-width: 100%;
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  margin: 8px 0 18px;
}
.prose figcaption {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dis);
  margin: -8px 0 18px;
}

/* callout (TL;DR / info box) */
.prose-callout {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 18px 20px;
  margin: 24px 0;
}
.prose-callout p { color: var(--text); margin: 0; }

/* draft / warning banner + [TO COMPLETE] markers (legal drafts) */
.prose-draft {
  background: rgba(255, 138, 31, .10);
  border: 1px solid rgba(255, 138, 31, .40);
  color: #FF8A1F;
  border-radius: var(--r-xl);
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 32px;
  font-family: var(--mono);
}
.todo { color: #FF8A1F; font-weight: 600; }

/* ---------------- Blog listing ---------------- */

.cat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.cat-pill {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--text-sub);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  padding: 7px 14px;
  background: transparent;
  cursor: pointer;
  transition: color 150ms var(--ease), border-color 150ms var(--ease);
}
.cat-pill:hover { color: var(--text); border-color: rgba(255, 255, 255, .25); }
[data-theme="light"] .cat-pill:hover { border-color: rgba(27, 24, 19, .28); }
.cat-pill.active { color: var(--accent); border-color: var(--accent); }

.post-row {
  display: block;
  padding: 30px 0;
  border-bottom: 1px solid var(--border);
}
.post-row time, .post-kicker {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-dis);
}
.post-row h2 {
  font-size: 22px;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin: 8px 0 0;
  transition: color 150ms var(--ease);
}
.post-row h2::after {
  content: ' ↗';
  font-size: .8em;
  color: var(--accent);
  opacity: 0;
  transition: opacity 150ms var(--ease);
}
.post-row:hover h2 { color: var(--accent); }
.post-row:hover h2::after { opacity: 1; }
.post-row p {
  color: var(--text-sub);
  font-size: 15px;
  line-height: 1.65;
  margin: 8px 0 0;
  max-width: 62ch;
}
.post-row[hidden] { display: none; }

.post-empty {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-dis);
  padding: 40px 0;
  display: none;
}

/* ---------------- Article page ---------------- */

.post-back {
  display: inline-block;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-dis);
  margin-bottom: 36px;
  transition: color 150ms var(--ease);
}
.post-back:hover { color: var(--text-sub); }

.post-head { margin-bottom: 40px; }
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-dis);
}
.post-meta i {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--text-dis);
}
.post-meta .post-cat { color: var(--accent); }
.post-head h1 {
  font-size: clamp(32px, 4.6vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 14px 0 0;
}
.post-head .post-lede {
  color: var(--text-sub);
  font-size: 17.5px;
  line-height: 1.6;
  margin: 16px 0 0;
}
.post-author {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-dis);
  margin-top: 18px;
}
.post-author b { color: var(--text-sub); font-weight: 500; }

/* ---------------- Pre-footer CTA ---------------- */

.page-cta {
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 72px 24px;
  position: relative;
  overflow: hidden;
}
.page-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 60% 100% at 50% 130%, rgba(43, 108, 255, .10), transparent 65%);
}
.page-cta > * { position: relative; }
.page-cta h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  letter-spacing: -0.02em;
}
.page-cta .btn { margin-top: 24px; }
.page-cta .mono-sm { display: block; margin-top: 16px; }

/* ---------------- Responsive ---------------- */

@media (max-width: 720px) {
  .page-hero { padding: 56px 20px 44px; }
  .page-col { padding: 40px 20px 72px; }
  .post-head h1 { font-size: 30px; }
}
