/*
Theme Name: białe studio — blog
Theme URI: https://biale.studio/
Author: białe studio
Author URI: https://biale.studio/
Description: Lekki motyw bloga dopasowany 1:1 do strony biale.studio — Instrument Serif + Manrope + IBM Plex Mono, paleta sage/ink. Zbudowany pod SEO: dane strukturalne BlogPosting, okruszki, spis treści, powiązane wpisy, zero zależności zewnętrznych.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 7.0
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: biale-studio-blog
Tags: blog, one-column, custom-colors, custom-menu, featured-images, translation-ready
*/

/* ==========================================================================
   1. Tokeny
   ========================================================================== */
:root {
  --bg:        #fbfaf8;
  --surface:   #ffffff;
  --band:      #f3f1ec;
  --ink:       #17150f;
  --teal:      #37837a;
  --teal-l:    #539e95;
  --teal-xl:   #7ab8af;
  --teal-d:    #17504a;
  --sand:      #dbbe8a;
  --line:      rgba(23, 21, 15, .10);
  --line-2:    rgba(23, 21, 15, .18);
  --muted:     rgba(23, 21, 15, .70);
  --muted-2:   rgba(23, 21, 15, .55);
  --muted-3:   rgba(23, 21, 15, .40);
  --on-dark:   rgba(251, 250, 248, .60);
  --serif:     'Instrument Serif', Georgia, 'Times New Roman', serif;
  --sans:      'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono:      'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --r-card:    16px;
  --r-pill:    999px;
  --wrap:      1200px;
  --wrap-read: 760px;
  --pad-x:     clamp(20px, 4vw, 40px);
}

/* ==========================================================================
   2. Reset / baza
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--ink); }

img, svg, video { max-width: 100%; height: auto; display: block; }

input, select, button, textarea { font-family: var(--sans); font-size: inherit; }

h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 400; text-wrap: balance; }

p { margin: 0; text-wrap: pretty; }

figure { margin: 0; }

hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }

::selection { background: rgba(83, 158, 149, .28); }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: var(--bg);
  padding: 12px 22px; border-radius: 0 0 12px 0; font-weight: 600;
}
.skip-link:focus { left: 0; color: var(--bg); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }
.wrap-read { max-width: var(--wrap-read); margin-left: auto; margin-right: auto; }

/* ==========================================================================
   3. Elementy wspólne (typografia marki)
   ========================================================================== */
.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--muted-2);
}

.display {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -.015em;
}

.accent { font-style: italic; color: var(--teal); }

/* Podkreślenie „zapełnia” ze strony głównej */
.underlined { position: relative; display: inline-block; font-style: italic; color: var(--teal); }
.underlined::after {
  content: ""; position: absolute; left: 0; bottom: .1em;
  width: 100%; height: .11em; background: rgba(83, 158, 149, .35);
  transform-origin: left; animation: bsLine .9s .7s ease-out both;
}

/* Przyciski */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: var(--r-pill); font-weight: 700; white-space: nowrap;
  transition: transform .25s, box-shadow .25s, border-color .25s, background .25s, color .25s;
  cursor: pointer; border: 0; text-align: center;
}
.btn-dark { padding: 11px 24px; background: var(--ink); color: var(--bg); font-size: 13.5px; font-weight: 600; }
.btn-dark:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(23, 21, 15, .5); color: var(--bg); }
.btn-teal { padding: 17px 34px; background: var(--teal); color: var(--bg); font-size: 16px; }
.btn-teal:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(55, 131, 122, .6); color: var(--bg); }
.btn-teal-sm { padding: 14px 28px; background: var(--teal); color: var(--bg); font-size: 15px; }
.btn-teal-sm:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(55, 131, 122, .6); color: var(--bg); }
.btn-outline {
  padding: 16px 30px; border: 1px solid var(--line-2); color: var(--ink);
  font-size: 16px; font-weight: 600; background: transparent;
}
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }

