/* ============================================
   BlogMatki.pl — Design System (style.css)
   ============================================ */
:root {
  /* Tła */
  --bg-base: #FFF9F5;
  --bg-soft: #F9EFE6;
  --bg-card: #FFFCF8;
  --bg-glass: rgba(255, 252, 248, 0.72);

  /* Tekst */
  --text-deep: #2D2A28;
  --text-mid: #5C524C;
  --text-soft: #8B7E76;

  /* Akcenty */
  --accent-coral: #E8A598;
  --accent-coral-deep: #D88B7E;
  --accent-peach: #F4C5A5;
  --accent-sage: #A4C3A2;
  --accent-rose: #D4A5C1;
  --accent-cream: #E8D5C4;
  --accent-gold: #C8A882;
  --accent-violet: #B5A4C8;

  /* Linie i cienie */
  --border-soft: rgba(45, 42, 40, 0.08);
  --shadow-soft: 0 4px 20px rgba(45, 42, 40, 0.04);
  --shadow-hover: 0 12px 40px rgba(45, 42, 40, 0.08);
  --shadow-deep: 0 24px 60px rgba(45, 42, 40, 0.12);

  /* Typografia */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-hand: 'Caveat', cursive;

  /* Promienie */
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;
}

/* Reset */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-deep);
  background: var(--bg-base);
  background-image:
    radial-gradient(ellipse 800px 600px at 10% 0%, rgba(244, 197, 165, 0.18), transparent 50%),
    radial-gradient(ellipse 600px 500px at 90% 30%, rgba(212, 165, 193, 0.12), transparent 50%),
    radial-gradient(ellipse 700px 500px at 50% 90%, rgba(164, 195, 162, 0.08), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: opacity 0.2s, color 0.2s; }
button { font: inherit; cursor: pointer; border: none; background: none; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow {
  max-width: 820px;
}
.container--article {
  max-width: 1100px;
}

/* ============================================
   Typografia
   ============================================ */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--text-deep);
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 500; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
h4 { font-size: 1.25rem; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-coral-deep);
}

.handwritten {
  font-family: var(--font-hand);
  font-weight: 600;
  color: var(--accent-coral-deep);
}

/* ============================================
   Nav — sticky z blur backdrop
   ============================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid var(--border-soft);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.nav__logo {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.nav__logo strong { color: var(--accent-coral-deep); font-weight: 600; }
.nav__logo span { font-family: var(--font-hand); color: var(--text-soft); font-size: 1.1rem; }

.nav__menu {
  display: flex;
  gap: 28px;
  list-style: none;
  align-items: center;
}
.nav__menu a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-mid);
  position: relative;
  padding: 8px 0;
}
.nav__menu a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-coral);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}
.nav__menu a:hover, .nav__menu a.active { color: var(--text-deep); }
.nav__menu a:hover::after, .nav__menu a.active::after { transform: scaleX(1); }

.nav__search {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-pill);
  background: var(--bg-soft);
  transition: background 0.2s;
}
.nav__search:hover { background: var(--accent-cream); }
.nav__burger { display: none; }

@media (max-width: 880px) {
  .nav__menu { display: none; }
  .nav__burger { display: grid; place-items: center; width: 40px; height: 40px; }
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--r-pill);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.25s;
}
.btn--primary {
  background: var(--text-deep);
  color: var(--bg-base);
}
.btn--primary:hover { background: var(--accent-coral-deep); transform: translateY(-2px); box-shadow: 0 12px 24px rgba(216, 139, 126, 0.25); }
.btn--ghost {
  color: var(--text-deep);
  border-bottom: 2px solid var(--text-deep);
  border-radius: 0;
  padding: 4px 0;
}
.btn--ghost:hover { color: var(--accent-coral-deep); border-color: var(--accent-coral-deep); }
.btn--soft {
  background: var(--bg-soft);
  color: var(--text-deep);
}
.btn--soft:hover { background: var(--accent-cream); }
.btn--sm {
  padding: 9px 18px;
  font-size: 0.85rem;
}

/* ============================================
   Sekcje — wspólny header
   ============================================ */
.section {
  padding: 90px 0;
}
.section--small { padding: 60px 0; }
.section__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
  gap: 40px;
  flex-wrap: wrap;
}
.section__head-text { max-width: 600px; }
.section__head h2 { margin: 12px 0 0; }
.section__head p { margin-top: 14px; color: var(--text-mid); font-size: 1.05rem; }
.section__link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-deep);
  border-bottom: 2px solid var(--accent-coral);
  padding-bottom: 4px;
  white-space: nowrap;
}
.section__link:hover { color: var(--accent-coral-deep); }

