/* ===== PAPYRUS BLOG — BPS ===== */
@import url('https://fonts.googleapis.com/css2?family=IM+Fell+English:ital@0;1&family=Cinzel:wght@400;600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --papyrus:   #d4a853;
  --papyrus2:  #c49442;
  --papyrus-bg:#e8c87a;
  --ink:       #1a0e05;
  --ink2:      #3a2010;
  --ink3:      #5a3820;
  --red:       #8b1a00;
  --gold:      #9a6b00;
  --border:    rgba(26,14,5,0.25);
}

html { scroll-behavior: smooth; }

body {
  background-color: #b8943c;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E"),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 3px,
      rgba(26,14,5,0.015) 3px,
      rgba(26,14,5,0.015) 4px
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 8px,
      rgba(26,14,5,0.02) 8px,
      rgba(26,14,5,0.02) 9px
    ),
    linear-gradient(
      160deg,
      #e8cb7a 0%,
      #d4a853 25%,
      #c49442 50%,
      #d8b060 75%,
      #e2c070 100%
    );
  color: var(--ink);
  font-family: 'IM Fell English', Georgia, 'Times New Roman', serif;
  font-size: 17px;
  line-height: 1.75;
  min-height: 100vh;
}

/* ===== BORDIURA GÓRNA / DOLNA ===== */
body::before, body::after {
  content: '𓂀  𓅃  𓆣  𓇋  𓈖  𓎛  𓃀  𓆑  𓂋  𓅓  𓆗  𓇳  𓆙  𓂀';
  display: block;
  text-align: center;
  font-size: 1.1rem;
  color: var(--ink2);
  opacity: 0.45;
  padding: 10px 0;
  letter-spacing: 0.3em;
  border-bottom: 2px solid var(--border);
  background: rgba(26,14,5,0.06);
}
body::after {
  border-bottom: none;
  border-top: 2px solid var(--border);
  margin-top: 60px;
}

/* ===== WRAPPER ===== */
.scroll {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

/* linie papirusu po bokach */
.scroll::before, .scroll::after {
  content: '';
  position: fixed;
  top: 0; bottom: 0;
  width: 3px;
  background: repeating-linear-gradient(
    180deg,
    transparent,
    transparent 12px,
    rgba(26,14,5,0.12) 12px,
    rgba(26,14,5,0.12) 13px
  );
  pointer-events: none;
}
.scroll::before { left: calc(50% - 450px); }
.scroll::after  { right: calc(50% - 450px); }

/* ===== NAGŁÓWEK SERWISU ===== */
.site-header {
  text-align: center;
  padding: 40px 0 28px;
  border-bottom: 3px double var(--border);
  margin-bottom: 40px;
  position: relative;
}
.site-header .deco {
  font-size: 1.4rem;
  color: var(--ink3);
  letter-spacing: 0.5em;
  margin-bottom: 12px;
  opacity: 0.6;
}
.site-header .site-name {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.08em;
  line-height: 1.1;
}
.site-header .site-sub {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ink2);
  margin-top: 6px;
  letter-spacing: 0.05em;
}
.site-header .back {
  position: fixed;
  top: 14px; left: 14px;
  z-index: 1000;
  font-size: 0.75rem;
  color: var(--ink3);
  text-decoration: none;
  letter-spacing: 0.08em;
  font-family: 'Cinzel', serif;
  display: flex; align-items: center; gap: 6px;
  transition: color 0.2s;
  background: rgba(232,200,122,0.92);
  border: 1px solid var(--border);
  padding: 7px 12px;
  backdrop-filter: blur(4px);
}
.site-header .back:hover { color: var(--red); }

/* ===== LISTA ARTYKUŁÓW ===== */
.articles-list { display: flex; flex-direction: column; gap: 0; }

.article-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
  position: relative;
}
.article-item:first-child { border-top: 1px solid var(--border); }
.article-item:hover { background: rgba(26,14,5,0.03); }

.article-item.featured {
  grid-template-columns: 1fr;
  padding: 36px 28px;
  border: 2px solid var(--border);
  margin-bottom: 32px;
  background: rgba(26,14,5,0.04);
  position: relative;
}
.article-item.featured::before {
  content: '✦ WYRÓŻNIONY ✦';
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: var(--red);
  display: block;
  margin-bottom: 16px;
}

.item-date {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  color: var(--ink3);
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-align: center;
  padding-top: 4px;
}
.item-date .day   { font-size: 1.8rem; font-weight: 600; display: block; line-height: 1; }
.item-date .month { display: block; text-transform: uppercase; }
.item-date .year  { display: block; opacity: 0.6; }