/* Animacje ze strony głównej */
@keyframes bsUp   { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes bsLine { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes bsFlowA { 0%, 100% { transform: translate(-8%, -6%) rotate(-10deg) scale(1); }  50% { transform: translate(16%, 12%) rotate(12deg) scale(1.3); } }
@keyframes bsFlowB { 0%, 100% { transform: translate(10%, 6%) rotate(8deg) scale(1.15); }  50% { transform: translate(-18%, -12%) rotate(-14deg) scale(.9); } }
@keyframes bsFlowC { 0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }        33% { transform: translate(-14%, 10%) rotate(9deg) scale(1.35); } 66% { transform: translate(12%, -10%) rotate(-7deg) scale(.92); } }

.anim-up { animation: bsUp .6s ease-out both; }
.d1 { animation-delay: .1s; } .d2 { animation-delay: .2s; }
.d3 { animation-delay: .3s; } .d4 { animation-delay: .4s; }

/* Odsłanianie przy scrollu.
   Ukrywamy WYŁĄCZNIE gdy działa JavaScript (klasa .bs-js dokładana w <head>) —
   inaczej przy wyłączonym lub uszkodzonym skrypcie cała treść zostałaby niewidoczna. */
.bs-js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s ease-out, transform .7s ease-out; }
.bs-js [data-reveal].is-in { opacity: 1; transform: none; }

/* ==========================================================================
   4. Nagłówek
   ========================================================================== */
.site-header { position: relative; z-index: 20; }

.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 26px var(--pad-x);
  max-width: 1400px; margin: 0 auto;
}

.site-header__logo { display: block; line-height: 0; }
.site-header__logo-text {
  font-family: var(--serif); font-size: 26px; color: var(--ink); letter-spacing: -.01em;
}

.nav-links {
  display: flex; gap: 28px;
  font-family: var(--mono); font-size: 15px; color: var(--muted);
}
.nav-link { position: relative; color: inherit; transition: color .25s; }
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: -4px;
  width: 100%; height: 1px; background: var(--teal);
  transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.nav-link:hover { color: var(--teal); }
.nav-link:hover::after, .nav-link.is-current::after { transform: scaleX(1); }
.nav-link.is-current { color: var(--teal); }

.nav-toggle {
  display: none; background: transparent; border: 1px solid var(--line-2);
  border-radius: var(--r-pill); padding: 9px 16px;
  font-family: var(--mono); font-size: 13px; color: var(--ink);
}

.nav-mobile {
  display: none; flex-direction: column; gap: 4px;
  padding: 8px var(--pad-x) 24px;
  font-family: var(--mono); font-size: 16px;
}
.nav-mobile.is-open { display: flex; }
.nav-mobile a { color: var(--ink); padding: 12px 0; border-bottom: 1px solid var(--line); }

/* ==========================================================================
   5. Hero (blog / archiwum)
   ========================================================================== */
.hero { position: relative; overflow: hidden; }

.hero__blobs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero__blobs span { position: absolute; border-radius: 50%; display: block; }
.hero__blobs span:nth-child(1) {
  top: -46%; left: -14%; width: 1150px; height: 700px;
  background: radial-gradient(closest-side, rgba(83, 158, 149, .55), transparent 68%);
  filter: blur(70px); animation: bsFlowA 7s ease-in-out infinite;
}
.hero__blobs span:nth-child(2) {
  top: -34%; right: -22%; width: 1000px; height: 660px;
  background: radial-gradient(closest-side, rgba(219, 190, 138, .6), transparent 68%);
  filter: blur(80px); animation: bsFlowB 9s ease-in-out infinite;
}
.hero__blobs span:nth-child(3) {
  bottom: -60%; left: 12%; width: 900px; height: 620px;
  background: radial-gradient(closest-side, rgba(122, 184, 175, .45), transparent 68%);
  filter: blur(80px); animation: bsFlowC 12s ease-in-out infinite;
}

.hero__inner {
  position: relative; text-align: center;
  padding: clamp(36px, 5.5vw, 64px) var(--pad-x) clamp(40px, 6vw, 72px);
  max-width: 900px; margin: 0 auto;
}
.hero__title { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 7vw, 74px); line-height: 1.05; letter-spacing: -.015em; margin-top: 22px; }
.hero__lead { font-size: 19px; line-height: 1.6; color: var(--muted); max-width: 580px; margin: 24px auto 0; }

