/* ============================================================
   DineWaves · article typography (.prose)
   Hand-written replacement for the Tailwind Typography plugin,
   which is not installed. Loaded on blog posts only.
   ============================================================ */

.prose {
  color: #3a2c28;
  font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  max-width: 65ch;
  overflow-wrap: break-word;
}
.prose.prose-lg { font-size: 1.125rem; line-height: 1.8; }
.prose.max-w-none { max-width: none; }

.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }

.prose p { margin: 0 0 1.25em; }
.prose strong { color: #1a1c1c; font-weight: 700; }
.prose em { font-style: italic; }
.prose small { font-size: .875em; color: #59413b; }

.prose h2,
.prose h3,
.prose h4 {
  color: #1a1c1c;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.25;
}
.prose h2 { font-size: 1.875rem; margin: 3rem 0 1.5rem; }
.prose h3 { font-size: 1.5rem; margin: 2rem 0 1rem; }
.prose h4 { font-size: 1.25rem; margin: 1.5rem 0 .75rem; }

.prose a { color: #a62900; text-decoration: none; font-weight: 500; }
.prose a:hover { text-decoration: underline; }

.prose ul,
.prose ol { margin: 0 0 1.25em; padding-left: 1.625em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin: .5em 0; padding-left: .25em; }
.prose li::marker { color: #a62900; }
.prose li > ul,
.prose li > ol { margin: .5em 0; }

.prose blockquote {
  margin: 1.75em 0;
  padding: .25em 0 .25em 1.25em;
  border-left: 4px solid #e2bfb6;
  color: #59413b;
  font-style: italic;
}

.prose img { max-width: 100%; height: auto; margin: 2em 0; border-radius: .75rem; }
.prose figure { margin: 2em 0; }
.prose figcaption { margin-top: .75em; color: #59413b; font-size: .875em; text-align: center; }

.prose hr { margin: 3em 0; border: 0; border-top: 1px solid #e2bfb6; }

.prose table {
  width: 100%;
  margin: 2em 0;
  border-collapse: collapse;
  font-size: .9375em;
  line-height: 1.5;
  text-align: left;
}
.prose thead th {
  padding: .75em 1em;
  border-bottom: 2px solid #e2bfb6;
  color: #1a1c1c;
  font-weight: 700;
  vertical-align: bottom;
}
.prose tbody td {
  padding: .75em 1em;
  border-bottom: 1px solid #eee4e0;
  vertical-align: top;
}

.prose code {
  padding: .15em .35em;
  border-radius: .25rem;
  background: #f3f3f4;
  font-size: .875em;
}
.prose pre {
  margin: 1.75em 0;
  padding: 1em 1.25em;
  overflow-x: auto;
  border-radius: .75rem;
  color: #f0f1f1;
  background: #2f3131;
  font-size: .875em;
  line-height: 1.7;
}
.prose pre code { padding: 0; background: none; color: inherit; }

/* Call-to-action boxes inside articles keep their own colours. */
.prose .text-white,
.prose .text-white strong { color: #fff; }
.prose a.bg-white { text-decoration: none; }

@media (max-width: 640px) {
  .prose.prose-lg { font-size: 1.0625rem; }
  .prose h2 { font-size: 1.625rem; margin-top: 2.25rem; }
  .prose h3 { font-size: 1.3125rem; }
  .prose table { display: block; overflow-x: auto; }
}
