/* === Reset i podstawy === */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #1f2937;
  background-color: #ffffff;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* === Kontener i typografia === */
.container {
  max-width: 1080px;
  margin-inline: auto;
  padding: clamp(16px, 2.5vw, 32px);
}

.page-header {
  margin-bottom: 1rem;
}

.page-header h2 {
  margin: 0 0 0.25em;
  line-height: 1.2;
  font-size: clamp(1.8rem, 2.5vw, 2.4rem);
}

.byline {
  margin: 0 0 1.25rem;
  color: #565b61;
  font-size: 0.95rem;
}

h2 {
  margin: 2rem 0 0.75rem;
  line-height: 1.25;
  font-size: clamp(1.4rem, 2vw, 1.9rem);
}

p {
  margin: 0.75rem 0 1rem;
  font-size: 1rem;
  line-height: 1.7;
  color: #2d3748;
}

/* === Listy === */
ul {
  margin: 0.5rem 0 1.25rem;
  padding-left: 1.2rem;
}

li {
  margin: 0.25rem 0;
}

/* === Cytaty === */
blockquote {
  margin: 1.25rem 0;
  padding: 0.75rem 1rem;
  border-left: 4px solid #e2e6ec;
  background: #f7f9fb;
  color: #222a34;
  font-style: italic;
}

/* === Obrazy i podpisy === */
figure {
  margin: 1.25rem 0;
}

figcaption {
  margin-top: 0.4rem;
  font-size: 0.9rem;
  color: #6b7280;
}

.hero img,
.media-full img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

/* === Galerie responsywne === */
.gallery {
  display: grid;
  gap: clamp(12px, 2vw, 20px);
}

.gallery.two-up {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .gallery.two-up {
    grid-template-columns: 1fr 1fr;
  }
}

.gallery.two-up figure {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.gallery.two-up img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

/* === Wyrównanie wysokości zdjęć === */
.gallery.two-up.equalize-rows img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.gallery.two-up.equalize-rows figcaption {
  margin-top: .5rem;
}

@media (max-width: 480px) {
  .gallery.two-up.equalize-rows img {
    aspect-ratio: 4 / 3;
  }
}

/* === CTA === */
.cta {
  margin: 2rem 0;
  padding: 1rem 1.25rem;
  border: 1px solid #e6e9ef;
  background: #fbfdff;
  border-radius: 8px;
  text-align: center;
}

.cta strong {
  color: #004aad;
}

/* === Stopka === */
.article-footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #eceff3;
  color: #6b7280;
  font-size: 0.95rem;
}

/* === Responsywność === */
@media (max-width: 768px) {
  .page-header h2 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  p {
    font-size: 0.98rem;
  }

  .cta {
    text-align: left;
  }
}
