

.page-posts .subhero__text {
  max-width: 820px;
}

.page-posts .sec {
  padding-top: 72px;
}

@media (max-width: 980px) {
  .page-posts .sec {
    padding-top: 32px;
  }
}

.post-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  overflow: hidden;
  transition:
    transform .35s var(--easing-out),
    box-shadow .35s var(--easing-out),
    border-color .35s var(--easing-out),
    opacity .9s cubic-bezier(.22, .9, .25, 1);
}

.post-feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(var(--primary-rgb), 0.18);
  border-color: transparent;
}

.post-feature__media {
  position: relative;
  display: block;
  min-height: 420px;
  
  overflow: hidden;
  background: var(--bg-soft);
}

.post-feature__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .8s var(--easing-out);
}

.post-feature__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(12, 20, 38, 0.18) 100%);
  opacity: 0;
  transition: opacity .5s var(--easing-out);
  pointer-events: none;
}

.post-feature:hover .post-feature__media img {
  transform: scale(1.04);
}

.post-feature:hover .post-feature__media::after {
  opacity: 1;
}

.post-feature__tag {
  position: absolute;
  top: 22px;
  left: 22px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--primary);
  font-size: 11px;
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.post-feature__tag i {
  font-size: 12px;
}

.post-feature__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  
  align-items: flex-start;
  gap: 16px;
  padding: 48px 44px;
  text-align: left;
}

.post-feature__meta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 7px 16px;
  border-radius: var(--r-pill);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  font-size: var(--text-xs);
  color: var(--text-soft);
  letter-spacing: 0.01em;
}

.post-feature__meta i {
  color: var(--primary);
  font-size: 13px;
}

.post-feature__meta strong {
  color: var(--ink);
  font-weight: var(--fw-semibold);
}

.post-feature__meta-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--border-strong);
}

.post-feature__title-link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: color .2s ease;
}

.post-feature__title-link:hover {
  color: var(--primary);
}

.post-feature__title-link h2 {
  margin: 4px 0 0;
  font-size: clamp(22px, 2.8vw, 30px);
  
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-tighter);
  color: var(--ink);
  line-height: 1.2;
  text-wrap: balance;
}

.post-feature__excerpt {
  margin: 0;
  max-width: 700px;
  font-size: var(--body);
  
  line-height: 1.65;
  color: var(--text-soft);
  text-wrap: pretty;
  
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-feature__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  
  padding: 10px 20px;
  
  border-radius: var(--r-pill);
  background: var(--primary);
  color: #fff;
  font-size: var(--text-sm);
  
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-wide);
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.post-feature__link:hover {
  background: var(--primary-deep);
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
  color: #fff;
}

.post-feature__link i {
  font-size: 13px;
  transition: transform .2s ease;
}

.post-feature:hover .post-feature__link i {
  transform: translateX(3px);
}

.post-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.post-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--text);
  transition: background .2s ease, border-color .2s ease, color .2s ease;
  cursor: pointer;
}

.post-filter:hover {
  border-color: var(--border-strong);
  background: var(--bg-soft);
}

.post-filter.is-active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.post-filter__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--r-pill);
  background: var(--bg-soft);
  color: var(--text-faint);
  font-size: 11px;
  font-weight: var(--fw-semibold);
}

.post-filter.is-active .post-filter__count {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition:
    transform .35s var(--easing-out),
    box-shadow .35s var(--easing-out),
    border-color .35s var(--easing-out),
    opacity .9s cubic-bezier(.22, .9, .25, 1);
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(var(--primary-rgb), 0.18);
  border-color: transparent;
}

.post-card__media {
  position: relative;
  display: block;
  aspect-ratio: 5 / 3;
  overflow: hidden;
  background: var(--bg-soft);
}

.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s var(--easing-out);
}

.post-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(12, 20, 38, 0.20) 100%);
  opacity: 0;
  transition: opacity .5s var(--easing-out);
  pointer-events: none;
}

.post-card:hover .post-card__media img {
  transform: scale(1.05);
}

.post-card:hover .post-card__media::after {
  opacity: 1;
}

.post-card__tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--primary);
  font-size: 10.5px;
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.post-card__tag i {
  font-size: 11px;
}

.post-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 24px 24px;
  flex: 1;
}

.post-card__meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  color: var(--text-faint);
  letter-spacing: 0.02em;
}

.post-card__meta-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-faint);
}

.post-card__title-link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: color .2s ease;
}

.post-card__title-link:hover {
  color: var(--primary);
}

