/* Lalakai blog page: the featured post and the post grid. Loaded last, on
   blog.html only. Typefaces and copy are unchanged. */

.site-shell {
  row-gap: 88px;
}

.ll-blog {
  /* replaces the old zoom: 0.9, which pushed the page out of line with the sidebar */
  zoom: 1;
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: clamp(56px, 6vw, 88px);
  padding-top: 2rem;
}

@media (min-width: 768px) {
  .ll-blog {
    /* the featured visual's top edge sits level with the first sidebar item */
    padding-top: 5rem;
  }
}

/* featured post */

.ll-featured {
  gap: 32px;
  align-items: center;
}

@media (min-width: 900px) {
  .ll-featured {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 56px;
  }
}

.ll-featured-text {
  gap: 1.1rem;
}

.ll-featured-title {
  margin: 0;
  text-wrap: balance;
}

.ll-featured-desc {
  margin: 0;
  max-width: 40ch;
  text-wrap: pretty;
}

.ll-blog-cta {
  margin-top: 0.75rem;
  padding: 12px 22px;
  font-size: 15px;
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: var(--color-background);
}

.ll-blog-cta:hover {
  border-color: var(--color-pri-800);
  background: var(--color-pri-800);
  color: var(--color-mono-000);
}

.ll-blog-cta .ll-chev {
  transition: transform 0.18s ease;
}

.ll-blog-cta:hover .ll-chev {
  transform: translateX(3px);
}

/* the featured visual: a flowing mesh gradient (art.js, data-art="bloom")
   with the post's name over it; the deep blue shows until the canvas is ready */

.ll-featured-visual {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  background: #04142e;
  transition: border-color 0.2s ease;
}

.ll-featured-visual::before {
  content: none;
}

.ll-featured-visual:hover {
  border-color: var(--color-mono-500);
}

.ll-featured-visual .ll-featured-label {
  z-index: 5;
  color: #ffffff;
  text-shadow: 0 2px 24px rgba(2, 10, 30, 0.5);
}

.ll-featured-visual:focus-visible {
  outline: 2px solid var(--color-pri-800);
  outline-offset: 3px;
}

/* more posts */

.ll-blog-more {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--color-divider-subtle);
}

.ll-blog-more h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.ll-post-grid {
  gap: 40px 24px;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 600px) {
  .ll-post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .ll-post-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.ll-post {
  gap: 10px;
}

.ll-post-thumb {
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  transition: border-color 0.2s ease;
}

.ll-post-thumb > * {
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.ll-post:hover .ll-post-thumb {
  transform: none;
  border-color: var(--color-mono-500);
}

.ll-post:hover .ll-post-thumb > * {
  transform: scale(1.04);
}

.ll-post:focus-visible {
  outline: none;
}

.ll-post:focus-visible .ll-post-thumb {
  outline: 2px solid var(--color-pri-800);
  outline-offset: 3px;
}

.ll-post-meta {
  font-size: 13px;
}

.ll-post-title {
  text-wrap: pretty;
}

@media (prefers-reduced-motion: reduce) {
  .ll-featured-visual,
  .ll-post-thumb,
  .ll-post-thumb > *,
  .ll-blog-cta .ll-chev {
    transition: none;
  }
}