/* ============================================
   Post card — siatka wpisów (uniwersalna)
   ============================================ */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}
.post-card {
  background: var(--bg-card);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-soft);
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.post-card__image {
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden;
}
.post-card__image::after {
  content: attr(data-emoji);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 3rem;
  opacity: 0.45;
}
.post-card__body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.post-card__cat {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-coral-deep);
  margin-bottom: 10px;
}
.post-card__title {
  font-size: 1.1rem;
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 10px;
}
.post-card__title a:hover { color: var(--accent-coral-deep); }
.post-card__excerpt {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}
.post-card__meta {
  font-size: 0.78rem;
  color: var(--text-soft);
  display: flex;
  gap: 12px;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--border-soft);
}

/* Placeholdery obrazków — gradienty per kategoria */
.img-bieganie { background: linear-gradient(135deg, #E8A598, #F4C5A5); }
.img-kulinaria { background: linear-gradient(135deg, #F4C5A5, #E8D5C4); }
.img-czytelnia { background: linear-gradient(135deg, #C8A882, #E8D5C4); }
.img-fotografia { background: linear-gradient(135deg, #D4A5C1, #E8A598); }
.img-czas-wolny { background: linear-gradient(135deg, #A4C3A2, #C8E0C7); }
.img-moim-zdaniem { background: linear-gradient(135deg, #E8A598, #D4A5C1); }
.img-motywacja { background: linear-gradient(135deg, #B5A4C8, #D4A5C1); }

/* ============================================
   Newsletter
   ============================================ */
.newsletter {
  padding: 100px 0;
}
.newsletter__box {
  background: linear-gradient(135deg, var(--accent-cream) 0%, var(--accent-peach) 100%);
  border-radius: var(--r-xl);
  padding: 70px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.newsletter__box::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255, 252, 248, 0.3);
}
.newsletter__box::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 250px; height: 250px;
  border-radius: 50%;
  background: rgba(255, 252, 248, 0.2);
}
.newsletter h2 { margin-bottom: 16px; position: relative; z-index: 2; }
.newsletter p { color: var(--text-mid); margin-bottom: 32px; max-width: 540px; margin-left: auto; margin-right: auto; position: relative; z-index: 2; }
.newsletter__form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.newsletter__input {
  flex: 1;
  padding: 16px 22px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  background: var(--bg-card);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-deep);
  outline: none;
  transition: border-color 0.2s;
}
.newsletter__input:focus { border-color: var(--accent-coral); }

@media (max-width: 640px) {
  .newsletter__box { padding: 50px 28px; }
  .newsletter__form { flex-direction: column; }
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--text-deep);
  color: var(--bg-base);
  padding: 70px 0 30px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 50px;
}
.footer__brand h3 { color: var(--bg-base); font-size: 1.7rem; margin-bottom: 12px; }
.footer__brand p { color: rgba(255, 252, 248, 0.65); font-size: 0.95rem; line-height: 1.6; max-width: 320px; }
.footer__col h5 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
  color: var(--accent-coral);
  margin-bottom: 20px;
}
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer__col a { color: rgba(255, 252, 248, 0.7); font-size: 0.92rem; }
.footer__col a:hover { color: var(--accent-coral); }
.footer__bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 252, 248, 0.1);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: rgba(255, 252, 248, 0.5);
}
.footer__social { display: flex; gap: 12px; }
.footer__social a {
  width: 38px; height: 38px;
  border-radius: var(--r-pill);
  background: rgba(255, 252, 248, 0.08);
  display: grid; place-items: center;
  transition: background 0.2s;
}
.footer__social a:hover { background: var(--accent-coral); }

@media (max-width: 880px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer__brand { grid-column: span 2; }
}
@media (max-width: 540px) {
  .footer__grid { grid-template-columns: 1fr; }
  .footer__brand { grid-column: span 1; }
}

/* ============================================
   BREADCRUMBS — okruszki nawigacji
   ============================================ */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-soft);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.breadcrumbs a:hover { color: var(--accent-coral-deep); }
.breadcrumbs__sep { opacity: 0.5; }
.breadcrumbs__current { color: var(--text-mid); font-weight: 500; }

/* ============================================
   CATEGORY HERO — header strony kategorii
   ============================================ */
.cat-hero {
  position: relative;
  padding: 70px 0 70px;
  overflow: hidden;
  background: var(--cat-bg-soft, var(--bg-soft));
}
.cat-hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -120px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: var(--cat-bg-deco, rgba(244, 197, 165, 0.4));
  filter: blur(40px);
  opacity: 0.6;
}
.cat-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  align-items: center;
}
.cat-hero__icon {
  font-size: 3rem;
  width: 90px;
  height: 90px;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  background: var(--bg-card);
  box-shadow: var(--shadow-soft);
  margin-bottom: 24px;
}
.cat-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  margin-bottom: 16px;
}
.cat-hero__lead {
  font-size: 1.18rem;
  color: var(--text-mid);
  max-width: 560px;
  line-height: 1.65;
}
.cat-hero__stats {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}
.cat-hero__stat {
  background: var(--bg-card);
  padding: 20px 28px;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-soft);
  min-width: 200px;
}
.cat-hero__stat-num {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1;
  color: var(--cat-color, var(--accent-coral-deep));
  display: block;
  margin-bottom: 6px;
}
.cat-hero__stat-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-soft);
}

