@charset "UTF-8";

/* ============================================================
   Стили статей (тип записи "post").
   Единая система контента: типографика, отступы, радиусы и тени
   совпадают с page.css и уроками курса (course-prose).
   ============================================================ */

body.single-post article.post {
  max-width: 760px;
  margin: 0 auto;
  padding: 2.5em 0 4em;
}

body.single-post .entry-title {
  font-size: 2em;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  color: #1E1E1E;
}

body.single-post .entry-meta {
  font-size: 0.875em;
  line-height: 1.5;
  color: #4C5355;
  margin-bottom: 2em;
}

body.single-post .entry-meta a {
  color: #4C5355;
  text-decoration: none;
}

body.single-post .entry-meta a:hover {
  color: #01A97D;
}

body.single-post .post-thumbnail {
  margin: 0 0 2em;
}

body.single-post .post-thumbnail img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.75em;
}

body.single-post .entry-content {
  font-size: 1em;
  line-height: 1.6;
  color: #1E1E1E;
  -webkit-font-smoothing: antialiased;
  word-break: break-word;
}

body.single-post .entry-content > *:first-child {
  margin-top: 0;
}

body.single-post .entry-content > *:last-child {
  margin-bottom: 0;
}

body.single-post .entry-content p {
  margin: 0 0 1em;
}

body.single-post .entry-content h2,
body.single-post .entry-content h3,
body.single-post .entry-content h4 {
  color: #1E1E1E;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

body.single-post .entry-content h2 {
  font-size: 1.5em;
  line-height: 1.25;
  font-weight: 700;
  margin: 1.75em 0 0.6em;
}

body.single-post .entry-content h3 {
  font-size: 1.25em;
  line-height: 1.3;
  font-weight: 600;
  margin: 1.5em 0 0.5em;
}

body.single-post .entry-content h4 {
  font-size: 1.125em;
  line-height: 1.35;
  font-weight: 600;
  margin: 1.25em 0 0.4em;
}

body.single-post .entry-content ul,
body.single-post .entry-content ol {
  margin: 0 0 1.25em;
  padding-left: 1.25em;
}

body.single-post .entry-content ul {
  list-style: disc;
}

body.single-post .entry-content ol {
  list-style: decimal;
}

body.single-post .entry-content li {
  margin-bottom: 0.375em;
}

body.single-post .entry-content li::marker {
  color: #01A97D;
}

body.single-post .entry-content a {
  color: #01A97D;
  text-decoration: underline;
  text-decoration-color: rgba(1, 169, 125, 0.4);
  text-underline-offset: 0.2em;
  transition: color 0.2s ease;
}

body.single-post .entry-content a:hover {
  color: #029F76;
}

body.single-post .entry-content blockquote {
  margin: 1.25em 0;
  padding: 1em 1.25em;
  border-left: 4px solid #01A97D;
  border-radius: 0 0.625em 0.625em 0;
  background: #ECFBF8;
  color: #1E1E1E;
}

body.single-post .entry-content blockquote p {
  margin: 0.5em 0;
}

body.single-post .entry-content blockquote p:last-child {
  margin-bottom: 0;
}

body.single-post .entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75em;
}

body.single-post .entry-content figure {
  margin: 1.5em 0;
}

body.single-post .entry-content figcaption {
  font-size: 0.875em;
  line-height: 1.5;
  color: #4C5355;
  text-align: center;
  margin-top: 0.5em;
}

body.single-post .entry-content pre {
  margin: 1.25em 0;
  padding: 1.125em;
  border-radius: 0.625em;
  background: #1E1E1E;
  color: #ECFBF8;
  overflow-x: auto;
  font-size: 0.9em;
  line-height: 1.6;
}

body.single-post .entry-content pre code {
  background: none;
  color: inherit;
  padding: 0;
}

body.single-post .entry-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.875em;
  background: #F5F5F5;
  color: #1E1E1E;
  padding: 0.15em 0.4em;
  border-radius: 0.375em;
}

body.single-post .entry-content hr {
  border: none;
  border-top: 1px solid #E9E9E9;
  margin: 2.5em 0;
}

body.single-post .entry-footer {
  margin-top: 3em;
  padding-top: 1.5em;
  border-top: 1px solid #E9E9E9;
  font-size: 0.875em;
  line-height: 1.6;
  color: #4C5355;
}

body.single-post .entry-footer a {
  color: #01A97D;
  text-decoration: none;
}

body.single-post .entry-footer a:hover {
  color: #029F76;
}

/* Адаптив */
@media (max-width: 48em) {
  body.single-post article.post {
    padding: 1.5em 0 3em;
  }

  body.single-post .entry-title {
    font-size: 1.75em;
  }

  body.single-post .entry-content {
    font-size: 1em;
    line-height: 1.55;
  }

  body.single-post .entry-content h2 {
    font-size: 1.375em;
  }

  body.single-post .entry-content h3 {
    font-size: 1.1875em;
  }

  body.single-post .entry-content h4 {
    font-size: 1.0625em;
  }
}
