

.blog-presentation {
  --accent: var(--pst-teal);
}

.blog-presentation .post {
  min-width: 0;
  height: 100%;
}

.post.blog-card > a {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: var(--pst-text);
}

.blog-presentation .post img {
  flex: none;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: #0c1428;
  clip-path: polygon(0 0, calc(100% - var(--chamfer)) 0, 100% var(--chamfer), 100% 100%, 0 100%);
  filter: brightness(0.82) saturate(0.9);
  transition: filter var(--time-scene);
}

.post.blog-card > a:hover img,
.post.blog-card > a:focus-visible img {
  filter: brightness(1.06) saturate(1.05);
}

.blog-presentation .blog-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px 2px 4px;
}

.blog-presentation .related-date {
  margin: 0 0 6px;
  color: var(--pst-dim);
  font-size: var(--type-min);
}

.blog-card .blog-card-label-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-bottom: 8px;
}

.blog-card .blog-card-label-wrap .blog-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--pst-cyan);
  font-size: var(--type-min);
  font-weight: 700;
}

.blog-card .blog-card-label-wrap .blog-label::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.blog-card .blog-card-label-wrap .green-label {
  color: var(--pst-mint);
}

.blog-presentation .post h3 {
  align-self: flex-start;
  margin-bottom: 0.45em;
  padding-bottom: 6px;
  font-size: clamp(1.15rem, 1.5vw, 1.35rem);
  line-height: 1.22;
  background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 2px no-repeat;
  transition: background-size 420ms var(--ease-arrive);
}

.post.blog-card > a:hover h3,
.post.blog-card > a:focus-visible h3 {
  background-size: 100% 2px;
}

.blog-presentation .post p {
  font-size: 0.95rem;
  line-height: 1.55;
}

.post.blog-card .blog-card-action {
  margin-top: auto;
  padding-top: 6px;
}

.blog-presentation .read-more {
  color: var(--pst-green);
  font-size: var(--type-small);
  font-weight: 700;
}

#blog .stage--reading {
  --stage-art-offset: 0 -1.8%;
}

.blog-featured {
  padding-block: clamp(34px, 5vw, 72px) 10px;
}

.blog-featured > .row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: center;
  margin: 0;
}

.blog-featured > .row > * {
  width: auto;
  max-width: none;
  padding: 0;
}

.blog-featured img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
}

.blog-featured > .row > :last-child:not(:first-child) {
  position: relative;
  z-index: 1;
  margin-left: -16%;
  padding: clamp(20px, 3vw, 40px);
  border-left: 2px solid var(--accent);
  background: linear-gradient(120deg, #0b1228f2, #0f1838e6);
  box-shadow: 0 30px 60px #02040f99;
}

.blog-featured h2 {
  font-size: var(--type-section);
}

.blog-presentation .library {
  padding-top: clamp(40px, 5vw, 70px);
}

.blog-presentation .article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 44px 26px;
  margin: 26px 0 34px;
  view-transition-name: article-grid;
}

.blog-presentation .article-grid > * {
  margin: 0;
  padding: 0;
}

#blog-tag-filter {
  margin: 6px 0 14px;
}

#blog-tag-filter .filter-label {
  color: var(--pst-dim);
  font-size: var(--type-small);
  font-weight: 600;
}

#tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

#tag-list button {
  min-height: 40px;
  padding: 7px 16px;
  border: 1px solid var(--pst-line-strong);
  background: #111c3d;
  color: var(--pst-text);
  font: 600 var(--type-small)/1.2 var(--font);
  cursor: pointer;
  transition: border-color var(--time-state), background var(--time-state), color var(--time-state);
}

#tag-list button:hover,
#tag-list button:focus-visible {
  border-color: var(--pst-cyan);
}

#tag-list button.active {
  border-color: var(--pst-green);
  background: #123a24;
  color: var(--pst-green);
}

#tag-list .reset-tag-btn {
  border-color: transparent;
  background: none;
  color: var(--pst-green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

#active-filter-note {
  margin: 0 0 6px;
  color: var(--pst-muted);
  font-size: var(--type-small);
}

.blog-presentation .blog-empty {
  grid-column: 1 / -1;
}

#back-to-main-blog {
  margin-bottom: 18px;
}

@media (max-width: 900px) {
  
  .blog-presentation .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .blog-featured > .row {
    grid-template-columns: minmax(0, 1fr);
  }

  .blog-featured > .row > :last-child:not(:first-child) {
    margin: -40px 14px 0;
  }
}

@media (max-width: 540px) {
  
  .blog-presentation .article-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  
  .blog-presentation .post img,
  .blog-presentation .post h3,
  #tag-list button {
    transition: none;
  }
}
