/* public/css/typography.css */

/* Base font */
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, 
               "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color: #333;
  line-height: 1.75;
}

/* Container helper */
.prose {
  max-width: 65ch;
  margin: 0 auto;
  padding: 1rem;
}

/* Paragraphs */
.prose p {
  margin-bottom: 1.25em;
}

/* Headings */
.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
  color: #111;
  margin-top: 2em;
  margin-bottom: 0.5em;
  line-height: 1.3;
  font-weight: 700;
}
.prose h1 { font-size: 2.25rem; }
.prose h2 { font-size: 1.875rem; }
.prose h3 { font-size: 1.5rem; }
.prose h4 { font-size: 1.25rem; }

/* Links */
.prose a {
  color: #2563eb;
  text-decoration: underline;
}
.prose a:hover {
  color: #1e40af;
}

/* Lists */
.prose ul,
.prose ol {
  margin-bottom: 1.25em;
  padding-left: 1.5em;
}
.prose li + li {
  margin-top: 0.5em;
}

/* Blockquotes */
.prose blockquote {
  border-left: 4px solid #ddd;
  padding: 0.5em 1em;
  color: #555;
  background: #f9f9f9;
  margin: 1.5em 0;
}

/* Code & pre */
.prose pre {
  background: #f5f5f5;
  padding: 1em;
  border-radius: 0.25rem;
  overflow-x: auto;
  margin-bottom: 1.25em;
}
.prose code {
  background: #f5f5f5;
  padding: 0.2em 0.4em;
  border-radius: 0.25rem;
}

/* Tables */
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5em;
}
.prose th,
.prose td {
  border: 1px solid #ddd;
  padding: 0.75em 1em;
}
.prose th {
  background: #f0f0f0;
  text-align: left;
}
