/* Blog: the post list and single posts (from the WordPress theme's wp.css). */
/* ---------- Blog hero & topics ---------- */
.blog-hero h1 {
  max-width: 760px;
}
.topic-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}
.topic-filter a {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--canvas);
  color: var(--ink-2);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.topic-filter a:hover {
  background: var(--indigo-soft);
  color: var(--indigo);
}
.topic-filter a[aria-current='page'] {
  background: var(--ink);
  color: #fff;
}

/* ---------- Post cards ---------- */
.post-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
}
.post-card {
  display: flex;
  flex-direction: column;
  padding: 12px 12px 26px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 40px -24px rgb(27 29 46 / 0.35);
}
.post-card__img {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  margin-bottom: 20px;
  border-radius: var(--r-inner);
  background: var(--canvas);
}
.post-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.post-card:hover .post-card__img img {
  transform: scale(1.04);
}
.post-card__placeholder {
  display: grid;
  place-items: center;
  height: 100%;
  background:
    radial-gradient(circle at 85% 15%, rgb(255 216 77 / 0.55), transparent 45%),
    linear-gradient(135deg, var(--indigo) 0%, #2f2a9c 100%);
}
.post-card__placeholder span {
  padding: 8px 16px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.14);
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.post-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding-inline: 12px;
}
.post-card .chip {
  width: max-content;
  margin-bottom: 12px;
  text-decoration: none;
}
.post-card__title {
  margin-bottom: 8px;
  font-size: 1.2rem;
  line-height: 1.3;
}
.post-card__title a {
  color: var(--ink);
  text-decoration: none;
}
.post-card__title a::after {
  /* The whole card is clickable. */
  content: '';
  position: absolute;
  inset: 0;
}
.post-card .chip {
  position: relative;
  z-index: 1;
}
.post-card p {
  margin: 0 0 16px;
  font-size: 0.9375rem;
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: auto 0 0;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
}
.post-card .post-meta {
  margin-bottom: 0;
}

@media (min-width: 900px) {
  .post-card--featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 12px 36px;
    align-items: center;
    padding: 12px 40px 12px 12px;
  }
  .post-card--featured .post-card__img {
    margin: 0;
    aspect-ratio: 16 / 10.5;
  }
  .post-card--featured .post-card__title {
    font-size: clamp(1.6rem, 2.4vw, 2.1rem);
    letter-spacing: -0.03em;
  }
  .post-card--featured p {
    font-size: 1.0625rem;
  }
}

.empty-feed {
  padding-block: clamp(48px, 7vw, 88px);
}
.empty-feed h2 {
  margin: 16px 0 8px;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 28px;
}
.pagination .page-numbers {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--tile);
  color: var(--ink-2);
  font-weight: 700;
  text-decoration: none;
}
.pagination .page-numbers.current {
  background: var(--ink);
  color: #fff;
}

/* ---------- Single post ---------- */
.post-hero {
  padding: clamp(28px, 4.5vw, 56px);
}
.post-hero h1 {
  max-width: 900px;
  margin-bottom: 16px;
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
}
.post-hero .lead {
  max-width: 720px;
}
.post-hero .post-meta {
  margin-top: 20px;
}
.post-meta__by {
  color: var(--ink);
}
.post-cover {
  margin: var(--gap) 0 0;
  aspect-ratio: 16 / 7;
}
.post-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-layout {
  display: grid;
  gap: var(--gap);
  align-items: start;
}
@media (min-width: 1000px) {
  .post-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
  .post-aside {
    position: sticky;
    top: calc(var(--header-h) + 16px);
  }
}
.post-aside {
  display: grid;
  gap: var(--gap);
}
.post-body {
  padding: clamp(24px, 5vw, 64px);
}
.page-body {
  max-width: 900px;
}

/* Content written in the WordPress editor. */
.post-body > * {
  max-width: 720px;
}
.post-body > :first-child {
  margin-top: 0;
}
.post-body h2 {
  margin: 1.8em 0 0.5em;
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
}
.post-body h3 {
  margin: 1.6em 0 0.4em;
  font-size: 1.3rem;
}
.post-body p,
.post-body li {
  color: var(--ink-2);
  font-size: 1.0625rem;
  line-height: 1.8;
}
.post-body ul {
  list-style: disc;
}
.post-body ol {
  list-style: decimal;
}
.post-body ul,
.post-body ol {
  padding-left: 1.3em;
}
.post-body li + li {
  margin-top: 6px;
}
.post-body a {
  color: var(--indigo);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.post-body blockquote {
  margin: 1.6em 0;
  padding: 20px 24px;
  border-left: 4px solid var(--sun);
  border-radius: 0 var(--r-inner) var(--r-inner) 0;
  background: var(--sun-soft);
}
.post-body blockquote p {
  margin: 0;
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 600;
}
.post-body img,
.post-body figure img {
  max-width: 100%;
  height: auto;
  border-radius: var(--r-inner);
}
.post-body figure {
  margin: 1.8em 0;
}
.post-body figcaption,
.post-body .wp-element-caption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.875rem;
  text-align: center;
}
.post-body .alignwide,
.post-body .alignfull {
  max-width: none;
}
.post-body .aligncenter {
  margin-inline: auto;
}
.post-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
.post-body th,
.post-body td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.post-body hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2em 0;
}
.post-body .wp-block-button__link {
  display: inline-flex;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--indigo);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}
.post-tags .chip {
  text-decoration: none;
}

.share__title {
  margin: 0 0 12px;
  color: var(--ink) !important;
  font-weight: 800;
}
.share__links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.share__links a {
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--canvas);
  color: var(--ink-2);
  font-size: 0.875rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}
.share__links a:hover {
  background: var(--indigo-soft);
  color: var(--indigo);
}
.aside-cta strong {
  display: block;
  font-size: 1.15rem;
}
.aside-cta p {
  margin: 4px 0 16px;
}

/* ---------- Call to action ---------- */
.blog-cta {
  display: grid;
  gap: 24px;
  align-items: center;
  padding: clamp(28px, 5vw, 56px);
}
@media (min-width: 900px) {
  .blog-cta {
    grid-template-columns: 1fr auto;
  }
}
.blog-cta h2 {
  margin: 14px 0 10px;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}
.blog-cta .lead {
  margin: 0;
}

.not-found h1 {
  max-width: 640px;
  margin: 16px auto 12px;
  font-size: clamp(2rem, 4vw, 3rem);
}
.not-found .btns {
  justify-content: center;
  margin-top: 24px;
}