@media (max-width: 880px) {
  .cat-hero__inner { grid-template-columns: 1fr; gap: 30px; }
  .cat-hero { padding: 50px 0 50px; }
}

/* Toolbar — sortowanie/filtrowanie */
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 36px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-soft);
  flex-wrap: wrap;
}
.toolbar__count {
  font-size: 0.92rem;
  color: var(--text-soft);
}
.toolbar__count strong { color: var(--text-deep); font-weight: 600; }

.tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-soft);
  padding: 4px;
  border-radius: var(--r-pill);
}
.tabs button {
  padding: 8px 16px;
  border-radius: var(--r-pill);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-mid);
  transition: all 0.2s;
}
.tabs button.active {
  background: var(--bg-card);
  color: var(--text-deep);
  box-shadow: var(--shadow-soft);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 56px;
}
.pagination a, .pagination span {
  min-width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0 14px;
  border-radius: var(--r-pill);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-mid);
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  transition: all 0.2s;
}
.pagination a:hover {
  border-color: var(--accent-coral);
  color: var(--text-deep);
}
.pagination .active {
  background: var(--text-deep);
  color: var(--bg-base);
  border-color: var(--text-deep);
}

/* ============================================
   POST ARTICLE — szablon wpisu
   ============================================ */
.post-hero {
  padding: 50px 0 40px;
}
.post-hero__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.85rem;
  color: var(--text-soft);
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.post-hero__cat {
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: var(--accent-coral);
  color: var(--bg-base);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.post-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin-bottom: 26px;
  line-height: 1.18;
  max-width: 880px;
}
.post-hero__lead {
  font-size: 1.18rem;
  color: var(--text-mid);
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 720px;
}
.post-hero__author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
}
.post-hero__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-peach), var(--accent-coral));
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--bg-card);
  font-size: 1.2rem;
}
.post-hero__author-info { line-height: 1.4; }
.post-hero__author-name { font-weight: 600; font-size: 0.95rem; }
.post-hero__author-role { font-size: 0.82rem; color: var(--text-soft); }

.post-cover {
  margin: 0 auto 50px;
  max-width: 1100px;
  aspect-ratio: 16/9;
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-deep);
}
.post-cover__emoji {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 8rem;
  opacity: 0.4;
}

/* Treść artykułu */
.post-body {
  font-family: var(--font-sans);
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--text-deep);
}
.post-body > p:first-of-type::first-letter {
  font-family: var(--font-serif);
  font-size: 4.5rem;
  float: left;
  line-height: 0.85;
  margin: 8px 14px 0 0;
  color: var(--accent-coral-deep);
  font-weight: 500;
}
.post-body p {
  margin-bottom: 1.4em;
  color: var(--text-mid);
}
.post-body h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 2.2em 0 0.7em;
  color: var(--text-deep);
}
.post-body h2::before {
  content: '';
  display: block;
  width: 50px;
  height: 4px;
  background: var(--accent-coral);
  border-radius: var(--r-pill);
  margin-bottom: 16px;
}
.post-body h3 {
  font-size: 1.4rem;
  margin: 1.6em 0 0.5em;
}
.post-body strong { color: var(--text-deep); font-weight: 600; }
.post-body em { font-family: var(--font-serif); font-size: 1.05em; color: var(--text-deep); }
.post-body a {
  color: var(--accent-coral-deep);
  border-bottom: 1px solid var(--accent-coral);
  padding-bottom: 1px;
  transition: all 0.2s;
}
.post-body a:hover {
  background: rgba(232, 165, 152, 0.12);
  border-bottom-color: var(--accent-coral-deep);
}
.post-body ul, .post-body ol {
  margin: 0 0 1.4em 1.2em;
  padding-left: 1em;
  color: var(--text-mid);
}
.post-body li { margin-bottom: 0.5em; padding-left: 0.4em; }
.post-body ul li::marker { color: var(--accent-coral-deep); }