/* Filtr kategorii */
.cat-bar {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  margin-top: 34px; position: relative;
}
.cat-chip {
  font-family: var(--mono); font-size: 13px;
  padding: 9px 18px; border-radius: var(--r-pill);
  border: 1px solid var(--line-2); color: var(--muted);
  background: rgba(255, 255, 255, .6); backdrop-filter: blur(6px);
  transition: border-color .25s, color .25s, background .25s;
}
.cat-chip:hover { border-color: var(--teal); color: var(--teal); background: #fff; }
.cat-chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.cat-chip.is-active:hover { color: var(--bg); }

/* ==========================================================================
   6. Karty wpisów
   ========================================================================== */
.posts { padding: clamp(48px, 6vw, 76px) 0 clamp(60px, 8vw, 100px); }

.grid-cards {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 28px; align-items: stretch;
}

.card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-card); overflow: hidden;
  transition: transform .3s, box-shadow .3s;
  height: 100%;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -24px rgba(23, 21, 15, .25); }

.card__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--band); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__media img { transform: scale(1.04); }

/* Zastępnik, gdy wpis nie ma obrazka wyróżniającego — celowo wyrazisty,
   żeby karta bez zdjęcia nie wyglądała na zepsutą. */
.card__media--empty {
  background: linear-gradient(135deg, rgba(83, 158, 149, .55), rgba(219, 190, 138, .65) 60%, rgba(122, 184, 175, .5));
  display: flex; align-items: center; justify-content: center;
}
.card__media--empty span {
  font-family: var(--serif); font-size: 44px; line-height: 1;
  color: rgba(23, 21, 15, .5);
}

.card__body { display: flex; flex-direction: column; flex: 1; padding: 26px 26px 28px; }

.card__meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  font-family: var(--mono); font-size: 12px; color: var(--muted-2);
}
.card__cat { color: var(--teal); }
.card__dot { color: var(--muted-3); }

.card__title { font-family: var(--serif); font-size: 25px; line-height: 1.2; margin-top: 14px; letter-spacing: -.01em; }
.card__title a { color: var(--ink); transition: color .25s; }
.card:hover .card__title a { color: var(--teal); }

.card__excerpt { font-size: 15px; line-height: 1.65; color: var(--muted); margin-top: 12px; }

.card__more {
  margin-top: auto; padding-top: 20px;
  font-family: var(--mono); font-size: 13px; color: var(--teal);
  display: inline-flex; align-items: center; gap: 7px;
}
.card__more span { transition: transform .25s; }
.card:hover .card__more span { transform: translateX(5px); }

/* Wpis wyróżniony */
.featured {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 0;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 22px; overflow: hidden; margin-bottom: 42px;
  transition: transform .3s, box-shadow .3s;
}
.featured:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -28px rgba(23, 21, 15, .28); }
.featured__media { position: relative; overflow: hidden; min-height: 340px; background: var(--band); }
.featured__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.featured:hover .featured__media img { transform: scale(1.03); }
.featured__badge {
  position: absolute; top: 20px; left: 20px; z-index: 2;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .05em;
  padding: 7px 15px; border-radius: var(--r-pill);
  background: rgba(251, 250, 248, .92); color: var(--ink); backdrop-filter: blur(6px);
}
.featured__body { padding: clamp(30px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; }
.featured__title { font-family: var(--serif); font-size: clamp(28px, 3.6vw, 40px); line-height: 1.14; margin-top: 16px; letter-spacing: -.015em; }
.featured__title a { color: var(--ink); transition: color .25s; }
.featured:hover .featured__title a { color: var(--teal); }
.featured__excerpt { font-size: 16.5px; line-height: 1.7; color: var(--muted); margin-top: 16px; }

/* ==========================================================================
   7. Paginacja
   ========================================================================== */
.pagination { margin-top: 56px; display: flex; justify-content: center; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-family: var(--mono); font-size: 14px; }
.pagination .page-numbers {
  min-width: 44px; height: 44px; padding: 0 14px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-2); border-radius: var(--r-pill);
  color: var(--ink); background: var(--surface);
  transition: border-color .25s, background .25s, color .25s;
}
.pagination .page-numbers:hover { border-color: var(--teal); color: var(--teal); }
.pagination .page-numbers.current { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.pagination .page-numbers.dots { border-color: transparent; background: transparent; color: var(--muted-3); }

/* ==========================================================================
   8. Okruszki
   ========================================================================== */
.breadcrumbs {
  font-family: var(--mono); font-size: 12.5px; color: var(--muted-2);
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.breadcrumbs a { color: var(--muted-2); }
.breadcrumbs a:hover { color: var(--teal); }
.breadcrumbs .sep { color: var(--muted-3); }
.breadcrumbs [aria-current] { color: var(--ink); }

/* ==========================================================================
   9. Pojedynczy wpis
   ========================================================================== */
.entry-header { position: relative; padding: 30px 0 0; }
.entry-header__inner { max-width: var(--wrap-read); margin: 0 auto; }
.entry-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 13px; color: var(--muted-2); margin-top: 26px;
}
.entry-meta a { color: var(--teal); }
.entry-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(34px, 5.2vw, 58px); line-height: 1.08;
  letter-spacing: -.018em; margin-top: 18px;
}
.entry-lead { font-size: 20px; line-height: 1.62; color: var(--muted); margin-top: 22px; }

