/* Prose Typography Styling  */
.prose {
  color: var(--color-text);
  max-width: 100ch; 
  font-family: var(--font-family);
  font-size: var(--fluid-16-18);
  line-height: 1.75;
  letter-spacing: 0.025em;
}

/* Headings */
.prose h1 {
  color: var(--color-text);
  font-family: var(--font-family);
  font-size: var(--fluid-32-44);
  font-weight: 700;
  line-height: 1.1;
  margin-top: 0;
  margin-bottom: 1.5rem;
  letter-spacing: -0.025em;
}

.prose h2 {
  color: var(--color-text);
  font-family: "SangBleuRegular", serif;
  font-weight: 400;
  line-height: 1.2;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
}

.prose h3 {
  color: var(--color-text);
  font-family: var(--font-family);
  font-size: var(--fluid-20-26);
  font-weight: 600;
  line-height: 1.3;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.025em;
}

.prose h4 {
  color: var(--color-text);
  font-family: var(--font-family);
  font-size: var(--fluid-16-20);
  font-weight: 600;
  line-height: 1.4;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.025em;
}

.prose h5 {
  color: var(--color-text);
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.025em;
}

.prose h6 {
  color: var(--color-text);
  font-family: var(--font-family);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.5;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.025em;
}

/* Paragraphs */
.prose p {
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
  color: var(--color-text);
  font-size: var(--fluid-16-18);
  line-height: 1.75;
}

.prose p:first-child {
  margin-top: 0;
}

.prose p:last-child {
  margin-bottom: 0;
}

/* Lists */
.prose ul,
.prose ol {
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
  padding-left: 1.625rem;
  color: var(--color-text);
}

.prose ul {
  list-style-type: disc;
}

.prose ol {
  list-style-type: decimal;
}

.prose li {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  line-height: 1.75;
}

.prose li > ul,
.prose li > ol {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}

.prose li > ul {
  list-style-type: circle;
}

.prose li > ul > li > ul {
  list-style-type: square;
}

/* Blockquotes */
.prose blockquote {
  font-family: var(--font-family-garamond);
  font-style: italic;
  font-size: var(--fluid-16-20);
  line-height: 1.75;
  margin-top: 2rem;
  margin-bottom: 2rem;
  padding: 1.5rem 2rem;
  border-left: 4px solid var(--color-primary);
  background-color: #372214;
  background-image: linear-gradient(to right, var(--color-brown-gradient-light), var(--color-brown-gradient-dark));
  border-radius: 1rem;
}

.prose blockquote p {
  margin-top: 0;
  margin-bottom: 0;
  color: #fff;
}

.prose blockquote p:not(:first-child) {
  margin-top: 1rem;
}

/* Code */
.prose code {
  color: var(--color-primary);
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.875em;
  font-weight: 600;
  background-color: rgba(107, 51, 5, 0.1);
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
}

.prose pre {
  color: var(--color-text);
  background-color: #f8f9fa;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.875rem;
  line-height: 1.7142857;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  padding: 1rem 1.5rem;
  overflow-x: auto;
}

.prose pre code {
  background-color: transparent;
  border-radius: 0;
  color: inherit;
  font-size: inherit;
  font-weight: 400;
  padding: 0;
}

/* Links */
.prose a {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color 0.2s ease-in-out;
}

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

/* Images */
.prose img {
  margin-top: 2rem;
  margin-bottom: 2rem;
  border-radius: 0.5rem;
  max-width: 100%;
  height: auto;
}

.prose figure {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.prose figure img {
  margin-top: 0;
  margin-bottom: 0;
}

.prose figcaption {
  color: var(--color-secondary);
  font-size: 0.875rem;
  line-height: 1.4285714;
  margin-top: 0.75rem;
  text-align: center;
}

/* Tables */
.prose table {
  width: 100%;
  table-layout: auto;
  text-align: left;
  margin-top: 2rem;
  margin-bottom: 2rem;
  font-size: 0.875rem;
  line-height: 1.7142857;
  border-collapse: collapse;
}

.prose thead {
  color: var(--color-text);
  font-weight: 600;
  border-bottom: 1px solid var(--color-border);
}

.prose thead th {
  vertical-align: bottom;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--color-border);
}

.prose tbody tr {
  border-bottom: 1px solid var(--color-border);
}

.prose tbody tr:nth-child(odd) {
  background-color: rgba(107, 51, 5, 0.02);
}

.prose tbody td {
  vertical-align: baseline;
  padding: 0.75rem 1rem;
}

.prose tbody tr:last-child {
  border-bottom-width: 0;
}

/* Horizontal Rules */
.prose hr {
  border-color: var(--color-border);
  border-top-width: 1px;
  margin-top: 3rem;
  margin-bottom: 3rem;
}

/* Strong and Emphasis */
.prose strong {
  color: var(--color-text);
  font-weight: 600;
}

.prose em {
  color: var(--color-text);
  font-style: italic;
}

/* Small Text */
.prose small {
  color: var(--color-secondary);
  font-size: 0.875em;
}

/* Strikethrough */
.prose del {
  color: var(--color-secondary);
  text-decoration: line-through;
}

/* Abbreviations */
.prose abbr {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

/* Mark */
.prose mark {
  background-color: rgba(255, 194, 57, 0.3);
  color: var(--color-text);
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
}

/* Definition Lists */
.prose dl {
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
}

.prose dt {
  color: var(--color-text);
  font-weight: 600;
  margin-top: 1.25rem;
}

.prose dd {
  margin-top: 0.5rem;
  margin-bottom: 1.25rem;
  padding-left: 1.625rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .prose {
    font-size: 1rem;
    line-height: 1.7;
  }
  
  .prose h1 {
    font-size: var(--fluid-28-32);
  }
  
  
  .prose h3 {
    font-size: var(--fluid-16-20);
  }
  
  .prose blockquote {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }
  
  .prose pre {
    padding: 0.75rem 1rem;
    font-size: 0.8125rem;
  }
}

/* Utility classes for prose variations */
.prose-sm {
  font-size: 0.875rem;
  line-height: 1.7142857;
}

.prose-sm h1 {
  font-size: var(--fluid-24-28);
}

.prose-sm h2 {
  font-family: "SangBleuRegular", serif;
  font-weight: 400;
}

.prose-sm h3 {
  font-size: var(--fluid-16-20);
}

.prose-lg {
  font-size: var(--fluid-16-20);
  line-height: 1.8;
}

.prose-lg h1 {
  font-size: var(--fluid-32-44);
}

.prose-lg h2 {
  font-family: "SangBleuRegular", serif;
  font-weight: 400;
}

.prose-lg h3 {
  font-size: var(--fluid-20-26);
}

.prose-xl {
  font-size: var(--fluid-16-20);
  line-height: 1.8;
}

.prose-xl h1 {
  font-size: var(--fluid-28-48);
}

.prose-xl h2 {
  font-family: "SangBleuRegular", serif;
  font-weight: 400;
}

.prose-xl h3 {
  font-size: var(--fluid-28-32);
}