/* Page-owned styles for bohaterowie page */
.bohaterowie-page {
  max-width: var(--container-main-max);
  margin-inline: auto;
  padding-inline: var(--container-main-padding-desktop);
  padding-block-start: var(--space-2xl);
  padding-block-end: var(--space-4xl);
}

/* Hero section */
.bohaterowie-hero {
  margin-block-end: var(--space-3xl);
}

.bohaterowie-hero__inner {
  max-width: 720px;
  margin-inline: auto;
  text-align: left;
}

.bohaterowie-hero__title {
  margin-block-start: var(--space-sm);
  margin-block-end: var(--space-md);
}

.bohaterowie-hero__lead {
  font-size: var(--text-body-large-size);
  line-height: var(--text-body-large-line-height);
  color: var(--color-graphite-text);
}

/* Method section */
.bohaterowie-method {
  margin-block-end: var(--space-3xl);
}

.bohaterowie-method__panel {
  max-width: 720px;
  margin-inline: 0;
  background-color: var(--color-paper-deep-bg);
  border-inline-start: 2px solid var(--color-oxblood);
  padding: var(--space-lg);
}

.bohaterowie-method__panel h2 {
  margin-block-end: var(--space-md);
}

.bohaterowie-method__panel p {
  margin-block-end: var(--space-md);
}

.bohaterowie-method__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.bohaterowie-method__list li {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
  font-size: var(--text-body-size);
  line-height: var(--text-body-line-height);
  color: var(--color-graphite-text);
}

.bohaterowie-method__list .label {
  align-self: flex-start;
}

/* Cards section */
.bohaterowie-cards-section {
  margin-block-end: var(--space-3xl);
}

.bohaterowie-cards-section__header {
  max-width: 720px;
  margin-block-end: var(--space-xl);
}

.bohaterowie-cards-section__header h2 {
  margin-block-end: var(--space-sm);
}

.bohaterowie-cards-section__intro {
  color: var(--color-graphite-text);
}

.bohaterowie-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-lg);
}

.bohaterowie-card {
  background-color: var(--color-paper-bg);
  border: 1px solid var(--color-graphite-border);
  border-radius: var(--radius-none);
  transition: border-color var(--transition-hover);
  min-width: 0;
}

.bohaterowie-card:hover {
  border-color: var(--color-ink-border);
}

.bohaterowie-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.bohaterowie-card__link:hover {
  color: inherit;
  text-decoration: none;
}

.bohaterowie-card__image {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-block-end: 1px solid var(--color-graphite-border);
}

.bohaterowie-card__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-md);
  flex: 1;
}

.bohaterowie-card__title {
  margin-block-end: 0;
}

.bohaterowie-card__excerpt {
  font-size: var(--text-small-size);
  line-height: var(--text-small-line-height);
  color: var(--color-graphite-text);
  margin-block-end: 0;
}

.bohaterowie-card__cta {
  margin-block-start: auto;
  font-size: var(--text-small-size);
  font-weight: var(--text-label-weight);
  color: var(--color-oxblood-text);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}

.bohaterowie-card__link:hover .bohaterowie-card__cta {
  color: var(--color-brass-text);
  text-decoration-color: var(--color-brass-text);
}

/* Profile sections */
.bohaterowie-profile {
  margin-block-end: var(--space-3xl);
}

.bohaterowie-profile--nicky {
  background-color: var(--color-paper-deep-bg);
  padding: var(--space-xl);
}

.bohaterowie-profile__grid {
  display: grid;
  grid-template-columns: minmax(0, 720px) 300px;
  gap: var(--space-lg);
  align-items: start;
}

.bohaterowie-profile__grid--reverse {
  grid-template-columns: 300px minmax(0, 720px);
}

.bohaterowie-profile__text {
  min-width: 0;
}

.bohaterowie-profile__text h2 {
  margin-block-end: var(--space-lg);
}

.bohaterowie-profile__block {
  margin-block-end: var(--space-lg);
}

.bohaterowie-profile__block:last-child {
  margin-block-end: 0;
}

.bohaterowie-profile__block h3 {
  margin-block-start: var(--space-2xs);
  margin-block-end: var(--space-xs);
}

.bohaterowie-profile__block p {
  margin-block-end: 0;
}

.bohaterowie-profile__figure {
  margin: 0;
  min-width: 0;
}

.bohaterowie-profile__figure img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 1px solid var(--color-graphite-border);
  border-radius: var(--radius-none);
}

.bohaterowie-profile__figure figcaption {
  margin-block-start: var(--space-xs);
}

/* Connections section */
.bohaterowie-connections {
  margin-block-end: var(--space-3xl);
  max-width: 720px;
}

.bohaterowie-connections h2 {
  margin-block-end: var(--space-sm);
}

.bohaterowie-connections__intro {
  margin-block-end: var(--space-lg);
}

.bohaterowie-connections__list {
  margin-block-start: var(--space-md);
}

/* Spoiler warning */
.bohaterowie-spoiler {
  margin-block-end: var(--space-3xl);
}

.bohaterowie-spoiler__panel {
  max-width: 720px;
  margin-inline: 0;
  background-color: var(--color-paper-deep-bg);
  border-inline-start: 2px solid var(--color-oxblood);
  padding: var(--space-md) var(--space-lg);
}

.bohaterowie-spoiler__panel h3 {
  margin-block-end: var(--space-xs);
}

.bohaterowie-spoiler__panel p {
  margin-block-end: 0;
}

/* CTA section */
.bohaterowie-cta {
  max-width: 720px;
  margin-inline: 0;
  padding-block-start: var(--space-xl);
  border-block-start: var(--border-divider);
}

.bohaterowie-cta h2 {
  margin-block-end: var(--space-sm);
}

.bohaterowie-cta p {
  margin-block-end: var(--space-lg);
}

.bohaterowie-cta__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .bohaterowie-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bohaterowie-profile__grid,
  .bohaterowie-profile__grid--reverse {
    grid-template-columns: 1fr;
  }

  .bohaterowie-profile__figure {
    order: -1;
  }

  .bohaterowie-profile__grid--reverse .bohaterowie-profile__figure {
    order: -1;
  }

  .bohaterowie-profile__figure img {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .bohaterowie-page {
    padding-inline: var(--container-main-padding-mobile);
    padding-block-start: var(--space-xl);
    padding-block-end: var(--space-3xl);
  }

  .bohaterowie-hero__inner,
  .bohaterowie-method__panel,
  .bohaterowie-cards-section__header,
  .bohaterowie-connections,
  .bohaterowie-spoiler__panel,
  .bohaterowie-cta {
    max-width: 100%;
  }

  .bohaterowie-cards-grid {
    grid-template-columns: 1fr;
  }

  .bohaterowie-profile--nicky {
    padding: var(--space-md);
  }

  .bohaterowie-profile__grid,
  .bohaterowie-profile__grid--reverse {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .bohaterowie-profile__figure {
    order: 0;
  }

  .bohaterowie-profile__grid--reverse .bohaterowie-profile__figure {
    order: 0;
  }

  .bohaterowie-cta__links {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .bohaterowie-hero__title {
    font-size: var(--text-h2-size);
    line-height: var(--text-h2-line-height);
  }

  .bohaterowie-hero__lead {
    font-size: var(--text-body-size);
    line-height: var(--text-body-line-height);
  }

  .bohaterowie-method__panel,
  .bohaterowie-spoiler__panel {
    padding: var(--space-md);
  }

  .bohaterowie-profile__figure img {
    aspect-ratio: 3 / 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bohaterowie-card,
  .bohaterowie-card__link,
  .bohaterowie-card__cta {
    transition: none;
  }
}