.post-card__title-link h3 {
  margin: 0;
  font-size: clamp(17px, 1.7vw, 19px);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-tight);
  color: var(--ink);
  line-height: 1.25;
  text-wrap: balance;
  
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card__excerpt {
  margin: 0;
  font-size: var(--text-sm);
  line-height: var(--lh-relaxed);
  color: var(--text-soft);
  
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 6px;
  font-size: 12.5px;
  font-weight: var(--fw-semibold);
  color: var(--primary);
  letter-spacing: -0.005em;
  width: max-content;
  transition: color .2s ease;
}

.post-card__link i {
  font-size: 13px;
  transition: transform .2s ease;
}

.post-card__link:hover {
  color: var(--primary-deep);
}

.post-card:hover .post-card__link i {
  transform: translateX(3px);
}

.post-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 48px;
}

.post-pagination a,
.post-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--text);
}

.post-pagination a:hover {
  background: var(--bg-soft);
}

.post-pagination .is-current {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.post-pagination .is-disabled {
  color: var(--text-faint);
  background: transparent;
  cursor: not-allowed;
}

.post-hero {
  position: relative;
  padding: 0;
}

.post-hero__band {
  background: var(--bg-soft);
  padding: 120px 0 60px;
  
  position: relative;
  overflow: hidden;
}

.post-hero__band::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 340px;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(255, 255, 255, 0.6) 45%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

.post-hero__band .container {
  position: relative;
  z-index: 1;
}

.post-hero__inner {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}

@media (max-width: 768px) {
  .post-hero__band {
    padding: 96px 0 40px;
  }
}

.post-hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  margin-bottom: 22px;
  border-radius: var(--r-pill);
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid rgba(var(--primary-rgb), 0.14);
  font-size: 11px;
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.post-hero__tag i {
  font-size: 13px;
}

.post-hero h1 {
  margin: 0 0 30px;
  
  font-size: clamp(28px, 4vw, 46px);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-tighter);
  color: var(--ink);
  line-height: 1.1;
  text-wrap: balance;
}

.post-hero__lead {
  margin: 0 0 28px;
  font-size: var(--text-lg);
  line-height: 1.6;
  color: var(--text-soft);
  text-wrap: balance;
}

.post-hero__meta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 18px;
  padding: 8px 24px;
  border-radius: var(--r-pill);
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: var(--text-sm);
}

.post-hero__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-soft);
}

.post-hero__meta-item i {
  color: var(--primary);
  font-size: 15px;
}

.post-hero__meta-item strong {
  color: var(--ink);
  font-weight: var(--fw-semibold);
}

.post-hero__meta-sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--border-strong);
}

.post-hero__cover {
  margin: 56px auto 0;
  
  max-width: 1200px;
  border-radius: var(--r-2xl);
  overflow: hidden;
  aspect-ratio: 21 / 9;
  background: var(--bg-soft);
  box-shadow: var(--shadow-lg);
}

.post-hero__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 56px;
  align-items: start;
  
  max-width: 1180px;
  margin: 0 auto;
}

.post-layout>* {
  min-width: 0;
}

.post-article {
  max-width: 760px;
}

.post-article>*:first-child {
  margin-top: 0;
}

.post-article h2,
.post-article h3 {
  scroll-margin-top: 100px;
}

@media (max-width: 768px) {

  .post-article h2,
  .post-article h3 {
    scroll-margin-top: 80px;
  }
}

.post-article.prose>h2+*,
.post-article.prose>h3+* {
  margin-top: 12px;
}

.post-article.prose ul,
.post-article.prose ol {
  list-style: none;
  padding-left: 0;
  display: block;
  
  gap: 0;
}

.post-article.prose ul>li,
.post-article.prose ol>li {
  position: relative;
  padding-left: 28px;
  margin-top: 10px;
  line-height: 1.6;
}

.post-article.prose ul>li:first-child,
.post-article.prose ol>li:first-child {
  margin-top: 0;
}

.post-article.prose ul>li::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 11px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
  transform: rotate(45deg);
}

.post-article.prose ol {
  counter-reset: post-list;
}

.post-article.prose ol>li {
  counter-increment: post-list;
}

.post-article.prose ol>li::before {
  content: counter(post-list, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  line-height: 1.6;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: var(--fw-bold);
  color: var(--primary);
  letter-spacing: 0.02em;
}

.post-article.prose table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 24px 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  font-size: var(--body-sm);
}

.post-article.prose thead {
  background: var(--bg-soft);
}

.post-article.prose th {
  text-align: left;
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  border-bottom: 1px solid var(--border);
}

