:root{
  /* Ayurvedic palette (modern, calm, earthy) */
  --bg: #fbf8f2;            /* warm ivory */
  --paper: #ffffff;
  --text: #1f2a24;          /* deep forest */
  --muted: #5d6b62;         /* sage grey */
  --line: rgba(31,42,36,.10);

  --sage: #6f8f7a;
  --teal: #2f6f6c;
  --saffron: #d39a3a;
  --clay: #b46b4b;

  --shadow: 0 18px 50px rgba(31,42,36,.10);
  --shadow2: 0 10px 30px rgba(31,42,36,.08);
  --radius: 18px;

  --max: 1120px;
  --read: 820px;

  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(900px 520px at 12% 0%, rgba(111,143,122,.18), transparent 60%),
    radial-gradient(900px 520px at 90% 10%, rgba(211,154,58,.14), transparent 60%),
    var(--bg);
  line-height: 1.8;
  letter-spacing: .2px;
}

a{ color: inherit; text-decoration: none; }
a.underline{
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}

.container{
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px;
}

/* Topbar */
.topbar{
  position: sticky;
  top: 14px;
  z-index: 30;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding: 14px 16px;
  border:1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow2);
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width: 220px;
}
.logo{
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.15));
}
.brand h1{ margin:0; font-size: 15px; letter-spacing:.4px; }
.brand p{ margin:0; font-size: 12px; color: var(--muted); }

.controls{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.input{
  display:flex;
  align-items:center;
  gap:10px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.78);
  padding: 10px 12px;
  border-radius: 14px;
  min-width: min(430px, 60vw);
}
.input input{
  width:100%;
  border:none;
  outline:none;
  background: transparent;
  color: var(--text);
  font-size: 14px;
}
.btn{
  border:1px solid var(--line);
  background: rgba(255,255,255,.80);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 14px;
  cursor: pointer;
  transition: .15s transform, .15s box-shadow, .15s background;
  display:inline-flex;
  align-items:center;
  gap:8px;
  user-select:none;
  font-size: 14px;
}
.btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.92);
  box-shadow: 0 10px 24px rgba(31,42,36,.10);
}
.btn.primary{
  border-color: rgba(211,154,58,.35);
  background: linear-gradient(135deg, rgba(211,154,58,.22), rgba(47,111,108,.14));
}
.btn.primary:hover{
  border-color: rgba(211,154,58,.55);
}

/* Hero */
.hero{
  margin-top: 18px;
  border:1px solid var(--line);
  border-radius: calc(var(--radius) + 8px);
  overflow:hidden;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.heroMedia{
  position: relative;
  height: min(440px, 54vw);
  background: #ddd;
}
.heroMedia img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}
.heroOverlay{
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg, rgba(31,42,36,.72) 0%, rgba(31,42,36,.45) 40%, rgba(31,42,36,.12) 70%, rgba(31,42,36,0) 100%),
    linear-gradient(180deg, rgba(31,42,36,.20), rgba(31,42,36,.00) 55%);
}
.heroContent{
  position:absolute;
  inset:0;
  display:flex;
  align-items:flex-end;
  padding: 22px;
}
.heroCard{
  max-width: 720px;
  color: #fff;
}
.kicker{
  display:inline-flex;
  gap:8px;
  align-items:center;
  font-size: 12px;
  letter-spacing:.6px;
  text-transform: uppercase;
  color: rgba(255,255,255,.88);
  background: rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.18);
  padding: 7px 10px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.heroTitle{
  margin: 12px 0 10px;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.1;
  letter-spacing:.2px;
}
.heroLead{
  margin:0 0 14px;
  color: rgba(255,255,255,.88);
  font-size: 15px;
  max-width: 56ch;
}
.heroActions{ display:flex; gap:10px; flex-wrap:wrap; }

