/* =====================================================
   BLOG
===================================================== */

.bl-shell {
  padding-left: 2rem;
  padding-right: 2rem;
}


/* =====================================================
   HERO
===================================================== */

.bl-hero {
  padding-top: 6rem;
  padding-bottom: 5rem;
}

.bl-kicker {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.bl-kicker > span:first-child {
  width: 2rem;
  height: 1px;

  background: currentColor;

  opacity: .4;
}

.bl-title {
  margin-top: 2.5rem;

  max-width: none;

  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 700;

  line-height: .95;
  letter-spacing: -.02em;

  text-transform: uppercase;
}
.bl-title .highlight-teal {
  display: inline;
  white-space: nowrap;
}

.bl-intro {
  margin-top: 2rem;

  max-width: 38rem;

  color: var(--muted-foreground);

  font-size: 1rem;
  line-height: 1.7;
}


/* =====================================================
   GRID DE ARTÍCULOS
===================================================== */

.bl-posts {
  padding: 4rem 2rem 6rem;
}

.bl-post-grid {
  display: grid;
  gap: 1.25rem;
}


/* =====================================================
   TARJETA
===================================================== */

.bl-post {
  min-height: 380px;

  border: 1px solid var(--border);

  background: var(--background);

  overflow: hidden;

  transition:
    transform .35s ease,
    border-color .35s ease,
    box-shadow .35s ease;
}

.bl-post:hover {
  transform: translateY(-6px);

  border-color: var(--ink);

  box-shadow:
    0 24px 50px -28px
    rgba(0, 0, 0, .25);
}

.bl-post-link {
  min-height: 380px;

  padding: 1.75rem;

  display: flex;
  flex-direction: column;

  color: inherit;
}


/* =====================================================
   META
===================================================== */

.bl-post-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 1rem;
}

.bl-tag {
  display: inline-flex;

  padding: .5rem .65rem;
}


/* =====================================================
   TÍTULO + TEXTO
===================================================== */

.bl-post h2 {
  margin-top: 3rem;

  max-width: 16ch;

  font-family: var(--font-display);

  font-size: 2rem;
  font-weight: 700;

  line-height: .98;
  letter-spacing: -.005em;

  text-transform: uppercase;

  transition: transform .3s ease;
}

.bl-post:hover h2 {
  transform: translateX(4px);
}

.bl-post p {
  margin-top: 1.5rem;

  max-width: 34rem;

  color: var(--muted-foreground);

  font-size: .875rem;
  line-height: 1.7;
}


/* =====================================================
   FLECHA
===================================================== */

.bl-post-footer {
  margin-top: auto;

  padding-top: 3rem;

  display: flex;
  justify-content: flex-end;
}

.bl-arrow {
  font-size: 2rem;

  transition: transform .3s ease;
}

.bl-post:hover .bl-arrow {
  transform: translateX(6px);
}


/* =====================================================
   HOVER POR CATEGORÍA
===================================================== */

.bl-post:nth-child(1):hover {
  background:
    color-mix(
      in oklab,
      var(--brand-yellow) 16%,
      var(--background)
    );
}

.bl-post:nth-child(2):hover {
  background:
    color-mix(
      in oklab,
      var(--brand-teal) 16%,
      var(--background)
    );
}

.bl-post:nth-child(3):hover {
  background:
    color-mix(
      in oklab,
      var(--brand-orange) 16%,
      var(--background)
    );
}


/* =====================================================
   CTA DEMO
===================================================== */

.bl-demo {
  background: var(--ink);
  color: var(--cream);
}

.bl-demo .bl-shell {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.bl-demo-grid {
  display: grid;
  gap: 2.5rem;
}

.bl-demo h2 {
  margin-top: 1.5rem;

  max-width: 34rem;

  color: var(--cream);

  font-family: var(--font-display);

  font-size: 2rem;
  font-weight: 700;

  line-height: .98;
  letter-spacing: -.01em;

  text-transform: uppercase;
}

.bl-demo-button {
  width: fit-content;

  display: inline-flex;
  align-items: center;

  gap: .75rem;

  padding: .85rem 1.25rem;

  background: var(--brand-yellow);
  color: var(--ink);

  transition:
    transform .25s ease,
    gap .25s ease;
}

.bl-demo-button:hover {
  transform: translateY(-2px);
  gap: 1rem;
}

.bl-demo-button span {
  transition: transform .25s ease;
}

.bl-demo-button:hover span {
  transform: translateX(3px);
}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (min-width: 640px) {

  .bl-post-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

}


@media (min-width: 768px) {

  .bl-title {
    font-size: 3.5rem;
  }

  .bl-intro {
    font-size: 1.0625rem;
  }

  .bl-post h2 {
    font-size: 2.25rem;
  }

  .bl-demo-grid {
    grid-template-columns:
      1fr auto;

    align-items: end;
  }

  .bl-demo h2 {
    font-size: 2.75rem;
  }

}


@media (min-width: 1024px) {

  .bl-shell {
    padding-left: 4rem;
    padding-right: 4rem;
  }

  .bl-hero {
    padding-top: 8rem;
    padding-bottom: 6rem;
  }

  .bl-title {
    font-size: 4.5rem;
  }

  .bl-posts {
    padding:
      5rem
      4rem
      8rem;
  }

  .bl-post-grid {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));
  }

  .bl-post,
  .bl-post-link {
    min-height: 440px;
  }

  .bl-post-link {
    padding: 2rem;
  }

  .bl-post h2 {
    font-size: 2.5rem;
  }

  .bl-post p {
    font-size: .9rem;
  }

  .bl-demo .bl-shell {
    padding-top: 7rem;
    padding-bottom: 7rem;
  }

  .bl-demo h2 {
    font-size: 3.5rem;
  }

}