/*
Theme Name: Paczitto Blog
Author: Paczitto
Version: 1.0
Description: Elegancki, jasny motyw bloga dopasowany do stylu paczitto.pl
*/

body {
    font-family: 'Georgia', serif;
    margin: 0;
    padding: 0;
    background-color: #fffaf3;
    color: #333;
}

a {
    color: #9d2b36;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

header, footer {
    background-color: #fff2e6;
    padding: 20px;
    text-align: center;
}

.logo {
    max-width: 300px;
    height: auto;
    margin: 0 auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 800px;
    margin: 30px auto;
}
.entry-content img {
  max-width: 100%;
  height: auto;
  margin: 1em 0;
  border-radius: 8px;
}

.entry-title {
  color: #861f1f;
  font-size: 2rem;
  margin-top: 1em;
}
.blog-posts {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
}

.post {
  margin-bottom: 40px;
}

.post-thumbnail img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.post h2 {
  color: #8b2c2b;
  font-size: 1.8em;
  margin-bottom: 0.2em;
}

.post-excerpt {
  font-size: 1.1em;
}
.logo-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
}
.logo {
  height: 70px;
}
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}
.main-nav a {
  text-decoration: none;
  font-weight: bold;
  color: #631d1d;
}
.main-nav a:hover {
  text-decoration: underline;
}
.blog-card {
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 1.5rem;
  margin: 1.5rem auto;
  max-width: 700px;
  background: #fff9f5;
  transition: 0.3s;
}
.blog-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.blog-thumb {
  max-width: 100%;
  height: auto;
  margin-bottom: 1rem;
  border-radius: 10px;
}
.blog-card h2 {
  color: #631d1d;
}
.excerpt {
  color: #444;
}
.read-more {
  color: #631d1d;
  font-weight: bold;
}
.read-more:hover {
  text-decoration: underline;
}
.single-post {
  max-width: 700px;
  margin: 2rem auto;
  padding: 1rem;
  background: #fff9f5;
}
.single-post h1 {
  color: #631d1d;
}
.meta {
  font-size: 0.9rem;
  color: #777;
}
.post-thumb {
  max-width: 100%;
  height: auto;
  margin: 1rem auto;
  display: block;
}
.single-post-content img {
  display: block;
  margin: 1rem auto;
  max-width: 100%;
}
.pagination {
  text-align: center;
  margin: 2rem 0;
}
.pagination a {
  margin: 0 0.5rem;
  text-decoration: none;
  font-weight: bold;
  color: #631d1d;
}
.pagination a:hover {
  text-decoration: underline;
}
.main-footer {
  background: #fff1e8;
  padding: 2rem;
  text-align: center;
  border-top: 1px solid #f0d4c4;
}
.footer-content p {
  font-size: 14px;
  margin: 0.5rem 0;
}
.footer-nav {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}
.footer-nav li {
  display: inline-block;
  margin: 0 1rem;
}
.footer-nav a {
  color: #631d1d;
  text-decoration: none;
}
.footer-nav a:hover {
  text-decoration: underline;
}
.social-icons img {
  height: 24px;
  margin: 0 0.5rem;
  vertical-align: middle;
}
.site-footer {
    background-color: #fff1e8;
    width: 100%;
    padding: 2rem 1rem;
    margin-top: 3rem;
    color: #3e2b1f;
    font-family: 'Georgia', serif;
    font-size: 14px;
    border-top: 1px solid #f0d4c4;
    display: flex;
    justify-content: center; /* dodane */
}
.footer-wrapper {
    max-width: 800px; /* zawężona szerokość */
    width: 100%;
    margin: 0 auto;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
  text-align: left;
}

.footer-column {
  flex: 1 1 300px;
  min-width: 240px;
  line-height: 1.8;
}

.footer-column img {
  width: 24px;
  height: 24px;
  vertical-align: middle;
  margin-right: 8px;
}

.footer-column a {
  color: inherit;
  text-decoration: none;
}

.footer-bottom {
  text-align: center;
  margin-top: 3rem;
  font-size: 0.85rem;
  color: #7a5e48;
}
/* Footer fix: pełna szerokość */
footer.site-footer {
  background-color: #fff4ea;
  width: 100vw;
  padding: 3rem 1rem;
  margin-top: 5rem;
  color: #3e2b1f;
  font-family: inherit;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

/* Reset ewentualnych ograniczeń rodzica */
footer.site-footer * {
  box-sizing: border-box;
}

/* Kontener stopki */
.footer-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

/* Siatka kolumn */
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
  text-align: left;
}

.footer-column {
  flex: 1 1 300px;
  min-width: 240px;
  line-height: 1.8;
}
.site-footer {
  background-color: #fff1e8;
  padding: 3rem 1rem;
  color: #3e2b1f;
  font-family: 'Georgia', serif;
  border-top: 1px solid #f0d4c4;
  font-size: 16px;
  width: 100%;
}

.footer-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  text-align: left;
}

.footer-column {
  flex: 1 1 300px;
  min-width: 240px;
  line-height: 1.8;
}

.footer-column h3 {
  font-size: 1.2rem;
  color: #4a2a1b;
  margin-bottom: 1rem;
}

.footer-column a {
  color: #3e2b1f;
  text-decoration: none;
}

.footer-column a:hover {
  text-decoration: underline;
}

.footer-column img {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-right: 8px;
}

.footer-bottom {
  text-align: center;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #7a5e48;
}