.post-body blockquote {
  margin: 2em 0;
  padding: 32px 38px;
  border-left: 4px solid var(--accent-coral);
  background: var(--bg-soft);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--text-deep);
  position: relative;
}
.post-body blockquote cite {
  display: block;
  margin-top: 12px;
  font-family: var(--font-hand);
  font-size: 1.1rem;
  font-style: normal;
  color: var(--accent-coral-deep);
}

.post-body figure {
  margin: 2em 0;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.post-body figure .img-placeholder {
  aspect-ratio: 16/9;
  position: relative;
}
.post-body figure .img-placeholder::after {
  content: attr(data-emoji);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 4.5rem;
  opacity: 0.45;
}
.post-body figcaption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-soft);
  padding: 12px 16px;
  background: var(--bg-card);
  font-style: italic;
}

/* Tags i share na końcu */
.post-footer {
  margin-top: 60px;
  padding-top: 36px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: var(--bg-soft);
  font-size: 0.82rem;
  color: var(--text-mid);
  transition: all 0.2s;
}
.tag:hover { background: var(--accent-cream); color: var(--text-deep); }

.share { display: flex; gap: 10px; align-items: center; }
.share__label {
  font-size: 0.85rem;
  color: var(--text-soft);
  margin-right: 4px;
}
.share a {
  width: 38px;
  height: 38px;
  border-radius: var(--r-pill);
  background: var(--bg-soft);
  display: grid;
  place-items: center;
  color: var(--text-mid);
  transition: all 0.2s;
}
.share a:hover { background: var(--accent-coral); color: var(--bg-card); transform: translateY(-2px); }

/* FAQ akordeon */
.faq {
  margin-top: 80px;
  padding: 50px 50px;
  background: var(--bg-card);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-soft);
}
.faq h2 {
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.faq h2::before {
  content: '?';
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--accent-coral);
  color: var(--bg-card);
  border-radius: 50%;
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  flex-shrink: 0;
}
.faq__item {
  border-bottom: 1px solid var(--border-soft);
}
.faq__item:last-child { border-bottom: none; }
.faq__item summary {
  padding: 22px 0;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-deep);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  transition: color 0.2s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '+';
  font-size: 1.6rem;
  color: var(--accent-coral-deep);
  font-weight: 300;
  flex-shrink: 0;
  transition: transform 0.3s;
}
.faq__item[open] summary::after {
  transform: rotate(45deg);
}
.faq__item summary:hover { color: var(--accent-coral-deep); }
.faq__item div {
  padding: 0 0 24px;
  color: var(--text-mid);
  line-height: 1.75;
  font-size: 1rem;
}

@media (max-width: 640px) {
  .faq { padding: 30px 24px; }
}

/* Author bio na końcu */
.author-bio {
  margin-top: 60px;
  padding: 36px 40px;
  background: linear-gradient(135deg, var(--accent-cream), var(--accent-peach));
  border-radius: var(--r-lg);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
}
.author-bio__avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--bg-card);
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--accent-coral-deep);
  box-shadow: var(--shadow-soft);
}
.author-bio__name {
  font-family: var(--font-hand);
  font-size: 1.4rem;
  color: var(--accent-coral-deep);
  margin-bottom: 4px;
}
.author-bio h4 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin-bottom: 8px;
}
.author-bio p {
  color: var(--text-mid);
  font-size: 0.95rem;
  line-height: 1.65;
}

@media (max-width: 640px) {
  .author-bio { grid-template-columns: 1fr; text-align: center; padding: 30px 24px; }
}

