.prose {
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  line-height: var(--text-lg--line-height);
  max-width: 65ch;
  color: var(--color-base-content);
}

.prose > * + * {
  margin-top: 1.25em;
}

/* Headings */
.prose h1 {
  font-size: var(--text-4xl);
  font-weight: var(--font-weight-extrabold);
  line-height: var(--text-4xl--line-height);
  margin-top: 0;
  margin-bottom: 0.8em;
}

.prose h2 {
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--text-2xl--line-height);
  margin-top: 2em;
  margin-bottom: 0.75em;
}

.prose h3 {
  font-size: var(--text-xl);
  font-weight: var(--font-weight-semibold);
  line-height: var(--text-xl--line-height);
  margin-top: 1.6em;
  margin-bottom: 0.6em;
}

.prose h4 {
  font-size: var(--text-lg);
  font-weight: var(--font-weight-semibold);
  line-height: var(--text-lg--line-height);
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

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

/* Links */
.prose a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: var(--font-weight-medium);
}

.prose a:hover {
  opacity: 0.8;
}

/* Bold & italic */
.prose strong {
  font-weight: var(--font-weight-bold);
}

.prose em {
  font-style: italic;
}

/* Lists */
.prose ul {
  list-style-type: disc;
  padding-left: 1.625em;
  margin-top: 1.25em;
  margin-bottom: 1.25em;
}

.prose ol {
  list-style-type: decimal;
  padding-left: 1.625em;
  margin-top: 1.25em;
  margin-bottom: 1.25em;
}

.prose li {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

.prose li > ul,
.prose li > ol {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

/* Blockquotes */
.prose blockquote {
  border-left: 4px solid var(--color-primary);
  padding-left: 1em;
  margin-top: 1.6em;
  margin-bottom: 1.6em;
  font-style: italic;
  opacity: 0.85;
}

/* Code */
.prose code {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  background: var(--color-base-200);
  padding: 0.2em 0.4em;
  border-radius: var(--radius-sm);
}

.prose pre {
  background: var(--color-base-200);
  padding: 1em 1.25em;
  border-radius: var(--radius-lg);
  overflow-x: auto;
  margin-top: 1.75em;
  margin-bottom: 1.75em;
}

.prose pre code {
  background: none;
  padding: 0;
  font-size: var(--text-sm);
  line-height: 1.7;
}

/* Horizontal rules */
.prose hr {
  border: none;
  border-top: 1px solid color-mix(in oklab, var(--color-base-content) 20%, transparent);
  margin-top: 2.5em;
  margin-bottom: 2.5em;
}

/* Images */
.prose img {
  border-radius: var(--radius-lg);
  margin-top: 2em;
  margin-bottom: 2em;
}

/* Tables */
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2em;
  margin-bottom: 2em;
  font-size: var(--text-sm);
}

.prose th {
  font-weight: var(--font-weight-semibold);
  padding: 0.75em 1em;
  border-bottom: 2px solid color-mix(in oklab, var(--color-base-content) 20%, transparent);
  text-align: left;
}

.prose td {
  padding: 0.75em 1em;
  border-bottom: 1px solid color-mix(in oklab, var(--color-base-content) 10%, transparent);
}