.entry-hero-img { margin: 44px auto 0; max-width: var(--wrap); }
.entry-hero-img img { width: 100%; border-radius: 22px; aspect-ratio: 16 / 8; object-fit: cover; }
.entry-hero-img figcaption { font-family: var(--mono); font-size: 12px; color: var(--muted-2); margin-top: 12px; text-align: center; }

.entry-layout {
  display: grid; grid-template-columns: 240px minmax(0, var(--wrap-read));
  gap: 56px; justify-content: center;
  padding: clamp(40px, 5vw, 60px) 0 0;
}

/* Spis treści */
.toc { position: sticky; top: 32px; align-self: start; }
.toc__label { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--muted-2); }
.toc__list { list-style: none; margin: 16px 0 0; padding: 0; border-left: 1px solid var(--line); }
.toc__list li { margin: 0; }
.toc__list a {
  display: block; padding: 7px 0 7px 16px; margin-left: -1px;
  border-left: 1px solid transparent;
  font-size: 14px; line-height: 1.45; color: var(--muted-2);
  transition: color .25s, border-color .25s;
}
.toc__list a:hover { color: var(--teal); }
.toc__list a.is-active { color: var(--ink); border-left-color: var(--teal); font-weight: 600; }
.toc__list .lvl-3 a { padding-left: 28px; font-size: 13.5px; }