.scroll-top {
  display: block;
  text-align: center;
  font-size: 2rem;
  color: #631d1d;
  margin-top: 2rem;
  margin-bottom: 0
  text-decoration: none;
}
.site-footer {
  background-color: #fff1e8;
  padding: 2rem 1rem 1rem 1rem;
  color: #3e2b1f;
  font-family: 'Georgia', serif;
  border-top: 1px solid #f0d4c4;
  font-size: 15px;
}

.footer-wrapper {
  max-width: 1000px;
  margin: 0 auto;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  text-align: left;
}

.footer-column {
  flex: 1 1 300px;
  min-width: 220px;
  line-height: 1.6;
}

.footer-column h3 {
  font-size: 1.1rem;
  color: #4a2a1b;
  margin-bottom: 0.8rem;
}

.footer-column a {
  color: #3e2b1f;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-column a:hover {
  text-decoration: underline;
}

.footer-column img {
  width: 20px;
  height: 20px;
  vertical-align: middle;
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.85rem;
  color: #7a5e48;
}

.scroll-top {
  display: block;
  text-align: center;
  font-size: 1.5rem;
  color: #631d1d;
  margin-top: 1rem;
  text-decoration: none;
}
body, html {
  margin-bottom: 0;
  padding-bottom: 0;
  background-color: #fff1e8; /* kolor stopki, zamiast białego */
}
/* Czytelność artykułów na blogu */
.single-post .entry-content {
  max-width: 720px;          /* węższa kolumna = łatwiej się czyta */
  margin: 0 auto;
  font-size: 18px;           /* 17–19 px jest optymalnie */
  line-height: 1.7;          /* więcej powietrza między wierszami */
  letter-spacing: .01em;
  text-align: left;          /* unikaj justowania */
}

.single-post .entry-content p {
  margin: 0 0 1.1em;         /* odstęp pod akapitami */
}

.single-post .entry-content h2,
.single-post .entry-content h3 {
  line-height: 1.3;
  margin: 1.8em 0 .6em;      /* duży odstęp nad nagłówkiem */
  font-weight: 600;          /* lżej wygląda niż 700–800 */
  font-size: clamp(22px, 2.4vw, 28px);
}

.single-post .entry-content ul,
.single-post .entry-content ol {
  margin: 0 0 1.2em 1.4em;   /* listy niech odetchną */
}

.single-post .wp-block-image {
  margin: 1.2em 0 1.6em;     /* odstępy przy obrazach */
}

.single-post .entry-content a {
  text-decoration: underline; /* linki wyraźniejsze */
}

.single-post hr.wp-block-separator {
  width: 120px;
  height: 2px;
  background: #e9e1d9;   /* delikatny separator w kolorystyce Pączitto */
  border: 0;
  margin: 2em auto;
}

/* Mobile */
@media (max-width: 768px) {
  .single-post .entry-content { font-size: 17px; padding: 0 16px; }
  .single-post .entry-content h2 { font-size: 22px; }
}

/* === Pączitto: czytelność wpisów (override) === */
body.single, body.single-post {
  --content-max: 720px;
  --text-size: 18px;
  --line: 1.75;
  --space: 1.2em;
  --head-space-top: 2em;
  --head-space-bot: .6em;
  --text-color: #3a2f2a; /* ciemniejszy, czytelniejszy */
}

/* traf w każdy typ kontenera treści (klasyczne + block theme) */
body.single .entry-content,
body.single-post .entry-content,
body.single .wp-block-post-content,
body.single-post .wp-block-post-content,
body.single .single-post-content,
body.single-post .single-post-content {
  max-width: var(--content-max) !important;
  margin: 0 auto !important;
  font-size: var(--text-size) !important;
  line-height: var(--line) !important;
  color: var(--text-color) !important;
  text-align: left !important;
  hyphens: none;
  word-break: normal;
}

/* odstępy akapitów (także dla bloków Gutenberg) */
body.single .entry-content p,
body.single-post .entry-content p,
body.single .wp-block-post-content p,
body.single-post .wp-block-post-content p,
body.single .wp-block-paragraph,
body.single-post .wp-block-paragraph {
  margin: 0 0 var(--space) !important;
}

/* nagłówki w treści */
body.single .entry-content h2,
body.single-post .entry-content h2,
body.single .wp-block-post-content h2,
body.single-post .wp-block-post-content h2,
body.single .entry-content h3,
body.single-post .entry-content h3,
body.single .wp-block-post-content h3,
body.single-post .wp-block-post-content h3 {
  margin: var(--head-space-top) 0 var(--head-space-bot) !important;
  line-height: 1.25 !important;
  font-weight: 600 !important;
  font-size: clamp(22px, 2.4vw, 28px) !important;
}

/* listy */
body.single .entry-content ul,
body.single-post .entry-content ul,
body.single .wp-block-post-content ul,
body.single-post .wp-block-post-content ul,
body.single .entry-content ol,
body.single-post .entry-content ol,
body.single .wp-block-post-content ol,
body.single-post .wp-block-post-content ol {
  margin: 0 0 var(--space) 1.4em !important;
}

/* obrazki w treści */
body.single .wp-block-image,
body.single-post .wp-block-image,
body.single .entry-content img,
body.single-post .entry-content img {
  margin: 1.2em 0 1.6em !important;
  border-radius: 8px;
}

/* linki wyraźne */
body.single .entry-content a,
body.single-post .entry-content a,
body.single .wp-block-post-content a,
body.single-post .wp-block-post-content a {
  text-decoration: underline !important;
}

/* mobile */
@media (max-width: 768px) {
  body.single .entry-content,
  body.single-post .entry-content,
  body.single .wp-block-post-content,
  body.single-post .wp-block-post-content,
  body.single .single-post-content,
  body.single-post .single-post-content {
    font-size: 17px !important;
    padding: 0 16px !important;
  }
}

