:root {
  --muted: #eae7ff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.blog-page {
  padding-bottom: clamp(4rem, 7vw, 6rem);
}

.blog-shell {
  width: min(100%, var(--container));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.blog-hero {
  position: relative;
  padding: clamp(4.5rem, 7vw, 6.5rem) 0 clamp(2.25rem, 5vw, 3.5rem);
  isolation: isolate;
}

.blog-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(
      55% 55% at 50% 20%,
      rgba(138, 107, 255, 0.2),
      rgba(138, 107, 255, 0) 70%
    ),
    linear-gradient(to bottom, rgba(12, 11, 13, 0.15), rgba(12, 11, 13, 0.55));
  pointer-events: none;
}

.blog-hero .blog-shell {
  position: relative;
  z-index: 1;
}

.blog-hero__container {
  max-width: var(--container);
  margin: 0 auto;
  text-align: center;
}

.blog-hero__kicker {
  display: inline-block;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #f3f0ff;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.blog-hero__title {
  margin-top: 1rem;
  padding-bottom: 0.14em;
  color: #fff;
  font-size: clamp(2rem, 4.8vw, 3.1rem);
  line-height: 1.14;
  letter-spacing: 0.02em;
  font-weight: 900;
  background: linear-gradient(180deg, #fff 0%, #e9e5ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

.blog-hero__lead {
  margin: 1.1rem auto 0;
  max-width: 72ch;
  color: var(--muted);
  line-height: 1.75;
  opacity: 0.98;
}

.blog-hero__topics {
  padding: 2.1rem 0 2.4rem;
}

.blog-hero__cta {
  margin-top: 1.35rem;
  display: flex;
  justify-content: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.blog-topics {
  position: relative;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
}

.chip {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.92);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.72rem 0.92rem;
  border-radius: 0.85rem;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.chip::before {
  content: "#";
  margin-right: 0.35rem;
  color: rgba(255, 255, 255, 0.95);
}

.chip:hover,
.chip:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.chip.is-active {
  background: rgba(138, 107, 255, 0.18);
  border-color: rgba(185, 175, 255, 0.34);
  box-shadow: 0 12px 26px rgba(138, 107, 255, 0.14);
}

.blog-list {
  padding-bottom: 1rem;
}

.blog-list__header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1rem;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 1.4rem;
  margin-bottom: 1.75rem;
}

.blog-list__heading {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}

.blog-list__back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.1rem;
  height: 3.1rem;
  border: 0;
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(138, 107, 255, 0.98), rgba(166, 136, 255, 0.96)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
  color: #fff;
  font: inherit;
  cursor: pointer;
  box-shadow:
    0 16px 34px rgba(138, 107, 255, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease,
    background 0.2s ease;
}

.blog-list__back:hover,
.blog-list__back:focus-visible {
  transform: translateY(-1px);
  box-shadow:
    0 20px 38px rgba(138, 107, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  filter: brightness(1.08);
}

.blog-list__back svg {
  width: 1.5rem;
  height: 1.5rem;
  transform: translateX(-1px);
}

.blog-list__back[hidden] {
  display: none;
}

.blog-list__title {
  color: #fff;
  font-size: clamp(1.5rem, 2vw, 1.95rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-weight: 900;
}

.blog-list__summary {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.94rem;
  font-weight: 700;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.15rem;
}

.card {
  display: grid;
  align-content: start;
  gap: 0.85rem;
  padding: 0.9rem;
  border-radius: 1.5rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.025)),
    rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.card:hover,
.card:focus-within {
  transform: translateY(-4px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.03);
  border-color: rgba(185, 175, 255, 0.22);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.18);
}

.card[hidden] {
  display: none;
}

.card__media {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 1.15rem;
  aspect-ratio: 16 / 10;
  background: rgba(255, 255, 255, 0.04);
}

.card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card:hover .card__media img,
.card:focus-within .card__media img {
  transform: scale(1.03);
}

.card__badge {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  display: inline-flex;
  align-items: center;
  min-height: 1.9rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: #fff;
  color: #ff4b9b;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.card__content {
  display: grid;
  gap: 0.72rem;
  min-width: 0;
  padding: 1rem 0.95rem 0.85rem;
  border-radius: 1rem;
  background: rgba(20, 23, 47, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.card__taxonomy {
  color: rgba(185, 175, 255, 0.98);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
}

.card__date {
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
}

.card__title {
  color: #fff;
  font-size: 1rem;
  line-height: 1.45;
  letter-spacing: -0.03em;
  font-weight: 800;
  text-align: center;
  text-wrap: balance;
  min-height: 5.5em;
}

.card__title a {
  color: inherit;
}

.card__title a:hover,
.card__title a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  padding: 0;
  margin-top: 0.35rem;
  margin-bottom: 0.1rem;
}

.card__tags li {
  list-style: none;
}

.card__tag {
  padding: 0.42rem 0.72rem;
  border-radius: 0.7rem;
  background: rgba(22, 24, 44, 0.8);
  border: 1px solid rgba(138, 107, 255, 0.35);
  color: rgba(255, 255, 255, 0.92);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.card__tag:hover,
.card__tag:focus-visible {
  transform: translateY(-1px);
  background: rgba(34, 37, 66, 0.92);
  border-color: rgba(185, 175, 255, 0.45);
}

.empty {
  padding: 1rem 1.05rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(234, 231, 255, 0.74);
}

@media (max-width: 1080px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .blog-hero {
    padding-top: 4rem;
  }

  .card {
    padding: 0.8rem;
  }
}

@media (max-width: 560px) {
  .cards {
    grid-template-columns: 1fr;
  }
}
