/* ==========================================================================
   SINGLE POST / PAGE — wpis bloga i strona statyczna
   ========================================================================== */

.entry-hero {
  position: relative;
}
.entry-hero__image {
  aspect-ratio: 16 / 7;
  overflow: hidden;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
}
.entry-hero__image img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }

.entry-header { max-width: 760px; margin-inline: auto; text-align: center; margin-bottom: var(--space-xl); }
.entry-header__category {
  display: inline-block;
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: var(--ls-uppercase);
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}
.entry-header__title { margin-bottom: var(--space-sm); }
.entry-header__meta {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

/* Treść — typografia długiego tekstu */
.entry-content {
  max-width: 720px;
  margin-inline: auto;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--color-text);
}
.entry-content > * + * { margin-top: var(--space-md); }
.entry-content h2 { margin-top: var(--space-xl); font-size: 1.5rem; }
.entry-content h3 { margin-top: var(--space-lg); font-size: 1.2rem; }
.entry-content img { border-radius: var(--radius-md); }
.entry-content blockquote {
  border-left: 3px solid var(--color-primary);
  padding-left: var(--space-md);
  font-style: italic;
  color: var(--color-text-muted);
}
.entry-content ul,
.entry-content ol { padding-left: 1.25em; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content a { text-decoration: underline; text-underline-offset: 2px; }

.entry-tags {
  max-width: 720px;
  margin: var(--space-xl) auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}
.entry-tags a {
  font-size: var(--fs-xs);
  padding: 0.4em 0.9em;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
}

/* Box autora */
.entry-author {
  max-width: 720px;
  margin: var(--space-xl) auto 0;
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--color-cream);
  border-radius: var(--radius-md);
}
.entry-author__avatar img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.entry-author__name { font-weight: 500; }
.entry-author__bio { font-size: var(--fs-small); color: var(--color-text-muted); }

/* Powiązane wpisy */
.related-posts { margin-top: var(--space-3xl); }
.related-posts__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}
.related-post-card__media { aspect-ratio: 4/3; border-radius: var(--radius-sm); overflow: hidden; margin-bottom: var(--space-xs); }
.related-post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.related-post-card__title { font-size: var(--fs-small); font-weight: 500; }

/* Strona statyczna — prostszy layout, bez meta/autora */
.page-header { max-width: 760px; margin: 0 auto var(--space-lg); text-align: center; }

@media (min-width: 768px) {
  .related-posts__grid { grid-template-columns: repeat(3, 1fr); }
}
