.blog-home {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--blog-sidebar-width);
  gap: var(--blog-layout-gap);
  align-items: start;
  padding-bottom: var(--space-3xl);
}

.blog-home.shell-wide {
  width: var(--shell-100-pourcent);
}

.blog-archive-header {
  background: var(--aqua);
  color: var(--paper);
  text-align: center;
}

.blog-archive-header-inner {
  width: min(900px, calc(100% - (var(--shell-gutter) * 2)));
  margin-inline: auto;
  padding: clamp(3.5rem, 6vw, 6rem) 0 clamp(2.5rem, 5vw, 4.5rem);
}

.blog-archive-header h1 {
  color: var(--paper);
  font-size: var(--text-2xl);
}

.blog-archive-description {
  max-width: 62ch;
  margin: var(--space-md) auto 0;
  color: rgb(255 255 255 / 84%);
  font-size: var(--text-md);
}

.blog-archive-wave {
  height: var(--wave-height);
}

.blog-archive-list {
  padding-top: clamp(2.5rem, 5vw, 5rem);
}

.content-column > h2 {
  margin-bottom: var(--blog-title-margin-bottom);
  text-align: center;
}

.post-grid {
  column-count: 3;
  column-gap: var(--post-column-gap);
}

.blog-home.is-blog-archive .post-grid {
  column-count: 2;
}

.post-card {
  display: inline-flex;
  width: 100%;
  min-height: var(--post-card-min-height);
  margin-bottom: var(--post-card-margin-bottom);
  flex-direction: column;
  overflow: hidden;
  break-inside: avoid;
  border: var(--post-card-border);
  border-radius: var(--radius-md);
  background: var(--post-card-bg);
  box-shadow: var(--shadow-card);
}

.post-card img {
  width: 100%;
  height: var(--post-card-image-height);
  object-fit: cover;
  object-position: var(--post-card-image-object-position);
}

.post-card:nth-child(3n + 1) img {
  height: var(--post-card-image-height-short);
}

.post-card:nth-child(3n + 2) img {
  height: var(--post-card-image-height);
}

.post-card:nth-child(3n) img {
  height: var(--post-card-image-height-tall);
}

.blog-home.is-home-preview .post-card img,
.blog-home.is-home-preview .post-card:nth-child(3n + 1) img,
.blog-home.is-home-preview .post-card:nth-child(3n + 2) img,
.blog-home.is-home-preview .post-card:nth-child(3n) img {
  height: var(--post-card-home-image-height);
  object-fit: var(--post-card-home-image-object-fit);
}

.blog-home.is-blog-archive .post-card img,
.blog-home.is-blog-archive .post-card:nth-child(3n + 1) img,
.blog-home.is-blog-archive .post-card:nth-child(3n + 2) img,
.blog-home.is-blog-archive .post-card:nth-child(3n) img {
  height: var(--post-card-archive-image-height);
  object-fit: var(--post-card-archive-image-object-fit);
}

.post-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: var(--post-card-body-padding);
}

.post-card h3 {
  font-size: var(--post-card-title-size);
}

.post-card h2 {
  font-size: var(--post-card-title-size);
}

.post-card h2 a,
.post-card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.post-card h2 a:hover,
.post-card h2 a:focus-visible,
.post-card h3 a:hover,
.post-card h3 a:focus-visible {
  color: var(--orange);
}

.post-card p {
  margin-bottom: var(--space-md);
  font-size: var(--post-card-copy-size);
}

.post-card a {
  margin-top: auto;
  color: var(--orange);
  font-size: var(--post-card-link-size);
  font-weight: 800;
}

.blog-pagination {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: clamp(1.75rem, 3vw, 3rem) auto 0;
}

.blog-pagination .nav-links {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.15rem;
  min-height: 2.15rem;
  padding: 0.45rem 0.7rem;
  border: var(--border-size-sm) solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  box-shadow: var(--shadow-card);
  transition:
    background var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast),
    transform var(--transition-fast);
}

.blog-pagination .page-numbers:hover,
.blog-pagination .page-numbers:focus-visible {
  border-color: var(--aqua-dark);
  background: var(--aqua-pale);
  color: var(--aqua-deep);
  transform: translateY(-1px);
}

.blog-pagination .page-numbers.current {
  border-color: var(--aqua-dark);
  background: var(--aqua);
  color: var(--paper);
}

.blog-pagination .page-numbers.prev,
.blog-pagination .page-numbers.next {
  min-width: 5.5rem;
  color: var(--orange);
}

.blog-pagination .page-numbers.dots {
  min-width: auto;
  border-color: var(--transparent);
  background: var(--transparent);
  box-shadow: none;
  color: var(--muted);
}

.blog-pagination .page-numbers.dots:hover {
  transform: none;
}

.blog-posts-footer {
  display: flex;
  justify-content: center;
  margin-top: clamp(1.75rem, 3vw, 3rem);
}

.view-all-posts {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: var(--space-sm) var(--space-xl);
  border: var(--border-size-sm) solid var(--orange);
  border-radius: var(--radius-pill);
  background: var(--orange);
  color: var(--paper);
  font-family: var(--font-main);
  font-size: var(--text-sm);
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  box-shadow: var(--shadow-card);
  transition:
    background var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast),
    transform var(--transition-fast);
}

.view-all-posts:hover,
.view-all-posts:focus-visible {
  border-color: var(--aqua-dark);
  background: var(--aqua);
  color: var(--paper);
  transform: translateY(-1px);
}

.blog-archive-empty {
  display: grid;
  gap: var(--space-sm);
  width: 100%;
  padding: var(--space-2xl);
  border: var(--border-size-sm) solid var(--line);
  border-radius: var(--radius-md);
  background: var(--mist);
  color: var(--ink-soft);
  box-shadow: var(--shadow-card);
}

.blog-archive-empty h2 {
  color: var(--ink);
}

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

  .post-grid {
    column-count: 2;
  }
}

@media (max-width: 700px) {
  .post-grid {
    column-count: 1;
  }
}

