/* ── Base ──────────────────────────────────────────── */
body {
  background: #181924;
  color: #d1d5db;
}
.container {
  background: rgba(24, 25, 36, 0.96);
  border-radius: 1rem;
  box-shadow: 0 4px 24px 0 rgba(0,0,0,0.18);
}

/* ── Prose (markdown content) ─────────────────────── */
.prose {
  font-size: 0.92rem;
  line-height: 1.55;
  max-width: 100%;
  color: #d1d5db;
}

/* Heading hierarchy */
.prose h1 {
  font-size: 1.55em;
  font-weight: 700;
  margin-top: 1.4em;
  margin-bottom: 0.6em;
  color: #ffffff;
  letter-spacing: -0.01em;
}
.prose h2 {
  font-size: 1.3em;
  font-weight: 700;
  margin-top: 1.4em;
  margin-bottom: 0.5em;
  color: #ffffff;
  letter-spacing: -0.01em;
}
.prose h3 {
  font-size: 1.12em;
  font-weight: 600;
  margin-top: 1.2em;
  margin-bottom: 0.4em;
  color: #f3f4f6;
}
.prose h4, .prose h5, .prose h6 {
  font-size: 1em;
  font-weight: 600;
  margin-top: 1em;
  margin-bottom: 0.3em;
  color: #e5e7eb;
}

.prose p {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}
.prose ul, .prose ol {
  margin-top: 0.4em;
  margin-bottom: 0.4em;
  padding-left: 1.4em;
}
.prose li {
  margin-top: 0.2em;
  margin-bottom: 0.2em;
}

/* Links */
.prose a {
  color: #60a5fa;
  text-decoration: none;
}
.prose a:hover {
  text-decoration: underline;
  color: #93bbfd;
}

/* Bold — warm gold, softer than #fbbf24 */
.prose strong {
  color: #e5c07b;
  font-weight: 600;
}

/* ── Inline code ──────────────────────────────────── */
.prose code {
  font-size: 0.88em;
  background: #1e293b;
  color: #e5c07b;
  padding: 0.15em 0.4em;
  border-radius: 0.25rem;
  border: 1px solid #334155;
  font-weight: 400;
}
/* Remove Tailwind typography plugin backtick pseudo-elements */
.prose :where(code):not(:where([class~="not-prose"] *))::before,
.prose :where(code):not(:where([class~="not-prose"] *))::after {
  content: "" !important;
}
/* Override Tailwind typography plugin code bg */
.prose :where(code):not(:where([class~="not-prose"] *)) {
  background: #1e293b;
}

/* ── Code blocks (pre > code) ─────────────────────── */
.prose pre {
  font-size: 0.88em;
  background: #0f172a;
  color: #e2e8f0;
  border: 1px solid #1e293b;
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
  overflow-x: auto;
  margin-top: 0.8em;
  margin-bottom: 0.8em;
}
.prose pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  border: none;
  border-radius: 0;
  font-size: 1em;
}

/* ── Tables ────────────────────────────────────────── */
.prose table {
  font-size: 0.88em;
  width: 100%;
  border-collapse: collapse;
  background: #111827;
  color: #d1d5db;
  border: 1px solid #374151;
  border-radius: 0.375rem;
  overflow: hidden;
  margin-top: 0.8em;
  margin-bottom: 0.8em;
}
.prose thead {
  background: #1e293b;
}
/* Override Tailwind typography th/td styles (uses :where() internally) */
.prose th,
.prose :where(thead th):not(:where([class~="not-prose"] *)) {
  padding: 0.6rem 0.75rem !important;
  text-align: left;
  font-weight: 600;
  color: #f3f4f6 !important;
  border-bottom: 2px solid #374151;
  font-size: 0.92em;
}
.prose td,
.prose :where(tbody td):not(:where([class~="not-prose"] *)) {
  padding: 0.5rem 0.75rem !important;
  color: #d1d5db !important;
  border-bottom: 1px solid #1f2937;
}
.prose tbody tr:last-child td {
  border-bottom: none;
}
.prose tbody tr:hover {
  background: #1a2235;
}

/* ── Blockquotes ──────────────────────────────────── */
.prose blockquote {
  border-left: 3px solid #60a5fa;
  background: #111827;
  padding: 0.75rem 1rem;
  margin: 0.8em 0;
  border-radius: 0 0.375rem 0.375rem 0;
  color: #d1d5db;
  font-style: normal;
  quotes: none;
}
.prose blockquote p {
  margin: 0.2em 0;
}
/* Remove Tailwind typography decorative quotes */
.prose :where(blockquote p:first-of-type)::before,
.prose :where(blockquote p:last-of-type)::after {
  content: "" !important;
}

/* ── Horizontal rules ─────────────────────────────── */
.prose hr {
  border: none;
  border-top: 1px solid #374151;
  margin: 1.5em 0;
}

/* ── Images ───────────────────────────────────────── */
.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 1em auto;
  display: block;
}

/* ── Details / Summary (portfolio accordion) ──────── */
.prose details {
  margin-top: 0.6em;
}
.prose summary {
  cursor: pointer;
  user-select: none;
  color: #93bbfd;
  padding: 0.3em 0;
}
.prose summary:hover {
  color: #60a5fa;
}
.prose details[open] summary {
  margin-bottom: 0.5em;
}

/* ── Cards (blog posts, portfolio, CV) ────────────── */
.bg-white.rounded-lg.shadow-md.p-6 {
  padding: 1.5rem 1.5rem;
  background: #111827;
  color: #d1d5db;
  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.6);
  border: 1px solid #1f2937;
  transition: border-color 0.2s ease;
  overflow-x: auto;
}

/* Blog card hover */
a.block:hover .bg-white.rounded-lg.shadow-md.p-6 {
  border-color: #60a5fa;
  box-shadow: 0 4px 16px 0 rgba(96, 165, 250, 0.1);
}

/* Grid gap */
.grid.gap-8 {
  gap: 1.5rem;
}