/* Layout sections */
.grid{
  margin-top: 18px;
  display:grid;
  grid-template-columns: 1.4fr .95fr;
  gap: 18px;
}
@media (max-width: 940px){
  .topbar{ position: static; }
  .grid{ grid-template-columns: 1fr; }
  .brand{ min-width:auto; }
  .input{ min-width: min(100%, 70vw); }
}

.card{
  border:1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.86);
  box-shadow: var(--shadow2);
  overflow:hidden;
}
.cardHead{
  padding: 16px 18px 10px;
  border-bottom:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
}
.cardHead h3{ margin:0; font-size: 15px; letter-spacing:.2px; }
.cardBody{ padding: 18px; }

.small{ font-size: 12px; color: var(--muted); }
.divider{ height:1px; background: var(--line); margin: 16px 0; }

/* “About” content */
.prose{
  max-width: var(--read);
}
.prose h2{
  margin: 0 0 10px;
  font-size: 22px;
  line-height:1.2;
}
.prose p{ margin: 0 0 12px; color: var(--text); font-size: 17px; }
.prose p.muted{ color: var(--muted); }
.quote{
  border:1px solid rgba(47,111,108,.18);
  background: linear-gradient(135deg, rgba(47,111,108,.08), rgba(211,154,58,.08));
  border-radius: 16px;
  padding: 14px 16px;
  margin: 14px 0;
  color: var(--text);
}
.quote strong{ color: var(--teal); }

.keyPoints{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}
@media (max-width: 640px){
  .keyPoints{ grid-template-columns: 1fr; }
}
.kp{
  border:1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(255,255,255,.82);
}
.kp .t{ font-weight: 650; letter-spacing:.2px; margin-bottom: 4px; }
.kp .d{ color: var(--muted); font-size: 13px; line-height:1.6; }

/* Posts list */
.post{
  border:1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.88);
  overflow:hidden;
  cursor:pointer;
  transition: .15s transform, .15s box-shadow;
}
.post:hover{ transform: translateY(-1px); box-shadow: 0 16px 40px rgba(31,42,36,.10); }
.post + .post{ margin-top: 12px; }
.postImg{ width:100%; aspect-ratio: 16/9; object-fit: cover; display:block; }
.postInner{ padding: 14px 14px 16px; }

.meta{ display:flex; gap:10px; flex-wrap:wrap; align-items:center; color: var(--muted); font-size: 12px; }
.tags{ display:flex; gap:8px; flex-wrap:wrap; }
.tag{
  border:1px solid rgba(47,111,108,.18);
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(47,111,108,.06);
  color: var(--teal);
}

.title{ margin: 8px 0 6px; font-size: 18px; line-height:1.25; }
.excerpt{ margin:0; color: var(--muted); font-size: 14px; }

/* Sidebar tags */
.pills{ display:flex; gap:8px; flex-wrap:wrap; }
.pill{
  border:1px solid var(--line);
  background: rgba(255,255,255,.88);
  border-radius:999px;
  padding:8px 10px;
  cursor:pointer;
  font-size:13px;
  color: var(--text);
  transition: .12s transform, .12s box-shadow;
}
.pill:hover{ transform: translateY(-1px); box-shadow: 0 12px 30px rgba(31,42,36,.08); }
.pill[aria-pressed="true"]{
  border-color: rgba(211,154,58,.55);
  background: rgba(211,154,58,.16);
}

/* Footer */
.footer{
  margin: 18px 0 8px;
  text-align:center;
  color: var(--muted);
  font-size: 12px;
}
/* Hero buttons – poprawiony kontrast */
.hero .btn{
  color: #ffffff;
  background: rgba(0,0,0,.25);
  border-color: rgba(255,255,255,.35);
  backdrop-filter: blur(4px);
}

.hero .btn:hover{
  background: rgba(0,0,0,.35);
  border-color: rgba(255,255,255,.55);
}/* ===== Post page typography ===== */
.article{
  max-width: 820px;
  margin: 0 auto;
  padding: 22px;
}

