:root {
  --white: #ffffff;
  --ink-50:  #fafafa;
  --ink-100: #f5f5f5;
  --ink-200: #e5e5e5;
  --ink-300: #d4d4d4;
  --ink-400: #a3a3a3;
  --ink-500: #737373;
  --ink-600: #525252;
  --ink-700: #404040;
  --ink-800: #262626;
  --ink-900: #171717;
  --ink-950: #0a0a0a;

  --orange-400: #fb923c;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --orange-glow: rgba(249,115,22,0.4);

  --lime-400: #a3e635;
  --lime-500: #84cc16;

  --line-light: rgba(10,10,10,0.10);
  --line-dark:  rgba(255,255,255,0.10);

  --font: 'Sora', system-ui, sans-serif;
  --mono: var(--font); /* font techniczny wyłączony - wszędzie podstawowy */
  --container: 1280px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);

  --read-w: 720px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-950);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
.container { max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
.mono { font-family: var(--mono); font-feature-settings: "ss01" on, "ss02" on; }

/* ─── EFFECTS ─── */
.grid-pattern-light {
  background-image:
    linear-gradient(var(--line-light) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-light) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black, transparent 70%);
}

@media (prefers-reduced-motion: no-preference) {
  .blur-fade {
    opacity: 0;
    filter: blur(6px);
    transform: translateY(16px);
    animation: blurFadeIn .9s cubic-bezier(.2,.7,.2,1) forwards;
  }
  .blur-fade-1 { animation-delay: .1s; }
  .blur-fade-2 { animation-delay: .25s; }
  .blur-fade-3 { animation-delay: .4s; }
  .blur-fade-4 { animation-delay: .55s; }
  @keyframes blurFadeIn {
    to { opacity: 1; filter: blur(0); transform: translateY(0); }
  }
}

/* ─── TOPBAR ─── */
.topbar {
  background: var(--ink-950);
  color: var(--white);
  font-size: 15px;
  font-weight: 500;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.05rem 1.25rem;
  text-align: center;
  flex-wrap: wrap;
}
.topbar__pulse {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--orange-500);
  box-shadow: 0 0 0 0 rgba(249,115,22,0.6);
  animation: pulse 1.8s ease-out infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(249,115,22,0.55); }
  70% { box-shadow: 0 0 0 12px rgba(249,115,22,0); }
  100% { box-shadow: 0 0 0 0 rgba(249,115,22,0); }
}
.topbar__cta { font-weight: 600; color: var(--orange-500); border-bottom: 1px solid currentColor; }
.topbar__cta:hover { opacity: 0.75; }

/* ─── HEADER ─── */
.site-header {
  position: sticky; top: 0;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line-light);
  z-index: 100;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.85rem;
  gap: 2rem;
}
.brand { display: inline-flex; flex-shrink: 0; }
.brand__logo { height: 28px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav__link {
  font-size: 14.5px;
  font-weight: 500;
  position: relative;
  padding-block: 0.4rem;
  transition: color .2s;
  color: var(--ink-900);
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--orange-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.nav__link:hover::after { transform: scaleX(1); }
.nav__link:hover { color: var(--orange-500); }
.nav__cta {
  font-size: 13.5px;
  font-weight: 600;
  background: var(--orange-500);
  color: var(--white);
  padding: 0.6rem 1.05rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: background .2s, transform .2s, box-shadow .25s;
}
.nav__cta:hover {
  background: var(--orange-600);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -8px var(--orange-glow);
}
.nav__cta-arrow { transition: transform .25s; }
.nav__cta:hover .nav__cta-arrow { transform: translateX(3px); }

/* ─── READING PROGRESS ─── */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--orange-500), var(--orange-400));
  box-shadow: 0 0 12px var(--orange-glow);
  z-index: 200;
  transition: width .12s ease-out;
  pointer-events: none;
}

