/* --- Journal Prose --- */

.prose-journal {
  font-family: 'Atkinson Hyperlegible Next', sans-serif;
  color: #1A1A1A;
  line-height: 1.85;
  font-size: 1.15rem;
  font-weight: 400;
}

.prose-journal > *:first-child {
  margin-top: 0;
}

/* Paragraphs */
.prose-journal p {
  margin-bottom: 1.5em;
  color: #2a2a2a;
}

/* Drop cap on first paragraph */
.prose-journal > p:first-of-type::first-letter {
  float: left;
  font-family: 'GFS Didot', serif;
  font-size: 4em;
  line-height: 0.8;
  padding-right: 0.08em;
  padding-top: 0.07em;
  color: #1A1A1A;
  font-weight: 500;
}

/* Headings */
.prose-journal h2 {
  font-family: 'GFS Didot', serif;
  font-size: 2rem;
  line-height: 1.15;
  margin-top: 3.5em;
  margin-bottom: 1em;
  color: #1A1A1A;
  font-weight: 400;
}

.prose-journal h3 {
  font-family: 'GFS Didot', serif;
  font-size: 1.5rem;
  line-height: 1.25;
  margin-top: 2.5em;
  margin-bottom: 0.75em;
  color: #1A1A1A;
  font-weight: 400;
}

/* Blockquotes */
.prose-journal blockquote {
  margin: 2.5em 0;
  padding: 2em 2.5em;
  background: #F2F0E9;
  border-radius: 1rem;
  border: 1px solid #E5E2D9;
  position: relative;
}

.prose-journal blockquote::before {
  content: '\201C';
  position: absolute;
  top: 0.3em;
  left: 0.6em;
  font-family: 'GFS Didot', serif;
  font-size: 4em;
  color: rgba(45, 79, 56, 0.15);
  line-height: 1;
}

.prose-journal blockquote p {
  font-family: 'GFS Didot', serif;
  font-size: 1.2rem;
  line-height: 1.6;
  color: #333;
  margin-bottom: 0;
  position: relative;
}

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

/* Strong / Bold */
.prose-journal strong {
  font-weight: 600;
  color: #1A1A1A;
}

/* Emphasis */
.prose-journal em {
  font-style: normal;
  color: #2D4F38;
  font-weight: 500;
}

/* Links */
.prose-journal a {
  color: #2D4F38;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(45, 79, 56, 0.3);
  transition: text-decoration-color 0.2s;
}

.prose-journal a:hover {
  text-decoration-color: #2D4F38;
}

/* Lists */
.prose-journal ol {
  counter-reset: journal-counter;
  list-style: none;
  padding: 0;
  margin: 2em 0;
}

.prose-journal ol li {
  counter-increment: journal-counter;
  padding-left: 3em;
  position: relative;
  margin-bottom: 1.5em;
  color: #2a2a2a;
}

.prose-journal ol li::before {
  content: counter(journal-counter);
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 2em;
  height: 2em;
  border-radius: 50%;
  background: rgba(45, 79, 56, 0.08);
  color: #2D4F38;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prose-journal ul {
  list-style: none;
  padding: 0;
  margin: 2em 0;
}

.prose-journal ul li {
  padding-left: 2em;
  position: relative;
  margin-bottom: 1em;
  color: #2a2a2a;
}

.prose-journal ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2D4F38;
  opacity: 0.4;
}

/* Horizontal rule */
.prose-journal hr {
  border: none;
  margin: 3em auto;
  width: 80px;
  display: flex;
  justify-content: center;
}

.prose-journal hr::after {
  content: '\2022 \2022 \2022';
  color: rgba(26, 26, 26, 0.3);
  letter-spacing: 0.5em;
  font-size: 0.75rem;
}

/* Code (inline) */
.prose-journal code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.875em;
  background: #F2F0E9;
  padding: 0.15em 0.4em;
  border-radius: 4px;
  color: #2D4F38;
}

/* Images */
.prose-journal img {
  border-radius: 1rem;
  margin: 2.5em 0;
  width: 100%;
}

/* Selection */
.prose-journal ::selection {
  background: rgba(45, 79, 56, 0.15);
}

/* Responsive */
@media (max-width: 640px) {
  .prose-journal {
    font-size: 1rem;
  }

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

  .prose-journal > p:first-of-type::first-letter {
    font-size: 3.2em;
  }

  .prose-journal blockquote {
    padding: 1.5em;
    margin: 2em 0;
  }

  .prose-journal blockquote p {
    font-size: 1.05rem;
  }
}
