/* =========================================================
   PIĘTASZEK – PODSTRONA (TAKA JAK ZAPISKI)
   ========================================================= */

.pietaszek-page {
  max-width: 760px;
  margin: 80px auto;
  padding: 0 20px;
}

/* TREŚĆ */

.pietaszek-content {
  max-width: 760px;
  margin: 60px auto 90px auto;
  padding: 0 20px;
}

/* odstęp między opowiadaniami */

.pietaszek-content h2 {
  margin-top: 20px;
}

/* mniejszy odstęp nad pierwszym opowiadaniem */

.pietaszek-content h2:first-of-type {
  margin-top: 20px;
}

.pietaszek-story {
  margin-bottom: 10px;
  padding-bottom: 50px;
  position: relative;
}

/* =====================================================
   SEPARATOR – PIĘTASZEK
   ===================================================== */

.pietaszek-separator{
text-align:center;
margin:25px 0 45px 0;
color:#8a4b2a;
font-size:13px;
}

.pietaszek-separator:before,
.pietaszek-separator:after{

content:"";

display:inline-block;

width:35%;
height:1px;

background:#d8cfc3;

vertical-align:middle;

margin:0 10px;

}

.pietaszek-story h2 {
  font-size: 22px;
  margin-bottom: 22px;
  
  display: inline-block;
  padding-bottom: 6px;
}

.pietaszek-story h2::after{

content:"";
display:block;

width:100px;
height:1px;

background:#d8cfc3;

margin:10px auto 0 auto;

}

.pietaszek-story img {
  max-width: 230px;
  margin-bottom: 20px;
  border-radius: 6px;
  display: block;
}

.pietaszek-story p {
  font-size: 17px;
  line-height: 1.75;
letter-spacing: -0.01em;
  margin-bottom: 0;
  color: inherit;

  text-align: justify;
  hyphens: auto;

  text-indent: 1.4em;
}

.pietaszek-story p:first-of-type {
  text-indent: 0;
}

/* =====================================================
   INICJAŁ (DUŻA PIERWSZA LITERA)
   ===================================================== */

.pietaszek-story > p:first-of-type::first-letter{

float:left;

font-size:3.4em;
line-height:0.9;

margin-right:8px;
margin-top:4px;

color:#8a4b2a;

font-family:Georgia,"Times New Roman",serif;

}

.back-top {
  display: block;
  margin-top: 30px;
  font-size: 14px;
  text-decoration: none;
  opacity: 0.6;
  transition: opacity 0.3s ease;
  text-align: right;
}

.back-top:hover {
  opacity: 1;
}



/* =======================================
   PIĘTASZEK – SPIS TREŚCI (KSIĄŻKOWY)
======================================= */

/* GŁÓWNY BLOK */
.pietaszek-list {
  max-width: 800px;        /* szerokość całości */
  margin: 0 auto 60px;     /* wyśrodkowanie + dół */
}

/* NAGŁÓWEK */
.pietaszek-list h2 {
  font-size: 28px;
  margin-bottom: 40px;
  text-align: center;
}

/* LINIA POD TYTUŁEM */
.pietaszek-list h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 1px;
  background: rgba(138, 75, 42, 0.3);
  margin: 15px auto 0;
}

/* LISTA */
.pietaszek-list ul {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 720px;
  text-align: left;
  counter-reset: item;
}

/* ELEMENT */
.pietaszek-list li {
  counter-increment: item;
  padding: 6px 0 6px 30px; /* miejsce na numer */
  line-height: 1.45;
  position: relative;      /* potrzebne do numeru */
}

/* NUMER (WYRÓWNANY!) */
.pietaszek-list li::before {
  content: counter(item) ". ";
  position: absolute;
  left: 0;
  width: 26px;             /* klucz do równej kolumny */
  text-align: right;
  opacity: 0.5;
}

/* LINKI */
.pietaszek-list a {
  text-decoration: none;
  color: inherit;
  opacity: 0.85;
  transition: all 0.25s ease;
}

/* HOVER */
.pietaszek-list a:hover {
  color: #8a4b2a;
  opacity: 1;
}

/* =======================================
   DWIE KOLUMNY (DESKTOP)
======================================= */

@media (min-width: 768px) {
  .pietaszek-list ul {
    column-count: 2;
    column-gap: 80px;
  }

  .pietaszek-list li {
    break-inside: avoid;
  }
}





/* MOBILE */

@media (max-width: 768px) {
  .pietaszek-story img {
    max-width: 220px;
    margin-left: 0;
    margin-right: auto;
  }
}