/* ─── BUTTONS (shared) ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.95rem 1.5rem;
  font-family: var(--font);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: -0.005em;
  border-radius: 999px;
  border: 1.5px solid transparent;
  transition: all .25s cubic-bezier(.2,.7,.2,1);
  cursor: pointer;
}
.btn--primary { background: var(--ink-950); color: var(--white); }
.btn--primary:hover {
  background: var(--orange-500);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -10px var(--orange-glow);
}
.btn--orange { background: var(--orange-500); color: var(--white); }
.btn--orange:hover {
  background: var(--orange-600);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -10px var(--orange-glow);
}
.btn--ghost {
  background: var(--white);
  color: var(--ink-950);
  border-color: var(--ink-950);
}
.btn--ghost:hover { background: var(--ink-950); color: var(--white); }
.btn--ghost-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.25);
}
.btn--ghost-light:hover {
  background: var(--white);
  color: var(--ink-950);
  border-color: var(--white);
}
.btn__arrow { transition: transform .25s; display: inline-block; }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ─── SECTION KICKER ─── */
.section-kicker {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--orange-500);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.section-kicker::before { content: ''; width: 24px; height: 2px; background: var(--orange-500); }
.section-head__title {
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

/* ═══════════════ ARTICLE HERO ═══════════════ */
.article-hero {
  position: relative;
  padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(1.5rem, 3vw, 2.5rem);
  background: var(--white);
  overflow: hidden;
}
.article-hero__bg-grid { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.6; }
.article-hero__bg-glow {
  position: absolute;
  top: -10%; right: -10%;
  width: 50%;
  aspect-ratio: 1;
  background: radial-gradient(circle, var(--orange-glow) 0%, transparent 60%);
  filter: blur(80px);
  z-index: 0;
  opacity: 0.25;
  pointer-events: none;
}
.article-hero__inner { position: relative; z-index: 1; max-width: 880px; }

/* Breadcrumb */
.breadcrumb {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-500);
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  letter-spacing: 0.02em;
}
.breadcrumb a {
  transition: color .2s;
}
.breadcrumb a:hover { color: var(--orange-500); }
.breadcrumb__sep { color: var(--ink-300); }
.breadcrumb [aria-current="page"] {
  color: var(--ink-700);
  font-weight: 600;
}

/* Article kicker (kategoria + data) */
.article-hero__kicker {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange-500);
  margin-bottom: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}
.article-hero__kicker-cat { font-weight: 600; }
.article-hero__kicker-sep {
  width: 4px; height: 4px;
  background: var(--orange-500);
  border-radius: 50%;
  display: inline-block;
}
.article-hero__kicker-date { color: var(--ink-500); font-weight: 400; }

/* Headline */
.article-hero__title {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--ink-950);
  margin-bottom: 1.25rem;
  max-width: 22ch;
}
.article-hero__lede {
  font-size: clamp(1.1rem, 1.4vw, 1.3rem);
  line-height: 1.5;
  color: var(--ink-600);
  font-weight: 400;
  max-width: 56ch;
}

/* Meta row */
.article-hero__meta {
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.article-hero__author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.article-hero__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(155deg, var(--ink-700), var(--ink-900));
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.article-hero__avatar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(249,115,22,0.3), transparent 60%);
}
.article-hero__author-name {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-950);
  line-height: 1.2;
}
.article-hero__author-role {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-500);
  margin-top: 2px;
  letter-spacing: 0.02em;
}
.article-hero__stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-500);
  letter-spacing: 0.02em;
}
.article-hero__stats strong {
  color: var(--ink-950);
  font-weight: 600;
}
.article-hero__stat {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.article-hero__stat-dot {
  width: 5px; height: 5px;
  background: var(--orange-500);
  border-radius: 50%;
  display: inline-block;
}

/* ═══════════════ ARTICLE COVER (16:9) ═══════════════ */
.article-cover-wrap {
  background: var(--white);
  padding-bottom: clamp(2rem, 4vw, 3rem);
}
.article-cover {
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.article-cover__frame {
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(circle at 25% 30%, rgba(249,115,22,0.18) 0%, transparent 55%),
    radial-gradient(circle at 75% 70%, rgba(10,10,10,0.06) 0%, transparent 55%),
    var(--ink-100);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 24px 60px -20px rgba(10,10,10,0.20);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-500);
}
.article-cover__frame::before {
  content: '[ ilustracja: web mcp ]';
}
.article-cover__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-950);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: 0 4px 12px -2px rgba(10,10,10,0.2);
}
.article-cover__badge-dot {
  width: 6px; height: 6px;
  background: var(--lime-400);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--lime-400);
}

