/* ========== блог ========== */
.blog {
  max-width: 1440px;
  margin: 0 auto;
  padding: 40px 60px 80px;
  position: relative;
}

.blog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 60px;
}
.blog-header__home {
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
}
.blog-header__home:hover { opacity: .6; }

.blog-title {
  margin: 0 0 70px 0;
  font-size: 88px;
  line-height: 0.98;
  font-weight: 500;
  letter-spacing: -0.015em;
}

/* список статей */
.posts {
  display: flex;
  flex-direction: column;
  max-width: 880px;
}
.post-card {
  display: block;
  padding: 36px 0;
  border-top: 1px solid #ececec;
  text-decoration: none;
  color: var(--ink);
  transition: opacity .15s ease;
}
.post-card:last-child { border-bottom: 1px solid #ececec; }
.post-card:hover { opacity: .6; }
.post-card__meta {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}
.post-card__title {
  font-size: 38px;
  font-weight: 500;
  line-height: 1.1;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.post-card__lead {
  font-size: 18px;
  line-height: 1.45;
  margin: 0;
  max-width: 720px;
  color: #333;
}

/* === страница статьи === */
.article {
  max-width: 1440px;
  margin: 0 auto;
  padding: 40px 60px 100px;
}
.article-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 80px;
  font-size: 15px;
  font-weight: 500;
}
.article-head a {
  text-decoration: none;
  color: var(--ink);
}
.article-head a:hover { opacity: .6; }
.article-head__date {
  color: var(--muted);
  font-weight: 400;
}

.article__inner {
  max-width: 720px;
  margin: 0 auto;
}
.article__title {
  font-size: 64px;
  line-height: 1.0;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0 0 16px;
}
.article__meta {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 50px;
  letter-spacing: 0.02em;
}
.article__body {
  font-size: 20px;
  line-height: 1.65;
  color: var(--ink);
}
.article__body p { margin: 0 0 1.2em; }
.article__body h2 {
  font-size: 32px;
  font-weight: 500;
  line-height: 1.2;
  margin: 1.8em 0 0.6em;
  letter-spacing: -0.01em;
}
.article__body h3 {
  font-size: 24px;
  font-weight: 500;
  margin: 1.6em 0 0.5em;
}
.article__body a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.article__body a:hover { opacity: .6; }
.article__body blockquote {
  margin: 1.5em 0;
  padding-left: 24px;
  border-left: 3px solid #ddd;
  color: #444;
}
.article__body code {
  background: #f4f4f4;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}
.article__body ul, .article__body ol { padding-left: 1.4em; }
.article__body li { margin-bottom: 0.4em; }

.article-foot {
  max-width: 720px;
  margin: 80px auto 0;
  padding-top: 30px;
  border-top: 1px solid #ececec;
  font-size: 16px;
}
.article-foot a {
  text-decoration: none;
  color: var(--ink);
}
.article-foot a:hover { opacity: .6; }

/* ========== адаптив ========== */
@media (max-width: 820px) {
  .blog { padding: 24px 20px 60px; }
  .blog-header { margin-bottom: 32px; }
  .blog-title { font-size: 48px; margin-bottom: 40px; }
  .post-card { padding: 26px 0; }
  .post-card__title { font-size: 26px; }
  .post-card__lead { font-size: 16px; }

  .article { padding: 24px 20px 60px; }
  .article-head { margin-bottom: 40px; }
  .article__title { font-size: 36px; }
  .article__meta { margin-bottom: 30px; }
  .article__body { font-size: 17px; }
  .article__body h2 { font-size: 24px; }
  .article__body h3 { font-size: 20px; }
}
