/* ==========================================================================
   6ixmerchandise — blog index + article (§2.9)
   Owner: FE-3. Depends on collection.css for the shared primitives.
   ========================================================================== */

.sixm-blog {
  max-width: var(--narrow-page-width);
  margin: 0 auto;
  padding: 0 var(--6m-gutter) 64px;
}

.sixm-blog__header { padding: 40px 0 28px; }

.sixm-blog__title {
  font-family: var(--6m-display);
  font-weight: 400;
  font-size: clamp(48px, 11vw, 92px);
  line-height: 0.92;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 6px 0 0;
  color: var(--6m-ink);
}

.sixm-blog__sub { margin: 14px 0 0; font-size: 14px; color: var(--6m-muted); max-width: 640px; }

.sixm-blog__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px 24px;
}

@media screen and (min-width: 768px) {
  .sixm-blog { padding-inline: var(--6m-gutter-d); }
  .sixm-blog__grid { grid-template-columns: repeat(3, 1fr); }
}

.sixm-post-card { min-width: 0; }
.sixm-post-card__link { display: block; color: inherit; text-decoration: none; }

.sixm-post-card__media {
  display: block;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: var(--6m-bg-2);
}

.sixm-post-card__media--empty { background: linear-gradient(135deg, #1a1a1a, #3a3a3a); }
.sixm-post-card__img { display: block; width: 100%; height: 100%; object-fit: cover; }

.sixm-post-card__meta {
  display: block;
  margin-top: 14px;
  color: var(--6m-muted);
  font-size: 10px;
}

.sixm-post-card__title {
  margin: 8px 0 0;
  font-family: var(--6m-sans);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--6m-ink);
}

.sixm-post-card__excerpt { display: block; margin-top: 8px; font-size: 13.5px; line-height: 1.55; color: var(--6m-muted); }
.sixm-post-card__cta { display: block; margin-top: 12px; color: var(--6m-signal); }
.sixm-post-card__link:hover .sixm-post-card__title { text-decoration: underline; text-underline-offset: 3px; }

.sixm-pagination--posts .nav-links {
  display: flex;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
  padding: var(--padding-xl) 0 0;
}

.sixm-pagination--posts .page-numbers {
  display: grid;
  place-items: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border-radius: 6px;
  color: var(--6m-ink);
  text-decoration: none;
  font-size: 14px;
}

.sixm-pagination--posts .page-numbers.current {
  background: var(--6m-ink);
  color: var(--6m-bg);
}

/* --------------------------------------------------------------------------
   Article
   -------------------------------------------------------------------------- */

.sixm-article { padding-bottom: 64px; }

.sixm-article__hero {
  position: relative;
  display: grid;
  background: #151515;
  isolation: isolate;
}

.sixm-article__hero > * { grid-area: 1 / 1; }

.sixm-article__hero-img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}

.sixm-article__hero::after {
  content: "";
  grid-area: 1 / 1;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 30%, rgba(0, 0, 0, 0.85) 100%);
  z-index: 1;
}

.sixm-article__hero--flat { min-height: 320px; }

.sixm-article__hero-text {
  position: relative;
  z-index: 2;
  align-self: end;
  max-width: var(--narrow-page-width);
  width: 100%;
  margin: 0 auto;
  padding: 32px var(--6m-gutter);
  color: #fff;
}

.sixm-article__title {
  font-family: var(--6m-display);
  font-weight: 400;
  font-size: clamp(32px, 6vw, 60px);
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 8px 0 0;
  max-width: 18em;
  /* Explicit: Kadence colours headings from its global palette, which would render the
     title in near-black over the dark hero. */
  color: #fff;
}

.sixm-article__meta { margin: 12px 0 0; color: rgba(255, 255, 255, 0.75); }

.sixm-article__content {
  max-width: var(--normal-content-width);
  margin: 32px auto 0;
  padding: 0 var(--6m-gutter);
  font-size: 16px;
  line-height: 1.7;
  color: var(--6m-ink);
}

.sixm-article__footer {
  max-width: var(--normal-content-width);
  margin: 40px auto 0;
  padding: 0 var(--6m-gutter);
}

.sixm-article__back { color: var(--6m-signal); text-decoration: none; }

@media screen and (min-width: 768px) {
  .sixm-article__hero--flat { min-height: 460px; }
  .sixm-article__hero-text { padding-inline: var(--6m-gutter-d); }
}

@supports not (aspect-ratio: 1 / 1) {
  .sixm-article__hero-img { height: 320px; }
  @media screen and (min-width: 768px) {
    .sixm-article__hero-img { height: 460px; }
  }
}
