/* Blog — KAPLI style */

.blog-hero {
  padding: 130px 0 36px;
}

.blog-hero__title {
  margin: 10px 0 16px;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.blog-hero__lead {
  max-width: 42ch;
  font-size: clamp(16px, 1.7vw, 20px);
  line-height: 1.5;
  color: var(--color-ink-soft);
}

.blog-hero__count {
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.45);
}

.blog-listing {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
  padding-bottom: 80px;
}

.blog-aside {
  position: sticky;
  top: 110px;
}

.blog-aside__tags {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: min(70vh, 640px);
  overflow: auto;
  padding-right: 6px;
}

.blog-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-pill);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.blog-tag span {
  color: rgba(255, 255, 255, 0.4);
}

.blog-tag:hover,
.blog-tag.is-active {
  color: #fff;
  border-color: rgba(255, 200, 170, 0.55);
  background: rgba(255, 170, 140, 0.08);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.blog-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.blog-card:hover {
  border-color: rgba(255, 200, 170, 0.35);
  background: rgba(255, 255, 255, 0.035);
  transform: translateY(-2px);
}

.blog-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-card__media {
  aspect-ratio: 16 / 10;
  background: #101010;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.45s ease;
}

.blog-card:hover .blog-card__media img {
  transform: scale(1.04);
}

.blog-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 20px 18px;
}

.blog-card__meta {
  margin-bottom: 10px;
  color: rgba(255, 200, 170, 0.8);
}

.blog-card h2 {
  margin: 0 0 12px;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 500;
}

.blog-card__excerpt {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(243, 243, 243, 0.65);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.blog-card__more {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.75);
}

.blog-empty {
  grid-column: 1 / -1;
  color: rgba(255, 255, 255, 0.55);
}

/* Post */

.blog-post__hero {
  padding: 120px 0 28px;
}

.blog-post__back {
  margin-bottom: 22px;
}

.blog-post__hero h1 {
  margin: 10px 0 16px;
  max-width: 18ch;
  font-size: clamp(28px, 4.4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 500;
}

.blog-post__lead {
  max-width: 58ch;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.55;
  color: var(--color-ink-soft);
  margin-bottom: 18px;
}

.blog-post__tags {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.blog-post__cover {
  margin: 8px 0 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #101010;
  max-width: 920px;
}

.blog-post__cover img {
  width: 100%;
  height: auto;
  max-height: min(58vh, 520px);
  object-fit: cover;
  object-position: center;
  display: block;
}

.blog-post__body {
  width: min(760px, 100%);
  margin: 28px auto 20px;
  padding-bottom: 40px;
}

.blog-post__body p,
.blog-post__body li {
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.7;
  color: rgba(243, 243, 243, 0.82);
}

.blog-post__body p {
  margin: 0 0 18px;
}

.blog-post__body h2 {
  margin: 40px 0 16px;
  padding-left: 14px;
  border-left: 2px solid rgba(255, 200, 170, 0.75);
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 500;
}

.blog-post__body h3 {
  margin: 28px 0 12px;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.25;
  font-weight: 600;
}

.blog-post__body ul,
.blog-post__body ol {
  margin: 0 0 20px;
  padding-left: 1.2em;
}

.blog-post__body li {
  margin-bottom: 8px;
}

.blog-post__body a {
  color: #fff;
  border-bottom: 1px solid rgba(255, 200, 170, 0.55);
}

.blog-post__body a:hover {
  opacity: 0.75;
}

.blog-post__body strong,
.blog-post__body b {
  color: #fff;
  font-weight: 600;
}

.blog-related {
  padding: 28px 0 20px;
  border-top: 1px solid var(--color-line);
}

.blog-related__grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.blog-related__card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  min-height: 140px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.blog-related__card:hover {
  border-color: rgba(255, 200, 170, 0.4);
  background: rgba(255, 255, 255, 0.03);
}

.blog-related__card h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 500;
}

.blog-related__card span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 1100px) {
  .blog-listing {
    grid-template-columns: 1fr;
  }

  .blog-aside {
    position: static;
  }

  .blog-aside__tags {
    flex-direction: row;
    flex-wrap: wrap;
    max-height: none;
    overflow: visible;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-related__grid {
    grid-template-columns: 1fr;
  }

  .blog-post__hero h1 {
    max-width: none;
  }
}