#meta{
  margin-bottom: 8px;
}

#heroImg{
  width: 100%;
  border-radius: 16px;
  margin: 14px 0 18px;
  display: block;
  object-fit: cover;
}

#title{
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.1;
  margin: 6px 0 10px;
  letter-spacing: .2px;
}

/* Treść wpisu (markdown -> HTML) */
#content{
  font-size: 18px;
}

#content p{
  margin: 0 0 14px;
  color: var(--text);
}

#content h2{
  margin: 28px 0 12px;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: .2px;
}

#content h3{
  margin: 18px 0 10px;
  font-size: 18px;
  line-height: 1.25;
}

#content ul{
  margin: 10px 0 16px 22px;
  padding: 0;
}

#content li{
  margin: 6px 0;
}

#content blockquote{
  margin: 14px 0;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(47,111,108,.18);
  background: linear-gradient(135deg, rgba(47,111,108,.08), rgba(211,154,58,.08));
}

#content hr{
  border: none;
  height: 1px;
  background: var(--line);
  margin: 18px 0;
}

/* Meta jako “pills” */
#meta{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

#meta .tag{
  border:1px solid rgba(47,111,108,.18);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(47,111,108,.06);
  color: var(--teal);
  font-size: 12px;
}/* === Czytelność posta === */
.article{
  max-width: 760px;          /* kolumna czytania */
  margin: 0 auto;
  padding: 32px 36px 40px;   /* LEWY margines jest tu */
}

@media (max-width: 640px){
  .heroMedia{
    position: relative;
    min-height: 420px;
    height: 420px;
    overflow: hidden;
  }

  .heroMedia img{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
  }

  .heroOverlay{
    position: absolute;
    inset: 0;
    background:
      linear-gradient(180deg, rgba(31,42,36,.18) 0%, rgba(31,42,36,.28) 38%, rgba(31,42,36,.58) 100%);
  }

  .heroContent{
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 16px;
  }

  .heroCard{
    max-width: 100%;
  }

  .kicker{
    font-size: 11px;
    padding: 6px 9px;
  }

  .heroTitle{
    margin: 10px 0 8px;
    font-size: clamp(24px, 8vw, 34px);
    line-height: 1.08;
    max-width: 12ch;
    text-wrap: balance;
  }

  .heroLead{
    font-size: 14px;
    line-height: 1.55;
    max-width: 30ch;
    margin-bottom: 12px;
  }

  .hero .btn{
    padding: 10px 14px;
    font-size: 14px;
  }
}.sideText{
  margin: 0 0 18px;
}

.sideCtas{
  display: grid;
  gap: 14px;
  margin-top: 8px;
}

.sideCtas .btn{
  justify-content: flex-start;
  text-align: left;
  line-height: 1.45;
  padding: 12px 14px;
  white-space: normal;
}

@media (max-width: 640px){
  .sideBlock{
    padding: 16px;
  }

  .sideText{
    margin-bottom: 20px;
  }

  .sideCtas{
    gap: 12px;
  }

  .sideCtas .btn{
    width: 100%;
  }
}
.postCta{
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(47,111,108,.06), rgba(211,154,58,.08));
  box-shadow: var(--shadow2);
  overflow: hidden;
}
.postCtaInner{
  padding: 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;

  max-width: 560px; /* 👈 kontrola szerokości */
}
.postCtaTitle{
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
  max-width: 22ch;
}

.postCtaText{
  margin: 0;
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  max-width: 46ch;
}

.postCtaInner .btn{
  margin: 0;
  align-self: flex-start;
}

@media (max-width: 640px){
  .postCta{
    margin-top: 16px;
  }

  .postCtaInner{
    width: 100%;
    padding: 18px 18px 16px;
    gap: 12px;
  }

  .postCtaTitle{
    font-size: 22px;
    max-width: 100%;
  }

  .postCtaText{
    font-size: 15px;
    max-width: 100%;
  }
}