/* Content pages and the logbook: the article (when a site has no content/_layout.html, its
   pages use sbs-pkg's) and post cards ({{posts|posts}}, {{latestPosts|posts}}, /logbook/).
   Copied into the site by sbs-pkg-sync; loaded before the site's own styles.css, so a site
   restyles any of it there. Colors and shapes come from the site's theme variables. */

.article {
  padding: clamp(32px, 6vw, 64px) 0 clamp(40px, 7vw, 80px);
  min-height: 55vh;
}
.article-wrap {
  max-width: 46rem;
}
.article-head {
  margin: 8px 0 20px;
}
.article-head h1 {
  margin: 4px 0 12px;
  font-size: clamp(2rem, 4.5vw, 3rem);
}
.article-hero {
  margin: 24px 0;
}
.article-hero img {
  width: 100%;
  height: auto;
  border-radius: var(--radius, 12px);
}
.prose {
  font-size: 1.08rem;
  line-height: 1.65;
}
.prose img {
  max-width: 100%;
  height: auto;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 24px;
}
.gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
}
.article-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: center;
  justify-content: space-between;
  margin: 40px 0 8px;
  padding: 20px 24px;
  border: 1px solid var(--line, #d9dee3);
  border-radius: var(--radius, 12px);
}
.article-cta h2 {
  margin: 0 0 4px;
  font-size: 1.25rem;
}
.article-cta p {
  margin: 0;
}
.article-cta-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Post cards */
.post-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 20px;
  margin: 20px 0;
}
.post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line, #d9dee3);
  border-radius: var(--radius, 12px);
  background: var(--paper, #fff);
  color: inherit;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
/* cards inside an article's text (the logbook page) keep their own type, not the text's links */
.prose .post-cards {
  font-size: 1rem;
  line-height: 1.5;
}
.prose .post-card {
  font-weight: 400;
  text-decoration: none;
}
.post-card:hover,
.post-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow, 0 8px 24px rgb(0 0 0 / 0.12));
}
.post-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.post-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px 18px;
}
.post-card-date {
  color: var(--muted, #5b6672);
  font-size: 0.85rem;
}
.post-card-title {
  font-family: var(--display, inherit);
  font-size: 1.15rem;
  line-height: 1.25;
}
.post-card-text {
  color: var(--muted, #5b6672);
}
.more-posts {
  margin-top: 40px;
}
.more-posts h2 {
  font-size: 1.35rem;
}
.more-posts-all {
  margin: 0;
}
.logbook-intro {
  max-width: 46rem;
}
@media (prefers-reduced-motion: reduce) {
  .post-card {
    transition: none;
  }
  .post-card:hover,
  .post-card:focus-visible {
    transform: none;
  }
}
