/* Autor wpisów: podpis pod tytułem (.post-byline) + boks „O autorze" (.author-box).
   Wspólne dla wpisu bloga i sekcji bloga na stronie głównej. */

.post-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 16px;
  margin: 0 0 40px;
  padding: 14px 0;
  border-top: 1px solid #E6E4E0;
  border-bottom: 1px solid #E6E4E0;
  font-size: 14px;
  line-height: 1.4;
}

.post-byline__avatar {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid #E6E4E0;
  background-color: #F1ECE5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-byline__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-byline__avatar .author-initials {
  font-family: "PT Serif", serif;
  font-size: 13px;
  color: #81784A;
}

.post-byline__author {
  font-weight: 600;
  color: #81784A;
  transition: 0.2s;
}

.post-byline__author:hover {
  color: #262E38;
  text-decoration: underline;
}

.post-byline__date,
.post-byline__reading {
  color: #7A7772;
}

.post-byline__reading {
  font-weight: 500;
  color: #55524E;
}

/* --- Boks „O autorze" --- */

.author-box {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid #E6E4E0;
}

.author-box__photo {
  flex: 0 0 auto;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid #E6E4E0;
  background-color: #F1ECE5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.author-box__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.author-initials {
  font-family: "PT Serif", serif;
  font-size: 30px;
  letter-spacing: 0.04em;
  color: #81784A;
}

.author-box__body {
  min-width: 0;
}

.author-box__label {
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9C9478;
  margin-bottom: 8px;
}

.author-box__name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-family: "PT Serif", serif;
  font-size: 24px;
  line-height: 1.3;
  font-weight: 400;
  color: #262E38;
  margin: 0 0 4px;
}

.author-box__name a {
  color: inherit;
  transition: 0.2s;
}

.author-box__name a:hover {
  color: #81784A;
}

.author-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #0A66C2;
  color: #fff;
  transition: 0.2s;
}

.author-social svg {
  width: 14px;
  height: 14px;
}

.author-social:hover {
  background-color: #004182;
}

.author-box__role {
  font-size: 14px;
  line-height: 1.5;
  color: #6E6A66;
  margin-bottom: 12px;
}

.author-box__sep {
  margin: 0 6px;
  color: #C4BBAB;
}

.author-box__bio {
  font-size: 15px;
  line-height: 1.65;
  color: #55524E;
  max-width: 78ch;
  margin: 0 0 14px;
}

.author-box__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #81784A;
  transition: 0.2s;
}

.author-box__link svg {
  flex: 0 0 auto;
  transition: transform 0.2s;
}

.author-box__link:hover {
  color: #262E38;
}

.author-box__link:hover svg {
  transform: translateX(4px);
}

/* Wariant kafelkowy - sekcja bloga na stronie głównej (beżowy pas). */
.author-box--card {
  margin-top: 28px;
  padding: 26px 28px;
  background-color: #FBF9F6;
  border: 1px solid #E3DBD0;
  border-radius: 4px;
}

@media screen and (max-width: 750px) {
  .post-byline {
    margin-bottom: 28px;
    font-size: 13px;
    gap: 6px 12px;
  }

  .author-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
    margin-top: 40px;
    padding-top: 26px;
  }

  .author-box__photo {
    width: 80px;
    height: 80px;
  }

  .author-box__name {
    justify-content: center;
  }

  .author-box__link {
    justify-content: center;
  }

  .author-box--card {
    max-width: 500px;
    margin: 24px auto 0;
    padding: 22px;
  }
}
