/* =========================================================
   Prose Typography
   ---------------------------------------------------------
   Opinionated but lightweight typography defaults for
   content-heavy pages (articles, static pages, docs).
   Usage:
     <main class="container prose">...</main>
   ========================================================= */

.prose {
  /* By default, prose should fill the layout container.
     Use .prose--narrow on longform articles if you want a readable measure. */
  --prose-max-width: 100%;
  max-width: var(--prose-max-width);
line-height: 1.7;
}

.prose > * + * {
  margin-top: 1rem;
}

.prose h1 {
  font-size: 2.2rem;
  line-height: 1.25;
  margin-top: 0;
}

.prose h2 {
  font-size: 1.6rem;
  margin-top: 2.5rem;
}

.prose h3 {
  font-size: 1.3rem;
  margin-top: 2rem;
}

.prose p {
  color: var(--text);
}

.prose a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
}

.prose li + li {
  margin-top: 0.25rem;
}

.prose blockquote {
  border-left: 3px solid var(--border);
  padding-left: 1rem;
  color: var(--muted);
  font-style: italic;
}

.prose code {
  background: var(--bg-muted);
  padding: 0.15em 0.35em;
  border-radius: 4px;
  font-size: 0.95em;
}

.prose pre {
  background: var(--bg-muted);
  padding: 1rem;
  overflow-x: auto;
  border-radius: 6px;
}

/* Tables: keep readable on small screens */
.prose table{
  width: 100%;
  border-collapse: collapse;
}

.prose th,
.prose td{
  padding: 0.5rem;
  border-bottom: 1px solid var(--border);
}

@media (max-width: 720px){
  .prose table{
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