.item-body {}
.item-cat {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 6px;
}
.item-title {
  font-family: 'IM Fell English', serif;
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 10px;
}
.article-item.featured .item-title { font-size: clamp(1.5rem, 3vw, 2rem); }
.item-excerpt {
  font-size: 0.88rem;
  color: var(--ink2);
  line-height: 1.65;
  margin-bottom: 12px;
}
.item-read {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-decoration: none;
}

/* ===== ARTYKUŁ — STRONA ===== */
.article-header {
  text-align: center;
  padding: 40px 0 32px;
  border-bottom: 3px double var(--border);
  margin-bottom: 48px;
}
.article-header .cat {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}
.article-header h1 {
  font-family: 'IM Fell English', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 20px;
}
.article-header .meta {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--ink3);
}
.article-header .meta span + span::before { content: ' · '; }

/* Ozdobnik między headerem a treścią */
.article-divider {
  text-align: center;
  font-size: 1.3rem;
  color: var(--ink3);
  opacity: 0.4;
  letter-spacing: 0.4em;
  margin: 0 0 40px;
}

/* ===== TREŚĆ ARTYKUŁU ===== */
.article-content {
  max-width: 680px;
  margin: 0 auto;
}
.article-content p {
  margin-bottom: 1.4em;
  text-align: justify;
  hyphens: auto;
}
.article-content p:first-child::first-letter {
  font-family: 'Cinzel', serif;
  font-size: 3.8rem;
  font-weight: 600;
  float: left;
  line-height: 0.75;
  margin: 6px 10px 0 0;
  color: var(--red);
  text-shadow: 1px 1px 0 rgba(26,14,5,0.2);
}
.article-content h2 {
  font-family: 'Cinzel', serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink);
  margin: 2.2em 0 0.8em;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.article-content h2::before { content: '⸻  '; color: var(--red); opacity: 0.6; }
.article-content h2::after  { content: '  ⸻'; color: var(--red); opacity: 0.6; }
.article-content h3 {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink2);
  margin: 1.8em 0 0.6em;
}
.article-content ul, .article-content ol {
  margin: 0 0 1.4em 1.4em;
}
.article-content li { margin-bottom: 0.4em; }
.article-content ul li::marker { color: var(--red); }

/* callout */
.article-callout {
  border-left: 3px solid var(--red);
  padding: 16px 20px;
  margin: 1.8em 0;
  background: rgba(26,14,5,0.05);
  font-style: italic;
  color: var(--ink2);
  font-size: 0.93rem;
}
.article-callout strong { color: var(--ink); font-style: normal; }

/* ===== CTA NA DOLE ARTYKUŁU ===== */
.article-cta {
  text-align: center;
  margin-top: 56px;
  padding: 36px 28px;
  border: 2px solid var(--border);
  background: rgba(26,14,5,0.04);
  position: relative;
}
.article-cta::before {
  content: '𓂀';
  font-size: 1.5rem;
  position: absolute;
  top: -1rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--papyrus-bg);
  padding: 0 12px;
  color: var(--red);
  opacity: 0.6;
  background: linear-gradient(to right, #d4a853, #e8cb7a, #d4a853);
}
.article-cta h3 {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: var(--ink);
  margin-bottom: 10px;
}
.article-cta p {
  font-size: 0.88rem;
  color: var(--ink2);
  margin-bottom: 20px;
}
.cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-ink {
  display: inline-block;
  padding: 11px 24px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--papyrus-bg);
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.btn-ink:hover { background: var(--red); border-color: var(--red); }
.btn-outline-ink {
  display: inline-block;
  padding: 11px 24px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-outline-ink:hover { background: rgba(26,14,5,0.08); }

/* ===== BACK TO LIST ===== */
.back-to-list {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  color: var(--ink3);
  text-decoration: none;
  margin-bottom: 40px;
  transition: color 0.2s;
}
.back-to-list:hover { color: var(--red); }

/* ===== STOPKA ===== */
.site-footer {
  text-align: center;
  padding: 32px 0;
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  color: var(--ink3);
  border-top: 3px double var(--border);
  margin-top: 60px;
}
.site-footer a { color: var(--ink3); text-decoration: none; }
.site-footer a:hover { color: var(--red); }
.site-footer .footer-links { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }

/* ===== MOBILE ===== */
@media (max-width: 620px) {
  body { font-size: 16px; }
  .scroll { padding: 0 16px; }
  .scroll::before, .scroll::after { display: none; }
  .article-item { grid-template-columns: 60px 1fr; gap: 14px; }
  .article-item.featured { padding: 24px 16px; }
  .item-date .day { font-size: 1.4rem; }
  .article-content p:first-child::first-letter { font-size: 2.8rem; }
  .site-header .back { top: 10px; left: 10px; }
}