/* Treść */
.entry-content { font-size: 17.5px; line-height: 1.78; color: rgba(23, 21, 15, .88); }
.entry-content > * + * { margin-top: 1.35em; }
.entry-content h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(28px, 3.6vw, 38px); line-height: 1.16;
  letter-spacing: -.012em; margin-top: 2em; color: var(--ink);
  scroll-margin-top: 30px;
}
.entry-content h3 {
  font-weight: 800; font-size: 21px; line-height: 1.35;
  margin-top: 1.8em; color: var(--ink); scroll-margin-top: 30px;
}
.entry-content h4 { font-weight: 700; font-size: 17.5px; margin-top: 1.6em; color: var(--ink); }
.entry-content a { color: var(--teal); text-decoration: underline; text-decoration-color: rgba(55, 131, 122, .35); text-underline-offset: 3px; }
.entry-content a:hover { color: var(--ink); text-decoration-color: var(--ink); }
.entry-content strong { font-weight: 700; color: var(--ink); }
.entry-content ul, .entry-content ol { padding-left: 22px; }
.entry-content li { margin-top: .5em; }
.entry-content ul li::marker { color: var(--teal); }
.entry-content ol li::marker { color: var(--teal); font-family: var(--mono); font-size: .9em; }
.entry-content blockquote {
  margin-left: 0; margin-right: 0; padding: 6px 0 6px 26px;
  border-left: 3px solid var(--teal);
  font-family: var(--serif); font-size: 23px; line-height: 1.4; color: var(--ink);
}
.entry-content blockquote p + p { margin-top: .5em; }
.entry-content blockquote cite { display: block; font-family: var(--mono); font-size: 13px; font-style: normal; color: var(--muted-2); margin-top: 12px; }
.entry-content img, .entry-content .wp-block-image img { border-radius: var(--r-card); }
.entry-content figcaption { font-family: var(--mono); font-size: 12.5px; color: var(--muted-2); margin-top: 10px; }
.entry-content code {
  font-family: var(--mono); font-size: .88em;
  background: var(--band); padding: 2px 7px; border-radius: 6px;
}
.entry-content pre {
  background: var(--ink); color: var(--bg); padding: 22px 24px;
  border-radius: var(--r-card); overflow-x: auto; font-size: 14px; line-height: 1.6;
}
.entry-content pre code { background: transparent; padding: 0; color: inherit; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.entry-content th, .entry-content td { padding: 13px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.entry-content th { font-family: var(--mono); font-size: 12.5px; letter-spacing: .04em; color: var(--muted-2); font-weight: 500; }
.entry-content hr { margin: 2.4em 0; }
.entry-content .wp-block-pullquote,
.entry-content .wp-block-group.is-style-callout {
  background: var(--band); border-radius: var(--r-card); padding: 28px 30px; border-left: 3px solid var(--teal);
}
.entry-content .wp-block-button__link { border-radius: var(--r-pill); background: var(--teal); padding: 15px 30px; font-weight: 700; text-decoration: none; }
.entry-content .wp-block-separator { border-top: 1px solid var(--line); }
.entry-content .wp-block-embed figcaption { text-align: center; }

/* Tagi */
.entry-tags { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 44px; }
.entry-tags a {
  font-family: var(--mono); font-size: 12.5px; padding: 8px 15px;
  border-radius: var(--r-pill); border: 1px solid var(--line-2); color: var(--muted);
  transition: border-color .25s, color .25s;
}
.entry-tags a:hover { border-color: var(--teal); color: var(--teal); }

/* Autor */
.author-box {
  display: flex; gap: 22px; align-items: flex-start;
  margin-top: 52px; padding: 30px 32px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
}
/* flex: none jest tu konieczne — bez niego kolumna z avatarem kurczy się
   pod naporem dłuższego biogramu (68px potrafi zejść do kilkunastu). */
.author-box__avatar { flex: none; width: 68px; }
.author-box__avatar img { width: 68px; height: 68px; border-radius: 50%; object-fit: cover; }
.author-box__name { font-weight: 800; font-size: 17px; }
.author-box__role { font-family: var(--mono); font-size: 12.5px; color: var(--teal); margin-top: 3px; }
.author-box__bio { font-size: 15px; line-height: 1.65; color: var(--muted); margin-top: 10px; }

/* Nawigacja prev/next */
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 48px; }
.post-nav__item {
  padding: 22px 26px; border: 1px solid var(--line); border-radius: var(--r-card);
  background: var(--surface); transition: border-color .25s, transform .25s;
}
.post-nav__item:hover { border-color: var(--teal); transform: translateY(-3px); }
.post-nav__dir { font-family: var(--mono); font-size: 12px; color: var(--muted-2); }
.post-nav__title { font-family: var(--serif); font-size: 19px; line-height: 1.25; color: var(--ink); margin-top: 8px; display: block; }
.post-nav__item--next { text-align: right; }

/* ==========================================================================
   10. Pas CTA
   ========================================================================== */
.cta-band {
  display: flex; align-items: center; justify-content: center; gap: 26px;
  margin: clamp(56px, 7vw, 88px) auto 0; max-width: var(--wrap);
  padding: 34px 44px; border: 1px solid var(--line);
  border-radius: var(--r-pill); background: var(--surface);
}
.cta-band__text { font-family: var(--serif); font-size: clamp(21px, 3.2vw, 27px); line-height: 1.25; }

.cta-dark {
  background: var(--ink); color: var(--bg);
  border-radius: 32px; padding: clamp(40px, 5vw, 60px) clamp(28px, 4vw, 56px);
  margin: clamp(56px, 7vw, 88px) auto 0; max-width: var(--wrap-read); text-align: center;
}
.cta-dark .eyebrow { color: var(--on-dark); }
.cta-dark h2 { font-family: var(--serif); font-size: clamp(28px, 4vw, 40px); line-height: 1.15; margin-top: 16px; }
.cta-dark p { color: rgba(251, 250, 248, .72); font-size: 16.5px; margin: 16px auto 0; max-width: 460px; }
.cta-dark .btn-teal { margin-top: 28px; }
.cta-dark small { display: block; font-family: var(--mono); font-size: 12px; color: var(--on-dark); margin-top: 16px; }

/* ==========================================================================
   11. Sekcje list (powiązane / popularne)
   ========================================================================== */
.section-band { background: var(--band); margin-top: clamp(60px, 8vw, 100px); padding: clamp(56px, 7vw, 84px) 0; }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head h2 { font-family: var(--serif); font-size: clamp(28px, 4vw, 42px); line-height: 1.14; margin-top: 16px; }

.mini-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.mini {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-card);
  transition: transform .25s, border-color .25s;
}
.mini:hover { transform: translateY(-4px); border-color: rgba(55, 131, 122, .45); }
.mini__num { font-family: var(--mono); font-size: 13px; color: var(--teal); flex: none; padding-top: 2px; }
.mini__title { display: block; font-family: var(--serif); font-size: 18px; line-height: 1.28; color: var(--ink); }
.mini__meta { display: block; font-family: var(--mono); font-size: 11.5px; color: var(--muted-2); margin-top: 8px; }