.post-article.prose td {
  padding: 14px 18px;
  color: var(--ink);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.5;
}

.post-article.prose tr:last-child td {
  border-bottom: 0;
}

.post-article.prose tbody tr {
  transition: background .2s ease;
}

.post-article.prose tbody tr:hover {
  background: var(--bg-soft);
}

.post-article.prose td:first-child {
  font-weight: var(--fw-semibold);
  color: var(--ink);
}

.post-article.prose td strong {
  color: var(--accent-deep);
  font-weight: var(--fw-semibold);
}

@media (max-width: 600px) {
  .post-article.prose table {
    font-size: var(--text-sm);
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .post-article.prose th,
  .post-article.prose td {
    padding: 12px 14px;
  }
}

.post-side {
  position: sticky;
  top: 110px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.post-share {
  padding: 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}

.post-share__title {
  display: block;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.post-share__btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.post-share__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-soft);
  font-size: 17px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.post-share__btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-2px);
}

.post-toc {
  padding: 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}

.post-toc__title {
  display: block;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.post-toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  counter-reset: toc;
}

.post-toc__list a {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 7px 10px;
  border-radius: var(--r-sm);
  font-size: var(--text-sm);
  line-height: 1.4;
  color: var(--text-soft);
  transition: background .2s ease, color .2s ease;
  counter-increment: toc;
}

.post-toc__list a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-faint);
  font-weight: var(--fw-semibold);
}

.post-toc__list a:hover {
  background: var(--bg-soft);
  color: var(--ink);
}

.post-toc__list a.is-active {
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: var(--fw-semibold);
}

.post-toc__list a.is-active::before {
  color: var(--primary);
}

.post-foot {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  
  align-items: center;
}

.post-foot__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.post-foot__tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  background: var(--bg-soft);
  color: var(--text);
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  transition: background .2s ease, color .2s ease;
}

.post-foot__tag:hover {
  background: var(--primary);
  color: #fff;
}

.post-foot__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--r-pill);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-wide);
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.post-foot__back:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-1px);
}

.post-foot__back i {
  font-size: 14px;
  transition: transform .2s ease;
}

.post-foot__back:hover i {
  transform: translateX(-3px);
}

@media (max-width: 900px) {
  .post-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .post-side {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .post-share,
  .post-toc {
    flex: 1 1 280px;
  }
}

@media (max-width: 1024px) {
  .post-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }

  .post-feature__media {
    min-height: 360px;
  }

  .post-feature__body {
    padding: 36px 32px;
    gap: 14px;
  }
}

@media (max-width: 860px) {

  .post-feature {
    grid-template-columns: 1fr;
  }

  .post-feature__media {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 768px) {

  .post-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .post-card__body {
    padding: 18px 20px 22px;
  }

  .post-feature__media {
    aspect-ratio: 4 / 3;
  }

  .post-feature__body {
    padding: 28px 22px;
    gap: 12px;
  }

  .post-feature__title-link h2 {
    font-size: clamp(22px, 6vw, 28px);
  }

  .post-feature__excerpt {
    font-size: var(--body-sm);
  }

  .post-feature__meta {
    padding: 6px 12px;
    font-size: 11px;
    gap: 8px;
    flex-wrap: wrap;
  }

  .post-feature__link {
    padding: 11px 22px;
    font-size: var(--text-sm);
  }

  .post-hero__cover {
    margin-top: 36px;
    aspect-ratio: 16 / 9;
    
    border-radius: var(--r-lg);
  }

  .post-hero__meta {
    padding: 11px 16px;
    gap: 8px 14px;
    font-size: var(--text-xs);
  }

  .post-hero h1 {
    font-size: clamp(24px, 6.5vw, 32px);
  }

  .post-hero__lead {
    font-size: var(--body);
    margin-bottom: 22px;
  }

  .post-filters {
    gap: 6px;
    margin-bottom: 22px;
  }

  .post-filter {
    padding: 7px 12px;
    font-size: var(--text-xs);
  }

  .post-side {
    flex-direction: column;
    gap: 14px;
  }

  .post-pagination {
    margin-top: 36px;
    flex-wrap: wrap;
  }

  .post-article.prose {
    font-size: var(--body-sm);
  }

  .post-article.prose ul>li::before {
    top: 9px;
  }
}

@media (max-width: 480px) {
  .post-hero h1 {
    font-size: clamp(22px, 7vw, 28px);
  }

  .post-hero__cover {
    margin-top: 28px;
    aspect-ratio: 3 / 2;
  }
}