/* Sticky table of contents (sidebar) */
.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 80px;
  align-items: flex-start;
}
.toc {
  position: sticky;
  top: 100px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  padding: 24px 26px;
  box-shadow: var(--shadow-soft);
}
.toc__title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-coral-deep);
  font-weight: 600;
  margin-bottom: 14px;
}
.toc ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.toc a {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.4;
  display: block;
  padding: 4px 0 4px 14px;
  border-left: 2px solid var(--border-soft);
  transition: all 0.2s;
}
.toc a:hover, .toc a.active {
  border-left-color: var(--accent-coral);
  color: var(--text-deep);
  padding-left: 18px;
}

@media (max-width: 1024px) {
  .post-layout { grid-template-columns: 1fr; }
  .toc { display: none; }
}

/* Related posts (powiązane) */
.related-section {
  background: var(--bg-soft);
  padding: 80px 0;
  margin-top: 80px;
}
.related-section h2 { margin-bottom: 36px; }

/* ============================================
   HOME — komponenty strony glownej
   ============================================ */

/* HERO */
.hero {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
}
.hero__decoration {
  position: absolute;
  top: -50px;
  right: -100px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-peach), transparent 65%);
  opacity: 0.5;
  filter: blur(20px);
  pointer-events: none;
}
.hero__decoration--2 {
  top: auto;
  bottom: -80px;
  right: auto;
  left: -120px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--accent-rose), transparent 65%);
  opacity: 0.35;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero__text .eyebrow { margin-bottom: 20px; display: inline-block; }
.hero__title {
  font-size: clamp(2.8rem, 6.5vw, 5rem);
  margin-bottom: 28px;
}
.hero__title em { font-style: italic; color: var(--accent-coral-deep); }
.hero__title .hand {
  font-family: var(--font-hand);
  font-weight: 600;
  font-size: 0.85em;
  font-style: normal;
  color: var(--accent-sage);
}
.hero__lead {
  font-size: 1.18rem;
  color: var(--text-mid);
  margin-bottom: 36px;
  max-width: 520px;
  line-height: 1.65;
}
.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.hero__portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, var(--accent-peach) 0%, var(--accent-coral) 50%, var(--accent-rose) 100%);
  overflow: hidden;
  box-shadow: var(--shadow-deep);
  transform: rotate(-1.5deg);
}
.hero__portrait::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 252, 248, 0.4), transparent 40%),
    radial-gradient(circle at 70% 70%, rgba(45, 42, 40, 0.1), transparent 40%);
}
.hero__portrait::after {
  content: '👩';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 8rem;
  opacity: 0.3;
}
.hero__sticker {
  position: absolute;
  bottom: -20px;
  left: -30px;
  background: var(--bg-card);
  padding: 14px 22px;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-hover);
  transform: rotate(-4deg);
}
.hero__sticker-num {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--accent-coral-deep);
  display: block;
}
.hero__sticker-label {
  font-size: 0.78rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
@media (max-width: 880px) {
  .hero__grid { grid-template-columns: 1fr; gap: 50px; }
  .hero { padding: 50px 0 70px; }
}

/* ABOUT SNIPPET */
.about-snippet {
  padding: 100px 0;
  position: relative;
}
.about-snippet__grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: center;
}
.about-snippet__visual {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, var(--accent-cream), var(--accent-peach));
  overflow: hidden;
}
.about-snippet__visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(255, 252, 248, 0.5), transparent 50%);
}
.about-snippet__visual::after {
  content: '☕';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 6rem;
  opacity: 0.4;
}
.about-snippet h2 { margin-bottom: 24px; }
.about-snippet p {
  color: var(--text-mid);
  font-size: 1.05rem;
  margin-bottom: 18px;
  line-height: 1.75;
}
.about-snippet p:first-of-type::first-letter {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  float: left;
  line-height: 0.9;
  margin: 6px 12px 0 0;
  color: var(--accent-coral-deep);
  font-weight: 500;
}
.about-snippet__signature {
  margin-top: 28px;
  font-family: var(--font-hand);
  font-size: 1.6rem;
  color: var(--accent-coral-deep);
}
@media (max-width: 880px) {
  .about-snippet__grid { grid-template-columns: 1fr; gap: 40px; }
  .about-snippet { padding: 60px 0; }
}