/* ==========================================================================
   12. Wyszukiwarka / 404 / strony
   ========================================================================== */
.search-form { display: flex; gap: 10px; max-width: 480px; margin: 28px auto 0; }
.search-form input[type="search"] {
  flex: 1; padding: 15px 20px; border-radius: var(--r-pill);
  border: 1px solid var(--line-2); background: var(--surface);
  font-size: 15px; outline: none; transition: border-color .2s;
}
.search-form input[type="search"]:focus { border-color: var(--teal); }

.empty-state { text-align: center; padding: clamp(50px, 7vw, 90px) 0; }
.empty-state h2 { font-family: var(--serif); font-size: clamp(28px, 4vw, 40px); margin-top: 14px; }
.empty-state p { color: var(--muted); margin-top: 16px; }

.page-content { max-width: var(--wrap-read); margin: 0 auto; padding-top: 20px; }

/* ==========================================================================
   13. Stopka
   ========================================================================== */
.site-footer {
  background: var(--ink); color: var(--bg);
  border-top: 1px solid rgba(251, 250, 248, .12);
  margin-top: clamp(60px, 8vw, 100px);
}
.site-footer__inner {
  max-width: var(--wrap); margin: 0 auto;
  padding: 34px var(--pad-x);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.site-footer__links { display: flex; gap: 26px; font-family: var(--mono); font-size: 12px; color: var(--on-dark); }
.site-footer__links a { color: inherit; }
.site-footer__links a:hover { color: var(--teal-xl); }
.site-footer__meta { font-family: var(--mono); font-size: 12px; color: var(--on-dark); }
/* Odnośniki w stopce dziedziczą stonowany, jasny kolor (1:1 ze stroną główną). Bez tego brały
   globalne a{color:teal} + a:hover{color:ink} — po najechaniu robiły się ciemne i „znikały". */
.site-footer__meta a { color: inherit; }
.site-footer__meta a[data-consent-settings] { text-decoration: underline; text-underline-offset: 3px; }
.site-footer__meta a:hover { color: var(--bg); }
.site-footer .nav-link::after { background: var(--teal-xl); }

/* ==========================================================================
   14. Responsywność
   ========================================================================== */
@media (max-width: 1180px) {
  .entry-layout { grid-template-columns: minmax(0, var(--wrap-read)); }
  .toc { display: none; }
}

@media (max-width: 1000px) {
  .grid-cards { grid-template-columns: repeat(2, 1fr); }
  .mini-list { grid-template-columns: repeat(2, 1fr); }
  .featured { grid-template-columns: 1fr; }
  .featured__media { min-height: 260px; aspect-ratio: 16 / 9; }
}

@media (max-width: 900px) {
  /* Wyłącznie nawigacja w nagłówku — ta sama klasa nosi paginację i stopkę. */
  .site-header .nav-links { display: none; }
  .nav-toggle { display: inline-block; }
  .site-header__cta { display: none; }
  .site-footer__inner { flex-direction: column; gap: 16px; text-align: center; }
  .cta-band { flex-direction: column; border-radius: 32px; text-align: center; gap: 20px; padding: 36px 30px; }
}

@media (max-width: 700px) {
  body { font-size: 16.5px; }
  .grid-cards { grid-template-columns: 1fr; }
  .mini-list { grid-template-columns: 1fr; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav__item--next { text-align: left; }
  .entry-hero-img img { aspect-ratio: 4 / 3; border-radius: var(--r-card); }
  .author-box { flex-direction: column; gap: 16px; }
  .entry-content { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .bs-js [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .toc, .cta-band, .cta-dark, .section-band, .post-nav, .entry-tags { display: none !important; }
  body { background: #fff; }
  .entry-layout { display: block; }
}