/* ═══════════════ ARTICLE GRID ═══════════════ */
.article-grid-wrap {
  background: var(--white);
  padding-block: clamp(2rem, 4vw, 3rem) clamp(3rem, 6vw, 5rem);
  position: relative;
}
.article-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, var(--read-w)) 60px;
  gap: clamp(2rem, 4vw, 3.5rem);
  justify-content: center;
  align-items: start;
}

/* TOC (left, sticky) */
.toc {
  position: sticky;
  top: 90px;
  font-size: 13.5px;
  align-self: start;
}
.toc__head {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange-500);
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line-light);
}
.toc__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}
.toc__item a {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 0.5rem;
  padding-block: 0.55rem;
  border-left: 2px solid transparent;
  padding-left: 0.85rem;
  margin-left: -0.85rem;
  transition: color .2s, border-color .2s, background .2s;
  color: var(--ink-600);
  line-height: 1.35;
}
.toc__num {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-400);
  letter-spacing: 0.04em;
  padding-top: 2px;
}
.toc__item a:hover {
  color: var(--orange-500);
  border-left-color: var(--orange-500);
}
.toc__item a:hover .toc__num { color: var(--orange-500); }
.toc__item--active a {
  color: var(--ink-950);
  font-weight: 600;
  border-left-color: var(--orange-500);
}
.toc__item--active .toc__num { color: var(--orange-500); }

/* Share rail (right, sticky) */
.share-rail {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  align-self: start;
}
.share-rail__head {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-400);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  margin-bottom: 0.4rem;
}
.share-rail__btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line-light);
  color: var(--ink-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  transition: all .25s cubic-bezier(.2,.7,.2,1);
  cursor: pointer;
}
.share-rail__btn:hover {
  background: var(--ink-950);
  color: var(--white);
  border-color: var(--ink-950);
  transform: translateY(-2px);
}
.share-rail__btn--copy:hover {
  background: var(--orange-500);
  border-color: var(--orange-500);
}
.share-rail__btn svg { width: 16px; height: 16px; }

/* ═══════════════ ARTICLE BODY (typografia) ═══════════════ */
.article-body {
  max-width: var(--read-w);
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-800);
}
.article-body > * + * { margin-top: 1.4rem; }

.article-body p {
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink-800);
}
.article-body p strong { color: var(--ink-950); font-weight: 700; }
.article-body p em { font-style: normal; color: var(--ink-950); font-weight: 600; }
.article-body a {
  color: var(--ink-950);
  font-weight: 500;
  background-image: linear-gradient(transparent 65%, rgba(249,115,22,0.25) 65%);
  transition: background-image .25s;
}
.article-body a:hover {
  background-image: linear-gradient(transparent 0%, rgba(249,115,22,0.35) 0%);
  color: var(--orange-600);
}

/* Lede paragraph (pierwszy po TLDR / cover) */
.article-body p.lead {
  font-size: 1.3rem;
  line-height: 1.55;
  color: var(--ink-700);
  font-weight: 400;
  letter-spacing: -0.005em;
}

/* Drop cap: pierwszy znak pierwszego paragrafu zaraz po TLDR */
.article-body .tldr + p::first-letter {
  font-family: var(--font);
  font-size: 4.4rem;
  font-weight: 700;
  float: left;
  line-height: 0.9;
  margin: 0.4rem 0.7rem -0.2rem 0;
  color: var(--orange-500);
  letter-spacing: -0.045em;
}

/* Headings */
.article-body h2 {
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--ink-950);
  margin-top: 3.5rem;
  margin-bottom: 0.75rem;
  scroll-margin-top: 100px;
  position: relative;
}
.article-body h2::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 0.55em;
  width: 1rem;
  height: 2px;
  background: var(--orange-500);
}
.article-body h3 {
  font-size: clamp(1.35rem, 1.85vw, 1.55rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: var(--ink-950);
  margin-top: 2.75rem;
  margin-bottom: 0.6rem;
  scroll-margin-top: 100px;
}
.article-body h4 {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--ink-950);
  margin-top: 2rem;
  margin-bottom: 0.4rem;
  scroll-margin-top: 100px;
}
.article-body h2 + p,
.article-body h3 + p,
.article-body h4 + p { margin-top: 0.85rem; }

