/* ============================================================
   Prospero post detail pages — pixel design language
   Used for /news/<slug>/index.html and 404.html
   Canonical template for future posts.
   ============================================================ */

:root {
  --pixel-ink: #000000;
  --pixel-bg: #FFFFFF;
  --pixel-accent: #0EA5E9;
  --pixel-accent-ink: #FFFFFF;
  --pixel-muted: rgba(0, 0, 0, 0.55);
  --pixel-rule: rgba(0, 0, 0, 0.12);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; background: var(--pixel-bg); color: var(--pixel-ink); }
body {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 500;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; }
img { max-width: 100%; height: auto; }

/* ─── Header (white, ink type, subtle ink rule under) ─── */
.post-nav {
  background: var(--pixel-bg);
  color: var(--pixel-ink);
  padding: 22px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--pixel-ink);
}
.post-nav__brand {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.05em;
  text-decoration: none;
  color: var(--pixel-ink);
  display: inline-flex;
  align-items: baseline;
  line-height: 1;
}
.post-nav__brand .bracket {
  font-weight: 300;
  color: var(--pixel-accent);
  font-size: 26px;
  padding: 0 2px;
}
.post-nav__back {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--pixel-ink);
  transition: color 0.12s ease;
}
.post-nav__back:hover { color: var(--pixel-accent); }

/* ─── Article ─── */
.post-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 88px 40px 64px;
}

.post-kicker {
  display: inline-block;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--pixel-accent-ink);
  background: var(--pixel-accent);
  padding: 6px 12px;
  margin-bottom: 28px;
}

.post-title {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin: 0 0 28px;
  color: var(--pixel-ink);
}

.post-meta {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pixel-muted);
  padding-bottom: 36px;
  border-bottom: 1px solid var(--pixel-ink);
  margin-bottom: 56px;
}

/* ─── Body ─── */
.post-body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.7;
  color: var(--pixel-ink);
}
.post-body p { margin: 0 0 24px; }

.post-body h2 {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(1.625rem, 3.2vw, 2.125rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 64px 0 22px;
  color: var(--pixel-ink);
}

.post-body h3 {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.3;
  margin: 36px 0 14px;
  color: var(--pixel-ink);
}

.post-body blockquote {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 500;
  font-style: normal;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.55;
  letter-spacing: -0.005em;
  padding: 22px 28px;
  border-left: 4px solid var(--pixel-accent);
  margin: 36px 0;
  color: var(--pixel-ink);
  background: rgba(14, 165, 233, 0.05);
}
.post-body blockquote cite {
  display: block;
  margin-top: 14px;
  font-family: 'Inter', system-ui, sans-serif;
  font-style: italic;
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0;
  color: var(--pixel-muted);
}
.post-body blockquote p { margin: 0; }

.post-body em {
  font-style: italic;
  font-weight: 500;
}

.post-body strong { font-weight: 800; }

.post-body a {
  color: var(--pixel-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--pixel-accent);
  text-underline-offset: 4px;
  font-weight: 600;
  transition: text-decoration-color 0.12s ease, color 0.12s ease;
}
.post-body a:hover { color: var(--pixel-accent); text-decoration-color: var(--pixel-ink); }

.post-body ul, .post-body ol { padding-left: 24px; margin: 0 0 24px; }
.post-body li { margin-bottom: 8px; }

.post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 36px 0;
  font-size: 15px;
  border-top: 1px solid var(--pixel-ink);
  border-bottom: 1px solid var(--pixel-ink);
}
.post-body th, .post-body td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--pixel-rule);
  text-align: left;
  vertical-align: top;
}
.post-body th {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pixel-ink);
}
.post-body tr:last-child td { border-bottom: none; }

.post-body hr {
  border: 0;
  border-top: 1px solid var(--pixel-ink);
  margin: 56px 0;
}

/* ─── Back link (top-ink-rule, mono, no button) ─── */
.post-back {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 88px;
  padding-top: 32px;
  border-top: 1px solid var(--pixel-ink);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pixel-ink);
  text-decoration: none;
  transition: color 0.12s ease;
}
.post-back:hover { color: var(--pixel-accent); }

/* ─── Footer (matches pixel footer pattern: ink bar with mono links) ─── */
.post-footer {
  background: var(--pixel-ink);
  color: var(--pixel-bg);
  padding: 64px 40px 48px;
  text-align: center;
}
.post-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px 28px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 32px;
}
.post-footer__nav a {
  color: var(--pixel-bg);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.12s ease, color 0.12s ease;
}
.post-footer__nav a:hover { opacity: 1; color: var(--pixel-accent); }
.post-footer__copy {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.55;
}

@media (max-width: 720px) {
  .post-nav { padding: 16px 20px; }
  .post-nav__brand { font-size: 19px; }
  .post-nav__brand .bracket { font-size: 22px; }
  .post-wrap { padding: 48px 20px 40px; }
  .post-kicker { margin-bottom: 20px; }
  .post-meta { padding-bottom: 28px; margin-bottom: 40px; }
  .post-body h2 { margin-top: 44px; }
  .post-body blockquote { padding: 18px 20px; margin: 28px 0; }
  .post-back { margin-top: 64px; padding-top: 24px; }
  .post-footer { padding: 44px 20px 28px; }
  .post-footer__nav { gap: 14px 22px; font-size: 10px; }
}
@media (max-width: 480px) {
  .post-nav { padding: 14px 16px; }
  .post-nav__brand { font-size: 17px; }
  .post-nav__brand .bracket { font-size: 20px; }
  .post-nav__back { font-size: 10px; letter-spacing: 0.14em; }
  .post-wrap { padding: 36px 18px 32px; }
  .post-body { font-size: 16px; line-height: 1.65; }
  .post-body h2 { margin-top: 36px; }
  .post-body blockquote { padding: 16px 18px; margin: 24px 0; font-size: 1rem; }
  .post-footer__nav { gap: 10px 16px; }
}