/* KATEGORIE */
.categories-section { background: var(--bg-soft); }
.categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 18px;
}
.category-card {
  background: var(--bg-card);
  border-radius: var(--r-md);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-soft);
}
.category-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--cat-color, var(--accent-coral));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.category-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.category-card:hover::before { transform: scaleX(1); }
.category-card__icon {
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  background: var(--cat-bg, rgba(232, 165, 152, 0.15));
}
.category-card h4 { font-family: var(--font-sans); font-size: 1.05rem; font-weight: 600; }
.category-card span { font-size: 0.85rem; color: var(--text-soft); }

/* Kolory kategorii */
.cat--bieganie { --cat-color: #E8A598; --cat-bg: rgba(232,165,152,0.15); }
.cat--czas-wolny { --cat-color: #A4C3A2; --cat-bg: rgba(164,195,162,0.18); }
.cat--czytelnia { --cat-color: #C8A882; --cat-bg: rgba(200,168,130,0.18); }
.cat--fotografia { --cat-color: #D4A5C1; --cat-bg: rgba(212,165,193,0.18); }
.cat--kulinaria { --cat-color: #F4C5A5; --cat-bg: rgba(244,197,165,0.22); }
.cat--moim-zdaniem { --cat-color: #E8A598; --cat-bg: rgba(232,165,152,0.18); }
.cat--motywacja { --cat-color: #B5A4C8; --cat-bg: rgba(181,164,200,0.18); }

/* FEATURED */
.featured {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 24px;
}
.featured__card {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: var(--shadow-soft);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}
.featured__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.featured__card--big { grid-row: span 2; }
.featured__image {
  aspect-ratio: 16/10;
  position: relative;
  overflow: hidden;
}
.featured__card--big .featured__image { aspect-ratio: 4/5; }
.featured__body { padding: 24px 26px 28px; }
.featured__badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  background: var(--bg-soft);
  color: var(--text-mid);
  margin-bottom: 14px;
}
.featured__title {
  font-size: 1.4rem;
  margin-bottom: 12px;
  line-height: 1.25;
  font-family: var(--font-serif);
  font-weight: 600;
}
.featured__card--big .featured__title { font-size: 1.85rem; }
.featured__title a:hover { color: var(--accent-coral-deep); }
.featured__excerpt {
  color: var(--text-mid);
  font-size: 0.95rem;
  margin-bottom: 16px;
  line-height: 1.65;
}
.featured__meta {
  font-size: 0.82rem;
  color: var(--text-soft);
  display: flex;
  gap: 14px;
  align-items: center;
}
@media (max-width: 980px) {
  .featured { grid-template-columns: 1fr; }
  .featured__card--big { grid-row: auto; }
}

/* MANIFEST */
.manifest {
  padding: 100px 0;
  text-align: center;
  position: relative;
}
.manifest__quote {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.4;
  max-width: 850px;
  margin: 0 auto 40px;
  color: var(--text-deep);
  position: relative;
}
.manifest__quote::before {
  content: '"';
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 8rem;
  font-family: var(--font-serif);
  color: var(--accent-coral);
  opacity: 0.4;
  line-height: 1;
}
.manifest__author {
  font-family: var(--font-hand);
  font-size: 1.6rem;
  color: var(--accent-coral-deep);
}
.manifest__values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-top: 70px;
  text-align: left;
}
.manifest__value {
  padding: 28px;
  background: var(--bg-card);
  border-radius: var(--r-md);
  border: 1px solid var(--border-soft);
}
.manifest__value-num {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--accent-coral-deep);
  display: block;
  margin-bottom: 8px;
}
.manifest__value h4 {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.manifest__value p { font-size: 0.9rem; color: var(--text-mid); line-height: 1.6; }

/* LATEST SECTION (siatka najnowszych wpisow) */
.latest-section { background: var(--bg-soft); }
.latest {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

/* ============================================
   Rzeczywiste obrazki (z fallbackiem do gradient)
   gdy w kontenerze jest <img> -> ukryj dekoracje
   ============================================ */

/* Hero portrait z obrazem */
.hero__portrait img,
.about-snippet__visual img,
.post-cover img,
.post-card__image img,
.featured__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  z-index: 1;
}

/* Gdy jest obraz — ukryj emoji/dekoracje */
.hero__portrait.has-image::before,
.hero__portrait.has-image::after { display: none; }

.about-snippet__visual.has-image::before,
.about-snippet__visual.has-image::after { display: none; }

/* Post-cover/featured/post-card: emoji z atrybutu data-emoji ukryj gdy obraz */
.post-cover.has-image .post-cover__emoji,
.post-card__image.has-image::after,
.featured__image.has-image > span { display: none; }