/* Lists */
.article-body ul,
.article-body ol {
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.article-body ul li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-800);
}
.article-body ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.7em;
  width: 8px; height: 8px;
  background: var(--orange-500);
  border-radius: 2px;
  transform: rotate(45deg);
}
.article-body ol {
  counter-reset: ol-counter;
}
.article-body ol li {
  counter-increment: ol-counter;
  position: relative;
  padding-left: 2.3rem;
  font-size: 17px;
  line-height: 1.65;
}
.article-body ol li::before {
  content: counter(ol-counter, decimal-leading-zero);
  position: absolute;
  left: 0; top: 0;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--orange-500);
  letter-spacing: 0.02em;
}

/* Blockquote */
.article-body blockquote {
  border-left: 3px solid var(--orange-500);
  padding: 0.4rem 0 0.4rem 1.5rem;
  margin-block: 2rem;
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--ink-700);
  font-weight: 500;
  letter-spacing: -0.005em;
}
.article-body blockquote p { font-size: 1.2rem; line-height: 1.55; color: var(--ink-700); }

/* Inline code */
.article-body code {
  font-family: var(--mono);
  font-size: 0.92em;
  background: var(--ink-100);
  padding: 0.15em 0.45em;
  border-radius: 4px;
  color: var(--ink-900);
  border: 1px solid var(--line-light);
}

/* Figure / images */
.article-body figure {
  margin-block: 2.5rem;
}
.article-body figure img {
  border-radius: 10px;
  width: 100%;
}
.article-body figcaption {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-500);
  margin-top: 0.65rem;
  letter-spacing: 0.02em;
  text-align: left;
}

/* Embedy wideo w treści (YouTube/Vimeo) - pełna szerokość kolumny, proporcja 16:9.
   Pokrywa surowe iframe (stare wpisy: <p><iframe ... width="425" height="350"></iframe></p>)
   oraz bloki Gutenberga (.wp-block-embed / .wp-embed-aspect-16-9). */
.article-body iframe[src*="youtube.com"],
.article-body iframe[src*="youtu.be"],
.article-body iframe[src*="youtube-nocookie.com"],
.article-body iframe[src*="vimeo.com"],
.article-body .wp-block-embed__wrapper iframe,
.article-body .wp-block-embed iframe {
  display: block;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 12px;
  margin-block: 2.5rem;
}

/* Paragraf opakowujący surowy iframe - żeby nie zawężał ani nie centrował na lewo */
.article-body p:has(> iframe[src*="youtube.com"]),
.article-body p:has(> iframe[src*="youtu.be"]),
.article-body p:has(> iframe[src*="youtube-nocookie.com"]),
.article-body p:has(> iframe[src*="vimeo.com"]) {
  margin-inline: 0;
  max-width: 100%;
}

/* Bloki oembed Gutenberga */
.article-body .wp-block-embed,
.article-body .wp-block-embed__wrapper {
  margin-inline: 0;
  max-width: 100%;
}

/* YT embed placeholder */
.yt-embed { margin-block: 2.5rem; }
.yt-embed__frame {
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  background:
    radial-gradient(circle at center, rgba(249,115,22,0.12) 0%, transparent 55%),
    linear-gradient(155deg, var(--ink-800), var(--ink-950));
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.yt-embed__frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 60% 80% at 50% 50%, black, transparent 75%);
  pointer-events: none;
}
.yt-embed__frame:hover { transform: translateY(-2px); }
.yt-embed__play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--orange-500);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 22px;
  box-shadow: 0 18px 40px -10px var(--orange-glow);
  transition: transform .25s;
  z-index: 1;
}
.yt-embed__frame:hover .yt-embed__play {
  transform: translate(-50%, -50%) scale(1.08);
}
.yt-embed__label {
  position: absolute;
  bottom: 1rem; left: 1rem;
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.04em;
  z-index: 1;
}

/* ─── TLDR (details/summary) ─── */
.tldr {
  margin-block: 0 2.5rem;
  border: 1px solid var(--line-light);
  border-left: 3px solid var(--orange-500);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  background: var(--ink-50);
  transition: background .25s;
}
.tldr[open] { background: var(--white); }
.tldr summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange-500);
  user-select: none;
}
.tldr summary::-webkit-details-marker { display: none; }
.tldr__icon {
  font-family: var(--font);
  font-size: 13px;
  color: var(--ink-500);
  font-weight: 500;
  transition: transform .25s;
}
.tldr[open] .tldr__icon { transform: rotate(180deg); }
.tldr__body {
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink-800);
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line-light);
}

/* ─── CALLOUT (przeczytaj też) ─── */
.callout {
  margin-block: 2.5rem;
  background: var(--ink-50);
  border-left: 3px solid var(--orange-500);
  border-radius: 6px;
  padding: 1.5rem 1.75rem;
  transition: background .25s, transform .25s;
}
.callout:hover { background: var(--white); }
.callout__kicker {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange-500);
  display: block;
  margin-bottom: 0.65rem;
}
.callout p {
  font-size: 16.5px !important;
  line-height: 1.55 !important;
  color: var(--ink-700) !important;
  margin: 0 0 0.85rem 0 !important;
}
.callout__link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-950);
  background: none !important;
  transition: color .2s, gap .2s;
}
.callout__link:hover {
  color: var(--orange-500);
  gap: 0.7rem;
}
.callout__link-arrow { transition: transform .25s; display: inline-block; }
.callout__link:hover .callout__link-arrow { transform: translateX(3px); }

/* ─── INLINE NEWSLETTER / CTA ─── */
.inline-cta {
  margin-block: 3rem;
  background: var(--ink-950);
  color: var(--white);
  border-radius: 14px;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  position: relative;
  overflow: hidden;
}
.inline-cta::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 60%;
  aspect-ratio: 1;
  background: radial-gradient(circle, var(--orange-glow), transparent 60%);
  filter: blur(60px);
  opacity: 0.5;
  pointer-events: none;
}
.inline-cta__inner { position: relative; z-index: 1; }
.inline-cta__kicker {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange-500);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.inline-cta__kicker::before { content: ''; width: 20px; height: 2px; background: var(--orange-500); }
.inline-cta__title {
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 0.65rem;
  max-width: 28ch;
  color: var(--white) !important;
}
.inline-cta p {
  font-size: 16px !important;
  color: var(--ink-300) !important;
  line-height: 1.55 !important;
  margin-bottom: 1.4rem !important;
  max-width: 50ch;
}
.inline-cta__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}
.inline-cta__hint {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-400);
  letter-spacing: 0.02em;
}

/* ─── KEY TAKEAWAYS ─── */
.takeaways {
  margin-block: 3rem;
  background: var(--ink-950);
  color: var(--white);
  border-radius: 14px;
  padding: clamp(1.75rem, 3vw, 2.25rem);
  position: relative;
  overflow: hidden;
}
.takeaways__kicker {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange-500);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.takeaways__kicker::before { content: ''; width: 24px; height: 2px; background: var(--orange-500); }
.takeaways h3 {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--white);
  margin: 0 0 1.5rem 0;
  line-height: 1.2;
}
.takeaways ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0;
}
.takeaways ul li {
  position: relative;
  padding-left: 2rem;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-200);
}
.takeaways ul li::before {
  content: '✓';
  position: absolute;
  left: 0; top: 0;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--orange-500);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--orange-500);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Next-step + closing question */
.article-body .next-step {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  background: var(--ink-50);
  border-radius: 8px;
  font-size: 16.5px;
}
.article-body .closing-q {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line-light);
  font-size: 17px;
  color: var(--ink-600);
  font-style: normal;
}

/* ═══════════════ AUTHOR CARD (DARK) ═══════════════ */
.author-card {
  background: var(--ink-950);
  color: var(--white);
  padding-block: clamp(3rem, 5vw, 4.5rem);
  position: relative;
  overflow: hidden;
}
.author-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 80% 30%, rgba(249,115,22,0.10), transparent 55%);
  z-index: 0;
}
.author-card__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
  max-width: 920px;
  margin-inline: auto;
}
.author-card__visual {
  aspect-ratio: 4/5;
  background: linear-gradient(155deg, var(--ink-800), var(--ink-900));
  border: 1px solid var(--line-dark);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}
.author-card__visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 30%, rgba(249,115,22,0.18) 0%, transparent 55%),
    radial-gradient(circle at 30% 70%, rgba(255,255,255,0.05) 0%, transparent 55%);
}
.author-card__visual::after {
  content: '[ portret michała ]';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-500);
  letter-spacing: 0.04em;
}
.author-card__name {
  font-size: clamp(1.5rem, 2.4vw, 1.95rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 0.8rem;
  line-height: 1.1;
}
.author-card__bio {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-300);
  margin-bottom: 1rem;
  max-width: 56ch;
}
.author-card__bio strong { color: var(--white); font-weight: 600; }
.author-card__bio .accent { color: var(--orange-500); font-weight: 600; }
.author-card__milestones {
  margin-block: 1.25rem;
  display: flex;
  gap: 1.75rem;
  padding-block: 1rem;
  border-block: 1px solid var(--line-dark);
  flex-wrap: wrap;
}
.author-card__milestone {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.author-card__milestone-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--orange-500);
  font-weight: 500;
}
.author-card__milestone-text {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--white);
}
.author-card__cta {
  margin-top: 1.25rem;
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

/* ═══════════════ RELATED POSTS (LIGHT) ═══════════════ */
.related {
  padding-block: clamp(3.5rem, 6vw, 5.5rem);
  background: var(--ink-50);
}
.related__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: clamp(1.75rem, 3vw, 2.25rem);
  gap: 2rem;
  flex-wrap: wrap;
}
.posts__list { display: grid; grid-template-columns: 1fr; gap: 0; }
.post-row {
  display: grid;
  grid-template-columns: 95px 1fr auto;
  gap: 1.5rem;
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--line-light);
  align-items: center;
  transition: background .25s, padding .3s;
  border-radius: 6px;
  position: relative;
}
.post-row::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 0; height: 2px;
  background: var(--orange-500);
  transition: width .3s ease;
  transform: translateY(-50%);
}
.post-row:hover {
  background: var(--white);
  padding-inline: 1rem;
  margin-inline: -1rem;
}
.post-row:hover::before { width: 4px; }
.post-row:first-child { border-top: 1px solid var(--line-light); }
.post-row__date {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-500);
  white-space: nowrap;
}
.post-row__body { display: flex; flex-direction: column; gap: 0.4rem; }
.post-row__cat {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange-500);
}
.post-row__title {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
  transition: color .25s;
}
.post-row:hover .post-row__title { color: var(--orange-500); }
.post-row__readtime {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-500);
  white-space: nowrap;
}

/* ═══════════════ FOOTER ═══════════════ */
.footer {
  background: var(--ink-950);
  color: var(--white);
  padding-block: clamp(3rem, 5vw, 4.5rem) 2rem;
  border-top: 1px solid var(--line-dark);
}
.footer__top {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line-dark);
}
.footer__brand-row { display: flex; margin-bottom: 1rem; }
.footer__brand-logo {
  height: 30px;
  width: auto;
  display: block;
  filter: invert(1) hue-rotate(180deg);
}
.footer__tag {
  font-size: 14px;
  color: var(--ink-300);
  max-width: 32ch;
  line-height: 1.6;
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.footer__col-title {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange-500);
  margin-bottom: 1rem;
}
.footer__col-links { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer__col-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-200);
  transition: color .2s, padding-left .2s;
  display: inline-block;
}
.footer__col-links a:hover { color: var(--orange-500); padding-left: 4px; }
.footer__bottom {
  margin-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-500);
  flex-wrap: wrap;
  gap: 1rem;
}

/* ═══════════════ KOMENTARZE / DYSKUSJA ═══════════════ */
.comments {
  padding-block: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--line-light);
}
.comments__inner {
  max-width: 760px;
}
.comments .section-head { margin-bottom: 2.5rem; }

/* Lista */
.comment-list {
  list-style: none;
  margin: 0 0 2.5rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
.comment-list .children {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0 0 0 1.5rem;
  border-left: 2px solid var(--line-light);
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
.comment-body {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.comment-avatar {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--white);
  font-weight: 600;
  font-size: 17px;
  line-height: 1;
  user-select: none;
}
.comment-main { flex: 1 1 auto; min-width: 0; }
.comment-head {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.4rem;
}
.comment-author {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-900);
}
.comment-date {
  font-size: 12px;
  color: var(--ink-400);
}
.comment-awaiting {
  font-size: 13px;
  color: var(--orange-600);
  margin: 0 0 0.5rem;
}
.comment-content {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-700);
}
.comment-content p { margin: 0 0 0.75rem; }
.comment-content p:last-child { margin-bottom: 0; }
.comment-content a { color: var(--orange-600); text-decoration: underline; }
.comment-actions { margin-top: 0.6rem; }
.comment-reply-wrap a,
.comment-actions a {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-500);
  transition: color .2s;
}
.comment-actions a:hover { color: var(--orange-500); }

/* Paginacja */
.comment-pagination {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.comment-pagination a,
.comment-pagination .current {
  font-family: var(--mono);
  font-size: 13px;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  border: 1px solid var(--line-light);
  color: var(--ink-600);
}
.comment-pagination .current {
  background: var(--ink-950);
  color: var(--white);
  border-color: var(--ink-950);
}
.comment-pagination a:hover { border-color: var(--orange-500); color: var(--orange-600); }

.comments-closed {
  font-size: 14px;
  color: var(--ink-500);
  padding: 1rem 1.25rem;
  background: var(--ink-50);
  border-radius: 12px;
  margin-bottom: 2rem;
}

/* Formularz */
.comment-respond {
  margin-top: 1rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line-light);
}
.comment-form__title,
.comment-reply-title {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 600;
  color: var(--ink-900);
  margin: 0 0 1.5rem;
}
.comment-reply-title small { margin-left: 0.75rem; font-size: 14px; font-weight: 400; }
.comment-form { display: flex; flex-direction: column; gap: 1rem; }
.comment-form p { margin: 0; }
.comment-form .comment-form-author,
.comment-form .comment-form-email {
  display: inline-block;
  width: calc(50% - 0.5rem);
}
.comment-form .comment-form-author { margin-right: 1rem; }
.comment-form label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-700);
  margin-bottom: 0.4rem;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  box-sizing: border-box;
  background: var(--ink-50);
  border: 1.5px solid var(--ink-200);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  color: var(--ink-900);
  font-size: 15px;
  font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
}
.comment-form textarea { min-height: 150px; resize: vertical; }
.comment-form input::placeholder,
.comment-form textarea::placeholder { color: var(--ink-400); }
.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--orange-500);
  box-shadow: 0 0 0 3px rgba(249,115,22,0.15);
}
.comment-form .comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 0.5rem; }
.comment-form .comment-form-cookies-consent input { width: auto; margin-top: 0.2rem; }
.comment-form .comment-form-cookies-consent label { margin: 0; font-weight: 400; color: var(--ink-500); font-size: 13px; }
.comment-form .form-submit { margin-top: 0.5rem; }
.comment-form__submit { border: none; }
.comment-notes { font-size: 13px; color: var(--ink-500); margin: 0 0 0.5rem; }

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 1100px) {
  .article-grid {
    grid-template-columns: 200px minmax(0, 640px);
  }
  .share-rail { display: none; }
}
@media (max-width: 880px) {
  .article-grid {
    grid-template-columns: 1fr;
    max-width: 720px;
  }
  .toc {
    position: static;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--line-light);
  }
  .article-body h2::before { display: none; }
  .author-card__inner { grid-template-columns: 1fr; max-width: 540px; }
  .author-card__visual { max-width: 240px; }
  .footer__top { grid-template-columns: 1fr; }
  .nav { display: none; }
  .article-hero__title { max-width: none; }
}
@media (max-width: 560px) {
  .footer__cols { grid-template-columns: 1fr; }
  .article-body { font-size: 17px; }
  .article-body p { font-size: 17px; }
  .article-body h2 { font-size: 1.5rem; }
  .article-body h3 { font-size: 1.25rem; }
  .article-hero__meta { flex-direction: column; align-items: flex-start; }
  .article-hero__stats { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
  .author-card__milestones { gap: 1rem; }
  .comment-form .comment-form-author,
  .comment-form .comment-form-email { display: block; width: 100%; margin-right: 0; }
  .comment-list .children { padding-left: 1rem; }
}

/* Stary widget "PRZECZYTAJ STRESZCZENIE" w treści posta - chowamy, bo lede już pokazuje streszczenie */
.article-body .toggle-container { display: none; }
